diff --git a/README.md b/README.md index a005c28a..f1a52a42 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ | 3.5 | 1.2 | | 3.9 | 2.0 | | 4.0 | 2.1 | +| 4.2 | 2.2 | ## Frameworks supported @@ -97,6 +98,7 @@ Class | Method | HTTP request | Description *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 +*AutoTestsApi* | [**ApiV2AutoTestsIdPatch**](docs/AutoTestsApi.md#apiv2autotestsidpatch) | **PATCH** /api/v2/autoTests/{id} | Patch auto test *AutoTestsApi* | [**ApiV2AutoTestsIdTestResultsSearchPost**](docs/AutoTestsApi.md#apiv2autotestsidtestresultssearchpost) | **POST** /api/v2/autoTests/{id}/testResults/search | Get test results history for autotest *AutoTestsApi* | [**ApiV2AutoTestsIdWorkItemsChangedIdGet**](docs/AutoTestsApi.md#apiv2autotestsidworkitemschangedidget) | **GET** /api/v2/autoTests/{id}/workItems/changed/id | Get identifiers of changed linked work items *AutoTestsApi* | [**ApiV2AutoTestsIdWorkItemsChangedWorkItemIdApprovePost**](docs/AutoTestsApi.md#apiv2autotestsidworkitemschangedworkitemidapprovepost) | **POST** /api/v2/autoTests/{id}/workItems/changed/{workItemId}/approve | Approve changes to work items linked to autotest @@ -115,7 +117,9 @@ Class | Method | HTTP request | Description *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 *AutoTestsApi* | [**UpdateMultiple**](docs/AutoTestsApi.md#updatemultiple) | **PUT** /api/v2/autoTests/bulk | Update multiple autotests +*BackgroundJobsApi* | [**ApiV2BackgroundJobsGet**](docs/BackgroundJobsApi.md#apiv2backgroundjobsget) | **GET** /api/v2/backgroundJobs | Get current user background jobs *ConfigurationsApi* | [**ApiV2ConfigurationsCreateByParametersPost**](docs/ConfigurationsApi.md#apiv2configurationscreatebyparameterspost) | **POST** /api/v2/configurations/createByParameters | Create Configurations by parameters +*ConfigurationsApi* | [**ApiV2ConfigurationsIdPatch**](docs/ConfigurationsApi.md#apiv2configurationsidpatch) | **PATCH** /api/v2/configurations/{id} | Patch configuration *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 @@ -144,6 +148,7 @@ Class | Method | HTTP request | Description *ParametersApi* | [**ApiV2ParametersKeyNameNameExistsGet**](docs/ParametersApi.md#apiv2parameterskeynamenameexistsget) | **GET** /api/v2/parameters/key/name/{name}/exists | Check existence parameter key in system *ParametersApi* | [**ApiV2ParametersKeyValuesGet**](docs/ParametersApi.md#apiv2parameterskeyvaluesget) | **GET** /api/v2/parameters/{key}/values | Get all parameter key values *ParametersApi* | [**ApiV2ParametersKeysGet**](docs/ParametersApi.md#apiv2parameterskeysget) | **GET** /api/v2/parameters/keys | Get all parameter keys +*ParametersApi* | [**ApiV2ParametersSearchPost**](docs/ParametersApi.md#apiv2parameterssearchpost) | **POST** /api/v2/parameters/search | Search for parameters *ParametersApi* | [**CreateParameter**](docs/ParametersApi.md#createparameter) | **POST** /api/v2/parameters | Create parameter *ParametersApi* | [**DeleteByName**](docs/ParametersApi.md#deletebyname) | **DELETE** /api/v2/parameters/name/{name} | Delete parameter by name *ParametersApi* | [**DeleteByParameterKeyId**](docs/ParametersApi.md#deletebyparameterkeyid) | **DELETE** /api/v2/parameters/keyId/{keyId} | Delete parameters by parameter key identifier @@ -159,8 +164,11 @@ Class | Method | HTTP request | Description *ProjectsApi* | [**ApiV2ProjectsIdFailureClassesGet**](docs/ProjectsApi.md#apiv2projectsidfailureclassesget) | **GET** /api/v2/projects/{id}/failureClasses | Get Project FailureClasses *ProjectsApi* | [**ApiV2ProjectsIdFavoritePut**](docs/ProjectsApi.md#apiv2projectsidfavoriteput) | **PUT** /api/v2/projects/{id}/favorite | Mark Project as favorite *ProjectsApi* | [**ApiV2ProjectsIdFiltersGet**](docs/ProjectsApi.md#apiv2projectsidfiltersget) | **GET** /api/v2/projects/{id}/filters | Get Project filters +*ProjectsApi* | [**ApiV2ProjectsIdPatch**](docs/ProjectsApi.md#apiv2projectsidpatch) | **PATCH** /api/v2/projects/{id} | Patch project *ProjectsApi* | [**ApiV2ProjectsIdTestPlansAnalyticsGet**](docs/ProjectsApi.md#apiv2projectsidtestplansanalyticsget) | **GET** /api/v2/projects/{id}/testPlans/analytics | Get TestPlans analytics +*ProjectsApi* | [**ApiV2ProjectsIdTestPlansDeleteBulkPost**](docs/ProjectsApi.md#apiv2projectsidtestplansdeletebulkpost) | **POST** /api/v2/projects/{id}/testPlans/delete/bulk | Delete multiple test plans *ProjectsApi* | [**ApiV2ProjectsIdTestPlansNameExistsGet**](docs/ProjectsApi.md#apiv2projectsidtestplansnameexistsget) | **GET** /api/v2/projects/{id}/testPlans/{name}/exists | Checks if TestPlan exists with the specified name exists for the project +*ProjectsApi* | [**ApiV2ProjectsIdTestPlansRestoreBulkPost**](docs/ProjectsApi.md#apiv2projectsidtestplansrestorebulkpost) | **POST** /api/v2/projects/{id}/testPlans/restore/bulk | Restore multiple test plans *ProjectsApi* | [**ApiV2ProjectsIdTestPlansSearchPost**](docs/ProjectsApi.md#apiv2projectsidtestplanssearchpost) | **POST** /api/v2/projects/{id}/testPlans/search | Get Project TestPlans with analytics *ProjectsApi* | [**ApiV2ProjectsIdTestRunsActiveGet**](docs/ProjectsApi.md#apiv2projectsidtestrunsactiveget) | **GET** /api/v2/projects/{id}/testRuns/active | Get active Project TestRuns *ProjectsApi* | [**ApiV2ProjectsIdTestRunsFullGet**](docs/ProjectsApi.md#apiv2projectsidtestrunsfullget) | **GET** /api/v2/projects/{id}/testRuns/full | Get Project TestRuns full models @@ -169,6 +177,10 @@ Class | Method | HTTP request | Description *ProjectsApi* | [**ApiV2ProjectsIdWorkItemsTagsGet**](docs/ProjectsApi.md#apiv2projectsidworkitemstagsget) | **GET** /api/v2/projects/{id}/workItems/tags | Get WorkItems Tags *ProjectsApi* | [**ApiV2ProjectsNameNameExistsGet**](docs/ProjectsApi.md#apiv2projectsnamenameexistsget) | **GET** /api/v2/projects/name/{name}/exists | *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* | [**BackgroundImportToExistingProject**](docs/ProjectsApi.md#backgroundimporttoexistingproject) | **POST** /api/v2/projects/{id}/import/json | Import project from JSON file into existing project in background job +*ProjectsApi* | [**BackgroundImportZipProject**](docs/ProjectsApi.md#backgroundimportzipproject) | **POST** /api/v2/projects/import/zip | Import project from Zip file in background job +*ProjectsApi* | [**BackgroundImportZipToExistingProject**](docs/ProjectsApi.md#backgroundimportziptoexistingproject) | **POST** /api/v2/projects/{id}/import/zip | Import project from Zip file into existing project in background job *ProjectsApi* | [**CreateCustomAttributeTestPlanProjectRelations**](docs/ProjectsApi.md#createcustomattributetestplanprojectrelations) | **POST** /api/v2/projects/{id}/testPlans/attributes | Add attributes to project's test plans *ProjectsApi* | [**CreateProject**](docs/ProjectsApi.md#createproject) | **POST** /api/v2/projects | Create project *ProjectsApi* | [**CreateProjectsAttribute**](docs/ProjectsApi.md#createprojectsattribute) | **POST** /api/v2/projects/{id}/attributes | Create project attribute @@ -177,6 +189,10 @@ Class | Method | HTTP request | Description *ProjectsApi* | [**DeleteProjectAutoTests**](docs/ProjectsApi.md#deleteprojectautotests) | **DELETE** /api/v2/projects/{id}/autoTests | Delete project *ProjectsApi* | [**DeleteProjectsAttribute**](docs/ProjectsApi.md#deleteprojectsattribute) | **DELETE** /api/v2/projects/{id}/attributes/{attributeId} | Delete project attribute *ProjectsApi* | [**Export**](docs/ProjectsApi.md#export) | **POST** /api/v2/projects/{id}/export | Export project as JSON file +*ProjectsApi* | [**ExportProjectJson**](docs/ProjectsApi.md#exportprojectjson) | **POST** /api/v2/projects/{id}/export/json | Export project as JSON file in background job +*ProjectsApi* | [**ExportProjectWithTestPlansJson**](docs/ProjectsApi.md#exportprojectwithtestplansjson) | **POST** /api/v2/projects/{id}/export/testPlans/json | Export project as JSON file with test plans in background job +*ProjectsApi* | [**ExportProjectWithTestPlansZip**](docs/ProjectsApi.md#exportprojectwithtestplanszip) | **POST** /api/v2/projects/{id}/export/testPlans/zip | Export project as Zip file with test plans in background job +*ProjectsApi* | [**ExportProjectZip**](docs/ProjectsApi.md#exportprojectzip) | **POST** /api/v2/projects/{id}/export/zip | Export project as Zip file in background job *ProjectsApi* | [**ExportWithTestPlansAndConfigurations**](docs/ProjectsApi.md#exportwithtestplansandconfigurations) | **POST** /api/v2/projects/{id}/export-by-testPlans | Export project with test plans, test suites and test points as JSON file *ProjectsApi* | [**GetAllProjects**](docs/ProjectsApi.md#getallprojects) | **GET** /api/v2/projects | Get all projects *ProjectsApi* | [**GetAttributeByProjectId**](docs/ProjectsApi.md#getattributebyprojectid) | **GET** /api/v2/projects/{id}/attributes/{attributeId} | Get project attribute @@ -197,6 +213,7 @@ Class | Method | HTTP request | Description *ProjectsApi* | [**UpdateCustomAttributeTestPlanProjectRelations**](docs/ProjectsApi.md#updatecustomattributetestplanprojectrelations) | **PUT** /api/v2/projects/{id}/testPlans/attribute | Update attribute of project's test plans *ProjectsApi* | [**UpdateProject**](docs/ProjectsApi.md#updateproject) | **PUT** /api/v2/projects | Update project *ProjectsApi* | [**UpdateProjectsAttribute**](docs/ProjectsApi.md#updateprojectsattribute) | **PUT** /api/v2/projects/{id}/attributes | Edit attribute of the project +*SectionsApi* | [**ApiV2SectionsIdPatch**](docs/SectionsApi.md#apiv2sectionsidpatch) | **PATCH** /api/v2/sections/{id} | Patch section *SectionsApi* | [**CreateSection**](docs/SectionsApi.md#createsection) | **POST** /api/v2/sections | Create section *SectionsApi* | [**DeleteSection**](docs/SectionsApi.md#deletesection) | **DELETE** /api/v2/sections/{id} | Delete section *SectionsApi* | [**GetSectionById**](docs/SectionsApi.md#getsectionbyid) | **GET** /api/v2/sections/{id} | Get section @@ -215,8 +232,11 @@ Class | Method | HTTP request | Description *TestPlansApi* | [**ApiV2TestPlansIdExportTestResultHistoryXlsxPost**](docs/TestPlansApi.md#apiv2testplansidexporttestresulthistoryxlsxpost) | **POST** /api/v2/testPlans/{id}/export/testResultHistory/xlsx | Export TestResults history from TestPlan in xls format *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* | [**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 +*TestPlansApi* | [**ApiV2TestPlansIdTestPointsTesterUserIdPost**](docs/TestPlansApi.md#apiv2testplansidtestpointstesteruseridpost) | **POST** /api/v2/testPlans/{id}/testPoints/tester/{userId} | Assign user as a tester to multiple test points *TestPlansApi* | [**ApiV2TestPlansIdTestRunsGet**](docs/TestPlansApi.md#apiv2testplansidtestrunsget) | **GET** /api/v2/testPlans/{id}/testRuns | Get TestRuns of TestPlan *TestPlansApi* | [**ApiV2TestPlansIdTestRunsSearchPost**](docs/TestPlansApi.md#apiv2testplansidtestrunssearchpost) | **POST** /api/v2/testPlans/{id}/testRuns/search | Search TestRuns of TestPlan *TestPlansApi* | [**ApiV2TestPlansIdTestRunsTestResultsLastModifiedModifiedDateGet**](docs/TestPlansApi.md#apiv2testplansidtestrunstestresultslastmodifiedmodifieddateget) | **GET** /api/v2/testPlans/{id}/testRuns/testResults/lastModified/modifiedDate | Get last modification date of test plan's test results @@ -264,6 +284,8 @@ Class | Method | HTTP request | Description *TestRunsApi* | [**StopTestRun**](docs/TestRunsApi.md#stoptestrun) | **POST** /api/v2/testRuns/{id}/stop | Stop TestRun *TestRunsApi* | [**UpdateEmpty**](docs/TestRunsApi.md#updateempty) | **PUT** /api/v2/testRuns | Update empty TestRun *TestSuitesApi* | [**AddTestPointsToTestSuite**](docs/TestSuitesApi.md#addtestpointstotestsuite) | **POST** /api/v2/testSuites/{id}/test-points | Add test-points to test suite +*TestSuitesApi* | [**ApiV2TestSuitesIdPatch**](docs/TestSuitesApi.md#apiv2testsuitesidpatch) | **PATCH** /api/v2/testSuites/{id} | Patch test suite +*TestSuitesApi* | [**ApiV2TestSuitesIdRefreshPost**](docs/TestSuitesApi.md#apiv2testsuitesidrefreshpost) | **POST** /api/v2/testSuites/{id}/refresh | Refresh test suite. Only dynamic test suites are supported by this method *TestSuitesApi* | [**CreateTestSuite**](docs/TestSuitesApi.md#createtestsuite) | **POST** /api/v2/testSuites | Create TestSuite *TestSuitesApi* | [**DeleteTestSuite**](docs/TestSuitesApi.md#deletetestsuite) | **DELETE** /api/v2/testSuites/{id} | Delete TestSuite *TestSuitesApi* | [**GetConfigurationsByTestSuiteId**](docs/TestSuitesApi.md#getconfigurationsbytestsuiteid) | **GET** /api/v2/testSuites/{id}/configurations | Get Configurations By Id @@ -285,6 +307,7 @@ Class | Method | HTTP request | Description *WebhooksLogsApi* | [**ApiV2WebhooksLogsGet**](docs/WebhooksLogsApi.md#apiv2webhookslogsget) | **GET** /api/v2/webhooks/logs | Get all webhook logs *WebhooksLogsApi* | [**ApiV2WebhooksLogsIdDelete**](docs/WebhooksLogsApi.md#apiv2webhookslogsiddelete) | **DELETE** /api/v2/webhooks/logs/{id} | Delete webhook log by ID *WebhooksLogsApi* | [**ApiV2WebhooksLogsIdGet**](docs/WebhooksLogsApi.md#apiv2webhookslogsidget) | **GET** /api/v2/webhooks/logs/{id} | Get webhook log by ID +*WorkItemsApi* | [**ApiV2WorkItemsIdAttachmentsPost**](docs/WorkItemsApi.md#apiv2workitemsidattachmentspost) | **POST** /api/v2/workItems/{id}/attachments | Upload and link attachment to WorkItem *WorkItemsApi* | [**ApiV2WorkItemsIdCheckListTransformToTestCasePost**](docs/WorkItemsApi.md#apiv2workitemsidchecklisttransformtotestcasepost) | **POST** /api/v2/workItems/{id}/checkList/transformTo/testCase | Transform CheckList to TestCase *WorkItemsApi* | [**ApiV2WorkItemsIdHistoryGet**](docs/WorkItemsApi.md#apiv2workitemsidhistoryget) | **GET** /api/v2/workItems/{id}/history | Get change history of WorkItem *WorkItemsApi* | [**ApiV2WorkItemsIdLikeDelete**](docs/WorkItemsApi.md#apiv2workitemsidlikedelete) | **DELETE** /api/v2/workItems/{id}/like | Delete like from WorkItem @@ -306,6 +329,8 @@ Class | Method | HTTP request | Description *WorkItemsApi* | [**GetWorkItemById**](docs/WorkItemsApi.md#getworkitembyid) | **GET** /api/v2/workItems/{id} | Get Test Case, Checklist or Shared Step by Id or GlobalId *WorkItemsApi* | [**GetWorkItemChronology**](docs/WorkItemsApi.md#getworkitemchronology) | **GET** /api/v2/workItems/{id}/chronology | Get WorkItem chronology by Id or GlobalId *WorkItemsApi* | [**GetWorkItemVersions**](docs/WorkItemsApi.md#getworkitemversions) | **GET** /api/v2/workItems/{id}/versions | Get WorkItem versions +*WorkItemsApi* | [**PurgeWorkItem**](docs/WorkItemsApi.md#purgeworkitem) | **POST** /api/v2/workItems/{id}/purge | Permanently delete test case, checklist or shared steps from archive +*WorkItemsApi* | [**RestoreWorkItem**](docs/WorkItemsApi.md#restoreworkitem) | **POST** /api/v2/workItems/{id}/restore | Restore test case, checklist or shared steps from archive *WorkItemsApi* | [**UpdateWorkItem**](docs/WorkItemsApi.md#updateworkitem) | **PUT** /api/v2/workItems | Update Test Case, Checklist or Shared Step *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 diff --git a/docs/DateRangeModel.md b/docs/ApiV2AttachmentsPostRequest.md similarity index 63% rename from docs/DateRangeModel.md rename to docs/ApiV2AttachmentsPostRequest.md index dce00166..97f59e00 100644 --- a/docs/DateRangeModel.md +++ b/docs/ApiV2AttachmentsPostRequest.md @@ -1,11 +1,10 @@ -# TestIt.Client.Model.DateRangeModel +# TestIt.Client.Model.ApiV2AttachmentsPostRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**From** | **DateTime?** | Minimum date and time | [optional] -**To** | **DateTime?** | Maximum date and time | [optional] +**File** | [**FileParameter**](FileParameter.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AttachmentModelAutoTestStepResultsModel.md b/docs/AttachmentModelAutoTestStepResultsModel.md index d2fc0fbf..0f60a4f2 100644 --- a/docs/AttachmentModelAutoTestStepResultsModel.md +++ b/docs/AttachmentModelAutoTestStepResultsModel.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Info** | **string** | Extended description of the step result. | [optional] **StartedOn** | **DateTime?** | Step start date. | [optional] **CompletedOn** | **DateTime?** | Step end date. | [optional] -**Duration** | **long?** | Expected or actual duration of the test run execution in seconds. | [optional] +**Duration** | **long?** | Expected or actual duration of the test run execution in milliseconds. | [optional] **Outcome** | **AvailableTestResultOutcome** | | [optional] **StepResults** | [**List<AttachmentModelAutoTestStepResultsModel>**](AttachmentModelAutoTestStepResultsModel.md) | Nested step results. The maximum nesting level is 15. | [optional] **Attachments** | [**List<AttachmentModel>**](AttachmentModel.md) | /// <summary> Specifies an attachment GUID. Multiple values can be sent. </summary> | [optional] diff --git a/docs/AttachmentPutModelAutoTestStepResultsModel.md b/docs/AttachmentPutModelAutoTestStepResultsModel.md index ed1e6bd7..609890a7 100644 --- a/docs/AttachmentPutModelAutoTestStepResultsModel.md +++ b/docs/AttachmentPutModelAutoTestStepResultsModel.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Info** | **string** | Extended description of the step result. | [optional] **StartedOn** | **DateTime?** | Step start date. | [optional] **CompletedOn** | **DateTime?** | Step end date. | [optional] -**Duration** | **long?** | Expected or actual duration of the test run execution in seconds. | [optional] +**Duration** | **long?** | Expected or actual duration of the test run execution in milliseconds. | [optional] **Outcome** | **AvailableTestResultOutcome** | | [optional] **StepResults** | [**List<AttachmentPutModelAutoTestStepResultsModel>**](AttachmentPutModelAutoTestStepResultsModel.md) | Nested step results. The maximum nesting level is 15. | [optional] **Attachments** | [**List<AttachmentPutModel>**](AttachmentPutModel.md) | /// <summary> Specifies an attachment GUID. Multiple values can be sent. </summary> | [optional] diff --git a/docs/AttachmentsApi.md b/docs/AttachmentsApi.md index 5df80311..c75bdc60 100644 --- a/docs/AttachmentsApi.md +++ b/docs/AttachmentsApi.md @@ -99,8 +99,8 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Attachment file was deleted successfully | - | | **422** | Attachment file is already in use | - | +| **204** | Attachment file was deleted successfully | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -401,10 +401,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Forbidden | - | | **400** | <br>- Invalid file contents <br>- Invalid HTTP headers | - | +| **201** | Created | - | +| **403** | Forbidden | - | | **401** | Unauthorized | - | -| **201** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/AutoTestResultsForTestRunModel.md b/docs/AutoTestResultsForTestRunModel.md index 0b47210f..26e9276a 100644 --- a/docs/AutoTestResultsForTestRunModel.md +++ b/docs/AutoTestResultsForTestRunModel.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **Traces** | **string** | An extended comment or a stack trace. | [optional] **StartedOn** | **DateTime?** | Test run start date. | [optional] **CompletedOn** | **DateTime?** | Test run end date. | [optional] -**Duration** | **long?** | Expected or actual duration of the test run execution in seconds. | [optional] +**Duration** | **long?** | Expected or actual duration of the test run execution in milliseconds. | [optional] **Attachments** | [**List<AttachmentPutModel>**](AttachmentPutModel.md) | Specifies an attachment GUID. Multiple values can be sent. | [optional] **Parameters** | **Dictionary<string, string>** | \"<b>parameter</b>\": \"<b>value</b>\" pair with arbitrary custom parameters. Multiple parameters can be sent. | [optional] **Properties** | **Dictionary<string, string>** | \"<b>property</b>\": \"<b>value</b>\" pair with arbitrary custom properties. Multiple properties can be sent. | [optional] diff --git a/docs/AutoTestsApi.md b/docs/AutoTestsApi.md index 4b40e114..35e01978 100644 --- a/docs/AutoTestsApi.md +++ b/docs/AutoTestsApi.md @@ -5,6 +5,7 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |--------|--------------|-------------| | [**ApiV2AutoTestsFlakyBulkPost**](AutoTestsApi.md#apiv2autotestsflakybulkpost) | **POST** /api/v2/autoTests/flaky/bulk | Set \"Flaky\" status for multiple autotests | +| [**ApiV2AutoTestsIdPatch**](AutoTestsApi.md#apiv2autotestsidpatch) | **PATCH** /api/v2/autoTests/{id} | Patch auto test | | [**ApiV2AutoTestsIdTestResultsSearchPost**](AutoTestsApi.md#apiv2autotestsidtestresultssearchpost) | **POST** /api/v2/autoTests/{id}/testResults/search | Get test results history for autotest | | [**ApiV2AutoTestsIdWorkItemsChangedIdGet**](AutoTestsApi.md#apiv2autotestsidworkitemschangedidget) | **GET** /api/v2/autoTests/{id}/workItems/changed/id | Get identifiers of changed linked work items | | [**ApiV2AutoTestsIdWorkItemsChangedWorkItemIdApprovePost**](AutoTestsApi.md#apiv2autotestsidworkitemschangedworkitemidapprovepost) | **POST** /api/v2/autoTests/{id}/workItems/changed/{workItemId}/approve | Approve changes to work items linked to autotest | @@ -127,8 +128,107 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **403** | Invalid user permissions | - | -| **422** | Autotests with provided identifiers do not belong to the same project | - | | **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **422** | Autotests with provided identifiers do not belong to the same project | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ApiV2AutoTestsIdPatch** +> void ApiV2AutoTestsIdPatch (Guid id, List operation = null) + +Patch auto test + +See RFC 6902: JavaScript Object Notation (JSON) Patch for details + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2AutoTestsIdPatchExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new AutoTestsApi(httpClient, config, httpClientHandler); + var id = "id_example"; // Guid | Global Id of auto test + var operation = new List(); // List | (optional) + + try + { + // Patch auto test + apiInstance.ApiV2AutoTestsIdPatch(id, operation); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AutoTestsApi.ApiV2AutoTestsIdPatch: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2AutoTestsIdPatchWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Patch auto test + apiInstance.ApiV2AutoTestsIdPatchWithHttpInfo(id, operation); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling AutoTestsApi.ApiV2AutoTestsIdPatchWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | Global Id of auto test | | +| **operation** | [**List<Operation>**](Operation.md) | | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | +| **403** | Update permission for auto tests is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -240,11 +340,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **400** | Bad Request | - | +| **404** | Autotest with provided ID was not found | - | +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| | **401** | Unauthorized | - | +| **400** | Bad Request | - | | **403** | Read permission for autotests required | - | -| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| -| **404** | Autotest with provided ID was not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -344,9 +444,9 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **404** | Autotest with provided ID was not found | - | | **200** | Success | - | | **403** | Invalid user permissions | - | +| **404** | Autotest with provided ID was not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -554,8 +654,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| | **403** | Read permission for autotests library is required | - | +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -655,13 +755,13 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Success | - | +| **201** | Created | - | +| **404** | Project with provided ID cannot be found | - | | **400** | <br>- Name cannot be empty or contain only white space characters <br>- External ID cannot be empty or contain only white space characters <br>- Namespace cannot be empty or contain only white space characters <br>- Classname cannot be empty or contain only white space characters <br>- Steps cannot be `null` <br>- Steps nesting level is more than 15 <br>- Invalid URI | - | -| **422** | <br>- Labels have duplicates <br>- Labels begin with `::` <br>- Labels with the same base have different values | - | | **401** | Unauthorized | - | -| **404** | Project with provided ID cannot be found | - | -| **409** | Autotest with the same external ID already exists is the project | - | | **403** | Update permission for autotests is required | - | +| **422** | <br>- Labels have duplicates <br>- Labels begin with `::` <br>- Labels with the same base have different values | - | +| **409** | Autotest with the same external ID already exists is the project | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -761,12 +861,12 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | | **422** | <br>- Labels have duplicates <br>- Labels begin with `::` <br>- Labels with the same base have different values | - | | **400** | <br>- Name cannot be empty or contain only white space characters <br>- External ID cannot be empty or contain only white space characters <br>- Namespace cannot be empty or contain only white space characters <br>- Classname cannot be empty or contain only white space characters <br>- Steps cannot be `null` <br>- Steps nesting level is more than 15 <br>- Invalid URI | - | -| **404** | Project with provided ID cannot be found | - | -| **201** | Success | - | +| **201** | Created | - | | **403** | Update permission for autotests is required | - | +| **401** | Unauthorized | - | +| **404** | Project with provided ID cannot be found | - | | **409** | Autotest with the same external ID already exists is the project | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -863,10 +963,10 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | +| **204** | No Content | - | | **401** | Unauthorized | - | -| **403** | Delete permission for autotests is required | - | | **404** | Autotest with provided ID cannot be found | - | +| **403** | Delete permission for autotests is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -964,11 +1064,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **403** | Update permission for autotests is required | - | | **401** | Unauthorized | - | -| **204** | Success | - | -| **400** | Work item ID is invalid | - | | **404** | <br>- Autotest with provided ID cannot be found <br>- Work item with provided ID cannot be found | - | -| **403** | Update permission for autotests is required | - | +| **204** | No Content | - | +| **400** | Work item ID is invalid | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1112,10 +1212,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | -| **403** | Forbidden | - | | **404** | Not Found | - | | **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **403** | Forbidden | - | +| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1319,10 +1419,10 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **403** | Read permission for autotests is required | - | -| **404** | Autotest with provided ID cannot be found | - | -| **200** | Success | - | | **401** | Unauthorized | - | | **400** | Autotest ID is invalid | - | +| **200** | Success | - | +| **404** | Autotest with provided ID cannot be found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1422,9 +1522,9 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **403** | Read permission for autotests is required | - | | **401** | Unauthorized | - | | **404** | Autotest with provided ID was not found | - | -| **403** | Read permission for autotests is required | - | | **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1525,10 +1625,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **404** | Autotest with provided ID was not found | - | -| **200** | Success | - | | **403** | Read permission for autotests is required | - | +| **200** | Success | - | | **401** | Unauthorized | - | +| **404** | Autotest with provided ID was not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1652,10 +1752,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **404** | Not Found | - | | **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| | **401** | Unauthorized | - | | **403** | Forbidden | - | -| **404** | Not Found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1759,10 +1859,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Read permission for autotests is required | - | -| **404** | Autotest with provided ID cannot be found | - | -| **200** | Success | - | | **401** | Unauthorized | - | +| **200** | Success | - | +| **404** | Autotest with provided ID cannot be found | - | +| **403** | Read permission for autotests is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1861,10 +1961,10 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **401** | Unauthorized | - | -| **400** | <br>- Autotest cannot be linked to shared steps <br>- Autotest cannot be linked to work item from other project <br>- Work item ID is invalid | - | | **403** | Update permission for autotests is required | - | | **404** | <br>- Autotest with provided ID cannot be found <br>- Work item with provided ID cannot be found | - | -| **204** | Success | - | +| **400** | <br>- Autotest cannot be linked to shared steps <br>- Autotest cannot be linked to work item from other project <br>- Work item ID is invalid | - | +| **204** | No Content | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1960,12 +2060,12 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **404** | <br>- Autotests with provided ID cannot be found <br>- Project with provided ID cannot be found <br>- Link with provided ID cannot be found <br>- Label with provided ID cannot be found | - | | **400** | <br>- Name cannot be empty or contain only white space characters <br>- External ID cannot be empty or contain only white space characters <br>- Namespace cannot be empty or contain only white space characters <br>- Classname cannot be empty or contain only white space characters <br>- Steps cannot be `null` <br>- Steps nesting level is more than 15 <br>- Invalid URI | - | | **401** | Unauthorized | - | -| **422** | <br>- Project ID cannot be changed <br>- Labels have duplicates <br>- Labels begin with `::` <br>- Labels with the same base have different values | - | | **403** | Update permission for autotests is required | - | +| **404** | <br>- Autotests with provided ID cannot be found <br>- Project with provided ID cannot be found <br>- Link with provided ID cannot be found <br>- Label with provided ID cannot be found | - | | **409** | Autotest with the same external ID already exists is the project | - | +| **422** | <br>- Project ID cannot be changed <br>- Labels have duplicates <br>- Labels begin with `::` <br>- Labels with the same base have different values | - | | **204** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2064,9 +2164,9 @@ void (empty response body) |-------------|-------------|------------------| | **401** | Unauthorized | - | | **422** | <br>- Project ID cannot be changed <br>- Labels have duplicates <br>- Labels begin with `::` <br>- Labels with the same base have different values | - | -| **403** | Update permission for autotests is required | - | -| **204** | Success | - | | **400** | <br>- Name cannot be empty or contain only white space characters <br>- External ID cannot be empty or contain only white space characters <br>- Namespace cannot be empty or contain only white space characters <br>- Classname cannot be empty or contain only white space characters <br>- Steps cannot be `null` <br>- Steps nesting level is more than 15 <br>- Invalid URI | - | +| **204** | No Content | - | +| **403** | Update permission for autotests is required | - | | **404** | <br>- Autotests with provided ID cannot be found <br>- Project with provided ID cannot be found <br>- Link with provided ID cannot be found <br>- Label with provided ID cannot be found | - | | **409** | Autotest with the same external ID already exists is the project | - | diff --git a/docs/AutotestResultHistoricalGetModel.md b/docs/AutotestResultHistoricalGetModel.md index 50a4c8a7..4c8f2249 100644 --- a/docs/AutotestResultHistoricalGetModel.md +++ b/docs/AutotestResultHistoricalGetModel.md @@ -7,17 +7,17 @@ Name | Type | Description | Notes **Id** | **Guid** | | [optional] **CreatedDate** | **DateTime** | | [optional] **CreatedById** | **Guid** | | [optional] -**ModifiedDate** | **DateTime?** | | [optional] [readonly] -**ModifiedById** | **Guid?** | | [optional] [readonly] **TestRunId** | **Guid** | | [optional] **TestRunName** | **string** | | [optional] +**ConfigurationId** | **Guid** | | [optional] +**Outcome** | **AutotestResultOutcome** | | +**LaunchSource** | **string** | | [optional] +**ModifiedDate** | **DateTime?** | | [optional] [readonly] +**ModifiedById** | **Guid?** | | [optional] [readonly] **TestPlanId** | **Guid?** | | [optional] **TestPlanGlobalId** | **long?** | | [optional] **TestPlanName** | **string** | | [optional] -**ConfigurationId** | **Guid** | | [optional] -**Outcome** | **AutotestResultOutcome** | | [optional] **Duration** | **long?** | | [optional] -**LaunchSource** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/BackgroundJobAttachmentModel.md b/docs/BackgroundJobAttachmentModel.md new file mode 100644 index 00000000..753b7f15 --- /dev/null +++ b/docs/BackgroundJobAttachmentModel.md @@ -0,0 +1,12 @@ +# TestIt.Client.Model.BackgroundJobAttachmentModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | [optional] +**Name** | **string** | | [optional] +**Type** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BackgroundJobModel.md b/docs/BackgroundJobModel.md new file mode 100644 index 00000000..2260c5c7 --- /dev/null +++ b/docs/BackgroundJobModel.md @@ -0,0 +1,19 @@ +# TestIt.Client.Model.BackgroundJobModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | | [optional] +**JobId** | **string** | | [optional] +**JobType** | **BackgroundJobType** | | [optional] +**State** | **BackgroundJobState** | | [optional] +**IsDeleted** | **bool** | | [optional] +**Progress** | **long** | | [optional] +**StartDate** | **DateTime?** | | [optional] +**EndDate** | **DateTime?** | | [optional] +**Error** | **string** | | [optional] +**Attachments** | [**List<BackgroundJobAttachmentModel>**](BackgroundJobAttachmentModel.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BackgroundJobState.md b/docs/BackgroundJobState.md new file mode 100644 index 00000000..66187790 --- /dev/null +++ b/docs/BackgroundJobState.md @@ -0,0 +1,9 @@ +# TestIt.Client.Model.BackgroundJobState + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BackgroundJobType.md b/docs/BackgroundJobType.md new file mode 100644 index 00000000..d6032b38 --- /dev/null +++ b/docs/BackgroundJobType.md @@ -0,0 +1,9 @@ +# TestIt.Client.Model.BackgroundJobType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/BackgroundJobsApi.md b/docs/BackgroundJobsApi.md new file mode 100644 index 00000000..e5070e0b --- /dev/null +++ b/docs/BackgroundJobsApi.md @@ -0,0 +1,114 @@ +# TestIt.Client.Api.BackgroundJobsApi + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**ApiV2BackgroundJobsGet**](BackgroundJobsApi.md#apiv2backgroundjobsget) | **GET** /api/v2/backgroundJobs | Get current user background jobs | + + +# **ApiV2BackgroundJobsGet** +> List<BackgroundJobModel> ApiV2BackgroundJobsGet (int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null) + +Get current user background jobs + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2BackgroundJobsGetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new BackgroundJobsApi(httpClient, config, httpClientHandler); + var skip = 56; // int? | Amount of items to be skipped (offset) (optional) + var take = 56; // int? | Amount of items to be taken (limit) (optional) + var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + var searchField = "searchField_example"; // string | Property name for searching (optional) + var searchValue = "searchValue_example"; // string | Value for searching (optional) + + try + { + // Get current user background jobs + List result = apiInstance.ApiV2BackgroundJobsGet(skip, take, orderBy, searchField, searchValue); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling BackgroundJobsApi.ApiV2BackgroundJobsGet: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2BackgroundJobsGetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get current user background jobs + ApiResponse> response = apiInstance.ApiV2BackgroundJobsGetWithHttpInfo(skip, take, orderBy, searchField, searchValue); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling BackgroundJobsApi.ApiV2BackgroundJobsGetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | +| **take** | **int?** | Amount of items to be taken (limit) | [optional] | +| **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | +| **searchField** | **string** | Property name for searching | [optional] | +| **searchValue** | **string** | Value for searching | [optional] | + +### Return type + +[**List<BackgroundJobModel>**](BackgroundJobModel.md) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ConfigurationByParametersModel.md b/docs/ConfigurationByParametersModel.md index 5119e6b9..c4afdf9b 100644 --- a/docs/ConfigurationByParametersModel.md +++ b/docs/ConfigurationByParametersModel.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ProjectId** | **Guid** | This property is used to link configuration with project | [optional] -**ParameterIds** | **List<Guid>** | | [optional] +**ParameterIds** | **List<Guid>** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ConfigurationsApi.md b/docs/ConfigurationsApi.md index 7cc5977c..3130e1e3 100644 --- a/docs/ConfigurationsApi.md +++ b/docs/ConfigurationsApi.md @@ -5,6 +5,7 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |--------|--------------|-------------| | [**ApiV2ConfigurationsCreateByParametersPost**](ConfigurationsApi.md#apiv2configurationscreatebyparameterspost) | **POST** /api/v2/configurations/createByParameters | Create Configurations by parameters | +| [**ApiV2ConfigurationsIdPatch**](ConfigurationsApi.md#apiv2configurationsidpatch) | **PATCH** /api/v2/configurations/{id} | Patch configuration | | [**ApiV2ConfigurationsSearchPost**](ConfigurationsApi.md#apiv2configurationssearchpost) | **POST** /api/v2/configurations/search | Search for configurations | | [**CreateConfiguration**](ConfigurationsApi.md#createconfiguration) | **POST** /api/v2/configurations | Create Configuration | | [**GetConfigurationById**](ConfigurationsApi.md#getconfigurationbyid) | **GET** /api/v2/configurations/{id} | Get configuration by internal or global ID | @@ -103,12 +104,111 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **404** | <br>Project by identifier not found <br>Parameters by identifies not found | - | +| **201** | Created | - | | **400** | <br>Project identifier is empty <br>List of parameters identifiers is empty | - | -| **201** | Success | - | | **200** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ApiV2ConfigurationsIdPatch** +> void ApiV2ConfigurationsIdPatch (Guid id, List operation = null) + +Patch configuration + +See RFC 6902: JavaScript Object Notation (JSON) Patch for details + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2ConfigurationsIdPatchExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ConfigurationsApi(httpClient, config, httpClientHandler); + var id = "id_example"; // Guid | Unique ID of the configuration + var operation = new List(); // List | (optional) + + try + { + // Patch configuration + apiInstance.ApiV2ConfigurationsIdPatch(id, operation); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ConfigurationsApi.ApiV2ConfigurationsIdPatch: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2ConfigurationsIdPatchWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Patch configuration + apiInstance.ApiV2ConfigurationsIdPatchWithHttpInfo(id, operation); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ConfigurationsApi.ApiV2ConfigurationsIdPatchWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | Unique ID of the configuration | | +| **operation** | [**List<Operation>**](Operation.md) | | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | +| **403** | Update permission for configuration is required | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **ApiV2ConfigurationsSearchPost** > List<ConfigurationModel> ApiV2ConfigurationsSearchPost (int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null, ConfigurationSelectModel configurationSelectModel = null) @@ -313,12 +413,12 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **403** | Update permission for configuration required | - | | **401** | Unauthorized | - | | **409** | Configuration with the same name already exists! | - | -| **201** | Successful operation | - | | **404** | Can't find project | - | | **400** | Bad Request | - | -| **403** | Update permission for configuration required | - | +| **201** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -356,7 +456,7 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ConfigurationsApi(httpClient, config, httpClientHandler); - var id = "id_example"; // string | + var id = 3fa85f64-5717-4562-b3fc-2c963f66afa6; // string | Configuration internal (guid format) or global (integer format) identifier try { @@ -399,7 +499,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **id** | **string** | | | +| **id** | **string** | Configuration internal (guid format) or global (integer format) identifier | | ### Return type @@ -419,9 +519,9 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **401** | Unauthorized | - | +| **403** | Read permission for configuration required | - | | **404** | Can't find configuration with id | - | | **200** | Successful operation | - | -| **403** | Read permission for configuration required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -517,13 +617,13 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **409** | Configuration with the same name already exists! | - | | **401** | Unauthorized | - | -| **204** | Successful operation | - | | **422** | Can't change projectId | - | | **400** | Bad Request | - | | **403** | | - | | **404** | Can't find a Configuration with id | - | -| **409** | Configuration with the same name already exists! | - | +| **204** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/CustomAttributeGetModel.md b/docs/CustomAttributeGetModel.md index d0a86794..dd0383c3 100644 --- a/docs/CustomAttributeGetModel.md +++ b/docs/CustomAttributeGetModel.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **Guid** | Unique ID of the attribute | [optional] **Options** | [**List<CustomAttributeOptionModel>**](CustomAttributeOptionModel.md) | Collection of the attribute options | [optional] -**Type** | **CustomAttributeTypesEnum** | | [optional] +**Type** | **CustomAttributeTypesEnum** | | **IsDeleted** | **bool** | Indicates if the attribute is deleted | [optional] **Name** | **string** | Name of the attribute | [optional] **IsEnabled** | **bool** | Indicates if the attribute is enabled | [optional] diff --git a/docs/CustomAttributeTemplatesApi.md b/docs/CustomAttributeTemplatesApi.md index 3d2cdc8e..69b394cc 100644 --- a/docs/CustomAttributeTemplatesApi.md +++ b/docs/CustomAttributeTemplatesApi.md @@ -107,9 +107,9 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **404** | Not Found | - | | **200** | Success | - | | **400** | Bad Request | - | -| **404** | Not Found | - | | **403** | Admin system role is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -208,8 +208,8 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | | **404** | Not Found | - | +| **200** | Success | - | | **400** | Bad Request | - | | **403** | Admin system role is required | - | @@ -311,8 +311,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | | **400** | Bad Request | - | +| **204** | No Content | - | | **403** | Admin system role is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -413,9 +413,9 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **400** | Bad Request | - | | **404** | Can't find a CustomAttributeTemplate with identifier | - | | **200** | Success | - | -| **400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -615,9 +615,9 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Success | - | | **400** | Bad Request | - | | **403** | Admin system role is required | - | +| **201** | Created | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -822,8 +822,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| | **400** | Bad Request | - | +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/CustomAttributesApi.md b/docs/CustomAttributesApi.md index 4db409df..751985eb 100644 --- a/docs/CustomAttributesApi.md +++ b/docs/CustomAttributesApi.md @@ -100,7 +100,7 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | +| **204** | No Content | - | | **403** | System administrator role is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -201,8 +201,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | System administrator role is required | - | | **200** | Success | - | +| **403** | System administrator role is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -300,8 +300,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Success | - | | **403** | System administrator role is required | - | +| **201** | Created | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/DeletionState.md b/docs/DeletionState.md new file mode 100644 index 00000000..41d4ec93 --- /dev/null +++ b/docs/DeletionState.md @@ -0,0 +1,9 @@ +# TestIt.Client.Model.DeletionState + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/FailureClassModel.md b/docs/FailureClassModel.md index 1163d3e5..21fd0cb7 100644 --- a/docs/FailureClassModel.md +++ b/docs/FailureClassModel.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | [optional] -**FailureCategory** | **FailureCategoryModel** | | [optional] +**FailureCategory** | **FailureCategoryModel** | | **CreatedDate** | **DateTime** | | [optional] **ModifiedDate** | **DateTime?** | | [optional] **CreatedById** | **Guid** | | [optional] diff --git a/docs/NotificationModel.md b/docs/NotificationModel.md index 2a5a0530..7ed39026 100644 --- a/docs/NotificationModel.md +++ b/docs/NotificationModel.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **CreatedDate** | **DateTime?** | | [optional] **IsRead** | **bool** | | [optional] **EntityId** | **Guid** | | [optional] -**NotificationType** | **NotificationTypeModel** | | [optional] +**NotificationType** | **NotificationTypeModel** | | **ProjectGlobalId** | **long?** | | [optional] **ProjectName** | **string** | | [optional] **TestPlanGlobalId** | **long** | | [optional] diff --git a/docs/NotificationsApi.md b/docs/NotificationsApi.md index 7ac7c0c4..53e97d45 100644 --- a/docs/NotificationsApi.md +++ b/docs/NotificationsApi.md @@ -106,8 +106,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | | **200** | Successful operation | - | +| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -519,9 +519,9 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **400** | Bad Request | - | -| **200** | Successful operation | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| | **401** | Unauthorized | - | +| **200** | Successful operation | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/Operation.md b/docs/Operation.md new file mode 100644 index 00000000..8551e3b6 --- /dev/null +++ b/docs/Operation.md @@ -0,0 +1,13 @@ +# TestIt.Client.Model.Operation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | **Object** | | [optional] +**Path** | **string** | | [optional] +**Op** | **string** | | [optional] +**From** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ParameterFilterModel.md b/docs/ParameterFilterModel.md new file mode 100644 index 00000000..31ee9e28 --- /dev/null +++ b/docs/ParameterFilterModel.md @@ -0,0 +1,11 @@ +# TestIt.Client.Model.ParameterFilterModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsDeleted** | **bool?** | Specifies a parameter deleted status to search for | [optional] +**Name** | **string** | Specifies a parameter key name to search for | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/ParametersApi.md b/docs/ParametersApi.md index 3dfa430c..27c48173 100644 --- a/docs/ParametersApi.md +++ b/docs/ParametersApi.md @@ -10,6 +10,7 @@ All URIs are relative to *http://localhost* | [**ApiV2ParametersKeyNameNameExistsGet**](ParametersApi.md#apiv2parameterskeynamenameexistsget) | **GET** /api/v2/parameters/key/name/{name}/exists | Check existence parameter key in system | | [**ApiV2ParametersKeyValuesGet**](ParametersApi.md#apiv2parameterskeyvaluesget) | **GET** /api/v2/parameters/{key}/values | Get all parameter key values | | [**ApiV2ParametersKeysGet**](ParametersApi.md#apiv2parameterskeysget) | **GET** /api/v2/parameters/keys | Get all parameter keys | +| [**ApiV2ParametersSearchPost**](ParametersApi.md#apiv2parameterssearchpost) | **POST** /api/v2/parameters/search | Search for parameters | | [**CreateParameter**](ParametersApi.md#createparameter) | **POST** /api/v2/parameters | Create parameter | | [**DeleteByName**](ParametersApi.md#deletebyname) | **DELETE** /api/v2/parameters/name/{name} | Delete parameter by name | | [**DeleteByParameterKeyId**](ParametersApi.md#deletebyparameterkeyid) | **DELETE** /api/v2/parameters/keyId/{keyId} | Delete parameters by parameter key identifier | @@ -115,7 +116,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Success | - | +| **201** | Created | - | | **400** | <br>- Parameter model is not valid | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -212,8 +213,8 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | | **400** | <br>- Parameter model is not valid | - | +| **204** | No Content | - | | **403** | Invalid user permissions | - | | **422** | Client Error | - | @@ -327,8 +328,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | | **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -428,8 +429,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **400** | Bad Request | - | | **200** | Success | - | +| **400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -628,6 +629,114 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ApiV2ParametersSearchPost** +> List<ParameterModel> ApiV2ParametersSearchPost (int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null, ParameterFilterModel parameterFilterModel = null) + +Search for parameters + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2ParametersSearchPostExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ParametersApi(httpClient, config, httpClientHandler); + var skip = 56; // int? | Amount of items to be skipped (offset) (optional) + var take = 56; // int? | Amount of items to be taken (limit) (optional) + var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + var searchField = "searchField_example"; // string | Property name for searching (optional) + var searchValue = "searchValue_example"; // string | Value for searching (optional) + var parameterFilterModel = new ParameterFilterModel(); // ParameterFilterModel | (optional) + + try + { + // Search for parameters + List result = apiInstance.ApiV2ParametersSearchPost(skip, take, orderBy, searchField, searchValue, parameterFilterModel); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ParametersApi.ApiV2ParametersSearchPost: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2ParametersSearchPostWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Search for parameters + ApiResponse> response = apiInstance.ApiV2ParametersSearchPostWithHttpInfo(skip, take, orderBy, searchField, searchValue, parameterFilterModel); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ParametersApi.ApiV2ParametersSearchPostWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | +| **take** | **int?** | Amount of items to be taken (limit) | [optional] | +| **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | +| **searchField** | **string** | Property name for searching | [optional] | +| **searchValue** | **string** | Value for searching | [optional] | +| **parameterFilterModel** | [**ParameterFilterModel**](ParameterFilterModel.md) | | [optional] | + +### Return type + +[**List<ParameterModel>**](ParameterModel.md) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **CreateParameter** > ParameterModel CreateParameter (ParameterPostModel parameterPostModel = null) @@ -724,7 +833,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Success | - | +| **201** | Created | - | | **400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -821,9 +930,9 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **204** | No Content | - | | **400** | Provided name either is empty or contains only white spaces | - | | **422** | Parameter is in use in iterations | - | -| **204** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -919,8 +1028,8 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | | **403** | Invalid user permissions | - | +| **204** | No Content | - | | **422** | Parameter is in use in iterations | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1017,9 +1126,9 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **422** | Parameter is in use in iterations | - | | **200** | Success | - | | **400** | <br>- ID is not valid <br>- DTO is not valid | - | +| **422** | Parameter is in use in iterations | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1129,8 +1238,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **201** | Created | - | | **403** | Invalid user permissions | - | -| **201** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1230,8 +1339,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | | **404** | Parameter with provided ID was not found | - | +| **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1419,8 +1528,8 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | | **400** | <br>- ID is not valid <br>- DTO is not valid | - | +| **204** | No Content | - | | **404** | Parameter with provided ID was not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/ProjectModel.md b/docs/ProjectModel.md index 96c3c5a2..92c5b545 100644 --- a/docs/ProjectModel.md +++ b/docs/ProjectModel.md @@ -4,22 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Id** | **Guid** | Unique ID of the project | [optional] +**Description** | **string** | Description of the project | [optional] +**Name** | **string** | Name of the project | [optional] +**IsFavorite** | **bool** | Indicates if the project is marked as favorite | [optional] **AttributesScheme** | [**List<CustomAttributeModel>**](CustomAttributeModel.md) | Collection of the project attributes | [optional] **TestPlansAttributesScheme** | [**List<CustomAttributeModel>**](CustomAttributeModel.md) | Collection of the project test plans attributes | [optional] **TestCasesCount** | **int?** | Number of test cases in the project | [optional] **SharedStepsCount** | **int?** | Number of shared steps in the project | [optional] **CheckListsCount** | **int?** | Number of checklists in the project | [optional] **AutoTestsCount** | **int?** | Number of autotests in the project | [optional] -**IsFavorite** | **bool** | Indicates if the project is marked as favorite | [optional] **IsDeleted** | **bool** | Indicates if the project is deleted | [optional] **CreatedDate** | **DateTime** | Creation date of the project | [optional] **ModifiedDate** | **DateTime?** | Last modification date of the project | [optional] **CreatedById** | **Guid** | Unique ID of the project creator | [optional] **ModifiedById** | **Guid?** | Unique ID of the project last editor | [optional] **GlobalId** | **long** | Global ID of the project | [optional] -**Id** | **Guid** | Unique ID of the project | -**Description** | **string** | Description of the project | [optional] -**Name** | **string** | Name of the project | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProjectPostModel.md b/docs/ProjectPostModel.md index 6d50fecb..4c48bd9e 100644 --- a/docs/ProjectPostModel.md +++ b/docs/ProjectPostModel.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Description** | **string** | Description of the project | [optional] **Name** | **string** | Name of the project | +**IsFavorite** | **bool?** | Indicates if the project is marked as favorite | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProjectPutModel.md b/docs/ProjectPutModel.md index a3377b96..c9575d5a 100644 --- a/docs/ProjectPutModel.md +++ b/docs/ProjectPutModel.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Id** | **Guid** | Unique ID of the project | **Description** | **string** | Description of the project | [optional] **Name** | **string** | Name of the project | +**IsFavorite** | **bool?** | Indicates if the project is marked as favorite | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TestPlanSearchQueryModel.md b/docs/ProjectTestPlansFilterModel.md similarity index 68% rename from docs/TestPlanSearchQueryModel.md rename to docs/ProjectTestPlansFilterModel.md index d3237366..890e3868 100644 --- a/docs/TestPlanSearchQueryModel.md +++ b/docs/ProjectTestPlansFilterModel.md @@ -1,4 +1,4 @@ -# TestIt.Client.Model.TestPlanSearchQueryModel +# TestIt.Client.Model.ProjectTestPlansFilterModel ## Properties @@ -11,12 +11,12 @@ Name | Type | Description | Notes **Status** | [**List<TestPlanStatusModel>**](TestPlanStatusModel.md) | | [optional] **GlobalIds** | **List<long>** | | [optional] **IsLocked** | **bool?** | | [optional] -**LockedDate** | [**DateRangeModel**](DateRangeModel.md) | | [optional] +**LockedDate** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | | [optional] **AutomaticDurationTimer** | **List<bool>** | | [optional] **CreatedByIds** | **List<Guid>** | | [optional] -**CreatedDate** | [**DateRangeModel**](DateRangeModel.md) | | [optional] -**StartDate** | [**DateRangeModel**](DateRangeModel.md) | | [optional] -**EndDate** | [**DateRangeModel**](DateRangeModel.md) | | [optional] +**CreatedDate** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | | [optional] +**StartDate** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | | [optional] +**EndDate** | [**DateTimeRangeSelectorModel**](DateTimeRangeSelectorModel.md) | | [optional] **TagNames** | **List<string>** | | [optional] **Attributes** | [**Dictionary<string, List<string>>**](Set.md) | | [optional] **IsDeleted** | **bool?** | | [optional] diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md index d34085c4..f8f8b7bd 100644 --- a/docs/ProjectsApi.md +++ b/docs/ProjectsApi.md @@ -11,8 +11,11 @@ All URIs are relative to *http://localhost* | [**ApiV2ProjectsIdFailureClassesGet**](ProjectsApi.md#apiv2projectsidfailureclassesget) | **GET** /api/v2/projects/{id}/failureClasses | Get Project FailureClasses | | [**ApiV2ProjectsIdFavoritePut**](ProjectsApi.md#apiv2projectsidfavoriteput) | **PUT** /api/v2/projects/{id}/favorite | Mark Project as favorite | | [**ApiV2ProjectsIdFiltersGet**](ProjectsApi.md#apiv2projectsidfiltersget) | **GET** /api/v2/projects/{id}/filters | Get Project filters | +| [**ApiV2ProjectsIdPatch**](ProjectsApi.md#apiv2projectsidpatch) | **PATCH** /api/v2/projects/{id} | Patch project | | [**ApiV2ProjectsIdTestPlansAnalyticsGet**](ProjectsApi.md#apiv2projectsidtestplansanalyticsget) | **GET** /api/v2/projects/{id}/testPlans/analytics | Get TestPlans analytics | +| [**ApiV2ProjectsIdTestPlansDeleteBulkPost**](ProjectsApi.md#apiv2projectsidtestplansdeletebulkpost) | **POST** /api/v2/projects/{id}/testPlans/delete/bulk | Delete multiple test plans | | [**ApiV2ProjectsIdTestPlansNameExistsGet**](ProjectsApi.md#apiv2projectsidtestplansnameexistsget) | **GET** /api/v2/projects/{id}/testPlans/{name}/exists | Checks if TestPlan exists with the specified name exists for the project | +| [**ApiV2ProjectsIdTestPlansRestoreBulkPost**](ProjectsApi.md#apiv2projectsidtestplansrestorebulkpost) | **POST** /api/v2/projects/{id}/testPlans/restore/bulk | Restore multiple test plans | | [**ApiV2ProjectsIdTestPlansSearchPost**](ProjectsApi.md#apiv2projectsidtestplanssearchpost) | **POST** /api/v2/projects/{id}/testPlans/search | Get Project TestPlans with analytics | | [**ApiV2ProjectsIdTestRunsActiveGet**](ProjectsApi.md#apiv2projectsidtestrunsactiveget) | **GET** /api/v2/projects/{id}/testRuns/active | Get active Project TestRuns | | [**ApiV2ProjectsIdTestRunsFullGet**](ProjectsApi.md#apiv2projectsidtestrunsfullget) | **GET** /api/v2/projects/{id}/testRuns/full | Get Project TestRuns full models | @@ -21,6 +24,10 @@ All URIs are relative to *http://localhost* | [**ApiV2ProjectsIdWorkItemsTagsGet**](ProjectsApi.md#apiv2projectsidworkitemstagsget) | **GET** /api/v2/projects/{id}/workItems/tags | Get WorkItems Tags | | [**ApiV2ProjectsNameNameExistsGet**](ProjectsApi.md#apiv2projectsnamenameexistsget) | **GET** /api/v2/projects/name/{name}/exists | | | [**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 | +| [**BackgroundImportToExistingProject**](ProjectsApi.md#backgroundimporttoexistingproject) | **POST** /api/v2/projects/{id}/import/json | Import project from JSON file into existing project in background job | +| [**BackgroundImportZipProject**](ProjectsApi.md#backgroundimportzipproject) | **POST** /api/v2/projects/import/zip | Import project from Zip file in background job | +| [**BackgroundImportZipToExistingProject**](ProjectsApi.md#backgroundimportziptoexistingproject) | **POST** /api/v2/projects/{id}/import/zip | Import project from Zip file into existing project in background job | | [**CreateCustomAttributeTestPlanProjectRelations**](ProjectsApi.md#createcustomattributetestplanprojectrelations) | **POST** /api/v2/projects/{id}/testPlans/attributes | Add attributes to project's test plans | | [**CreateProject**](ProjectsApi.md#createproject) | **POST** /api/v2/projects | Create project | | [**CreateProjectsAttribute**](ProjectsApi.md#createprojectsattribute) | **POST** /api/v2/projects/{id}/attributes | Create project attribute | @@ -29,6 +36,10 @@ All URIs are relative to *http://localhost* | [**DeleteProjectAutoTests**](ProjectsApi.md#deleteprojectautotests) | **DELETE** /api/v2/projects/{id}/autoTests | Delete project | | [**DeleteProjectsAttribute**](ProjectsApi.md#deleteprojectsattribute) | **DELETE** /api/v2/projects/{id}/attributes/{attributeId} | Delete project attribute | | [**Export**](ProjectsApi.md#export) | **POST** /api/v2/projects/{id}/export | Export project as JSON file | +| [**ExportProjectJson**](ProjectsApi.md#exportprojectjson) | **POST** /api/v2/projects/{id}/export/json | Export project as JSON file in background job | +| [**ExportProjectWithTestPlansJson**](ProjectsApi.md#exportprojectwithtestplansjson) | **POST** /api/v2/projects/{id}/export/testPlans/json | Export project as JSON file with test plans in background job | +| [**ExportProjectWithTestPlansZip**](ProjectsApi.md#exportprojectwithtestplanszip) | **POST** /api/v2/projects/{id}/export/testPlans/zip | Export project as Zip file with test plans in background job | +| [**ExportProjectZip**](ProjectsApi.md#exportprojectzip) | **POST** /api/v2/projects/{id}/export/zip | Export project as Zip file in background job | | [**ExportWithTestPlansAndConfigurations**](ProjectsApi.md#exportwithtestplansandconfigurations) | **POST** /api/v2/projects/{id}/export-by-testPlans | Export project with test plans, test suites and test points as JSON file | | [**GetAllProjects**](ProjectsApi.md#getallprojects) | **GET** /api/v2/projects | Get all projects | | [**GetAttributeByProjectId**](ProjectsApi.md#getattributebyprojectid) | **GET** /api/v2/projects/{id}/attributes/{attributeId} | Get project attribute | @@ -144,12 +155,12 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **404** | Project with provided ID was not found | - | +| **409** | Conflict | - | | **422** | Client Error | - | -| **400** | <br> Attributes must be global | - | | **200** | Success | - | +| **400** | <br> Attributes must be global | - | | **403** | Project admin permission for project settings is required | - | -| **404** | Project with provided ID was not found | - | -| **409** | Conflict | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -359,8 +370,8 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **404** | Can't find a Project with identifier | - | -| **204** | Success | - | | **400** | Bad Request | - | +| **204** | No Content | - | | **403** | Update project settings permission for project required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -459,9 +470,9 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | -| **400** | Bad Request | - | | **404** | Can't find a Project with identifier | - | +| **400** | Bad Request | - | +| **200** | Success | - | | **403** | Update project settings permission for project required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -564,8 +575,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | | **400** | Bad Request | - | +| **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -661,8 +672,8 @@ void (empty response body) |-------------|-------------|------------------| | **401** | Unauthorized | - | | **404** | Not Found | - | -| **204** | Successful operation | - | | **400** | Bad Request | - | +| **204** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -762,18 +773,18 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | | **400** | Bad Request | - | +| **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ApiV2ProjectsIdTestPlansAnalyticsGet** -> List<TestPlanWithAnalyticModel> ApiV2ProjectsIdTestPlansAnalyticsGet (Guid id, bool? isDeleted = null, bool? mustUpdateCache = null, int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null) + +# **ApiV2ProjectsIdPatch** +> void ApiV2ProjectsIdPatch (Guid id, List operation = null) -Get TestPlans analytics +Patch project -
Use case
User sets project internal identifier
User sets query params
User runs method execution
System return analytics +See RFC 6902: JavaScript Object Notation (JSON) Patch for details ### Example ```csharp @@ -786,7 +797,7 @@ using TestIt.Client.Model; namespace Example { - public class ApiV2ProjectsIdTestPlansAnalyticsGetExample + public class ApiV2ProjectsIdPatchExample { public static void Main() { @@ -801,24 +812,17 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var id = "id_example"; // Guid | Project internal (UUID) identifier - var isDeleted = true; // bool? | (optional) - var mustUpdateCache = false; // bool? | (optional) (default to false) - var skip = 56; // int? | Amount of items to be skipped (offset) (optional) - var take = 56; // int? | Amount of items to be taken (limit) (optional) - var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - var searchField = "searchField_example"; // string | Property name for searching (optional) - var searchValue = "searchValue_example"; // string | Value for searching (optional) + var id = "id_example"; // Guid | Unique or global Id of project + var operation = new List(); // List | (optional) try { - // Get TestPlans analytics - List result = apiInstance.ApiV2ProjectsIdTestPlansAnalyticsGet(id, isDeleted, mustUpdateCache, skip, take, orderBy, searchField, searchValue); - Debug.WriteLine(result); + // Patch project + apiInstance.ApiV2ProjectsIdPatch(id, operation); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansAnalyticsGet: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdPatch: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -827,21 +831,18 @@ namespace Example } ``` -#### Using the ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfo variant +#### Using the ApiV2ProjectsIdPatchWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Get TestPlans analytics - ApiResponse> response = apiInstance.ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfo(id, isDeleted, mustUpdateCache, skip, take, orderBy, searchField, searchValue); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); + // Patch project + apiInstance.ApiV2ProjectsIdPatchWithHttpInfo(id, operation); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdPatchWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -851,18 +852,12 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **id** | **Guid** | Project internal (UUID) identifier | | -| **isDeleted** | **bool?** | | [optional] | -| **mustUpdateCache** | **bool?** | | [optional] [default to false] | -| **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | -| **take** | **int?** | Amount of items to be taken (limit) | [optional] | -| **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | -| **searchField** | **string** | Property name for searching | [optional] | -| **searchValue** | **string** | Value for searching | [optional] | +| **id** | **Guid** | Unique or global Id of project | | +| **operation** | [**List<Operation>**](Operation.md) | | [optional] | ### Return type -[**List<TestPlanWithAnalyticModel>**](TestPlanWithAnalyticModel.md) +void (empty response body) ### Authorization @@ -870,25 +865,25 @@ catch (ApiException e) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| -| **400** | Bad Request | - | +| **204** | No Content | - | +| **403** | Update permission for projects is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ApiV2ProjectsIdTestPlansNameExistsGet** -> bool ApiV2ProjectsIdTestPlansNameExistsGet (Guid id, string name) + +# **ApiV2ProjectsIdTestPlansAnalyticsGet** +> List<TestPlanWithAnalyticModel> ApiV2ProjectsIdTestPlansAnalyticsGet (Guid id, bool? isDeleted = null, bool? mustUpdateCache = null, int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null) -Checks if TestPlan exists with the specified name exists for the project +Get TestPlans analytics -
Use case
User sets project internal or global identifier
User runs method execution
System purge delete project workitems +
Use case
User sets project internal identifier
User sets query params
User runs method execution
System return analytics ### Example ```csharp @@ -901,7 +896,7 @@ using TestIt.Client.Model; namespace Example { - public class ApiV2ProjectsIdTestPlansNameExistsGetExample + public class ApiV2ProjectsIdTestPlansAnalyticsGetExample { public static void Main() { @@ -916,18 +911,24 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var id = "id_example"; // Guid | Project internal (UUID) or global (integer) identifier - var name = "name_example"; // string | TestPlan name to check + var id = "id_example"; // Guid | Project internal (UUID) identifier + var isDeleted = true; // bool? | (optional) + var mustUpdateCache = false; // bool? | (optional) (default to false) + var skip = 56; // int? | Amount of items to be skipped (offset) (optional) + var take = 56; // int? | Amount of items to be taken (limit) (optional) + var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + var searchField = "searchField_example"; // string | Property name for searching (optional) + var searchValue = "searchValue_example"; // string | Value for searching (optional) try { - // Checks if TestPlan exists with the specified name exists for the project - bool result = apiInstance.ApiV2ProjectsIdTestPlansNameExistsGet(id, name); + // Get TestPlans analytics + List result = apiInstance.ApiV2ProjectsIdTestPlansAnalyticsGet(id, isDeleted, mustUpdateCache, skip, take, orderBy, searchField, searchValue); Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansNameExistsGet: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansAnalyticsGet: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -936,21 +937,21 @@ namespace Example } ``` -#### Using the ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfo variant +#### Using the ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Checks if TestPlan exists with the specified name exists for the project - ApiResponse response = apiInstance.ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfo(id, name); + // Get TestPlans analytics + ApiResponse> response = apiInstance.ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfo(id, isDeleted, mustUpdateCache, skip, take, orderBy, searchField, searchValue); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -960,12 +961,18 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **id** | **Guid** | Project internal (UUID) or global (integer) identifier | | -| **name** | **string** | TestPlan name to check | | +| **id** | **Guid** | Project internal (UUID) identifier | | +| **isDeleted** | **bool?** | | [optional] | +| **mustUpdateCache** | **bool?** | | [optional] [default to false] | +| **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | +| **take** | **int?** | Amount of items to be taken (limit) | [optional] | +| **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | +| **searchField** | **string** | Property name for searching | [optional] | +| **searchValue** | **string** | Value for searching | [optional] | ### Return type -**bool** +[**List<TestPlanWithAnalyticModel>**](TestPlanWithAnalyticModel.md) ### Authorization @@ -980,17 +987,16 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **400** | Bad Request | - | +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ApiV2ProjectsIdTestPlansSearchPost** -> List<TestPlanWithAnalyticModel> ApiV2ProjectsIdTestPlansSearchPost (string id, bool? mustUpdateCache = null, int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null, TestPlanSearchQueryModel testPlanSearchQueryModel = null) - -Get Project TestPlans with analytics + +# **ApiV2ProjectsIdTestPlansDeleteBulkPost** +> List<Guid> ApiV2ProjectsIdTestPlansDeleteBulkPost (string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = null) -
Use case
User sets project internal or global identifier
User sets request body
User runs method execution
System returns project testplans with analytics +Delete multiple test plans ### Example ```csharp @@ -1003,7 +1009,7 @@ using TestIt.Client.Model; namespace Example { - public class ApiV2ProjectsIdTestPlansSearchPostExample + public class ApiV2ProjectsIdTestPlansDeleteBulkPostExample { public static void Main() { @@ -1018,24 +1024,18 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier - var mustUpdateCache = false; // bool? | (optional) (default to false) - var skip = 56; // int? | Amount of items to be skipped (offset) (optional) - var take = 56; // int? | Amount of items to be taken (limit) (optional) - var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - var searchField = "searchField_example"; // string | Property name for searching (optional) - var searchValue = "searchValue_example"; // string | Value for searching (optional) - var testPlanSearchQueryModel = new TestPlanSearchQueryModel(); // TestPlanSearchQueryModel | (optional) + var id = "id_example"; // string | Unique or global ID of the project + var projectTestPlansFilterModel = new ProjectTestPlansFilterModel(); // ProjectTestPlansFilterModel | (optional) try { - // Get Project TestPlans with analytics - List result = apiInstance.ApiV2ProjectsIdTestPlansSearchPost(id, mustUpdateCache, skip, take, orderBy, searchField, searchValue, testPlanSearchQueryModel); + // Delete multiple test plans + List result = apiInstance.ApiV2ProjectsIdTestPlansDeleteBulkPost(id, projectTestPlansFilterModel); Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansSearchPost: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansDeleteBulkPost: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1044,21 +1044,21 @@ namespace Example } ``` -#### Using the ApiV2ProjectsIdTestPlansSearchPostWithHttpInfo variant +#### Using the ApiV2ProjectsIdTestPlansDeleteBulkPostWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Get Project TestPlans with analytics - ApiResponse> response = apiInstance.ApiV2ProjectsIdTestPlansSearchPostWithHttpInfo(id, mustUpdateCache, skip, take, orderBy, searchField, searchValue, testPlanSearchQueryModel); + // Delete multiple test plans + ApiResponse> response = apiInstance.ApiV2ProjectsIdTestPlansDeleteBulkPostWithHttpInfo(id, projectTestPlansFilterModel); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansSearchPostWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansDeleteBulkPostWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1068,18 +1068,12 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **id** | **string** | Project internal (UUID) or global (integer) identifier | | -| **mustUpdateCache** | **bool?** | | [optional] [default to false] | -| **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | -| **take** | **int?** | Amount of items to be taken (limit) | [optional] | -| **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | -| **searchField** | **string** | Property name for searching | [optional] | -| **searchValue** | **string** | Value for searching | [optional] | -| **testPlanSearchQueryModel** | [**TestPlanSearchQueryModel**](TestPlanSearchQueryModel.md) | | [optional] | +| **id** | **string** | Unique or global ID of the project | | +| **projectTestPlansFilterModel** | [**ProjectTestPlansFilterModel**](ProjectTestPlansFilterModel.md) | | [optional] | ### Return type -[**List<TestPlanWithAnalyticModel>**](TestPlanWithAnalyticModel.md) +**List** ### Authorization @@ -1094,18 +1088,18 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| -| **400** | Bad Request | - | +| **200** | Success | - | +| **403** | - Read permission for the project is required - Delete permission for test plans is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ApiV2ProjectsIdTestRunsActiveGet** -> List<PublicTestRunModel> ApiV2ProjectsIdTestRunsActiveGet (string id) + +# **ApiV2ProjectsIdTestPlansNameExistsGet** +> bool ApiV2ProjectsIdTestPlansNameExistsGet (Guid id, string name) -Get active Project TestRuns +Checks if TestPlan exists with the specified name exists for the project -
Use case
User sets project internal or global identifier
User runs method execution
System returns active testruns +
Use case
User sets project internal or global identifier
User runs method execution
System purge delete project workitems ### Example ```csharp @@ -1118,7 +1112,7 @@ using TestIt.Client.Model; namespace Example { - public class ApiV2ProjectsIdTestRunsActiveGetExample + public class ApiV2ProjectsIdTestPlansNameExistsGetExample { public static void Main() { @@ -1133,17 +1127,18 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier + var id = "id_example"; // Guid | Project internal (UUID) or global (integer) identifier + var name = "name_example"; // string | TestPlan name to check try { - // Get active Project TestRuns - List result = apiInstance.ApiV2ProjectsIdTestRunsActiveGet(id); + // Checks if TestPlan exists with the specified name exists for the project + bool result = apiInstance.ApiV2ProjectsIdTestPlansNameExistsGet(id, name); Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestRunsActiveGet: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansNameExistsGet: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1152,21 +1147,21 @@ namespace Example } ``` -#### Using the ApiV2ProjectsIdTestRunsActiveGetWithHttpInfo variant +#### Using the ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Get active Project TestRuns - ApiResponse> response = apiInstance.ApiV2ProjectsIdTestRunsActiveGetWithHttpInfo(id); + // Checks if TestPlan exists with the specified name exists for the project + ApiResponse response = apiInstance.ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfo(id, name); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestRunsActiveGetWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1176,11 +1171,12 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **id** | **string** | Project internal (UUID) or global (integer) identifier | | +| **id** | **Guid** | Project internal (UUID) or global (integer) identifier | | +| **name** | **string** | TestPlan name to check | | ### Return type -[**List<PublicTestRunModel>**](PublicTestRunModel.md) +**bool** ### Authorization @@ -1195,20 +1191,15 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | -| **404** | Not Found | - | | **200** | Success | - | -| **400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ApiV2ProjectsIdTestRunsFullGet** -> List<TestRunModel> ApiV2ProjectsIdTestRunsFullGet (string id, bool? includeTestResults = null, bool? mustAggregateTestResults = null, bool? notStarted = null, bool? inProgress = null, bool? stopped = null, bool? completed = null, DateTime? createdDateFrom = null, DateTime? createdDateTo = null, Guid? testPlanId = null, int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null) - -Get Project TestRuns full models + +# **ApiV2ProjectsIdTestPlansRestoreBulkPost** +> void ApiV2ProjectsIdTestPlansRestoreBulkPost (string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = null) -
Use case
User sets project internal or global identifier
User sets query params
User runs method execution
System returns project test runs full models +Restore multiple test plans ### Example ```csharp @@ -1221,7 +1212,7 @@ using TestIt.Client.Model; namespace Example { - public class ApiV2ProjectsIdTestRunsFullGetExample + public class ApiV2ProjectsIdTestPlansRestoreBulkPostExample { public static void Main() { @@ -1236,31 +1227,17 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier - var includeTestResults = false; // bool? | (optional) (default to false) - var mustAggregateTestResults = true; // bool? | (optional) (default to true) - var notStarted = true; // bool? | (optional) - var inProgress = true; // bool? | (optional) - var stopped = true; // bool? | (optional) - var completed = true; // bool? | (optional) - var createdDateFrom = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | (optional) - var createdDateTo = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | (optional) - var testPlanId = "testPlanId_example"; // Guid? | (optional) - var skip = 56; // int? | Amount of items to be skipped (offset) (optional) - var take = 56; // int? | Amount of items to be taken (limit) (optional) - var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - var searchField = "searchField_example"; // string | Property name for searching (optional) - var searchValue = "searchValue_example"; // string | Value for searching (optional) + var id = "id_example"; // string | Unique or global ID of the project + var projectTestPlansFilterModel = new ProjectTestPlansFilterModel(); // ProjectTestPlansFilterModel | (optional) try { - // Get Project TestRuns full models - List result = apiInstance.ApiV2ProjectsIdTestRunsFullGet(id, includeTestResults, mustAggregateTestResults, notStarted, inProgress, stopped, completed, createdDateFrom, createdDateTo, testPlanId, skip, take, orderBy, searchField, searchValue); - Debug.WriteLine(result); + // Restore multiple test plans + apiInstance.ApiV2ProjectsIdTestPlansRestoreBulkPost(id, projectTestPlansFilterModel); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestRunsFullGet: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansRestoreBulkPost: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1269,21 +1246,18 @@ namespace Example } ``` -#### Using the ApiV2ProjectsIdTestRunsFullGetWithHttpInfo variant +#### Using the ApiV2ProjectsIdTestPlansRestoreBulkPostWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Get Project TestRuns full models - ApiResponse> response = apiInstance.ApiV2ProjectsIdTestRunsFullGetWithHttpInfo(id, includeTestResults, mustAggregateTestResults, notStarted, inProgress, stopped, completed, createdDateFrom, createdDateTo, testPlanId, skip, take, orderBy, searchField, searchValue); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); + // Restore multiple test plans + apiInstance.ApiV2ProjectsIdTestPlansRestoreBulkPostWithHttpInfo(id, projectTestPlansFilterModel); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestRunsFullGetWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansRestoreBulkPostWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1293,25 +1267,12 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **id** | **string** | Project internal (UUID) or global (integer) identifier | | -| **includeTestResults** | **bool?** | | [optional] [default to false] | -| **mustAggregateTestResults** | **bool?** | | [optional] [default to true] | -| **notStarted** | **bool?** | | [optional] | -| **inProgress** | **bool?** | | [optional] | -| **stopped** | **bool?** | | [optional] | -| **completed** | **bool?** | | [optional] | -| **createdDateFrom** | **DateTime?** | | [optional] | -| **createdDateTo** | **DateTime?** | | [optional] | -| **testPlanId** | **Guid?** | | [optional] | -| **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | -| **take** | **int?** | Amount of items to be taken (limit) | [optional] | -| **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | -| **searchField** | **string** | Property name for searching | [optional] | -| **searchValue** | **string** | Value for searching | [optional] | +| **id** | **string** | Unique or global ID of the project | | +| **projectTestPlansFilterModel** | [**ProjectTestPlansFilterModel**](ProjectTestPlansFilterModel.md) | | [optional] | ### Return type -[**List<TestRunModel>**](TestRunModel.md) +void (empty response body) ### Authorization @@ -1319,22 +1280,25 @@ catch (ApiException e) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **200** | Success | - | +| **403** | - Read permission for the project is required - Edit permission for test plans is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ApiV2ProjectsIdWorkItemsSearchIdPost** -> List<Guid> ApiV2ProjectsIdWorkItemsSearchIdPost (string id, int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null, WorkItemSelectModel workItemSelectModel = null) + +# **ApiV2ProjectsIdTestPlansSearchPost** +> List<TestPlanWithAnalyticModel> ApiV2ProjectsIdTestPlansSearchPost (string id, bool? mustUpdateCache = null, int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null, ProjectTestPlansFilterModel projectTestPlansFilterModel = null) -Search for work items and extract IDs only +Get Project TestPlans with analytics + +
Use case
User sets project internal or global identifier
User sets request body
User runs method execution
System returns project testplans with analytics ### Example ```csharp @@ -1347,7 +1311,7 @@ using TestIt.Client.Model; namespace Example { - public class ApiV2ProjectsIdWorkItemsSearchIdPostExample + public class ApiV2ProjectsIdTestPlansSearchPostExample { public static void Main() { @@ -1362,23 +1326,24 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var id = "id_example"; // string | Unique or global ID of the project + var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier + var mustUpdateCache = false; // bool? | (optional) (default to false) var skip = 56; // int? | Amount of items to be skipped (offset) (optional) var take = 56; // int? | Amount of items to be taken (limit) (optional) var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) var searchField = "searchField_example"; // string | Property name for searching (optional) var searchValue = "searchValue_example"; // string | Value for searching (optional) - var workItemSelectModel = new WorkItemSelectModel(); // WorkItemSelectModel | (optional) + var projectTestPlansFilterModel = new ProjectTestPlansFilterModel(); // ProjectTestPlansFilterModel | (optional) try { - // Search for work items and extract IDs only - List result = apiInstance.ApiV2ProjectsIdWorkItemsSearchIdPost(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel); + // Get Project TestPlans with analytics + List result = apiInstance.ApiV2ProjectsIdTestPlansSearchPost(id, mustUpdateCache, skip, take, orderBy, searchField, searchValue, projectTestPlansFilterModel); Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdWorkItemsSearchIdPost: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansSearchPost: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1387,21 +1352,21 @@ namespace Example } ``` -#### Using the ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfo variant +#### Using the ApiV2ProjectsIdTestPlansSearchPostWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Search for work items and extract IDs only - ApiResponse> response = apiInstance.ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfo(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel); + // Get Project TestPlans with analytics + ApiResponse> response = apiInstance.ApiV2ProjectsIdTestPlansSearchPostWithHttpInfo(id, mustUpdateCache, skip, take, orderBy, searchField, searchValue, projectTestPlansFilterModel); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestPlansSearchPostWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1411,17 +1376,1178 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **id** | **string** | Unique or global ID of the project | | +| **id** | **string** | Project internal (UUID) or global (integer) identifier | | +| **mustUpdateCache** | **bool?** | | [optional] [default to false] | | **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | | **take** | **int?** | Amount of items to be taken (limit) | [optional] | | **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | | **searchField** | **string** | Property name for searching | [optional] | | **searchValue** | **string** | Value for searching | [optional] | -| **workItemSelectModel** | [**WorkItemSelectModel**](WorkItemSelectModel.md) | | [optional] | +| **projectTestPlansFilterModel** | [**ProjectTestPlansFilterModel**](ProjectTestPlansFilterModel.md) | | [optional] | ### Return type -**List** +[**List<TestPlanWithAnalyticModel>**](TestPlanWithAnalyticModel.md) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **400** | Bad Request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ApiV2ProjectsIdTestRunsActiveGet** +> List<PublicTestRunModel> ApiV2ProjectsIdTestRunsActiveGet (string id) + +Get active Project TestRuns + +
Use case
User sets project internal or global identifier
User runs method execution
System returns active testruns + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2ProjectsIdTestRunsActiveGetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); + var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier + + try + { + // Get active Project TestRuns + List result = apiInstance.ApiV2ProjectsIdTestRunsActiveGet(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestRunsActiveGet: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2ProjectsIdTestRunsActiveGetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get active Project TestRuns + ApiResponse> response = apiInstance.ApiV2ProjectsIdTestRunsActiveGetWithHttpInfo(id); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestRunsActiveGetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **string** | Project internal (UUID) or global (integer) identifier | | + +### Return type + +[**List<PublicTestRunModel>**](PublicTestRunModel.md) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | +| **401** | Unauthorized | - | +| **400** | Bad Request | - | +| **404** | Not Found | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ApiV2ProjectsIdTestRunsFullGet** +> List<TestRunModel> ApiV2ProjectsIdTestRunsFullGet (string id, bool? includeTestResults = null, bool? mustAggregateTestResults = null, bool? notStarted = null, bool? inProgress = null, bool? stopped = null, bool? completed = null, DateTime? createdDateFrom = null, DateTime? createdDateTo = null, Guid? testPlanId = null, int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null) + +Get Project TestRuns full models + +
Use case
User sets project internal or global identifier
User sets query params
User runs method execution
System returns project test runs full models + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2ProjectsIdTestRunsFullGetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); + var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier + var includeTestResults = false; // bool? | (optional) (default to false) + var mustAggregateTestResults = true; // bool? | (optional) (default to true) + var notStarted = true; // bool? | (optional) + var inProgress = true; // bool? | (optional) + var stopped = true; // bool? | (optional) + var completed = true; // bool? | (optional) + var createdDateFrom = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | (optional) + var createdDateTo = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime? | (optional) + var testPlanId = "testPlanId_example"; // Guid? | (optional) + var skip = 56; // int? | Amount of items to be skipped (offset) (optional) + var take = 56; // int? | Amount of items to be taken (limit) (optional) + var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + var searchField = "searchField_example"; // string | Property name for searching (optional) + var searchValue = "searchValue_example"; // string | Value for searching (optional) + + try + { + // Get Project TestRuns full models + List result = apiInstance.ApiV2ProjectsIdTestRunsFullGet(id, includeTestResults, mustAggregateTestResults, notStarted, inProgress, stopped, completed, createdDateFrom, createdDateTo, testPlanId, skip, take, orderBy, searchField, searchValue); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestRunsFullGet: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2ProjectsIdTestRunsFullGetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get Project TestRuns full models + ApiResponse> response = apiInstance.ApiV2ProjectsIdTestRunsFullGetWithHttpInfo(id, includeTestResults, mustAggregateTestResults, notStarted, inProgress, stopped, completed, createdDateFrom, createdDateTo, testPlanId, skip, take, orderBy, searchField, searchValue); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdTestRunsFullGetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **string** | Project internal (UUID) or global (integer) identifier | | +| **includeTestResults** | **bool?** | | [optional] [default to false] | +| **mustAggregateTestResults** | **bool?** | | [optional] [default to true] | +| **notStarted** | **bool?** | | [optional] | +| **inProgress** | **bool?** | | [optional] | +| **stopped** | **bool?** | | [optional] | +| **completed** | **bool?** | | [optional] | +| **createdDateFrom** | **DateTime?** | | [optional] | +| **createdDateTo** | **DateTime?** | | [optional] | +| **testPlanId** | **Guid?** | | [optional] | +| **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | +| **take** | **int?** | Amount of items to be taken (limit) | [optional] | +| **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | +| **searchField** | **string** | Property name for searching | [optional] | +| **searchValue** | **string** | Value for searching | [optional] | + +### Return type + +[**List<TestRunModel>**](TestRunModel.md) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ApiV2ProjectsIdWorkItemsSearchIdPost** +> List<Guid> ApiV2ProjectsIdWorkItemsSearchIdPost (string id, int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null, WorkItemSelectModel workItemSelectModel = null) + +Search for work items and extract IDs only + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2ProjectsIdWorkItemsSearchIdPostExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); + var id = "id_example"; // string | Unique or global ID of the project + var skip = 56; // int? | Amount of items to be skipped (offset) (optional) + var take = 56; // int? | Amount of items to be taken (limit) (optional) + var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + var searchField = "searchField_example"; // string | Property name for searching (optional) + var searchValue = "searchValue_example"; // string | Value for searching (optional) + var workItemSelectModel = new WorkItemSelectModel(); // WorkItemSelectModel | (optional) + + try + { + // Search for work items and extract IDs only + List result = apiInstance.ApiV2ProjectsIdWorkItemsSearchIdPost(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdWorkItemsSearchIdPost: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Search for work items and extract IDs only + ApiResponse> response = apiInstance.ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfo(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **string** | Unique or global ID of the project | | +| **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | +| **take** | **int?** | Amount of items to be taken (limit) | [optional] | +| **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | +| **searchField** | **string** | Property name for searching | [optional] | +| **searchValue** | **string** | Value for searching | [optional] | +| **workItemSelectModel** | [**WorkItemSelectModel**](WorkItemSelectModel.md) | | [optional] | + +### Return type + +**List** + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **403** | Read permission for test library is required | - | +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ApiV2ProjectsIdWorkItemsSearchPost** +> List<WorkItemShortModel> ApiV2ProjectsIdWorkItemsSearchPost (string id, int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null, WorkItemSelectModel workItemSelectModel = null) + +Search for work items + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2ProjectsIdWorkItemsSearchPostExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); + var id = "id_example"; // string | Unique or global ID of the project + var skip = 56; // int? | Amount of items to be skipped (offset) (optional) + var take = 56; // int? | Amount of items to be taken (limit) (optional) + var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + var searchField = "searchField_example"; // string | Property name for searching (optional) + var searchValue = "searchValue_example"; // string | Value for searching (optional) + var workItemSelectModel = new WorkItemSelectModel(); // WorkItemSelectModel | (optional) + + try + { + // Search for work items + List result = apiInstance.ApiV2ProjectsIdWorkItemsSearchPost(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdWorkItemsSearchPost: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Search for work items + ApiResponse> response = apiInstance.ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfo(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **string** | Unique or global ID of the project | | +| **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | +| **take** | **int?** | Amount of items to be taken (limit) | [optional] | +| **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | +| **searchField** | **string** | Property name for searching | [optional] | +| **searchValue** | **string** | Value for searching | [optional] | +| **workItemSelectModel** | [**WorkItemSelectModel**](WorkItemSelectModel.md) | | [optional] | + +### Return type + +[**List<WorkItemShortModel>**](WorkItemShortModel.md) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **403** | Read permission for test library is required | - | +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ApiV2ProjectsIdWorkItemsTagsGet** +> List<TagShortModel> ApiV2ProjectsIdWorkItemsTagsGet (Guid id, bool? isDeleted = null) + +Get WorkItems Tags + +
Use case
User sets project internal identifier
User runs method execution
System returns work items tags + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2ProjectsIdWorkItemsTagsGetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); + var id = "id_example"; // Guid | Project internal (UUID) identifier + var isDeleted = true; // bool? | (optional) + + try + { + // Get WorkItems Tags + List result = apiInstance.ApiV2ProjectsIdWorkItemsTagsGet(id, isDeleted); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdWorkItemsTagsGet: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Get WorkItems Tags + ApiResponse> response = apiInstance.ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfo(id, isDeleted); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | Project internal (UUID) identifier | | +| **isDeleted** | **bool?** | | [optional] | + +### Return type + +[**List<TagShortModel>**](TagShortModel.md) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | +| **400** | Bad Request | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ApiV2ProjectsNameNameExistsGet** +> bool ApiV2ProjectsNameNameExistsGet (string name) + + + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2ProjectsNameNameExistsGetExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); + var name = "name_example"; // string | + + try + { + bool result = apiInstance.ApiV2ProjectsNameNameExistsGet(name); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsNameNameExistsGet: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2ProjectsNameNameExistsGetWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + ApiResponse response = apiInstance.ApiV2ProjectsNameNameExistsGetWithHttpInfo(name); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsNameNameExistsGetWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **name** | **string** | | | + +### Return type + +**bool** + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ApiV2ProjectsSearchPost** +> List<ProjectModel> ApiV2ProjectsSearchPost (int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null, ProjectsFilterModel projectsFilterModel = null) + +Search for projects + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2ProjectsSearchPostExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); + var skip = 56; // int? | Amount of items to be skipped (offset) (optional) + var take = 56; // int? | Amount of items to be taken (limit) (optional) + var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + var searchField = "searchField_example"; // string | Property name for searching (optional) + var searchValue = "searchValue_example"; // string | Value for searching (optional) + var projectsFilterModel = new ProjectsFilterModel(); // ProjectsFilterModel | (optional) + + try + { + // Search for projects + List result = apiInstance.ApiV2ProjectsSearchPost(skip, take, orderBy, searchField, searchValue, projectsFilterModel); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsSearchPost: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2ProjectsSearchPostWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Search for projects + ApiResponse> response = apiInstance.ApiV2ProjectsSearchPostWithHttpInfo(skip, take, orderBy, searchField, searchValue, projectsFilterModel); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsSearchPostWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | +| **take** | **int?** | Amount of items to be taken (limit) | [optional] | +| **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | +| **searchField** | **string** | Property name for searching | [optional] | +| **searchValue** | **string** | Value for searching | [optional] | +| **projectsFilterModel** | [**ProjectsFilterModel**](ProjectsFilterModel.md) | | [optional] | + +### Return type + +[**List<ProjectModel>**](ProjectModel.md) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **BackgroundImportProject** +> Guid BackgroundImportProject (FileParameter file = null) + +Import project from JSON file in background job + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class BackgroundImportProjectExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); + var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // FileParameter | (optional) + + try + { + // Import project from JSON file in background job + Guid result = apiInstance.BackgroundImportProject(file); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ProjectsApi.BackgroundImportProject: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the BackgroundImportProjectWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Import project from JSON file in background job + ApiResponse response = apiInstance.BackgroundImportProjectWithHttpInfo(file); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ProjectsApi.BackgroundImportProjectWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **file** | **FileParameter****FileParameter** | | [optional] | + +### Return type + +**Guid** + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: multipart/form-data, application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | +| **403** | Update permission for project settings required | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **BackgroundImportToExistingProject** +> Guid BackgroundImportToExistingProject (string id, FileParameter file = null) + +Import project from JSON file into existing project in background job + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class BackgroundImportToExistingProjectExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); + var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier + var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // FileParameter | Select file (optional) + + try + { + // Import project from JSON file into existing project in background job + Guid result = apiInstance.BackgroundImportToExistingProject(id, file); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ProjectsApi.BackgroundImportToExistingProject: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the BackgroundImportToExistingProjectWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Import project from JSON file into existing project in background job + ApiResponse response = apiInstance.BackgroundImportToExistingProjectWithHttpInfo(id, file); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ProjectsApi.BackgroundImportToExistingProjectWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **string** | Project internal (UUID) or global (integer) identifier | | +| **file** | **FileParameter****FileParameter** | Select file | [optional] | + +### Return type + +**Guid** + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | +| **403** | Update permission for project settings required | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **BackgroundImportZipProject** +> Guid BackgroundImportZipProject (FileParameter file = null) + +Import project from Zip file in background job + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class BackgroundImportZipProjectExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); + var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // FileParameter | (optional) + + try + { + // Import project from Zip file in background job + Guid result = apiInstance.BackgroundImportZipProject(file); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ProjectsApi.BackgroundImportZipProject: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the BackgroundImportZipProjectWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Import project from Zip file in background job + ApiResponse response = apiInstance.BackgroundImportZipProjectWithHttpInfo(file); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ProjectsApi.BackgroundImportZipProjectWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **file** | **FileParameter****FileParameter** | | [optional] | + +### Return type + +**Guid** + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: multipart/form-data, application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | +| **403** | Update permission for project settings required | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **BackgroundImportZipToExistingProject** +> Guid BackgroundImportZipToExistingProject (string id, FileParameter file = null) + +Import project from Zip file into existing project in background job + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class BackgroundImportZipToExistingProjectExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); + var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier + var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // FileParameter | Select file (optional) + + try + { + // Import project from Zip file into existing project in background job + Guid result = apiInstance.BackgroundImportZipToExistingProject(id, file); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling ProjectsApi.BackgroundImportZipToExistingProject: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the BackgroundImportZipToExistingProjectWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Import project from Zip file into existing project in background job + ApiResponse response = apiInstance.BackgroundImportZipToExistingProjectWithHttpInfo(id, file); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling ProjectsApi.BackgroundImportZipToExistingProjectWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **string** | Project internal (UUID) or global (integer) identifier | | +| **file** | **FileParameter****FileParameter** | Select file | [optional] | + +### Return type + +**Guid** ### Authorization @@ -1429,23 +2555,25 @@ catch (ApiException e) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: multipart/form-data - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Read permission for test library is required | - | -| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **200** | Success | - | +| **403** | Update permission for project settings required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ApiV2ProjectsIdWorkItemsSearchPost** -> List<WorkItemShortModel> ApiV2ProjectsIdWorkItemsSearchPost (string id, int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null, WorkItemSelectModel workItemSelectModel = null) + +# **CreateCustomAttributeTestPlanProjectRelations** +> void CreateCustomAttributeTestPlanProjectRelations (string id, List requestBody = null) -Search for work items +Add attributes to project's test plans + +
Use case
User sets project internal or global identifier and attributes identifiers
User runs method execution
System updates project and add attributes to project for test plans
System returns no content response ### Example ```csharp @@ -1458,7 +2586,7 @@ using TestIt.Client.Model; namespace Example { - public class ApiV2ProjectsIdWorkItemsSearchPostExample + public class CreateCustomAttributeTestPlanProjectRelationsExample { public static void Main() { @@ -1473,23 +2601,17 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var id = "id_example"; // string | Unique or global ID of the project - var skip = 56; // int? | Amount of items to be skipped (offset) (optional) - var take = 56; // int? | Amount of items to be taken (limit) (optional) - var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - var searchField = "searchField_example"; // string | Property name for searching (optional) - var searchValue = "searchValue_example"; // string | Value for searching (optional) - var workItemSelectModel = new WorkItemSelectModel(); // WorkItemSelectModel | (optional) + var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier + var requestBody = new List(); // List | (optional) try { - // Search for work items - List result = apiInstance.ApiV2ProjectsIdWorkItemsSearchPost(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel); - Debug.WriteLine(result); + // Add attributes to project's test plans + apiInstance.CreateCustomAttributeTestPlanProjectRelations(id, requestBody); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdWorkItemsSearchPost: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.CreateCustomAttributeTestPlanProjectRelations: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1498,21 +2620,18 @@ namespace Example } ``` -#### Using the ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfo variant +#### Using the CreateCustomAttributeTestPlanProjectRelationsWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Search for work items - ApiResponse> response = apiInstance.ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfo(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); + // Add attributes to project's test plans + apiInstance.CreateCustomAttributeTestPlanProjectRelationsWithHttpInfo(id, requestBody); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.CreateCustomAttributeTestPlanProjectRelationsWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1522,17 +2641,12 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **id** | **string** | Unique or global ID of the project | | -| **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | -| **take** | **int?** | Amount of items to be taken (limit) | [optional] | -| **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | -| **searchField** | **string** | Property name for searching | [optional] | -| **searchValue** | **string** | Value for searching | [optional] | -| **workItemSelectModel** | [**WorkItemSelectModel**](WorkItemSelectModel.md) | | [optional] | +| **id** | **string** | Project internal (UUID) or global (integer) identifier | | +| **requestBody** | [**List<Guid>**](Guid.md) | | [optional] | ### Return type -[**List<WorkItemShortModel>**](WorkItemShortModel.md) +void (empty response body) ### Authorization @@ -1547,18 +2661,19 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| -| **403** | Read permission for test library is required | - | +| **403** | Update permission for project settings is required | - | +| **204** | No Content | - | +| **400** | <br> Attributes must be global | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ApiV2ProjectsIdWorkItemsTagsGet** -> List<TagShortModel> ApiV2ProjectsIdWorkItemsTagsGet (Guid id, bool? isDeleted = null) + +# **CreateProject** +> ProjectModel CreateProject (ProjectPostModel projectPostModel = null) -Get WorkItems Tags +Create project -
Use case
User sets project internal identifier
User runs method execution
System returns work items tags +
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) ### Example ```csharp @@ -1571,7 +2686,7 @@ using TestIt.Client.Model; namespace Example { - public class ApiV2ProjectsIdWorkItemsTagsGetExample + public class CreateProjectExample { public static void Main() { @@ -1586,18 +2701,17 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var id = "id_example"; // Guid | Project internal (UUID) identifier - var isDeleted = true; // bool? | (optional) + var projectPostModel = new ProjectPostModel(); // ProjectPostModel | (optional) try { - // Get WorkItems Tags - List result = apiInstance.ApiV2ProjectsIdWorkItemsTagsGet(id, isDeleted); + // Create project + ProjectModel result = apiInstance.CreateProject(projectPostModel); Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdWorkItemsTagsGet: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.CreateProject: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1606,21 +2720,21 @@ namespace Example } ``` -#### Using the ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfo variant +#### Using the CreateProjectWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Get WorkItems Tags - ApiResponse> response = apiInstance.ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfo(id, isDeleted); + // Create project + ApiResponse response = apiInstance.CreateProjectWithHttpInfo(projectPostModel); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.CreateProjectWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1630,12 +2744,11 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **id** | **Guid** | Project internal (UUID) identifier | | -| **isDeleted** | **bool?** | | [optional] | +| **projectPostModel** | [**ProjectPostModel**](ProjectPostModel.md) | | [optional] | ### Return type -[**List<TagShortModel>**](TagShortModel.md) +[**ProjectModel**](ProjectModel.md) ### Authorization @@ -1643,23 +2756,27 @@ catch (ApiException e) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **403** | Project creator or admin system role is required | - | +| **201** | Created | - | | **400** | Bad Request | - | +| **409** | Project with the same name already exists | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ApiV2ProjectsNameNameExistsGet** -> bool ApiV2ProjectsNameNameExistsGet (string name) + +# **CreateProjectsAttribute** +> CustomAttributeModel CreateProjectsAttribute (string id, CustomAttributePostModel customAttributePostModel = null) +Create project attribute +
Use case
User sets attribute parameters (listed in request example) and runs method execution
System search project
System creates attribute and relates it to the project
System returns project attribute properties (example listed in response parameters) ### Example ```csharp @@ -1672,7 +2789,7 @@ using TestIt.Client.Model; namespace Example { - public class ApiV2ProjectsNameNameExistsGetExample + public class CreateProjectsAttributeExample { public static void Main() { @@ -1687,16 +2804,18 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var name = "name_example"; // string | + var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier + var customAttributePostModel = new CustomAttributePostModel(); // CustomAttributePostModel | (optional) try { - bool result = apiInstance.ApiV2ProjectsNameNameExistsGet(name); + // Create project attribute + CustomAttributeModel result = apiInstance.CreateProjectsAttribute(id, customAttributePostModel); Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsNameNameExistsGet: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.CreateProjectsAttribute: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1705,20 +2824,21 @@ namespace Example } ``` -#### Using the ApiV2ProjectsNameNameExistsGetWithHttpInfo variant +#### Using the CreateProjectsAttributeWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - ApiResponse response = apiInstance.ApiV2ProjectsNameNameExistsGetWithHttpInfo(name); + // Create project attribute + ApiResponse response = apiInstance.CreateProjectsAttributeWithHttpInfo(id, customAttributePostModel); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsNameNameExistsGetWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.CreateProjectsAttributeWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1728,11 +2848,12 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **name** | **string** | | | +| **id** | **string** | Project internal (UUID) or global (integer) identifier | | +| **customAttributePostModel** | [**CustomAttributePostModel**](CustomAttributePostModel.md) | | [optional] | ### Return type -**bool** +[**CustomAttributeModel**](CustomAttributeModel.md) ### Authorization @@ -1740,22 +2861,29 @@ catch (ApiException e) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | +| **422** | Cannot add new attribute from template which is in use | - | +| **403** | Update permission for project settings is required | - | +| **404** | Project with provided ID was not found | - | +| **400** | <br>- Attribute is `null` <br>- Priority is invalid <br>- Attribute with `Options` type must have an options <br>- ID is not `null` <br>- Option ID is not `null` | - | +| **409** | <br>`CustomAttribute.Name` or `CustomAttribute.Id` are not unique in attributes schemes <br>`CustomAttributeOptionModel.Id` or `CustomAttributeOptionModel.Value` are not unique in `attributesScheme.Options` | - | +| **201** | Created | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ApiV2ProjectsSearchPost** -> List<ProjectModel> ApiV2ProjectsSearchPost (int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null, ProjectsFilterModel projectsFilterModel = null) + +# **DeleteCustomAttributeTestPlanProjectRelations** +> void DeleteCustomAttributeTestPlanProjectRelations (string id, Guid attributeId) -Search for projects +Delete attribute from project's test plans + +
Use case
User sets project internal or global identifier and attribute identifier
User runs method execution
System updates project and delete attribute from project for test plans
System returns no content response ### Example ```csharp @@ -1768,7 +2896,7 @@ using TestIt.Client.Model; namespace Example { - public class ApiV2ProjectsSearchPostExample + public class DeleteCustomAttributeTestPlanProjectRelationsExample { public static void Main() { @@ -1783,22 +2911,17 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var skip = 56; // int? | Amount of items to be skipped (offset) (optional) - var take = 56; // int? | Amount of items to be taken (limit) (optional) - var orderBy = "orderBy_example"; // string | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - var searchField = "searchField_example"; // string | Property name for searching (optional) - var searchValue = "searchValue_example"; // string | Value for searching (optional) - var projectsFilterModel = new ProjectsFilterModel(); // ProjectsFilterModel | (optional) + var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier + var attributeId = "attributeId_example"; // Guid | try { - // Search for projects - List result = apiInstance.ApiV2ProjectsSearchPost(skip, take, orderBy, searchField, searchValue, projectsFilterModel); - Debug.WriteLine(result); + // Delete attribute from project's test plans + apiInstance.DeleteCustomAttributeTestPlanProjectRelations(id, attributeId); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsSearchPost: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.DeleteCustomAttributeTestPlanProjectRelations: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1807,21 +2930,18 @@ namespace Example } ``` -#### Using the ApiV2ProjectsSearchPostWithHttpInfo variant +#### Using the DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Search for projects - ApiResponse> response = apiInstance.ApiV2ProjectsSearchPostWithHttpInfo(skip, take, orderBy, searchField, searchValue, projectsFilterModel); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); + // Delete attribute from project's test plans + apiInstance.DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfo(id, attributeId); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ApiV2ProjectsSearchPostWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1831,16 +2951,12 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **skip** | **int?** | Amount of items to be skipped (offset) | [optional] | -| **take** | **int?** | Amount of items to be taken (limit) | [optional] | -| **orderBy** | **string** | SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) | [optional] | -| **searchField** | **string** | Property name for searching | [optional] | -| **searchValue** | **string** | Value for searching | [optional] | -| **projectsFilterModel** | [**ProjectsFilterModel**](ProjectsFilterModel.md) | | [optional] | +| **id** | **string** | Project internal (UUID) or global (integer) identifier | | +| **attributeId** | **Guid** | | | ### Return type -[**List<ProjectModel>**](ProjectModel.md) +void (empty response body) ### Authorization @@ -1848,24 +2964,25 @@ catch (ApiException e) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **204** | No Content | - | +| **403** | Update permission for project settings is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **CreateCustomAttributeTestPlanProjectRelations** -> void CreateCustomAttributeTestPlanProjectRelations (string id, List requestBody = null) + +# **DeleteProject** +> void DeleteProject (string id) -Add attributes to project's test plans +Delete project -
Use case
User sets project internal or global identifier and attributes identifiers
User runs method execution
System updates project and add attributes to project for test plans
System returns no content response +
Use case:
1. User sets project internal or global identifier and runs method execution
2. System searches and moves requested project to archive
3. System responds with no content (204) result ### Example ```csharp @@ -1878,7 +2995,7 @@ using TestIt.Client.Model; namespace Example { - public class CreateCustomAttributeTestPlanProjectRelationsExample + public class DeleteProjectExample { public static void Main() { @@ -1894,16 +3011,15 @@ namespace Example HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier - var requestBody = new List(); // List | (optional) try { - // Add attributes to project's test plans - apiInstance.CreateCustomAttributeTestPlanProjectRelations(id, requestBody); + // Delete project + apiInstance.DeleteProject(id); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.CreateCustomAttributeTestPlanProjectRelations: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.DeleteProject: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1912,18 +3028,18 @@ namespace Example } ``` -#### Using the CreateCustomAttributeTestPlanProjectRelationsWithHttpInfo variant +#### Using the DeleteProjectWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Add attributes to project's test plans - apiInstance.CreateCustomAttributeTestPlanProjectRelationsWithHttpInfo(id, requestBody); + // Delete project + apiInstance.DeleteProjectWithHttpInfo(id); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.CreateCustomAttributeTestPlanProjectRelationsWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.DeleteProjectWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -1934,7 +3050,6 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **id** | **string** | Project internal (UUID) or global (integer) identifier | | -| **requestBody** | [**List<Guid>**](Guid.md) | | [optional] | ### Return type @@ -1946,26 +3061,26 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Update permission for project settings is required | - | -| **204** | Success | - | -| **400** | <br> Attributes must be global | - | +| **404** | Project with provided ID does not exists | - | +| **204** | No Content | - | +| **403** | Delete permission for projects is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **CreateProject** -> ProjectModel CreateProject (ProjectPostModel projectPostModel = null) + +# **DeleteProjectAutoTests** +> void DeleteProjectAutoTests (string id) -Create project +Delete 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) +
Use case
User sets project internal or global identifier
User runs method execution
System delete all autotests from project
System returns no content response ### Example ```csharp @@ -1978,7 +3093,7 @@ using TestIt.Client.Model; namespace Example { - public class CreateProjectExample + public class DeleteProjectAutoTestsExample { public static void Main() { @@ -1993,17 +3108,16 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var projectPostModel = new ProjectPostModel(); // ProjectPostModel | (optional) + var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier try { - // Create project - ProjectModel result = apiInstance.CreateProject(projectPostModel); - Debug.WriteLine(result); + // Delete project + apiInstance.DeleteProjectAutoTests(id); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.CreateProject: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.DeleteProjectAutoTests: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2012,21 +3126,18 @@ namespace Example } ``` -#### Using the CreateProjectWithHttpInfo variant +#### Using the DeleteProjectAutoTestsWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Create project - ApiResponse response = apiInstance.CreateProjectWithHttpInfo(projectPostModel); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); + // Delete project + apiInstance.DeleteProjectAutoTestsWithHttpInfo(id); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.CreateProjectWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.DeleteProjectAutoTestsWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2036,11 +3147,11 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **projectPostModel** | [**ProjectPostModel**](ProjectPostModel.md) | | [optional] | +| **id** | **string** | Project internal (UUID) or global (integer) identifier | | ### Return type -[**ProjectModel**](ProjectModel.md) +void (empty response body) ### Authorization @@ -2048,27 +3159,26 @@ catch (ApiException e) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Project creator or admin system role is required | - | -| **201** | Success | - | -| **400** | Bad Request | - | -| **409** | Project with the same name already exists | - | +| **204** | No Content | - | +| **403** | Delete permission for AutoTest required | - | +| **404** | Can't find a Project with identifier | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **CreateProjectsAttribute** -> CustomAttributeModel CreateProjectsAttribute (string id, CustomAttributePostModel customAttributePostModel = null) + +# **DeleteProjectsAttribute** +> void DeleteProjectsAttribute (string id, Guid attributeId) -Create project attribute +Delete project attribute -
Use case
User sets attribute parameters (listed in request example) and runs method execution
System search project
System creates attribute and relates it to the project
System returns project attribute properties (example listed in response parameters) +
Use case
User sets project identifier and runs method execution
User sets attribute identifier
User runs method execution
System search project
System search and delete attribute
System returns no content response ### Example ```csharp @@ -2081,7 +3191,7 @@ using TestIt.Client.Model; namespace Example { - public class CreateProjectsAttributeExample + public class DeleteProjectsAttributeExample { public static void Main() { @@ -2097,17 +3207,16 @@ namespace Example HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier - var customAttributePostModel = new CustomAttributePostModel(); // CustomAttributePostModel | (optional) + var attributeId = "attributeId_example"; // Guid | Project attribute internal (UUID) try { - // Create project attribute - CustomAttributeModel result = apiInstance.CreateProjectsAttribute(id, customAttributePostModel); - Debug.WriteLine(result); + // Delete project attribute + apiInstance.DeleteProjectsAttribute(id, attributeId); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.CreateProjectsAttribute: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.DeleteProjectsAttribute: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2116,21 +3225,18 @@ namespace Example } ``` -#### Using the CreateProjectsAttributeWithHttpInfo variant +#### Using the DeleteProjectsAttributeWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Create project attribute - ApiResponse response = apiInstance.CreateProjectsAttributeWithHttpInfo(id, customAttributePostModel); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); + // Delete project attribute + apiInstance.DeleteProjectsAttributeWithHttpInfo(id, attributeId); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.CreateProjectsAttributeWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.DeleteProjectsAttributeWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2141,11 +3247,11 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **id** | **string** | Project internal (UUID) or global (integer) identifier | | -| **customAttributePostModel** | [**CustomAttributePostModel**](CustomAttributePostModel.md) | | [optional] | +| **attributeId** | **Guid** | Project attribute internal (UUID) | | ### Return type -[**CustomAttributeModel**](CustomAttributeModel.md) +void (empty response body) ### Authorization @@ -2153,29 +3259,27 @@ catch (ApiException e) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **409** | <br>`CustomAttribute.Name` or `CustomAttribute.Id` are not unique in attributes schemes <br>`CustomAttributeOptionModel.Id` or `CustomAttributeOptionModel.Value` are not unique in `attributesScheme.Options` | - | -| **400** | <br>- Attribute is `null` <br>- Priority is invalid <br>- Attribute with `Options` type must have an options <br>- ID is not `null` <br>- Option ID is not `null` | - | -| **403** | Update permission for project settings is required | - | +| **204** | Successful operation | - | | **404** | Project with provided ID was not found | - | -| **422** | Cannot add new attribute from template which is in use | - | -| **201** | Success | - | +| **400** | <br>- Project ID is invalid <br>- Project attribute ID is invalid <br>- Attribute is empty | - | +| **403** | Update permission for project settings is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **DeleteCustomAttributeTestPlanProjectRelations** -> void DeleteCustomAttributeTestPlanProjectRelations (string id, Guid attributeId) + +# **Export** +> FileParameter Export (string id, bool? includeAttachments = null, ProjectExportQueryModel projectExportQueryModel = null) -Delete attribute from project's test plans +Export project as JSON file -
Use case
User sets project internal or global identifier and attribute identifier
User runs method execution
System updates project and delete attribute from project for test plans
System returns no content response +
This method exports the selected project or its part (sections, work items) to a `.json` file.
In the request body, you can specify sections and test cases to be exported.
Example of a request to export two sections and two test cases:
``` curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" ```
In the response, you get:
- A `.zip` file with attachments and a.json file if you enable attachments export.
- A `.json` file with the project if you do not enable attachments export. ### Example ```csharp @@ -2188,7 +3292,7 @@ using TestIt.Client.Model; namespace Example { - public class DeleteCustomAttributeTestPlanProjectRelationsExample + public class ExportExample { public static void Main() { @@ -2203,17 +3307,19 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier - var attributeId = "attributeId_example"; // Guid | + var id = "id_example"; // string | Specifies the ID of the project you want to export. + var includeAttachments = false; // bool? | Enables attachment export. (optional) (default to false) + var projectExportQueryModel = new ProjectExportQueryModel(); // ProjectExportQueryModel | (optional) try { - // Delete attribute from project's test plans - apiInstance.DeleteCustomAttributeTestPlanProjectRelations(id, attributeId); + // Export project as JSON file + FileParameter result = apiInstance.Export(id, includeAttachments, projectExportQueryModel); + Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.DeleteCustomAttributeTestPlanProjectRelations: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.Export: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2222,18 +3328,21 @@ namespace Example } ``` -#### Using the DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfo variant +#### Using the ExportWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Delete attribute from project's test plans - apiInstance.DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfo(id, attributeId); + // Export project as JSON file + ApiResponse response = apiInstance.ExportWithHttpInfo(id, includeAttachments, projectExportQueryModel); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ExportWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2243,12 +3352,13 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **id** | **string** | Project internal (UUID) or global (integer) identifier | | -| **attributeId** | **Guid** | | | +| **id** | **string** | Specifies the ID of the project you want to export. | | +| **includeAttachments** | **bool?** | Enables attachment export. | [optional] [default to false] | +| **projectExportQueryModel** | [**ProjectExportQueryModel**](ProjectExportQueryModel.md) | | [optional] | ### Return type -void (empty response body) +[**FileParameter**](FileParameter.md) ### Authorization @@ -2256,25 +3366,25 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **404** | Not Found | - | +| **200** | Success | - | | **403** | Update permission for project settings is required | - | -| **204** | Success | - | +| **400** | Root section was not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **DeleteProject** -> void DeleteProject (string id) - -Delete project + +# **ExportProjectJson** +> Guid ExportProjectJson (string id, long? timeZoneOffsetInMinutes = null, ProjectExportQueryModel projectExportQueryModel = null) -
Use case:
1. User sets project internal or global identifier and runs method execution
2. System searches and moves requested project to archive
3. System responds with no content (204) result +Export project as JSON file in background job ### Example ```csharp @@ -2287,7 +3397,7 @@ using TestIt.Client.Model; namespace Example { - public class DeleteProjectExample + public class ExportProjectJsonExample { public static void Main() { @@ -2303,15 +3413,18 @@ namespace Example HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier + var timeZoneOffsetInMinutes = 789L; // long? | (optional) + var projectExportQueryModel = new ProjectExportQueryModel(); // ProjectExportQueryModel | (optional) try { - // Delete project - apiInstance.DeleteProject(id); + // Export project as JSON file in background job + Guid result = apiInstance.ExportProjectJson(id, timeZoneOffsetInMinutes, projectExportQueryModel); + Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.DeleteProject: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ExportProjectJson: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2320,18 +3433,21 @@ namespace Example } ``` -#### Using the DeleteProjectWithHttpInfo variant +#### Using the ExportProjectJsonWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Delete project - apiInstance.DeleteProjectWithHttpInfo(id); + // Export project as JSON file in background job + ApiResponse response = apiInstance.ExportProjectJsonWithHttpInfo(id, timeZoneOffsetInMinutes, projectExportQueryModel); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.DeleteProjectWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ExportProjectJsonWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2342,10 +3458,12 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **id** | **string** | Project internal (UUID) or global (integer) identifier | | +| **timeZoneOffsetInMinutes** | **long?** | | [optional] | +| **projectExportQueryModel** | [**ProjectExportQueryModel**](ProjectExportQueryModel.md) | | [optional] | ### Return type -void (empty response body) +**Guid** ### Authorization @@ -2353,26 +3471,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | -| **404** | Project with provided ID does not exists | - | -| **403** | Delete permission for projects is required | - | +| **403** | Update permission for project settings is required | - | +| **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **DeleteProjectAutoTests** -> void DeleteProjectAutoTests (string id) - -Delete project + +# **ExportProjectWithTestPlansJson** +> Guid ExportProjectWithTestPlansJson (string id, long? timeZoneOffsetInMinutes = null, ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = null) -
Use case
User sets project internal or global identifier
User runs method execution
System delete all autotests from project
System returns no content response +Export project as JSON file with test plans in background job ### Example ```csharp @@ -2385,7 +3500,7 @@ using TestIt.Client.Model; namespace Example { - public class DeleteProjectAutoTestsExample + public class ExportProjectWithTestPlansJsonExample { public static void Main() { @@ -2401,15 +3516,18 @@ namespace Example HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier + var timeZoneOffsetInMinutes = 789L; // long? | (optional) + var projectExportWithTestPlansPostModel = new ProjectExportWithTestPlansPostModel(); // ProjectExportWithTestPlansPostModel | (optional) try { - // Delete project - apiInstance.DeleteProjectAutoTests(id); + // Export project as JSON file with test plans in background job + Guid result = apiInstance.ExportProjectWithTestPlansJson(id, timeZoneOffsetInMinutes, projectExportWithTestPlansPostModel); + Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.DeleteProjectAutoTests: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ExportProjectWithTestPlansJson: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2418,18 +3536,21 @@ namespace Example } ``` -#### Using the DeleteProjectAutoTestsWithHttpInfo variant +#### Using the ExportProjectWithTestPlansJsonWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Delete project - apiInstance.DeleteProjectAutoTestsWithHttpInfo(id); + // Export project as JSON file with test plans in background job + ApiResponse response = apiInstance.ExportProjectWithTestPlansJsonWithHttpInfo(id, timeZoneOffsetInMinutes, projectExportWithTestPlansPostModel); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.DeleteProjectAutoTestsWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ExportProjectWithTestPlansJsonWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2440,10 +3561,12 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **id** | **string** | Project internal (UUID) or global (integer) identifier | | +| **timeZoneOffsetInMinutes** | **long?** | | [optional] | +| **projectExportWithTestPlansPostModel** | [**ProjectExportWithTestPlansPostModel**](ProjectExportWithTestPlansPostModel.md) | | [optional] | ### Return type -void (empty response body) +**Guid** ### Authorization @@ -2451,26 +3574,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | -| **403** | Delete permission for AutoTest required | - | -| **404** | Can't find a Project with identifier | - | +| **200** | Success | - | +| **403** | Update permission for project settings is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **DeleteProjectsAttribute** -> void DeleteProjectsAttribute (string id, Guid attributeId) - -Delete project attribute + +# **ExportProjectWithTestPlansZip** +> Guid ExportProjectWithTestPlansZip (string id, long? timeZoneOffsetInMinutes = null, ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = null) -
Use case
User sets project identifier and runs method execution
User sets attribute identifier
User runs method execution
System search project
System search and delete attribute
System returns no content response +Export project as Zip file with test plans in background job ### Example ```csharp @@ -2483,7 +3603,7 @@ using TestIt.Client.Model; namespace Example { - public class DeleteProjectsAttributeExample + public class ExportProjectWithTestPlansZipExample { public static void Main() { @@ -2499,16 +3619,18 @@ namespace Example HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier - var attributeId = "attributeId_example"; // Guid | Project attribute internal (UUID) + var timeZoneOffsetInMinutes = 789L; // long? | (optional) + var projectExportWithTestPlansPostModel = new ProjectExportWithTestPlansPostModel(); // ProjectExportWithTestPlansPostModel | (optional) try { - // Delete project attribute - apiInstance.DeleteProjectsAttribute(id, attributeId); + // Export project as Zip file with test plans in background job + Guid result = apiInstance.ExportProjectWithTestPlansZip(id, timeZoneOffsetInMinutes, projectExportWithTestPlansPostModel); + Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.DeleteProjectsAttribute: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ExportProjectWithTestPlansZip: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2517,18 +3639,21 @@ namespace Example } ``` -#### Using the DeleteProjectsAttributeWithHttpInfo variant +#### Using the ExportProjectWithTestPlansZipWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Delete project attribute - apiInstance.DeleteProjectsAttributeWithHttpInfo(id, attributeId); + // Export project as Zip file with test plans in background job + ApiResponse response = apiInstance.ExportProjectWithTestPlansZipWithHttpInfo(id, timeZoneOffsetInMinutes, projectExportWithTestPlansPostModel); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.DeleteProjectsAttributeWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ExportProjectWithTestPlansZipWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2539,11 +3664,12 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **id** | **string** | Project internal (UUID) or global (integer) identifier | | -| **attributeId** | **Guid** | Project attribute internal (UUID) | | +| **timeZoneOffsetInMinutes** | **long?** | | [optional] | +| **projectExportWithTestPlansPostModel** | [**ProjectExportWithTestPlansPostModel**](ProjectExportWithTestPlansPostModel.md) | | [optional] | ### Return type -void (empty response body) +**Guid** ### Authorization @@ -2551,27 +3677,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Successful operation | - | -| **400** | <br>- Project ID is invalid <br>- Project attribute ID is invalid <br>- Attribute is empty | - | | **403** | Update permission for project settings is required | - | -| **404** | Project with provided ID was not found | - | +| **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **Export** -> FileParameter Export (string id, bool? includeAttachments = null, ProjectExportQueryModel projectExportQueryModel = null) - -Export project as JSON file + +# **ExportProjectZip** +> Guid ExportProjectZip (string id, long? timeZoneOffsetInMinutes = null, ProjectExportQueryModel projectExportQueryModel = null) -
This method exports the selected project or its part (sections, work items) to a `.json` file.
In the request body, you can specify sections and test cases to be exported.
Example of a request to export two sections and two test cases:
curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\"
In the response, you get:
- A `.zip` file with attachments and a.json file if you enable attachments export.
- A `.json` file with the project if you do not enable attachments export. +Export project as Zip file in background job ### Example ```csharp @@ -2584,7 +3706,7 @@ using TestIt.Client.Model; namespace Example { - public class ExportExample + public class ExportProjectZipExample { public static void Main() { @@ -2599,19 +3721,19 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); - var id = "id_example"; // string | Specifies the ID of the project you want to export. - var includeAttachments = false; // bool? | Enables attachment export. (optional) (default to false) + var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier + var timeZoneOffsetInMinutes = 789L; // long? | (optional) var projectExportQueryModel = new ProjectExportQueryModel(); // ProjectExportQueryModel | (optional) try { - // Export project as JSON file - FileParameter result = apiInstance.Export(id, includeAttachments, projectExportQueryModel); + // Export project as Zip file in background job + Guid result = apiInstance.ExportProjectZip(id, timeZoneOffsetInMinutes, projectExportQueryModel); Debug.WriteLine(result); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.Export: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ExportProjectZip: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2620,21 +3742,21 @@ namespace Example } ``` -#### Using the ExportWithHttpInfo variant +#### Using the ExportProjectZipWithHttpInfo variant This returns an ApiResponse object which contains the response data, status code and headers. ```csharp try { - // Export project as JSON file - ApiResponse response = apiInstance.ExportWithHttpInfo(id, includeAttachments, projectExportQueryModel); + // Export project as Zip file in background job + ApiResponse response = apiInstance.ExportProjectZipWithHttpInfo(id, timeZoneOffsetInMinutes, projectExportQueryModel); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); } catch (ApiException e) { - Debug.Print("Exception when calling ProjectsApi.ExportWithHttpInfo: " + e.Message); + Debug.Print("Exception when calling ProjectsApi.ExportProjectZipWithHttpInfo: " + e.Message); Debug.Print("Status Code: " + e.ErrorCode); Debug.Print(e.StackTrace); } @@ -2644,13 +3766,13 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **id** | **string** | Specifies the ID of the project you want to export. | | -| **includeAttachments** | **bool?** | Enables attachment export. | [optional] [default to false] | +| **id** | **string** | Project internal (UUID) or global (integer) identifier | | +| **timeZoneOffsetInMinutes** | **long?** | | [optional] | | **projectExportQueryModel** | [**ProjectExportQueryModel**](ProjectExportQueryModel.md) | | [optional] | ### Return type -[**FileParameter**](FileParameter.md) +**Guid** ### Authorization @@ -2665,10 +3787,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **404** | Project with provided ID was not found | - | -| **200** | Success | - | | **403** | Update permission for project settings is required | - | -| **400** | Root section was not found | - | +| **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2772,9 +3892,9 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **404** | Project with provided ID was not found | - | | **400** | Root section was not found | - | | **403** | Update permission for project settings is required | - | -| **404** | Project with provided ID was not found | - | | **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2990,16 +4110,16 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **400** | Bad Request | - | +| **404** | <br>- Project with provided ID was not found <br>- Project attribute with provided ID was not found | - | | **403** | Read permission for test library is required | - | | **200** | Success | - | -| **404** | <br>- Project with provided ID was not found <br>- Project attribute with provided ID was not found | - | +| **400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **GetAttributesByProjectId** -> List<CustomAttributeModel> GetAttributesByProjectId (string id, bool? isDeleted = null) +> List<CustomAttributeModel> GetAttributesByProjectId (string id, DeletionState? isDeleted = null) Get project attributes @@ -3032,7 +4152,7 @@ namespace Example HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new ProjectsApi(httpClient, config, httpClientHandler); var id = "id_example"; // string | Project internal (UUID) or global (integer) identifier - var isDeleted = false; // bool? | If result must consist of only actual/deleted work items (optional) (default to false) + var isDeleted = (DeletionState) "Any"; // DeletionState? | (optional) try { @@ -3076,7 +4196,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **id** | **string** | Project internal (UUID) or global (integer) identifier | | -| **isDeleted** | **bool?** | If result must consist of only actual/deleted work items | [optional] [default to false] | +| **isDeleted** | **DeletionState?** | | [optional] | ### Return type @@ -3095,10 +4215,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **403** | Read permission for test library is required | - | +| **404** | Project with provided ID was not found | - | | **400** | Bad Request | - | | **200** | Success | - | -| **404** | Project with provided ID was not found | - | -| **403** | Read permission for test library is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3198,9 +4318,9 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **404** | Project with provided ID was not found | - | -| **403** | Read permission for test library is required | - | | **200** | Success | - | +| **403** | Read permission for test library is required | - | +| **404** | Project with provided ID was not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3300,10 +4420,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Read permission for configurations required | - | +| **200** | Success | - | | **404** | Project with provided ID was not found | - | | **400** | Bad Request | - | -| **200** | Success | - | +| **403** | Read permission for configurations required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3403,8 +4523,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | | **403** | Read permission for project settings is required | - | +| **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3504,10 +4624,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **400** | ID is invalid | - | +| **403** | Read permission for projects is required | - | | **404** | Project with provided ID was not found | - | | **200** | Success | - | -| **403** | Read permission for projects is required | - | +| **400** | ID is invalid | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3618,9 +4738,9 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **400** | Bad Request | - | | **403** | Read permission for test library is required | - | | **404** | Project with provided ID was not found | - | -| **400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3722,9 +4842,9 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **404** | Project with provided ID was not found | - | -| **200** | Success | - | | **403** | Read permission for test library is required | - | +| **200** | Success | - | +| **404** | Project with provided ID was not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3848,9 +4968,9 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| | **404** | Project with provided ID was not found | - | | **403** | Read permission for test result is required | - | +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3967,9 +5087,9 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| -| **404** | Project with provided ID was not found | - | | **400** | <br>- `orderBy` statement must have one `.` and no `,` characters <br>- `orderBy` statement has invalid length <br>- `orderBy` statement must have UUID as attribute key <br>- Search field was not found | - | | **403** | Read permission for test library is required | - | +| **404** | Project with provided ID was not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -3979,7 +5099,7 @@ catch (ApiException e) Import project from JSON file -
A project can only be exported to another TMS instance, different from the one it was imported from.
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. +
A project can only be exported to another TMS instance, different from the one it was imported from.
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 ```csharp @@ -4067,11 +5187,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **400** | Bad Request | - | -| **204** | Success | - | -| **409** | Entity with the same ID was already imported in other project | - | +| **204** | No Content | - | | **403** | Project creator or admin system role is required | - | | **413** | Multipart body length limit exceeded | - | +| **400** | Bad Request | - | +| **409** | Entity with the same ID was already imported in other project | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4172,9 +5292,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **413** | Multipart body length limit exceeded | - | -| **409** | Entity with same id already imported in other project | - | -| **204** | Success | - | +| **204** | No Content | - | | **403** | Update permission for project settings required | - | +| **409** | Entity with same id already imported in other project | - | | **404** | File not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4271,7 +5391,7 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | +| **204** | No Content | - | | **403** | Update permission for projects is required | - | | **404** | Project with provided ID was not found | - | @@ -4494,8 +5614,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Read permission for project is required | - | | **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **403** | Read permission for project is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4593,7 +5713,7 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | +| **204** | No Content | - | | **403** | Update permission for project settings is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4690,11 +5810,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Update permission for projects is required | - | -| **204** | Success | - | +| **204** | No Content | - | | **400** | <br>- ID is invalid <br>- Field is required | - | -| **409** | Project with the same name already exists | - | +| **403** | Update permission for projects is required | - | | **404** | Project with provided ID was not found | - | +| **409** | Project with the same name already exists | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -4790,7 +5910,7 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | +| **204** | No Content | - | | **403** | Update permission for project settings is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/README.MD b/docs/README.MD index e8237efe..fd374738 100644 --- a/docs/README.MD +++ b/docs/README.MD @@ -1,5 +1,7 @@ + ## Documentation for Models + - [Model.ApiV2AttachmentsPostRequest](ApiV2AttachmentsPostRequest.md) - [Model.AttachmentChangeViewModel](AttachmentChangeViewModel.md) - [Model.AttachmentChangeViewModelArrayWorkItemChangedFieldViewModel](AttachmentChangeViewModelArrayWorkItemChangedFieldViewModel.md) - [Model.AttachmentModel](AttachmentModel.md) @@ -28,6 +30,10 @@ - [Model.AutotestsExtractionModel](AutotestsExtractionModel.md) - [Model.AutotestsSelectModel](AutotestsSelectModel.md) - [Model.AvailableTestResultOutcome](AvailableTestResultOutcome.md) + - [Model.BackgroundJobAttachmentModel](BackgroundJobAttachmentModel.md) + - [Model.BackgroundJobModel](BackgroundJobModel.md) + - [Model.BackgroundJobState](BackgroundJobState.md) + - [Model.BackgroundJobType](BackgroundJobType.md) - [Model.BooleanNullableTestPlanChangedFieldViewModel](BooleanNullableTestPlanChangedFieldViewModel.md) - [Model.BooleanTestPlanChangedFieldViewModel](BooleanTestPlanChangedFieldViewModel.md) - [Model.BooleanWorkItemChangedFieldViewModel](BooleanWorkItemChangedFieldViewModel.md) @@ -50,8 +56,8 @@ - [Model.CustomAttributeTemplateSearchQueryModel](CustomAttributeTemplateSearchQueryModel.md) - [Model.CustomAttributeTestPlanProjectRelationPutModel](CustomAttributeTestPlanProjectRelationPutModel.md) - [Model.CustomAttributeTypesEnum](CustomAttributeTypesEnum.md) - - [Model.DateRangeModel](DateRangeModel.md) - [Model.DateTimeRangeSelectorModel](DateTimeRangeSelectorModel.md) + - [Model.DeletionState](DeletionState.md) - [Model.ExternalLinkModel](ExternalLinkModel.md) - [Model.FailureCategoryModel](FailureCategoryModel.md) - [Model.FailureClassModel](FailureClassModel.md) @@ -82,6 +88,8 @@ - [Model.NotificationModel](NotificationModel.md) - [Model.NotificationQueryFilterModel](NotificationQueryFilterModel.md) - [Model.NotificationTypeModel](NotificationTypeModel.md) + - [Model.Operation](Operation.md) + - [Model.ParameterFilterModel](ParameterFilterModel.md) - [Model.ParameterGroupModel](ParameterGroupModel.md) - [Model.ParameterIterationModel](ParameterIterationModel.md) - [Model.ParameterModel](ParameterModel.md) @@ -100,6 +108,7 @@ - [Model.ProjectPostModel](ProjectPostModel.md) - [Model.ProjectPutModel](ProjectPutModel.md) - [Model.ProjectShortestModel](ProjectShortestModel.md) + - [Model.ProjectTestPlansFilterModel](ProjectTestPlansFilterModel.md) - [Model.ProjectsFilterModel](ProjectsFilterModel.md) - [Model.PublicTestPointModel](PublicTestPointModel.md) - [Model.PublicTestRunModel](PublicTestRunModel.md) @@ -140,7 +149,6 @@ - [Model.TestPlanModel](TestPlanModel.md) - [Model.TestPlanPostModel](TestPlanPostModel.md) - [Model.TestPlanPutModel](TestPlanPutModel.md) - - [Model.TestPlanSearchQueryModel](TestPlanSearchQueryModel.md) - [Model.TestPlanShortModel](TestPlanShortModel.md) - [Model.TestPlanStatusModel](TestPlanStatusModel.md) - [Model.TestPlanWithAnalyticModel](TestPlanWithAnalyticModel.md) @@ -152,11 +160,13 @@ - [Model.TestPointFilterModel](TestPointFilterModel.md) - [Model.TestPointPutModel](TestPointPutModel.md) - [Model.TestPointResultModel](TestPointResultModel.md) + - [Model.TestPointSelectModel](TestPointSelectModel.md) - [Model.TestPointSelector](TestPointSelector.md) - [Model.TestPointShortGetModel](TestPointShortGetModel.md) - [Model.TestPointShortModel](TestPointShortModel.md) - [Model.TestPointStatus](TestPointStatus.md) - [Model.TestPointWithLastResultModel](TestPointWithLastResultModel.md) + - [Model.TestPointsExtractionModel](TestPointsExtractionModel.md) - [Model.TestResultChangeViewModel](TestResultChangeViewModel.md) - [Model.TestResultChangeViewModelTestPlanChangedFieldViewModel](TestResultChangeViewModelTestPlanChangedFieldViewModel.md) - [Model.TestResultChronologyModel](TestResultChronologyModel.md) @@ -193,6 +203,7 @@ - [Model.TestRunV2PutModel](TestRunV2PutModel.md) - [Model.TestSuiteChangeViewModel](TestSuiteChangeViewModel.md) - [Model.TestSuiteChangeViewModelTestPlanChangedFieldViewModel](TestSuiteChangeViewModelTestPlanChangedFieldViewModel.md) + - [Model.TestSuiteType](TestSuiteType.md) - [Model.TestSuiteV2GetModel](TestSuiteV2GetModel.md) - [Model.TestSuiteV2PostModel](TestSuiteV2PostModel.md) - [Model.TestSuiteV2PutModel](TestSuiteV2PutModel.md) @@ -233,4 +244,4 @@ - [Model.WorkItemStepChangeViewModel](WorkItemStepChangeViewModel.md) - [Model.WorkItemStepChangeViewModelArrayWorkItemChangedFieldViewModel](WorkItemStepChangeViewModelArrayWorkItemChangedFieldViewModel.md) - [Model.WorkItemVersionModel](WorkItemVersionModel.md) - - [Model.WorkItemsExtractionModel](WorkItemsExtractionModel.md) \ No newline at end of file + - [Model.WorkItemsExtractionModel](WorkItemsExtractionModel.md) diff --git a/docs/SectionsApi.md b/docs/SectionsApi.md index de17ca28..d5c856b8 100644 --- a/docs/SectionsApi.md +++ b/docs/SectionsApi.md @@ -4,6 +4,7 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |--------|--------------|-------------| +| [**ApiV2SectionsIdPatch**](SectionsApi.md#apiv2sectionsidpatch) | **PATCH** /api/v2/sections/{id} | Patch section | | [**CreateSection**](SectionsApi.md#createsection) | **POST** /api/v2/sections | Create section | | [**DeleteSection**](SectionsApi.md#deletesection) | **DELETE** /api/v2/sections/{id} | Delete section | | [**GetSectionById**](SectionsApi.md#getsectionbyid) | **GET** /api/v2/sections/{id} | Get section | @@ -12,6 +13,105 @@ All URIs are relative to *http://localhost* | [**Rename**](SectionsApi.md#rename) | **POST** /api/v2/sections/rename | Rename section | | [**UpdateSection**](SectionsApi.md#updatesection) | **PUT** /api/v2/sections | Update section | + +# **ApiV2SectionsIdPatch** +> void ApiV2SectionsIdPatch (Guid id, List operation = null) + +Patch section + +See RFC 6902: JavaScript Object Notation (JSON) Patch for details + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2SectionsIdPatchExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new SectionsApi(httpClient, config, httpClientHandler); + var id = "id_example"; // Guid | Section internal (UUID) identifier + var operation = new List(); // List | (optional) + + try + { + // Patch section + apiInstance.ApiV2SectionsIdPatch(id, operation); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SectionsApi.ApiV2SectionsIdPatch: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2SectionsIdPatchWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Patch section + apiInstance.ApiV2SectionsIdPatchWithHttpInfo(id, operation); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling SectionsApi.ApiV2SectionsIdPatchWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | Section internal (UUID) identifier | | +| **operation** | [**List<Operation>**](Operation.md) | | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **403** | Update permission for section is required | - | +| **204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **CreateSection** > SectionWithStepsModel CreateSection (SectionPostModel sectionPostModel = null) @@ -108,10 +208,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **201** | Created | - | +| **401** | Unauthorized | - | | **400** | Cannot create section without parent ID | - | -| **201** | Success | - | | **403** | Update permission for test library is required | - | -| **401** | Unauthorized | - | | **404** | Parent section with provided ID was not found | - | | **409** | Section with the same name already exists in the parent section | - | @@ -209,11 +309,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | -| **400** | Bad Request | - | | **409** | Conflict | - | | **401** | Unauthorized | - | | **403** | Delete permission for test library is required | - | +| **204** | No Content | - | +| **400** | Bad Request | - | | **404** | Section with provided ID was not found | - | | **422** | Cannot delete root section | - | @@ -221,7 +321,7 @@ void (empty response body) # **GetSectionById** -> SectionWithStepsModel GetSectionById (Guid id, bool? isDeleted = null) +> SectionWithStepsModel GetSectionById (Guid id, DeletionState? isDeleted = null) Get section @@ -254,7 +354,7 @@ namespace Example HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new SectionsApi(httpClient, config, httpClientHandler); var id = "id_example"; // Guid | Section internal (UUID) identifier - var isDeleted = false; // bool? | Requested section is deleted (optional) (default to false) + var isDeleted = (DeletionState) "Any"; // DeletionState? | (optional) try { @@ -298,7 +398,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **id** | **Guid** | Section internal (UUID) identifier | | -| **isDeleted** | **bool?** | Requested section is deleted | [optional] [default to false] | +| **isDeleted** | **DeletionState?** | | [optional] | ### Return type @@ -317,11 +417,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **401** | Unauthorized | - | | **400** | Bad Request | - | +| **404** | Section with provided ID was not found | - | | **200** | Success | - | -| **401** | Unauthorized | - | | **403** | Read permission for test library is required | - | -| **404** | Section with provided ID was not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -437,11 +537,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **403** | Read permission for test library is required | - | | **404** | Section with provided ID was not found | - | -| **400** | <br>- `orderBy` statement must have one `.` and no `,` symbols <br>- `orderBy` statement has invalid length <br>- `orderBy` statement must have UUID as attribute key <br>- Search field was not found | - | +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| | **401** | Unauthorized | - | -| **403** | Read permission for test library is required | - | +| **400** | <br>- `orderBy` statement must have one `.` and no `,` symbols <br>- `orderBy` statement has invalid length <br>- `orderBy` statement must have UUID as attribute key <br>- Search field was not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -535,8 +635,8 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **204** | No Content | - | | **403** | Update permission for test library is required | - | -| **204** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -633,10 +733,10 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **403** | Update permission for test library is required | - | +| **204** | No Content | - | +| **409** | Section with the same name already exists in the parent section | - | | **401** | Unauthorized | - | | **404** | Section with provided ID was not found | - | -| **409** | Section with the same name already exists in the parent section | - | -| **204** | Success | - | | **422** | Root section cannot be renamed | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -733,12 +833,12 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **400** | <br>- ID is invalid <br>- Root section cannot be create | - | +| **204** | No Content | - | | **409** | Section with the same name already exists in the parent section | - | +| **400** | <br>- ID is invalid <br>- Root section cannot be create | - | +| **403** | Update permission for test library is required | - | | **422** | <br>- Root section cannot be edited <br>- Parent ID cannot be changed <br>- Project ID cannot be changed | - | -| **204** | Success | - | | **401** | Unauthorized | - | -| **403** | Update permission for test library is required | - | | **404** | <br>- Section cannot be found <br>- Parent section cannot be found <br>- Project cannot be found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/SharedStepReferenceModel.md b/docs/SharedStepReferenceModel.md index 14f7c079..6c2d01a5 100644 --- a/docs/SharedStepReferenceModel.md +++ b/docs/SharedStepReferenceModel.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **CreatedDate** | **DateTime?** | | [optional] **ModifiedDate** | **DateTime?** | | [optional] **State** | **string** | | [optional] -**Priority** | **WorkItemPriorityModel** | | [optional] +**Priority** | **WorkItemPriorityModel** | | **IsDeleted** | **bool** | | [optional] **VersionId** | **Guid** | used for versioning changes in workitem | [optional] **IsAutomated** | **bool** | | [optional] diff --git a/docs/StepResultModel.md b/docs/StepResultModel.md index e7ee42bb..3424e9f7 100644 --- a/docs/StepResultModel.md +++ b/docs/StepResultModel.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Outcome** | **string** | | [optional] **SharedStepVersionId** | **Guid?** | | [optional] **SharedStepResults** | [**List<SharedStepResultModel>**](SharedStepResultModel.md) | | [optional] +**Comment** | [**StepCommentModel**](StepCommentModel.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TagsApi.md b/docs/TagsApi.md index 4cae1e7d..2ffcc4a1 100644 --- a/docs/TagsApi.md +++ b/docs/TagsApi.md @@ -207,8 +207,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Successful operation | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| | **401** | Unauthorized | - | +| **200** | Successful operation | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| | **400** | <br>orderByStatement must have one '.' and no ',' symbols <br>orderByStatement has invalid length <br>orderByStatement must have uuid as attribute key <br>Search field not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/TestPlanModel.md b/docs/TestPlanModel.md index 7a195e43..6c7b21e0 100644 --- a/docs/TestPlanModel.md +++ b/docs/TestPlanModel.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | **TestPlanStatusModel** | | [optional] +**Status** | **TestPlanStatusModel** | | **StartedOn** | **DateTime?** | Set when test plan is starter (status changed to: In Progress) | [optional] **CompletedOn** | **DateTime?** | set when test plan status is completed (status changed to: Completed) | [optional] **CreatedDate** | **DateTime?** | | [optional] diff --git a/docs/TestPlanWithAnalyticModel.md b/docs/TestPlanWithAnalyticModel.md index a06b6632..93468e46 100644 --- a/docs/TestPlanWithAnalyticModel.md +++ b/docs/TestPlanWithAnalyticModel.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Analytic** | [**TestPointAnalyticResult**](TestPointAnalyticResult.md) | | [optional] -**Status** | **TestPlanStatusModel** | | [optional] +**Status** | **TestPlanStatusModel** | | **StartedOn** | **DateTime?** | Set when test plan is starter (status changed to: In Progress) | [optional] **CompletedOn** | **DateTime?** | set when test plan status is completed (status changed to: Completed) | [optional] **CreatedDate** | **DateTime?** | | [optional] diff --git a/docs/TestPlanWithTestSuiteTreeModel.md b/docs/TestPlanWithTestSuiteTreeModel.md index c73c3525..4bf905a2 100644 --- a/docs/TestPlanWithTestSuiteTreeModel.md +++ b/docs/TestPlanWithTestSuiteTreeModel.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **TestSuites** | [**List<TestSuiteWithChildrenModel>**](TestSuiteWithChildrenModel.md) | | [optional] -**Status** | **TestPlanStatusModel** | | [optional] +**Status** | **TestPlanStatusModel** | | **StartedOn** | **DateTime?** | Set when test plan is starter (status changed to: In Progress) | [optional] **CompletedOn** | **DateTime?** | set when test plan status is completed (status changed to: Completed) | [optional] **CreatedDate** | **DateTime?** | | [optional] diff --git a/docs/TestPlansApi.md b/docs/TestPlansApi.md index 7df1c920..3ea9e559 100644 --- a/docs/TestPlansApi.md +++ b/docs/TestPlansApi.md @@ -13,8 +13,11 @@ All URIs are relative to *http://localhost* | [**ApiV2TestPlansIdExportTestResultHistoryXlsxPost**](TestPlansApi.md#apiv2testplansidexporttestresulthistoryxlsxpost) | **POST** /api/v2/testPlans/{id}/export/testResultHistory/xlsx | Export TestResults history from TestPlan in xls format | | [**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 | | [**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 | +| [**ApiV2TestPlansIdTestPointsTesterUserIdPost**](TestPlansApi.md#apiv2testplansidtestpointstesteruseridpost) | **POST** /api/v2/testPlans/{id}/testPoints/tester/{userId} | Assign user as a tester to multiple test points | | [**ApiV2TestPlansIdTestRunsGet**](TestPlansApi.md#apiv2testplansidtestrunsget) | **GET** /api/v2/testPlans/{id}/testRuns | Get TestRuns of TestPlan | | [**ApiV2TestPlansIdTestRunsSearchPost**](TestPlansApi.md#apiv2testplansidtestrunssearchpost) | **POST** /api/v2/testPlans/{id}/testRuns/search | Search TestRuns of TestPlan | | [**ApiV2TestPlansIdTestRunsTestResultsLastModifiedModifiedDateGet**](TestPlansApi.md#apiv2testplansidtestrunstestresultslastmodifiedmodifieddateget) | **GET** /api/v2/testPlans/{id}/testRuns/testResults/lastModified/modifiedDate | Get last modification date of test plan's test results | @@ -123,11 +126,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **422** | Shared steps cannot be added to test suite | - | | **204** | Successful operation | - | -| **401** | Unauthorized | - | | **404** | Test suite with provided ID was not found | - | +| **422** | Shared steps cannot be added to test suite | - | | **403** | Update permission for test plan is required | - | +| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -225,12 +228,12 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **400** | <br>TestPlan is locked <br>Some of configurations do not exist in the project, or they are not active | - | -| **422** | Can't put a SharedStep in the TestSuite | - | +| **404** | <br>Can't find a TestPlan with id <br>Some of workItems do not exist | - | | **204** | Successful operation | - | +| **422** | Can't put a SharedStep in the TestSuite | - | +| **400** | <br>TestPlan is locked <br>Some of configurations do not exist in the project, or they are not active | - | | **401** | Unauthorized | - | | **403** | Update permission for TestPlan required | - | -| **404** | <br>Can't find a TestPlan with id <br>Some of workItems do not exist | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -331,8 +334,8 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **404** | Can't find a Project with id | - | -| **400** | Bad Request | - | | **200** | Successful operation | - | +| **400** | Bad Request | - | | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -433,8 +436,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Update permission for test plan is required | - | | **200** | Success | - | +| **403** | Update permission for test plan is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -535,10 +538,10 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | +| **403** | Read permission for test plan required | - | +| **404** | TestPlan not found | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | -| **404** | TestPlan not found | - | -| **403** | Read permission for test plan required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -642,11 +645,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Successful operation | - | -| **400** | Bad Request | - | | **401** | Unauthorized | - | +| **400** | Bad Request | - | | **403** | Read permission for test plan required | - | | **404** | TestPlan not found | - | +| **200** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -754,11 +757,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **404** | TestPlan not found | - | | **200** | Successful operation | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Read permission for test plan required | - | -| **404** | TestPlan not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -868,11 +871,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **404** | TestPlan not found | - | | **401** | Unauthorized | - | -| **400** | Bad Request | - | -| **200** | Successful operation | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| | **403** | Read permission for test plan required | - | -| **404** | TestPlan not found | - | +| **200** | Successful operation | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -979,8 +982,107 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | -| **403** | Read permission for test plan is required | - | | **401** | Unauthorized | - | +| **403** | Read permission for test plan is required | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ApiV2TestPlansIdPatch** +> void ApiV2TestPlansIdPatch (Guid id, List operation = null) + +Patch test plan + +See RFC 6902: JavaScript Object Notation (JSON) Patch for details + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2TestPlansIdPatchExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new TestPlansApi(httpClient, config, httpClientHandler); + var id = "id_example"; // Guid | Unique ID of the test plan + var operation = new List(); // List | (optional) + + try + { + // Patch test plan + apiInstance.ApiV2TestPlansIdPatch(id, operation); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TestPlansApi.ApiV2TestPlansIdPatch: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2TestPlansIdPatchWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Patch test plan + apiInstance.ApiV2TestPlansIdPatchWithHttpInfo(id, operation); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TestPlansApi.ApiV2TestPlansIdPatchWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | Unique ID of the test plan | | +| **operation** | [**List<Operation>**](Operation.md) | | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | +| **403** | Update permission for test plan is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1092,11 +1194,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | -| **400** | Bad Request | - | +| **404** | TestPlan not found | - | | **403** | Read permission for test plan required | - | | **200** | Successful operation | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| -| **404** | TestPlan not found | - | +| **400** | Bad Request | - | +| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1201,6 +1303,210 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ApiV2TestPlansIdTestPointsTesterDelete** +> List<Guid> ApiV2TestPlansIdTestPointsTesterDelete (string id, TestPointSelectModel testPointSelectModel = null) + +Unassign users from multiple test points + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2TestPlansIdTestPointsTesterDeleteExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new TestPlansApi(httpClient, config, httpClientHandler); + var id = "id_example"; // string | Unique or global ID of the test plan + var testPointSelectModel = new TestPointSelectModel(); // TestPointSelectModel | (optional) + + try + { + // Unassign users from multiple test points + List result = apiInstance.ApiV2TestPlansIdTestPointsTesterDelete(id, testPointSelectModel); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TestPlansApi.ApiV2TestPlansIdTestPointsTesterDelete: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2TestPlansIdTestPointsTesterDeleteWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Unassign users from multiple test points + ApiResponse> response = apiInstance.ApiV2TestPlansIdTestPointsTesterDeleteWithHttpInfo(id, testPointSelectModel); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TestPlansApi.ApiV2TestPlansIdTestPointsTesterDeleteWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **string** | Unique or global ID of the test plan | | +| **testPointSelectModel** | [**TestPointSelectModel**](TestPointSelectModel.md) | | [optional] | + +### Return type + +**List** + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | +| **403** | Update permission for test plans is required | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ApiV2TestPlansIdTestPointsTesterUserIdPost** +> List<Guid> ApiV2TestPlansIdTestPointsTesterUserIdPost (string id, Guid userId, TestPointSelectModel testPointSelectModel = null) + +Assign user as a tester to multiple test points + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2TestPlansIdTestPointsTesterUserIdPostExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new TestPlansApi(httpClient, config, httpClientHandler); + var id = "id_example"; // string | Unique or global ID of the test plan + var userId = "userId_example"; // Guid | Unique ID of the user + var testPointSelectModel = new TestPointSelectModel(); // TestPointSelectModel | (optional) + + try + { + // Assign user as a tester to multiple test points + List result = apiInstance.ApiV2TestPlansIdTestPointsTesterUserIdPost(id, userId, testPointSelectModel); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TestPlansApi.ApiV2TestPlansIdTestPointsTesterUserIdPost: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2TestPlansIdTestPointsTesterUserIdPostWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Assign user as a tester to multiple test points + ApiResponse> response = apiInstance.ApiV2TestPlansIdTestPointsTesterUserIdPostWithHttpInfo(id, userId, testPointSelectModel); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TestPlansApi.ApiV2TestPlansIdTestPointsTesterUserIdPostWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **string** | Unique or global ID of the test plan | | +| **userId** | **Guid** | Unique ID of the user | | +| **testPointSelectModel** | [**TestPointSelectModel**](TestPointSelectModel.md) | | [optional] | + +### Return type + +**List** + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | +| **403** | Update permission for test plans is required | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **ApiV2TestPlansIdTestRunsGet** > List<TestRunModel> ApiV2TestPlansIdTestRunsGet (string id, bool? notStarted = null, bool? inProgress = null, bool? stopped = null, bool? completed = null, int? skip = null, int? take = null, string orderBy = null, string searchField = null, string searchValue = null) @@ -1316,8 +1622,8 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| -| **403** | Read permission for test plan is required | - | | **401** | Unauthorized | - | +| **403** | Read permission for test plan is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1430,8 +1736,8 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **403** | Read permission for test plan is required | - | -| **401** | Unauthorized | - | | **200** | Successful operation | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1529,9 +1835,9 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Last modification date exists | - | -| **204** | Last modification date does not exist | - | | **403** | Read permission for test plan is required | - | +| **204** | Last modification date does not exist | - | +| **200** | Last modification date exists | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1627,11 +1933,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Read permission for test plan required | - | -| **401** | Unauthorized | - | -| **404** | TestPlan not found | - | | **200** | Successful operation | - | | **400** | Bad Request | - | +| **401** | Unauthorized | - | +| **403** | Read permission for test plan required | - | +| **404** | TestPlan not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1734,8 +2040,8 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful operation | - | -| **404** | Project not found | - | | **403** | Read permission for project required | - | +| **404** | Project not found | - | | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1937,9 +2243,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Successful operation | - | +| **400** | <br>Change status from New to Completed forbidden <br>Change status from Completed to Completed forbidden | - | | **401** | Unauthorized | - | | **403** | Update permission for test plan required | - | -| **400** | <br>Change status from New to Completed forbidden <br>Change status from Completed to Completed forbidden | - | | **404** | Can't find a TestPlan with id! | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2040,11 +2346,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **403** | Update permission for test plan required | - | | **201** | Successful operation | - | +| **400** | <br>Field is required <br>Tags must be no more than 10! | - | | **401** | Unauthorized | - | -| **403** | Update permission for test plan required | - | | **409** | TestPlan with the same name already exists! | - | -| **400** | <br>Field is required <br>Tags must be no more than 10! | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2140,10 +2446,10 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Delete permission for test plan required | - | -| **404** | Can't find a TestPlan with id! | - | -| **401** | Unauthorized | - | | **204** | Successful operation | - | +| **401** | Unauthorized | - | +| **404** | Can't find a TestPlan with id! | - | +| **403** | Delete permission for test plan required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2243,10 +2549,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | -| **403** | Read permission for test plan required | - | | **404** | Can't find a Project with id | - | | **200** | Successful operation | - | +| **403** | Read permission for test plan required | - | +| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2346,10 +2652,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Successful operation | - | +| **403** | Read permission for test plan required | - | | **404** | Can't find a TestRun with id! | - | +| **200** | Successful operation | - | | **401** | Unauthorized | - | -| **403** | Read permission for test plan required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2445,10 +2751,10 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Successful operation | - | | **400** | <br>Change status from New to Paused forbidden <br>Change status from Paused to Paused forbidden <br>Change status from Completed to Paused forbidden | - | -| **401** | Unauthorized | - | | **403** | Update permission for test plan required | - | +| **401** | Unauthorized | - | +| **204** | Successful operation | - | | **404** | Can't find a TestPlan with id! | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2545,8 +2851,8 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | | **204** | Successful operation | - | +| **401** | Unauthorized | - | | **403** | Update permission for test plan required | - | | **404** | Can't find a TestPlan with id! | - | @@ -2644,10 +2950,10 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Successful operation | - | -| **401** | Unauthorized | - | | **404** | Can't find a TestPlan with id! | - | | **403** | Update permission for test plan required | - | +| **204** | Successful operation | - | +| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2743,13 +3049,13 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | -| **409** | TestPlan with the same name already exists! | - | -| **422** | Can't change ProjectId | - | | **403** | Update permission for test plan required | - | -| **404** | Can't find a TestPlan with id! | - | | **204** | Successful operation | - | | **400** | <br>Field is required <br>Tags must be no more than 10! <br>StartDate can't be more than EndDate! | - | +| **401** | Unauthorized | - | +| **404** | Can't find a TestPlan with id! | - | +| **409** | TestPlan with the same name already exists! | - | +| **422** | Can't change ProjectId | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/TestPointFilterModel.md b/docs/TestPointFilterModel.md index e2f33515..9cbe5270 100644 --- a/docs/TestPointFilterModel.md +++ b/docs/TestPointFilterModel.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**TestPlanIds** | **List<Guid>** | Specifies a test point test plan IDS to search for | [optional] **TestSuiteIds** | **List<Guid>** | Specifies a test point test suite IDs to search for | [optional] **WorkItemGlobalIds** | **List<long>** | Specifies a test point work item global IDs to search for | [optional] **Statuses** | [**List<TestPointStatus>**](TestPointStatus.md) | Specifies a test point statuses to search for | [optional] diff --git a/docs/TestPointSelectModel.md b/docs/TestPointSelectModel.md new file mode 100644 index 00000000..3c1505af --- /dev/null +++ b/docs/TestPointSelectModel.md @@ -0,0 +1,11 @@ +# TestIt.Client.Model.TestPointSelectModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Filter** | [**TestPointFilterModel**](TestPointFilterModel.md) | | [optional] +**ExtractionModel** | [**TestPointsExtractionModel**](TestPointsExtractionModel.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TestPointSelector.md b/docs/TestPointSelector.md index f86e000c..b81a7920 100644 --- a/docs/TestPointSelector.md +++ b/docs/TestPointSelector.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ConfigurationId** | **Guid** | Specifies the configuration GUIDs, from which test points are created. You can specify several GUIDs. | -**WorkitemIds** | **List<Guid>** | Specifies the work item GUIDs, from which test points are created. You can specify several GUIDs. | +**WorkItemIds** | **List<Guid>** | Specifies the work item GUIDs, from which test points are created. You can specify several GUIDs. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TestPointShortGetModel.md b/docs/TestPointShortGetModel.md index 53b0ddc9..e610853f 100644 --- a/docs/TestPointShortGetModel.md +++ b/docs/TestPointShortGetModel.md @@ -15,17 +15,19 @@ Name | Type | Description | Notes **Tags** | **List<string>** | Collection of the test point tags | [optional] **Links** | **List<string>** | Collection of the test point links | [optional] **TestSuiteId** | **Guid** | Unique ID of test suite the test point assigned to | [optional] +**WorkItemId** | **Guid** | Unique ID of work item the test point represents | [optional] **WorkItemGlobalId** | **long** | Global ID of work item the test point represents | [optional] **WorkItemVersionId** | **Guid** | Unique ID of work item version the test point represents | [optional] -**Status** | **TestPointStatus** | | [optional] -**Priority** | **WorkItemPriorityModel** | | [optional] +**Status** | **TestPointStatus** | | +**Priority** | **WorkItemPriorityModel** | | **IsAutomated** | **bool** | Indicates if the test point represents an autotest | [optional] **Name** | **string** | Name of the test point | [optional] **ConfigurationId** | **Guid** | Unique ID of the test point configuration | [optional] **Duration** | **int** | Duration of the test point | [optional] **SectionId** | **Guid** | Unique ID of section where work item the test point represents is located | [optional] +**SectionName** | **string** | Name of section where work item the test point represents is located | [optional] **ProjectId** | **Guid** | Unique ID of the test point project | [optional] -**LastTestResult** | [**LastTestResultModel**](LastTestResultModel.md) | | [optional] +**LastTestResult** | [**LastTestResultModel**](LastTestResultModel.md) | | **IterationId** | **Guid** | Unique ID of work item iteration the test point represents | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TestPointWithLastResultModel.md b/docs/TestPointWithLastResultModel.md index e1b5306e..149cb617 100644 --- a/docs/TestPointWithLastResultModel.md +++ b/docs/TestPointWithLastResultModel.md @@ -24,7 +24,7 @@ Name | Type | Description | Notes **Attributes** | **Dictionary<string, Object>** | | [optional] **TagNames** | **List<string>** | | [optional] **Duration** | **int** | | [optional] -**Priority** | **WorkItemPriorityModel** | | [optional] +**Priority** | **WorkItemPriorityModel** | | **TestSuiteNameBreadCrumbs** | **List<string>** | | [optional] **GroupCount** | **int?** | | [optional] **Iteration** | [**IterationModel**](IterationModel.md) | | [optional] diff --git a/docs/TestPointsApi.md b/docs/TestPointsApi.md index 86ce9a00..f7740186 100644 --- a/docs/TestPointsApi.md +++ b/docs/TestPointsApi.md @@ -103,8 +103,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | | **403** | Read permission for test points is required | - | +| **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -202,8 +202,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | | **403** | Read permission for test points is required | - | +| **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -311,8 +311,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| | **403** | Read permission for all requested test plans is required | - | +| **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/TestPointsExtractionModel.md b/docs/TestPointsExtractionModel.md new file mode 100644 index 00000000..bf3b43fd --- /dev/null +++ b/docs/TestPointsExtractionModel.md @@ -0,0 +1,10 @@ +# TestIt.Client.Model.TestPointsExtractionModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ids** | [**GuidExtractionModel**](GuidExtractionModel.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TestResultShortGetModel.md b/docs/TestResultShortGetModel.md index 2fc8964c..08fabe4c 100644 --- a/docs/TestResultShortGetModel.md +++ b/docs/TestResultShortGetModel.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **TestRunId** | **Guid** | Unique ID of test run where test result is located | [optional] **ConfigurationId** | **Guid** | Unique ID of configuration which test result uses | [optional] **ConfigurationName** | **string** | Name of configuration which test result uses | [optional] -**Outcome** | **TestResultOutcome** | | [optional] +**Outcome** | **TestResultOutcome** | | **ResultReasons** | [**List<AutotestResultReasonSubGetModel>**](AutotestResultReasonSubGetModel.md) | Collection of result reasons which test result have | [optional] **Comment** | **string** | Comment to test result | [optional] **Date** | **DateTime** | Date when test result has been set | [optional] diff --git a/docs/TestResultsApi.md b/docs/TestResultsApi.md index 8a1c9156..efc2be49 100644 --- a/docs/TestResultsApi.md +++ b/docs/TestResultsApi.md @@ -111,8 +111,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | | **403** | Read permission for the test result is required | - | +| **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -503,8 +503,8 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Only edits from assigned user are allowed | - | | **200** | Success | - | +| **403** | Only edits from assigned user are allowed | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -612,8 +612,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Read permission for all requested test runs is required | - | | **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **403** | Read permission for all requested test runs is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -711,8 +711,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Read permission for all requested test runs is required | - | | **200** | Success | - | +| **403** | Read permission for all requested test runs is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -814,11 +814,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **404** | | - | -| **200** | Successful operation | - | -| **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Update permission for test result required | - | +| **200** | Successful operation | - | +| **400** | Bad Request | - | +| **404** | | - | | **413** | Multipart body length limit exceeded (default constraint is one gigabyte) | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -918,9 +918,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **403** | Update permission for test result required | - | +| **204** | Successful operation | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | -| **204** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1028,11 +1028,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **200** | Success | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | -| **200** | Success | - | -| **403** | Read permission for test result required | - | | **404** | <br>File not found <br>Attachment not found | - | +| **403** | Read permission for test result required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1134,11 +1134,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **404** | File not found | - | | **401** | Unauthorized | - | -| **200** | Successful operation | - | | **400** | Bad Request | - | +| **200** | Successful operation | - | | **403** | Read permission for test result required | - | +| **404** | File not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1238,10 +1238,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **400** | Bad Request | - | -| **401** | Unauthorized | - | | **403** | Read permission for test result required | - | | **200** | Success | - | +| **400** | Bad Request | - | +| **401** | Unauthorized | - | | **404** | TestResult not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/TestRunFillByWorkItemsPostModel.md b/docs/TestRunFillByWorkItemsPostModel.md index 26777b6c..6e568e5f 100644 --- a/docs/TestRunFillByWorkItemsPostModel.md +++ b/docs/TestRunFillByWorkItemsPostModel.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ConfigurationIds** | **List<Guid>** | Specifies the configuration GUIDs, from which test points are created. You can specify several GUIDs. | -**WorkitemIds** | **List<Guid>** | Specifies the work item GUIDs, from which test points are created. You can specify several GUIDs. | +**WorkItemIds** | **List<Guid>** | Specifies the work item GUIDs, from which test points are created. You can specify several GUIDs. | **ProjectId** | **Guid** | Specifies the GUID of the project, in which a test run will be created. | **TestPlanId** | **Guid** | Specifies the GUID of the test plan, within which the test run will be created. | **Name** | **string** | Specifies the name of the test run. | [optional] diff --git a/docs/TestRunModel.md b/docs/TestRunModel.md index 1d434d31..a332e426 100644 --- a/docs/TestRunModel.md +++ b/docs/TestRunModel.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes **CompletedDate** | **DateTime?** | | [optional] **Build** | **string** | | [optional] **Description** | **string** | | [optional] -**StateName** | **TestRunState** | | [optional] +**StateName** | **TestRunState** | | **ProjectId** | **Guid** | | [optional] **TestPlanId** | **Guid?** | | [optional] **RunByUserId** | **Guid?** | | [optional] diff --git a/docs/TestRunShortGetModel.md b/docs/TestRunShortGetModel.md index 5c133987..d6574381 100644 --- a/docs/TestRunShortGetModel.md +++ b/docs/TestRunShortGetModel.md @@ -12,10 +12,10 @@ Name | Type | Description | Notes **ModifiedDate** | **DateTime?** | Date when the test run was modified last time | [optional] **ModifiedById** | **Guid?** | Unique ID of user who modified the test run last time | [optional] **IsDeleted** | **bool** | Is the test run is deleted | [optional] -**State** | **TestRunState** | | [optional] +**State** | **TestRunState** | | **StartedDate** | **DateTime?** | Date when the test run was started | [optional] **AutotestsCount** | **int** | Number of autotests run in the test run | [optional] -**Statistics** | [**TestResultsStatisticsGetModel**](TestResultsStatisticsGetModel.md) | | [optional] +**Statistics** | [**TestResultsStatisticsGetModel**](TestResultsStatisticsGetModel.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TestRunShortModel.md b/docs/TestRunShortModel.md index 6f57ff37..c5e2de46 100644 --- a/docs/TestRunShortModel.md +++ b/docs/TestRunShortModel.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**StateName** | **TestRunState** | | [optional] +**StateName** | **TestRunState** | | **ProjectId** | **Guid** | | [optional] **TestPlanId** | **Guid?** | | [optional] **Name** | **string** | | [optional] diff --git a/docs/TestRunV2GetModel.md b/docs/TestRunV2GetModel.md index 44a950bf..957e7f55 100644 --- a/docs/TestRunV2GetModel.md +++ b/docs/TestRunV2GetModel.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartedOn** | **DateTime?** | | [optional] **CompletedOn** | **DateTime?** | | [optional] -**StateName** | **TestRunState** | | [optional] +**StateName** | **TestRunState** | | **ProjectId** | **Guid** | This property is used to link test run with project | [optional] **TestPlanId** | **Guid?** | This property is used to link test run with test plan | [optional] **TestResults** | [**List<TestResultV2GetModel>**](TestResultV2GetModel.md) | | [optional] diff --git a/docs/TestRunsApi.md b/docs/TestRunsApi.md index 0010292e..693716d8 100644 --- a/docs/TestRunsApi.md +++ b/docs/TestRunsApi.md @@ -116,8 +116,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Success | - | | **403** | Read permission for test runs is required | - | +| **200** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -215,8 +215,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Read permission for test runs is required | - | | **200** | Success | - | +| **403** | Read permission for test runs is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -313,7 +313,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **403** | Update permission for test runs is required | - | -| **204** | Success | - | +| **204** | No Content | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -411,8 +411,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Read permission for test runs is required | - | | **200** | Success | - | +| **403** | Read permission for test runs is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -520,8 +520,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Read permission for autotests library is required | - | | **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **403** | Read permission for autotests library is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -617,11 +617,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **400** | <br>Field is required <br>the StateName is already Stopped <br>the StateName is already Completed | - | -| **204** | Successful operation | - | -| **401** | Unauthorized | - | | **403** | Update permission for test result required | - | | **404** | <br>Can't find a TestRun with id! | - | +| **204** | Successful operation | - | +| **400** | <br>Field is required <br>the StateName is already Stopped <br>the StateName is already Completed | - | +| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -722,10 +722,10 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **404** | Some autotests do not exist | - | -| **403** | Update permission for test results is required | - | -| **401** | Unauthorized | - | -| **201** | Success | - | +| **201** | Created | - | | **400** | <br>- Field is required <br>- Configuration does not exist in the project <br>- Autotest does not exist in the project <br>- Test run must be automated <br>- Project ID is invalid <br>- Autotest external IDs are required <br>- Configuration IDs are required | - | +| **401** | Unauthorized | - | +| **403** | Update permission for test results is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -825,10 +825,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | -| **201** | Success | - | -| **400** | <br>- Field is required <br>- Test run cannot be created with deleted test points <br>- Test run cannot be created in deleted test suite <br>- Test run cannot be created with non-automated test point <br>- Test run must be automated <br>- Some work items do not exist <br>- Project ID is invalid <br>- Test point selectors are required <br>- Some work item IDs are invalid <br>- Some configuration IDs are invalid | - | +| **201** | Created | - | | **403** | Update permission for test results is required | - | +| **400** | <br>- Field is required <br>- Test run cannot be created with deleted test points <br>- Test run cannot be created in deleted test suite <br>- Test run cannot be created with non-automated test point <br>- Test run must be automated <br>- Some work items do not exist <br>- Project ID is invalid <br>- Test point selectors are required <br>- Some work item IDs are invalid <br>- Some configuration IDs are invalid | - | +| **401** | Unauthorized | - | | **404** | Some test points do not exists | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -929,7 +929,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Success | - | +| **201** | Created | - | | **400** | <br>- Field is required <br>- Test run cannot be created with deleted test points <br>- Test run cannot be created in deleted test suite <br>- Test run cannot be created with non-automated test point <br>- Some work items do not exist <br>- Project ID is invalid | - | | **401** | Unauthorized | - | | **403** | Update permission for test results is required | - | @@ -1034,9 +1034,9 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **403** | Update permission for test result required | - | +| **401** | TestRunTesterRequirement permission required | - | | **201** | Successful operation | - | | **400** | <br>Field is required <br>TestRun must be automated <br>ProjectId is not a valid! | - | -| **401** | TestRunTesterRequirement permission required | - | | **404** | Can't find a TestRun with id = testRunId | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1137,9 +1137,9 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | | **403** | Read permission for test result required | - | | **404** | <br>Can't find a TestRun with id! | - | +| **401** | Unauthorized | - | | **200** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1243,11 +1243,11 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **404** | <br>- Test run with provided ID was not found <br>- Test point was not found <br>- Autotest with provided external ID was not found | - | -| **401** | Unauthorized | - | +| **200** | Successful operation | - | | **422** | <br>- Configuration with provided ID was not found <br>- Test points relevant to provided filters were not found | - | | **400** | <br>- Field is required <br>- Body is invalid <br>- Test points are required <br>- Duration must be a positive number <br>- Outcome is not defined <br>- Test run is stopped | - | -| **200** | Successful operation | - | | **403** | Update permission for test results is required | - | +| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1343,11 +1343,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | -| **204** | Successful operation | - | -| **400** | <br>Field is required <br>the StateName is already InProgress <br>the StateName is already Stopped <br>the StateName is already Completed | - | | **403** | Update permission for test result required | - | +| **400** | <br>Field is required <br>the StateName is already InProgress <br>the StateName is already Stopped <br>the StateName is already Completed | - | | **404** | <br>Can't find a TestRun with id! | - | +| **204** | Successful operation | - | +| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1443,11 +1443,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **404** | <br>Can't find a TestRun with id! | - | | **204** | Successful operation | - | | **400** | <br>Field is required <br>the StateName is already Stopped <br>the StateName is already Completed | - | | **401** | Unauthorized | - | | **403** | Update permission for test result required | - | -| **404** | <br>Can't find a TestRun with id! | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1543,11 +1543,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **404** | <br>Can't find a TestRun with id! | - | -| **204** | Successful operation | - | -| **400** | <br>Field is required <br>Name is not valid | - | | **401** | Unauthorized | - | | **403** | Update permission for test result required | - | +| **400** | <br>Field is required <br>Name is not valid | - | +| **404** | <br>Can't find a TestRun with id! | - | +| **204** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/TestSuiteType.md b/docs/TestSuiteType.md new file mode 100644 index 00000000..a6b04b88 --- /dev/null +++ b/docs/TestSuiteType.md @@ -0,0 +1,9 @@ +# TestIt.Client.Model.TestSuiteType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/TestSuiteV2GetModel.md b/docs/TestSuiteV2GetModel.md index 1cb8508a..e87a9a76 100644 --- a/docs/TestSuiteV2GetModel.md +++ b/docs/TestSuiteV2GetModel.md @@ -8,6 +8,8 @@ Name | Type | Description | Notes **ParentId** | **Guid?** | | [optional] **TestPlanId** | **Guid** | | **Name** | **string** | | +**Type** | **TestSuiteType** | | [optional] +**SaveStructure** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TestSuiteV2PostModel.md b/docs/TestSuiteV2PostModel.md index d723a904..29655163 100644 --- a/docs/TestSuiteV2PostModel.md +++ b/docs/TestSuiteV2PostModel.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **ParentId** | **Guid?** | | [optional] **TestPlanId** | **Guid** | | **Name** | **string** | | +**Type** | **TestSuiteType** | | [optional] +**SaveStructure** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TestSuiteV2PutModel.md b/docs/TestSuiteV2PutModel.md index 9ee9028c..9acd5d4f 100644 --- a/docs/TestSuiteV2PutModel.md +++ b/docs/TestSuiteV2PutModel.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Id** | **Guid** | | **ParentId** | **Guid?** | | [optional] **Name** | **string** | | +**IsDeleted** | **bool** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TestSuiteV2TreeModel.md b/docs/TestSuiteV2TreeModel.md index 9a0a5a01..da6c8d7c 100644 --- a/docs/TestSuiteV2TreeModel.md +++ b/docs/TestSuiteV2TreeModel.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **ParentId** | **Guid?** | | [optional] **TestPlanId** | **Guid** | | **Name** | **string** | | +**Type** | **TestSuiteType** | | [optional] +**SaveStructure** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TestSuitesApi.md b/docs/TestSuitesApi.md index aaece2ac..0557ae33 100644 --- a/docs/TestSuitesApi.md +++ b/docs/TestSuitesApi.md @@ -5,6 +5,8 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |--------|--------------|-------------| | [**AddTestPointsToTestSuite**](TestSuitesApi.md#addtestpointstotestsuite) | **POST** /api/v2/testSuites/{id}/test-points | Add test-points to test suite | +| [**ApiV2TestSuitesIdPatch**](TestSuitesApi.md#apiv2testsuitesidpatch) | **PATCH** /api/v2/testSuites/{id} | Patch test suite | +| [**ApiV2TestSuitesIdRefreshPost**](TestSuitesApi.md#apiv2testsuitesidrefreshpost) | **POST** /api/v2/testSuites/{id}/refresh | Refresh test suite. Only dynamic test suites are supported by this method | | [**CreateTestSuite**](TestSuitesApi.md#createtestsuite) | **POST** /api/v2/testSuites | Create TestSuite | | [**DeleteTestSuite**](TestSuitesApi.md#deletetestsuite) | **DELETE** /api/v2/testSuites/{id} | Delete TestSuite | | [**GetConfigurationsByTestSuiteId**](TestSuitesApi.md#getconfigurationsbytestsuiteid) | **GET** /api/v2/testSuites/{id}/configurations | Get Configurations By Id | @@ -109,12 +111,206 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **404** | Test suite with provided ID was not found | - | | **204** | Successful operation | - | -| **422** | Shared steps cannot be added to test suite | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Update permission for test plan is required | - | +| **404** | Test suite with provided ID was not found | - | +| **422** | Shared steps cannot be added to test suite | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ApiV2TestSuitesIdPatch** +> void ApiV2TestSuitesIdPatch (Guid id, List operation = null) + +Patch test suite + +See RFC 6902: JavaScript Object Notation (JSON) Patch for details + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2TestSuitesIdPatchExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new TestSuitesApi(httpClient, config, httpClientHandler); + var id = "id_example"; // Guid | Test Suite internal (UUID) identifier + var operation = new List(); // List | (optional) + + try + { + // Patch test suite + apiInstance.ApiV2TestSuitesIdPatch(id, operation); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TestSuitesApi.ApiV2TestSuitesIdPatch: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2TestSuitesIdPatchWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Patch test suite + apiInstance.ApiV2TestSuitesIdPatchWithHttpInfo(id, operation); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TestSuitesApi.ApiV2TestSuitesIdPatchWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | Test Suite internal (UUID) identifier | | +| **operation** | [**List<Operation>**](Operation.md) | | [optional] | + +### Return type + +void (empty response body) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | +| **403** | Update permission for test suite is required | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **ApiV2TestSuitesIdRefreshPost** +> void ApiV2TestSuitesIdRefreshPost (Guid id) + +Refresh test suite. Only dynamic test suites are supported by this method + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2TestSuitesIdRefreshPostExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new TestSuitesApi(httpClient, config, httpClientHandler); + var id = "id_example"; // Guid | Test Suite internal (UUID) identifier + + try + { + // Refresh test suite. Only dynamic test suites are supported by this method + apiInstance.ApiV2TestSuitesIdRefreshPost(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TestSuitesApi.ApiV2TestSuitesIdRefreshPost: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2TestSuitesIdRefreshPostWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Refresh test suite. Only dynamic test suites are supported by this method + apiInstance.ApiV2TestSuitesIdRefreshPostWithHttpInfo(id); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling TestSuitesApi.ApiV2TestSuitesIdRefreshPostWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | Test Suite internal (UUID) identifier | | + +### Return type + +void (empty response body) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | +| **403** | Update permission for test suite is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -214,11 +410,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **401** | Unauthorized | - | | **404** | <br>Can't find a TestPlan with id <br>Can't find a TestSuite with id | - | +| **403** | Update permission for test plan required | - | | **201** | Successful operation | - | | **400** | <br>Field is required <br>Suite with Id creates loop! | - | -| **401** | Unauthorized | - | -| **403** | Update permission for test plan required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -314,10 +510,10 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Successful operation | - | -| **403** | Delete permission for test plan required | - | | **401** | Unauthorized | - | +| **403** | Delete permission for test plan required | - | | **404** | <br>Can't find a TestSuite with id | - | +| **204** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -417,10 +613,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Read permission for test plan required | - | -| **200** | Successful operation | - | | **404** | <br>Can't find a TestSuite with id! | - | +| **403** | Read permission for test plan required | - | | **401** | Unauthorized | - | +| **200** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -520,10 +716,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **401** | Unauthorized | - | +| **403** | Read permission for test plan required | - | | **404** | <br>Can't find a TestSuite with id! | - | | **200** | Successful operation | - | -| **403** | Read permission for test plan required | - | -| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -726,10 +922,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **404** | <br>Can't find a TestSuite with id! | - | +| **403** | Read permission for test plan required | - | | **401** | Unauthorized | - | | **200** | Successful operation | - | -| **403** | Read permission for test plan required | - | -| **404** | <br>Can't find a TestSuite with id! | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -839,10 +1035,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | +| **404** | Not Found | - | | **200** | Success | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **401** | Unauthorized | - | | **403** | Forbidden | - | -| **404** | Not Found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -852,7 +1048,7 @@ catch (ApiException e) Search WorkItems -
Use case
User sets test suite identifier
[Optional] User sets filter
User runs method execution
System search test suite by identifier
System search test points related to the test suite
System search workitems related to the test points
[Optional] User sets filter, system applies filter
System returns workitems array +
Use case
User sets test suite identifier
[Optional] User sets filter
User runs method execution
System search test suite by identifier
System search test points related to the test suite
System search work items related to the test points
[Optional] User sets filter, system applies filter
System returns work items array ### Example ```csharp @@ -954,11 +1150,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Successful operation | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| | **404** | <br>Can't find a TestSuite with id! | - | -| **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Read permission for test plan required | - | +| **200** | Successful operation | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1056,11 +1252,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Successful operation | - | | **404** | <br>Can't find a TestSuite with id | - | +| **204** | Successful operation | - | +| **401** | Unauthorized | - | | **403** | Update permission for test plan required | - | | **400** | <br>Some of Configurations do not exist in the project, or they are not active | - | -| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1070,7 +1266,7 @@ void (empty response body) Set WorkItems By TestSuite Id -
Use case
User sets test suite identifier
User sets collection of workitems identifiers
User runs method execution
System search test suite by identifier
System search test points related to the test suite
System search workitems
System restores(if exist) or creates test points with listed workitems
System returns no content response +
Use case
User sets test suite identifier
User sets collection of work items identifiers
User runs method execution
System search test suite by identifier
System search test points related to the test suite
System search work items
System restores(if exist) or creates test points with listed work items
System returns no content response ### Example ```csharp @@ -1099,7 +1295,7 @@ namespace Example HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new TestSuitesApi(httpClient, config, httpClientHandler); var id = 3fa85f64-5717-4562-b3fc-2c963f66afa6; // Guid | Test suite internal (guid format) identifier\" - var requestBody = new List(); // List | Collection of workitem identifiers\" (optional) + var requestBody = new List(); // List | Collection of work item identifiers\" (optional) try { @@ -1139,7 +1335,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **id** | **Guid** | Test suite internal (guid format) identifier\" | | -| **requestBody** | [**List<Guid>**](Guid.md) | Collection of workitem identifiers\" | [optional] | +| **requestBody** | [**List<Guid>**](Guid.md) | Collection of work item identifiers\" | [optional] | ### Return type @@ -1159,11 +1355,11 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **403** | Update permission for test plan required | - | -| **204** | Successful operation | - | -| **400** | Bad Request | - | -| **401** | Unauthorized | - | | **404** | <br>Can't find a TestSuite with id <br>Some of WorkItems does not exist or deleted | - | | **422** | <br>can't put a SharedStep in the TestSuite <br>ProjectId must be the same for TestSuites | - | +| **400** | Bad Request | - | +| **204** | Successful operation | - | +| **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1259,11 +1455,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | -| **400** | <br>Field is required <br>Suite with Id creates loop! | - | -| **404** | <br>Can't find a TestPlan with id <br>Can't find a TestSuite with id | - | | **403** | Update permission for test plan required | - | | **204** | Successful operation | - | +| **400** | <br>Field is required <br>Suite with Id creates loop! | - | +| **401** | Unauthorized | - | +| **404** | <br>Can't find a TestPlan with id <br>Can't find a TestSuite with id | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/WebHookLogModel.md b/docs/WebHookLogModel.md index 4164671d..22feff61 100644 --- a/docs/WebHookLogModel.md +++ b/docs/WebHookLogModel.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **WebHookName** | **string** | | [optional] -**EventType** | **WebHookEventTypeModel** | | [optional] +**EventType** | **WebHookEventTypeModel** | | **WebHookId** | **Guid** | | [optional] **RequestBody** | **string** | | [optional] **RequestMeta** | **string** | | [optional] @@ -14,7 +14,7 @@ Name | Type | Description | Notes **ResponseMeta** | **string** | | [optional] **ProjectId** | **Guid** | | [optional] **Url** | **string** | | [optional] -**RequestType** | **RequestTypeModel** | | [optional] +**RequestType** | **RequestTypeModel** | | **CreatedDate** | **DateTime?** | | [optional] **ModifiedDate** | **DateTime?** | | [optional] **CreatedById** | **Guid** | | [optional] diff --git a/docs/WebHookModel.md b/docs/WebHookModel.md index b124f081..d06adef0 100644 --- a/docs/WebHookModel.md +++ b/docs/WebHookModel.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Name of the webhook | [optional] -**EventType** | **WebHookEventTypeModel** | | [optional] +**EventType** | **WebHookEventTypeModel** | | **Description** | **string** | Description of the webhook | [optional] **Url** | **string** | Url to which the webhook sends request | [optional] -**RequestType** | **RequestTypeModel** | | [optional] +**RequestType** | **RequestTypeModel** | | **ShouldSendBody** | **bool** | Indicates if the webhook sends body | [optional] **Headers** | **Dictionary<string, string>** | Collection of headers which the webhook sends | [optional] **QueryParameters** | **Dictionary<string, string>** | Collection of query parameters which the webhook sends | [optional] diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md index f5f6cbe0..be837825 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -202,7 +202,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **403** | Delete permission for webhooks is required | - | -| **204** | Success | - | +| **204** | No Content | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -500,7 +500,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Success | - | +| **201** | Created | - | | **403** | Update permission for webhooks is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/WebhooksLogsApi.md b/docs/WebhooksLogsApi.md index 73d68d21..88e388bb 100644 --- a/docs/WebhooksLogsApi.md +++ b/docs/WebhooksLogsApi.md @@ -206,8 +206,8 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **204** | No Content | - | | **403** | System administrator permissions are required | - | -| **204** | Success | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/WorkItemIdModel.md b/docs/WorkItemIdModel.md index cf6d4658..b7eb7741 100644 --- a/docs/WorkItemIdModel.md +++ b/docs/WorkItemIdModel.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | Used for search WorkItem. Internal identifier has a Guid data format. Global identifier has an integer data format | [optional] +**Id** | **string** | Used for search WorkItem. Internal identifier has a Guid data format. Global identifier has an integer data format | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WorkItemModel.md b/docs/WorkItemModel.md index 47289d21..870662e4 100644 --- a/docs/WorkItemModel.md +++ b/docs/WorkItemModel.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **CreatedById** | **Guid** | | [optional] **ModifiedById** | **Guid?** | | [optional] **GlobalId** | **long** | | [optional] -**Id** | **Guid** | | [optional] +**Id** | **Guid** | | **SectionId** | **Guid** | | [optional] **Description** | **string** | | [optional] **State** | **WorkItemStates** | | diff --git a/docs/WorkItemPutModel.md b/docs/WorkItemPutModel.md index 0441b75f..05a0e7b5 100644 --- a/docs/WorkItemPutModel.md +++ b/docs/WorkItemPutModel.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Attachments** | [**List<AttachmentPutModel>**](AttachmentPutModel.md) | | **Iterations** | [**List<IterationPutModel>**](IterationPutModel.md) | | [optional] **AutoTests** | [**List<AutoTestIdModel>**](AutoTestIdModel.md) | | [optional] -**Id** | **Guid** | | [optional] +**Id** | **Guid** | | **SectionId** | **Guid** | | [optional] **Description** | **string** | | [optional] **State** | **WorkItemStates** | | diff --git a/docs/WorkItemShortModel.md b/docs/WorkItemShortModel.md index db2c2afb..5ae917b4 100644 --- a/docs/WorkItemShortModel.md +++ b/docs/WorkItemShortModel.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **EntityTypeName** | **string** | Property can have one of these values: CheckLists, SharedSteps, TestCases | **ProjectId** | **Guid** | This property is used to link autotest with project | **SectionId** | **Guid** | This property links workitem with section | +**SectionName** | **string** | Name of the section where work item is located | **IsAutomated** | **bool** | | [optional] **GlobalId** | **long** | | [optional] **Duration** | **int** | | [optional] diff --git a/docs/WorkItemsApi.md b/docs/WorkItemsApi.md index a50418ae..54cd1b8f 100644 --- a/docs/WorkItemsApi.md +++ b/docs/WorkItemsApi.md @@ -4,6 +4,7 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |--------|--------------|-------------| +| [**ApiV2WorkItemsIdAttachmentsPost**](WorkItemsApi.md#apiv2workitemsidattachmentspost) | **POST** /api/v2/workItems/{id}/attachments | Upload and link attachment to WorkItem | | [**ApiV2WorkItemsIdCheckListTransformToTestCasePost**](WorkItemsApi.md#apiv2workitemsidchecklisttransformtotestcasepost) | **POST** /api/v2/workItems/{id}/checkList/transformTo/testCase | Transform CheckList to TestCase | | [**ApiV2WorkItemsIdHistoryGet**](WorkItemsApi.md#apiv2workitemsidhistoryget) | **GET** /api/v2/workItems/{id}/history | Get change history of WorkItem | | [**ApiV2WorkItemsIdLikeDelete**](WorkItemsApi.md#apiv2workitemsidlikedelete) | **DELETE** /api/v2/workItems/{id}/like | Delete like from WorkItem | @@ -25,8 +26,117 @@ All URIs are relative to *http://localhost* | [**GetWorkItemById**](WorkItemsApi.md#getworkitembyid) | **GET** /api/v2/workItems/{id} | Get Test Case, Checklist or Shared Step by Id or GlobalId | | [**GetWorkItemChronology**](WorkItemsApi.md#getworkitemchronology) | **GET** /api/v2/workItems/{id}/chronology | Get WorkItem chronology by Id or GlobalId | | [**GetWorkItemVersions**](WorkItemsApi.md#getworkitemversions) | **GET** /api/v2/workItems/{id}/versions | Get WorkItem versions | +| [**PurgeWorkItem**](WorkItemsApi.md#purgeworkitem) | **POST** /api/v2/workItems/{id}/purge | Permanently delete test case, checklist or shared steps from archive | +| [**RestoreWorkItem**](WorkItemsApi.md#restoreworkitem) | **POST** /api/v2/workItems/{id}/restore | Restore test case, checklist or shared steps from archive | | [**UpdateWorkItem**](WorkItemsApi.md#updateworkitem) | **PUT** /api/v2/workItems | Update Test Case, Checklist or Shared Step | + +# **ApiV2WorkItemsIdAttachmentsPost** +> Guid ApiV2WorkItemsIdAttachmentsPost (Guid id, FileParameter file = null) + +Upload and link attachment to WorkItem + +
Use case
User sets workItemId
User attaches a file
System creates attachment and links it to the work item
System returns attachment identifier + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class ApiV2WorkItemsIdAttachmentsPostExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new WorkItemsApi(httpClient, config, httpClientHandler); + var id = 3fa85f64-5717-4562-b3fc-2c963f66afa6; // Guid | Work item internal identifier (guid format) + var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // FileParameter | Select file (optional) + + try + { + // Upload and link attachment to WorkItem + Guid result = apiInstance.ApiV2WorkItemsIdAttachmentsPost(id, file); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WorkItemsApi.ApiV2WorkItemsIdAttachmentsPost: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the ApiV2WorkItemsIdAttachmentsPostWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Upload and link attachment to WorkItem + ApiResponse response = apiInstance.ApiV2WorkItemsIdAttachmentsPostWithHttpInfo(id, file); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WorkItemsApi.ApiV2WorkItemsIdAttachmentsPostWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **Guid** | Work item internal identifier (guid format) | | +| **file** | **FileParameter****FileParameter** | Select file | [optional] | + +### Return type + +**Guid** + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **413** | Multipart body length limit exceeded (default constraint is one gigabyte) | - | +| **200** | Successful operation | - | +| **403** | Update permission for test result required | - | +| **400** | Bad Request | - | +| **404** | | - | +| **401** | Unauthorized | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **ApiV2WorkItemsIdCheckListTransformToTestCasePost** > WorkItemModel ApiV2WorkItemsIdCheckListTransformToTestCasePost (Guid id) @@ -124,11 +234,11 @@ catch (ApiException e) | Status code | Description | Response headers | |-------------|-------------|------------------| | **422** | Client Error | - | +| **403** | Update permission for test library required | - | +| **404** | Can't find CheckList with id | - | | **200** | Successful operation | - | | **400** | Bad Request | - | | **401** | Unauthorized | - | -| **403** | Update permission for test library required | - | -| **404** | Can't find CheckList with id | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -338,8 +448,8 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Successful operation | - | | **400** | Bad Request | - | +| **204** | Successful operation | - | | **401** | Unauthorized | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -641,8 +751,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Successful operation | - | | **400** | Bad Request | - | +| **200** | Successful operation | - | | **401** | Unauthorized | - | | **403** | Read permission for test library required | - | @@ -772,8 +882,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **400** | Bad Request | - | | **200** | Successful operation | * Pagination-Skip - Skipped amount of items
* Pagination-Take - Taken items
* Pagination-Pages - Expected number of pages
* Pagination-Total-Items - Total count of items
| +| **400** | Bad Request | - | | **401** | Unauthorized | - | | **403** | Read permission for test library required | - | @@ -877,8 +987,8 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Successful operation | - | | **400** | Bad Request | - | +| **200** | Successful operation | - | | **401** | Unauthorized | - | | **403** | Update permission for test library required | - | | **404** | Can't find WorkItem with id | - | @@ -1524,11 +1634,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| +| **401** | Unauthorized | - | +| **403** | Update permission for test library required | - | | **201** | Successful operation | - | | **400** | <br>Field is required <br>Priority is not a valid <br>Tags must be set <br>Duration should be a positive number <br>Should be empty for CheckList <br>Attribute value must be a valid guid for user scheme <br>There is no option in ProjectAttributesScheme with such Id <br>Attribute value must be a valid guid for options scheme | - | | **404** | <br>Can't find section <br>Can't find project <br>Can't find attachmentIds <br>Project not found <br>Can't attributesScheme <br>Can't attribute <br>AutoTestIds not exist in project | - | -| **401** | Unauthorized | - | -| **403** | Update permission for test library required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1624,11 +1734,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **400** | Bad Request | - | -| **404** | Can't find a WorkItem with workItemId | - | | **401** | Unauthorized | - | +| **400** | Bad Request | - | +| **204** | No Content | - | | **403** | Update permission for test library required | - | -| **204** | Success | - | +| **404** | Can't find a WorkItem with workItemId | - | | **200** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1725,12 +1835,12 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Successful operation | - | -| **401** | Unauthorized | - | +| **403** | Delete permission for test library required | - | | **404** | Can't find a WorkItem with id | - | -| **422** | Could not delete Shared Step that has references | - | +| **401** | Unauthorized | - | | **400** | Bad Request | - | -| **403** | Delete permission for test library required | - | +| **422** | Could not delete Shared Step that has references | - | +| **204** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -1830,11 +1940,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **404** | Can't find WorkItem with workItemId | - | -| **401** | Unauthorized | - | -| **403** | Read permission for test library required | - | | **200** | Successful operation | - | | **400** | Bad Request | - | +| **401** | Unauthorized | - | +| **403** | Read permission for test library required | - | +| **404** | Can't find WorkItem with workItemId | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2044,11 +2154,11 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Read permission for test library required | - | +| **400** | Bad Request | - | | **404** | Can't find workItem with id | - | | **200** | Successful operation | - | -| **400** | Bad Request | - | | **401** | Unauthorized | - | +| **403** | Read permission for test library required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2148,10 +2258,10 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | +| **400** | Not valid workItemId | - | | **404** | Can't find WorkItem with workItemId | - | | **200** | Successful operation | - | -| **400** | Not valid workItemId | - | +| **401** | Unauthorized | - | | **403** | Read permission for test library required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2256,11 +2366,201 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **401** | Unauthorized | - | -| **403** | Read permission for test library required | - | -| **404** | Can't find WorkItem with workItemId | - | | **200** | Successful operation | - | | **400** | Bad Request | - | +| **404** | Can't find WorkItem with workItemId | - | +| **401** | Unauthorized | - | +| **403** | Read permission for test library required | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **PurgeWorkItem** +> void PurgeWorkItem (string id) + +Permanently delete test case, checklist or shared steps from archive + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class PurgeWorkItemExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new WorkItemsApi(httpClient, config, httpClientHandler); + var id = "id_example"; // string | Unique or global ID of the work item + + try + { + // Permanently delete test case, checklist or shared steps from archive + apiInstance.PurgeWorkItem(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WorkItemsApi.PurgeWorkItem: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the PurgeWorkItemWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Permanently delete test case, checklist or shared steps from archive + apiInstance.PurgeWorkItemWithHttpInfo(id); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WorkItemsApi.PurgeWorkItemWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **string** | Unique or global ID of the work item | | + +### Return type + +void (empty response body) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | No Content | - | +| **403** | Delete permission for test library is required | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **RestoreWorkItem** +> void RestoreWorkItem (string id) + +Restore test case, checklist or shared steps from archive + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using System.Net.Http; +using TestIt.Client.Api; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace Example +{ + public class RestoreWorkItemExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "http://localhost"; + // Configure API key authorization: Bearer or PrivateToken + config.AddApiKey("Authorization", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("Authorization", "Bearer"); + + // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes + HttpClient httpClient = new HttpClient(); + HttpClientHandler httpClientHandler = new HttpClientHandler(); + var apiInstance = new WorkItemsApi(httpClient, config, httpClientHandler); + var id = "id_example"; // string | Unique or global ID of the work item + + try + { + // Restore test case, checklist or shared steps from archive + apiInstance.RestoreWorkItem(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling WorkItemsApi.RestoreWorkItem: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the RestoreWorkItemWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Restore test case, checklist or shared steps from archive + apiInstance.RestoreWorkItemWithHttpInfo(id); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling WorkItemsApi.RestoreWorkItemWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **id** | **string** | Unique or global ID of the work item | | + +### Return type + +void (empty response body) + +### Authorization + +[Bearer or PrivateToken](../README.md#Bearer or PrivateToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success | - | +| **403** | Update permission for test library is required | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -2356,11 +2656,11 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **403** | Update permission for test library required | - | | **400** | <br>Field is required <br>Priority is not a valid <br>duration should be a positive number <br>should be empty for CheckList <br>There is no option in ProjectAttributesScheme with such Id <br>Attribute value must be a valid guid for options scheme | - | +| **204** | Successful operation | - | | **401** | Unauthorized | - | +| **403** | Update permission for test library required | - | | **404** | <br>WorkItem not found <br>Can't find section <br>Can't attributesScheme <br>Can't attribute <br>AutoTestIds not exist in project | - | -| **204** | Successful operation | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/WorkItemsCommentsApi.md b/docs/WorkItemsCommentsApi.md index 1a192a4a..22ca6b44 100644 --- a/docs/WorkItemsCommentsApi.md +++ b/docs/WorkItemsCommentsApi.md @@ -102,9 +102,9 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **400** | Bad Request | - | +| **401** | Unauthorized | - | | **204** | Successful operation | - | | **403** | System admin permission required | - | -| **401** | Unauthorized | - | | **404** | WorkItem is not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) @@ -303,8 +303,8 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | Success | - | | **403** | System administrator role is required | - | +| **204** | No Content | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/src/TestIt.Client/Api/AutoTestsApi.cs b/src/TestIt.Client/Api/AutoTestsApi.cs index 83a153a9..b8e0c4e0 100644 --- a/src/TestIt.Client/Api/AutoTestsApi.cs +++ b/src/TestIt.Client/Api/AutoTestsApi.cs @@ -59,6 +59,29 @@ public interface IAutoTestsApiSync : IApiAccessor /// ApiResponse of Object(void) ApiResponse ApiV2AutoTestsFlakyBulkPostWithHttpInfo(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), FlakyBulkModel flakyBulkModel = default(FlakyBulkModel)); /// + /// Patch auto test + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Global Id of auto test + /// (optional) + /// + void ApiV2AutoTestsIdPatch(Guid id, List operation = default(List)); + + /// + /// Patch auto test + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Global Id of auto test + /// (optional) + /// ApiResponse of Object(void) + ApiResponse ApiV2AutoTestsIdPatchWithHttpInfo(Guid id, List operation = default(List)); + /// /// Get test results history for autotest /// /// @@ -582,6 +605,31 @@ public interface IAutoTestsApiAsync : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> ApiV2AutoTestsFlakyBulkPostWithHttpInfoAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), FlakyBulkModel flakyBulkModel = default(FlakyBulkModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// + /// Patch auto test + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Global Id of auto test + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task ApiV2AutoTestsIdPatchAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Patch auto test + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Global Id of auto test + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> ApiV2AutoTestsIdPatchWithHttpInfoAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Get test results history for autotest /// /// @@ -1497,6 +1545,129 @@ public TestIt.Client.Client.ExceptionFactory ExceptionFactory return localVarResponse; } + /// + /// Patch auto test See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Global Id of auto test + /// (optional) + /// + public void ApiV2AutoTestsIdPatch(Guid id, List operation = default(List)) + { + ApiV2AutoTestsIdPatchWithHttpInfo(id, operation); + } + + /// + /// Patch auto test See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Global Id of auto test + /// (optional) + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse ApiV2AutoTestsIdPatchWithHttpInfo(Guid id, List operation = default(List)) + { + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = operation; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Patch("/api/v2/autoTests/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2AutoTestsIdPatch", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Patch auto test See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Global Id of auto test + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task ApiV2AutoTestsIdPatchAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await ApiV2AutoTestsIdPatchWithHttpInfoAsync(id, operation, cancellationToken).ConfigureAwait(false); + } + + /// + /// Patch auto test See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Global Id of auto test + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ApiV2AutoTestsIdPatchWithHttpInfoAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = operation; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PatchAsync("/api/v2/autoTests/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2AutoTestsIdPatch", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Get test results history for autotest <br>Use case <br>User sets autotest internal (guid format) or global (integer format) identifier <br>User sets getTestResultHistoryReportQuery (listed in the example) <br>User runs method execution <br>System search for test results using filters set by user in getTestResultHistoryReportQuery and id <br>System returns the enumeration of test results /// diff --git a/src/TestIt.Client/Api/BackgroundJobsApi.cs b/src/TestIt.Client/Api/BackgroundJobsApi.cs new file mode 100644 index 00000000..d6d67ede --- /dev/null +++ b/src/TestIt.Client/Api/BackgroundJobsApi.cs @@ -0,0 +1,481 @@ +/* + * API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v2.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Net.Mime; +using TestIt.Client.Client; +using TestIt.Client.Model; + +namespace TestIt.Client.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IBackgroundJobsApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Get current user background jobs + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// List<BackgroundJobModel> + List ApiV2BackgroundJobsGet(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)); + + /// + /// Get current user background jobs + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// ApiResponse of List<BackgroundJobModel> + ApiResponse> ApiV2BackgroundJobsGetWithHttpInfo(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IBackgroundJobsApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Get current user background jobs + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// Cancellation Token to cancel the request. + /// Task of List<BackgroundJobModel> + System.Threading.Tasks.Task> ApiV2BackgroundJobsGetAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get current user background jobs + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<BackgroundJobModel>) + System.Threading.Tasks.Task>> ApiV2BackgroundJobsGetWithHttpInfoAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IBackgroundJobsApi : IBackgroundJobsApiSync, IBackgroundJobsApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class BackgroundJobsApi : IDisposable, IBackgroundJobsApi + { + private TestIt.Client.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// + public BackgroundJobsApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// The target service's base path in URL format. + /// + /// + public BackgroundJobsApi(string basePath) + { + this.Configuration = TestIt.Client.Client.Configuration.MergeConfigurations( + TestIt.Client.Client.GlobalConfiguration.Instance, + new TestIt.Client.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new TestIt.Client.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = TestIt.Client.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// **IMPORTANT** This will also create an instance of HttpClient, which is less than ideal. + /// It's better to reuse the HttpClient and HttpClientHandler. + /// + /// An instance of Configuration. + /// + /// + public BackgroundJobsApi(TestIt.Client.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = TestIt.Client.Client.Configuration.MergeConfigurations( + TestIt.Client.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new TestIt.Client.Client.ApiClient(this.Configuration.BasePath); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = TestIt.Client.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class. + /// + /// An instance of HttpClient. + /// An optional instance of HttpClientHandler that is used by HttpClient. + /// + /// + /// + /// Some configuration settings will not be applied without passing an HttpClientHandler. + /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. + /// + public BackgroundJobsApi(HttpClient client, HttpClientHandler handler = null) : this(client, (string)null, handler) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// An instance of HttpClient. + /// The target service's base path in URL format. + /// An optional instance of HttpClientHandler that is used by HttpClient. + /// + /// + /// + /// + /// Some configuration settings will not be applied without passing an HttpClientHandler. + /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. + /// + public BackgroundJobsApi(HttpClient client, string basePath, HttpClientHandler handler = null) + { + if (client == null) throw new ArgumentNullException("client"); + + this.Configuration = TestIt.Client.Client.Configuration.MergeConfigurations( + TestIt.Client.Client.GlobalConfiguration.Instance, + new TestIt.Client.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new TestIt.Client.Client.ApiClient(client, this.Configuration.BasePath, handler); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + this.ExceptionFactory = TestIt.Client.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class using Configuration object. + /// + /// An instance of HttpClient. + /// An instance of Configuration. + /// An optional instance of HttpClientHandler that is used by HttpClient. + /// + /// + /// + /// Some configuration settings will not be applied without passing an HttpClientHandler. + /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. + /// + public BackgroundJobsApi(HttpClient client, TestIt.Client.Client.Configuration configuration, HttpClientHandler handler = null) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + if (client == null) throw new ArgumentNullException("client"); + + this.Configuration = TestIt.Client.Client.Configuration.MergeConfigurations( + TestIt.Client.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new TestIt.Client.Client.ApiClient(client, this.Configuration.BasePath, handler); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; + ExceptionFactory = TestIt.Client.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + /// + public BackgroundJobsApi(TestIt.Client.Client.ISynchronousClient client, TestIt.Client.Client.IAsynchronousClient asyncClient, TestIt.Client.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = TestIt.Client.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public TestIt.Client.Client.ApiClient ApiClient { get; set; } = null; + + /// + /// The client for accessing this underlying API asynchronously. + /// + public TestIt.Client.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public TestIt.Client.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public TestIt.Client.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public TestIt.Client.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Get current user background jobs + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// List<BackgroundJobModel> + public List ApiV2BackgroundJobsGet(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2BackgroundJobsGetWithHttpInfo(skip, take, orderBy, searchField, searchValue); + return localVarResponse.Data; + } + + /// + /// Get current user background jobs + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// ApiResponse of List<BackgroundJobModel> + public TestIt.Client.Client.ApiResponse> ApiV2BackgroundJobsGetWithHttpInfo(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)) + { + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/api/v2/backgroundJobs", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2BackgroundJobsGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get current user background jobs + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// Cancellation Token to cancel the request. + /// Task of List<BackgroundJobModel> + public async System.Threading.Tasks.Task> ApiV2BackgroundJobsGetAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2BackgroundJobsGetWithHttpInfoAsync(skip, take, orderBy, searchField, searchValue, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get current user background jobs + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<BackgroundJobModel>) + public async System.Threading.Tasks.Task>> ApiV2BackgroundJobsGetWithHttpInfoAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync>("/api/v2/backgroundJobs", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2BackgroundJobsGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} diff --git a/src/TestIt.Client/Api/ConfigurationsApi.cs b/src/TestIt.Client/Api/ConfigurationsApi.cs index 4b621270..48cfc534 100644 --- a/src/TestIt.Client/Api/ConfigurationsApi.cs +++ b/src/TestIt.Client/Api/ConfigurationsApi.cs @@ -49,6 +49,29 @@ public interface IConfigurationsApiSync : IApiAccessor /// ApiResponse of Object(void) ApiResponse ApiV2ConfigurationsCreateByParametersPostWithHttpInfo(ConfigurationByParametersModel configurationByParametersModel = default(ConfigurationByParametersModel)); /// + /// Patch configuration + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the configuration + /// (optional) + /// + void ApiV2ConfigurationsIdPatch(Guid id, List operation = default(List)); + + /// + /// Patch configuration + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the configuration + /// (optional) + /// ApiResponse of Object(void) + ApiResponse ApiV2ConfigurationsIdPatchWithHttpInfo(Guid id, List operation = default(List)); + /// /// Search for configurations /// /// Thrown when fails to make API call @@ -104,7 +127,7 @@ public interface IConfigurationsApiSync : IApiAccessor /// <br>Use case <br>User sets configuration internal (guid format) or global (integer format) identifier <br>User runs method execution <br>System search configuration using the identifier <br>System returns configuration /// /// Thrown when fails to make API call - /// + /// Configuration internal (guid format) or global (integer format) identifier /// ConfigurationModel ConfigurationModel GetConfigurationById(string id); @@ -115,7 +138,7 @@ public interface IConfigurationsApiSync : IApiAccessor /// <br>Use case <br>User sets configuration internal (guid format) or global (integer format) identifier <br>User runs method execution <br>System search configuration using the identifier <br>System returns configuration /// /// Thrown when fails to make API call - /// + /// Configuration internal (guid format) or global (integer format) identifier /// ApiResponse of ConfigurationModel ApiResponse GetConfigurationByIdWithHttpInfo(string id); /// @@ -172,6 +195,31 @@ public interface IConfigurationsApiAsync : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> ApiV2ConfigurationsCreateByParametersPostWithHttpInfoAsync(ConfigurationByParametersModel configurationByParametersModel = default(ConfigurationByParametersModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// + /// Patch configuration + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the configuration + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task ApiV2ConfigurationsIdPatchAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Patch configuration + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the configuration + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> ApiV2ConfigurationsIdPatchWithHttpInfoAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Search for configurations /// /// @@ -234,7 +282,7 @@ public interface IConfigurationsApiAsync : IApiAccessor /// <br>Use case <br>User sets configuration internal (guid format) or global (integer format) identifier <br>User runs method execution <br>System search configuration using the identifier <br>System returns configuration /// /// Thrown when fails to make API call - /// + /// Configuration internal (guid format) or global (integer format) identifier /// Cancellation Token to cancel the request. /// Task of ConfigurationModel System.Threading.Tasks.Task GetConfigurationByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); @@ -246,7 +294,7 @@ public interface IConfigurationsApiAsync : IApiAccessor /// <br>Use case <br>User sets configuration internal (guid format) or global (integer format) identifier <br>User runs method execution <br>System search configuration using the identifier <br>System returns configuration /// /// Thrown when fails to make API call - /// + /// Configuration internal (guid format) or global (integer format) identifier /// Cancellation Token to cancel the request. /// Task of ApiResponse (ConfigurationModel) System.Threading.Tasks.Task> GetConfigurationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); @@ -603,6 +651,129 @@ public TestIt.Client.Client.ExceptionFactory ExceptionFactory return localVarResponse; } + /// + /// Patch configuration See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the configuration + /// (optional) + /// + public void ApiV2ConfigurationsIdPatch(Guid id, List operation = default(List)) + { + ApiV2ConfigurationsIdPatchWithHttpInfo(id, operation); + } + + /// + /// Patch configuration See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the configuration + /// (optional) + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse ApiV2ConfigurationsIdPatchWithHttpInfo(Guid id, List operation = default(List)) + { + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = operation; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Patch("/api/v2/configurations/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ConfigurationsIdPatch", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Patch configuration See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the configuration + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task ApiV2ConfigurationsIdPatchAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await ApiV2ConfigurationsIdPatchWithHttpInfoAsync(id, operation, cancellationToken).ConfigureAwait(false); + } + + /// + /// Patch configuration See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the configuration + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ApiV2ConfigurationsIdPatchWithHttpInfoAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = operation; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PatchAsync("/api/v2/configurations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ConfigurationsIdPatch", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Search for configurations /// @@ -905,7 +1076,7 @@ public TestIt.Client.Client.ExceptionFactory ExceptionFactory /// Get configuration by internal or global ID <br>Use case <br>User sets configuration internal (guid format) or global (integer format) identifier <br>User runs method execution <br>System search configuration using the identifier <br>System returns configuration /// /// Thrown when fails to make API call - /// + /// Configuration internal (guid format) or global (integer format) identifier /// ConfigurationModel public ConfigurationModel GetConfigurationById(string id) { @@ -917,7 +1088,7 @@ public ConfigurationModel GetConfigurationById(string id) /// Get configuration by internal or global ID <br>Use case <br>User sets configuration internal (guid format) or global (integer format) identifier <br>User runs method execution <br>System search configuration using the identifier <br>System returns configuration /// /// Thrown when fails to make API call - /// + /// Configuration internal (guid format) or global (integer format) identifier /// ApiResponse of ConfigurationModel public TestIt.Client.Client.ApiResponse GetConfigurationByIdWithHttpInfo(string id) { @@ -965,7 +1136,7 @@ public TestIt.Client.Client.ApiResponse GetConfigurationById /// Get configuration by internal or global ID <br>Use case <br>User sets configuration internal (guid format) or global (integer format) identifier <br>User runs method execution <br>System search configuration using the identifier <br>System returns configuration /// /// Thrown when fails to make API call - /// + /// Configuration internal (guid format) or global (integer format) identifier /// Cancellation Token to cancel the request. /// Task of ConfigurationModel public async System.Threading.Tasks.Task GetConfigurationByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) @@ -978,7 +1149,7 @@ public TestIt.Client.Client.ApiResponse GetConfigurationById /// Get configuration by internal or global ID <br>Use case <br>User sets configuration internal (guid format) or global (integer format) identifier <br>User runs method execution <br>System search configuration using the identifier <br>System returns configuration /// /// Thrown when fails to make API call - /// + /// Configuration internal (guid format) or global (integer format) identifier /// Cancellation Token to cancel the request. /// Task of ApiResponse (ConfigurationModel) public async System.Threading.Tasks.Task> GetConfigurationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) diff --git a/src/TestIt.Client/Api/ParametersApi.cs b/src/TestIt.Client/Api/ParametersApi.cs index c1d6eba4..33c9c4d0 100644 --- a/src/TestIt.Client/Api/ParametersApi.cs +++ b/src/TestIt.Client/Api/ParametersApi.cs @@ -164,6 +164,34 @@ public interface IParametersApiSync : IApiAccessor /// ApiResponse of List<string> ApiResponse> ApiV2ParametersKeysGetWithHttpInfo(); /// + /// Search for parameters + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// List<ParameterModel> + List ApiV2ParametersSearchPost(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ParameterFilterModel parameterFilterModel = default(ParameterFilterModel)); + + /// + /// Search for parameters + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// ApiResponse of List<ParameterModel> + ApiResponse> ApiV2ParametersSearchPostWithHttpInfo(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ParameterFilterModel parameterFilterModel = default(ParameterFilterModel)); + /// /// Create parameter /// /// @@ -498,6 +526,39 @@ public interface IParametersApiAsync : IApiAccessor /// Task of ApiResponse (List<string>) System.Threading.Tasks.Task>> ApiV2ParametersKeysGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// + /// Search for parameters + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of List<ParameterModel> + System.Threading.Tasks.Task> ApiV2ParametersSearchPostAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ParameterFilterModel parameterFilterModel = default(ParameterFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Search for parameters + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ParameterModel>) + System.Threading.Tasks.Task>> ApiV2ParametersSearchPostWithHttpInfoAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ParameterFilterModel parameterFilterModel = default(ParameterFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Create parameter /// /// @@ -1698,6 +1759,185 @@ public TestIt.Client.Client.ApiResponse> ApiV2ParametersKeysGetWith return localVarResponse; } + /// + /// Search for parameters + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// List<ParameterModel> + public List ApiV2ParametersSearchPost(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ParameterFilterModel parameterFilterModel = default(ParameterFilterModel)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ParametersSearchPostWithHttpInfo(skip, take, orderBy, searchField, searchValue, parameterFilterModel); + return localVarResponse.Data; + } + + /// + /// Search for parameters + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// ApiResponse of List<ParameterModel> + public TestIt.Client.Client.ApiResponse> ApiV2ParametersSearchPostWithHttpInfo(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ParameterFilterModel parameterFilterModel = default(ParameterFilterModel)) + { + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + localVarRequestOptions.Data = parameterFilterModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/api/v2/parameters/search", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ParametersSearchPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Search for parameters + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of List<ParameterModel> + public async System.Threading.Tasks.Task> ApiV2ParametersSearchPostAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ParameterFilterModel parameterFilterModel = default(ParameterFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ParametersSearchPostWithHttpInfoAsync(skip, take, orderBy, searchField, searchValue, parameterFilterModel, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Search for parameters + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ParameterModel>) + public async System.Threading.Tasks.Task>> ApiV2ParametersSearchPostWithHttpInfoAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ParameterFilterModel parameterFilterModel = default(ParameterFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + localVarRequestOptions.Data = parameterFilterModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync>("/api/v2/parameters/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ParametersSearchPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Create parameter <br>Use case <br>User sets parameter model (listed in the request example) <br>User runs method execution <br>System creates parameter <br>System returns parameter model /// diff --git a/src/TestIt.Client/Api/ProjectsApi.cs b/src/TestIt.Client/Api/ProjectsApi.cs index c988d8d0..8c129650 100644 --- a/src/TestIt.Client/Api/ProjectsApi.cs +++ b/src/TestIt.Client/Api/ProjectsApi.cs @@ -189,6 +189,29 @@ public interface IProjectsApiSync : IApiAccessor /// ApiResponse of List<FilterModel> ApiResponse> ApiV2ProjectsIdFiltersGetWithHttpInfo(string id); /// + /// Patch project + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique or global Id of project + /// (optional) + /// + void ApiV2ProjectsIdPatch(Guid id, List operation = default(List)); + + /// + /// Patch project + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique or global Id of project + /// (optional) + /// ApiResponse of Object(void) + ApiResponse ApiV2ProjectsIdPatchWithHttpInfo(Guid id, List operation = default(List)); + /// /// Get TestPlans analytics /// /// @@ -224,6 +247,26 @@ public interface IProjectsApiSync : IApiAccessor /// ApiResponse of List<TestPlanWithAnalyticModel> ApiResponse> ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfo(Guid id, bool? isDeleted = default(bool?), bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)); /// + /// Delete multiple test plans + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// (optional) + /// List<Guid> + List ApiV2ProjectsIdTestPlansDeleteBulkPost(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel)); + + /// + /// Delete multiple test plans + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// (optional) + /// ApiResponse of List<Guid> + ApiResponse> ApiV2ProjectsIdTestPlansDeleteBulkPostWithHttpInfo(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel)); + /// /// Checks if TestPlan exists with the specified name exists for the project /// /// @@ -247,6 +290,26 @@ public interface IProjectsApiSync : IApiAccessor /// ApiResponse of bool ApiResponse ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfo(Guid id, string name); /// + /// Restore multiple test plans + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// (optional) + /// + void ApiV2ProjectsIdTestPlansRestoreBulkPost(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel)); + + /// + /// Restore multiple test plans + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// (optional) + /// ApiResponse of Object(void) + ApiResponse ApiV2ProjectsIdTestPlansRestoreBulkPostWithHttpInfo(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel)); + /// /// Get Project TestPlans with analytics /// /// @@ -260,9 +323,9 @@ public interface IProjectsApiSync : IApiAccessor /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) /// Property name for searching (optional) /// Value for searching (optional) - /// (optional) + /// (optional) /// List<TestPlanWithAnalyticModel> - List ApiV2ProjectsIdTestPlansSearchPost(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), TestPlanSearchQueryModel testPlanSearchQueryModel = default(TestPlanSearchQueryModel)); + List ApiV2ProjectsIdTestPlansSearchPost(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel)); /// /// Get Project TestPlans with analytics @@ -278,9 +341,9 @@ public interface IProjectsApiSync : IApiAccessor /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) /// Property name for searching (optional) /// Value for searching (optional) - /// (optional) + /// (optional) /// ApiResponse of List<TestPlanWithAnalyticModel> - ApiResponse> ApiV2ProjectsIdTestPlansSearchPostWithHttpInfo(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), TestPlanSearchQueryModel testPlanSearchQueryModel = default(TestPlanSearchQueryModel)); + ApiResponse> ApiV2ProjectsIdTestPlansSearchPostWithHttpInfo(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel)); /// /// Get active Project TestRuns /// @@ -481,6 +544,82 @@ public interface IProjectsApiSync : IApiAccessor /// ApiResponse of List<ProjectModel> ApiResponse> ApiV2ProjectsSearchPostWithHttpInfo(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectsFilterModel projectsFilterModel = default(ProjectsFilterModel)); /// + /// Import project from JSON file in background job + /// + /// Thrown when fails to make API call + /// (optional) + /// Guid + Guid BackgroundImportProject(FileParameter file = default(FileParameter)); + + /// + /// Import project from JSON file in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of Guid + ApiResponse BackgroundImportProjectWithHttpInfo(FileParameter file = default(FileParameter)); + /// + /// Import project from JSON file into existing project in background job + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) + /// Guid + Guid BackgroundImportToExistingProject(string id, FileParameter file = default(FileParameter)); + + /// + /// Import project from JSON file into existing project in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) + /// ApiResponse of Guid + ApiResponse BackgroundImportToExistingProjectWithHttpInfo(string id, FileParameter file = default(FileParameter)); + /// + /// Import project from Zip file in background job + /// + /// Thrown when fails to make API call + /// (optional) + /// Guid + Guid BackgroundImportZipProject(FileParameter file = default(FileParameter)); + + /// + /// Import project from Zip file in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of Guid + ApiResponse BackgroundImportZipProjectWithHttpInfo(FileParameter file = default(FileParameter)); + /// + /// Import project from Zip file into existing project in background job + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) + /// Guid + Guid BackgroundImportZipToExistingProject(string id, FileParameter file = default(FileParameter)); + + /// + /// Import project from Zip file into existing project in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) + /// ApiResponse of Guid + ApiResponse BackgroundImportZipToExistingProjectWithHttpInfo(string id, FileParameter file = default(FileParameter)); + /// /// Add attributes to project's test plans /// /// @@ -639,28 +778,118 @@ public interface IProjectsApiSync : IApiAccessor /// Export project as JSON file /// /// - /// <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> <code> curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" </code> <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. + /// <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> ``` curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" ``` <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. /// /// Thrown when fails to make API call /// Specifies the ID of the project you want to export. /// Enables attachment export. (optional, default to false) /// (optional) /// FileParameter + [Obsolete] FileParameter Export(string id, bool? includeAttachments = default(bool?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)); /// /// Export project as JSON file /// /// - /// <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> <code> curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" </code> <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. + /// <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> ``` curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" ``` <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. /// /// Thrown when fails to make API call /// Specifies the ID of the project you want to export. /// Enables attachment export. (optional, default to false) /// (optional) /// ApiResponse of FileParameter + [Obsolete] ApiResponse ExportWithHttpInfo(string id, bool? includeAttachments = default(bool?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)); /// + /// Export project as JSON file in background job + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// Guid + Guid ExportProjectJson(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)); + + /// + /// Export project as JSON file in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// ApiResponse of Guid + ApiResponse ExportProjectJsonWithHttpInfo(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)); + /// + /// Export project as JSON file with test plans in background job + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// Guid + Guid ExportProjectWithTestPlansJson(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel)); + + /// + /// Export project as JSON file with test plans in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// ApiResponse of Guid + ApiResponse ExportProjectWithTestPlansJsonWithHttpInfo(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel)); + /// + /// Export project as Zip file with test plans in background job + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// Guid + Guid ExportProjectWithTestPlansZip(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel)); + + /// + /// Export project as Zip file with test plans in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// ApiResponse of Guid + ApiResponse ExportProjectWithTestPlansZipWithHttpInfo(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel)); + /// + /// Export project as Zip file in background job + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// Guid + Guid ExportProjectZip(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)); + + /// + /// Export project as Zip file in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// ApiResponse of Guid + ApiResponse ExportProjectZipWithHttpInfo(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)); + /// /// Export project with test plans, test suites and test points as JSON file /// /// @@ -671,6 +900,7 @@ public interface IProjectsApiSync : IApiAccessor /// Enables attachment export. (optional, default to false) /// (optional) /// FileParameter + [Obsolete] FileParameter ExportWithTestPlansAndConfigurations(string id, bool? includeAttachments = default(bool?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel)); /// @@ -684,6 +914,7 @@ public interface IProjectsApiSync : IApiAccessor /// Enables attachment export. (optional, default to false) /// (optional) /// ApiResponse of FileParameter + [Obsolete] ApiResponse ExportWithTestPlansAndConfigurationsWithHttpInfo(string id, bool? includeAttachments = default(bool?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel)); /// /// Get all projects @@ -751,9 +982,9 @@ public interface IProjectsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// If result must consist of only actual/deleted work items (optional, default to false) + /// (optional) /// List<CustomAttributeModel> - List GetAttributesByProjectId(string id, bool? isDeleted = default(bool?)); + List GetAttributesByProjectId(string id, DeletionState? isDeleted = default(DeletionState?)); /// /// Get project attributes @@ -763,9 +994,9 @@ public interface IProjectsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// If result must consist of only actual/deleted work items (optional, default to false) + /// (optional) /// ApiResponse of List<CustomAttributeModel> - ApiResponse> GetAttributesByProjectIdWithHttpInfo(string id, bool? isDeleted = default(bool?)); + ApiResponse> GetAttributesByProjectIdWithHttpInfo(string id, DeletionState? isDeleted = default(DeletionState?)); /// /// Get namespaces of autotests in project /// @@ -990,24 +1221,26 @@ public interface IProjectsApiSync : IApiAccessor /// Import project from JSON file /// /// - /// <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> <code> 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\" </code> <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. + /// <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> ``` 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\" ``` <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. /// /// Thrown when fails to make API call /// Enables attachment import. (optional, default to false) /// Select file (optional) /// + [Obsolete] void Import(bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter)); /// /// Import project from JSON file /// /// - /// <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> <code> 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\" </code> <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. + /// <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> ``` 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\" ``` <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. /// /// Thrown when fails to make API call /// Enables attachment import. (optional, default to false) /// Select file (optional) /// ApiResponse of Object(void) + [Obsolete] ApiResponse ImportWithHttpInfo(bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter)); /// /// Import project from JSON file into existing project @@ -1020,6 +1253,7 @@ public interface IProjectsApiSync : IApiAccessor /// (optional) /// Select file (optional) /// + [Obsolete] void ImportToExistingProject(string id, bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter)); /// @@ -1033,6 +1267,7 @@ public interface IProjectsApiSync : IApiAccessor /// (optional) /// Select file (optional) /// ApiResponse of Object(void) + [Obsolete] ApiResponse ImportToExistingProjectWithHttpInfo(string id, bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter)); /// /// Restore project @@ -1370,6 +1605,31 @@ public interface IProjectsApiAsync : IApiAccessor /// Task of ApiResponse (List<FilterModel>) System.Threading.Tasks.Task>> ApiV2ProjectsIdFiltersGetWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// + /// Patch project + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique or global Id of project + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task ApiV2ProjectsIdPatchAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Patch project + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique or global Id of project + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> ApiV2ProjectsIdPatchWithHttpInfoAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Get TestPlans analytics /// /// @@ -1407,6 +1667,31 @@ public interface IProjectsApiAsync : IApiAccessor /// Task of ApiResponse (List<TestPlanWithAnalyticModel>) System.Threading.Tasks.Task>> ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfoAsync(Guid id, bool? isDeleted = default(bool?), bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// + /// Delete multiple test plans + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of List<Guid> + System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansDeleteBulkPostAsync(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete multiple test plans + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Guid>) + System.Threading.Tasks.Task>> ApiV2ProjectsIdTestPlansDeleteBulkPostWithHttpInfoAsync(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Checks if TestPlan exists with the specified name exists for the project /// /// @@ -1432,6 +1717,31 @@ public interface IProjectsApiAsync : IApiAccessor /// Task of ApiResponse (bool) System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfoAsync(Guid id, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// + /// Restore multiple test plans + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task ApiV2ProjectsIdTestPlansRestoreBulkPostAsync(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Restore multiple test plans + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansRestoreBulkPostWithHttpInfoAsync(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Get Project TestPlans with analytics /// /// @@ -1445,10 +1755,10 @@ public interface IProjectsApiAsync : IApiAccessor /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) /// Property name for searching (optional) /// Value for searching (optional) - /// (optional) + /// (optional) /// Cancellation Token to cancel the request. /// Task of List<TestPlanWithAnalyticModel> - System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansSearchPostAsync(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), TestPlanSearchQueryModel testPlanSearchQueryModel = default(TestPlanSearchQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansSearchPostAsync(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Project TestPlans with analytics @@ -1464,10 +1774,10 @@ public interface IProjectsApiAsync : IApiAccessor /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) /// Property name for searching (optional) /// Value for searching (optional) - /// (optional) + /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<TestPlanWithAnalyticModel>) - System.Threading.Tasks.Task>> ApiV2ProjectsIdTestPlansSearchPostWithHttpInfoAsync(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), TestPlanSearchQueryModel testPlanSearchQueryModel = default(TestPlanSearchQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> ApiV2ProjectsIdTestPlansSearchPostWithHttpInfoAsync(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get active Project TestRuns /// @@ -1694,83 +2004,179 @@ public interface IProjectsApiAsync : IApiAccessor /// Task of ApiResponse (List<ProjectModel>) System.Threading.Tasks.Task>> ApiV2ProjectsSearchPostWithHttpInfoAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectsFilterModel projectsFilterModel = default(ProjectsFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Add attributes to project's test plans + /// Import project from JSON file in background job /// /// - /// <br>Use case <br>User sets project internal or global identifier and attributes identifiers <br>User runs method execution <br>System updates project and add attributes to project for test plans <br>System returns no content response + /// /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of void - System.Threading.Tasks.Task CreateCustomAttributeTestPlanProjectRelationsAsync(string id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of Guid + System.Threading.Tasks.Task BackgroundImportProjectAsync(FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Add attributes to project's test plans + /// Import project from JSON file in background job /// /// - /// <br>Use case <br>User sets project internal or global identifier and attributes identifiers <br>User runs method execution <br>System updates project and add attributes to project for test plans <br>System returns no content response + /// /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CreateCustomAttributeTestPlanProjectRelationsWithHttpInfoAsync(string id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (Guid) + System.Threading.Tasks.Task> BackgroundImportProjectWithHttpInfoAsync(FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Create project + /// Import project from JSON file into existing project in background job /// /// - /// <br>Use case <br>User sets project parameters (listed in request example) and runs method execution <br>System creates project <br>System returns project model (example listed in response parameters) + /// /// /// Thrown when fails to make API call - /// (optional) + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) /// Cancellation Token to cancel the request. - /// Task of ProjectModel - System.Threading.Tasks.Task CreateProjectAsync(ProjectPostModel projectPostModel = default(ProjectPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of Guid + System.Threading.Tasks.Task BackgroundImportToExistingProjectAsync(string id, FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Create project + /// Import project from JSON file into existing project in background job /// /// - /// <br>Use case <br>User sets project parameters (listed in request example) and runs method execution <br>System creates project <br>System returns project model (example listed in response parameters) + /// /// /// Thrown when fails to make API call - /// (optional) + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ProjectModel) - System.Threading.Tasks.Task> CreateProjectWithHttpInfoAsync(ProjectPostModel projectPostModel = default(ProjectPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (Guid) + System.Threading.Tasks.Task> BackgroundImportToExistingProjectWithHttpInfoAsync(string id, FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Create project attribute + /// Import project from Zip file in background job /// /// - /// <br>Use case <br>User sets attribute parameters (listed in request example) and runs method execution <br>System search project <br>System creates attribute and relates it to the project <br>System returns project attribute properties (example listed in response parameters) + /// /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of CustomAttributeModel - System.Threading.Tasks.Task CreateProjectsAttributeAsync(string id, CustomAttributePostModel customAttributePostModel = default(CustomAttributePostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of Guid + System.Threading.Tasks.Task BackgroundImportZipProjectAsync(FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Create project attribute + /// Import project from Zip file in background job /// /// - /// <br>Use case <br>User sets attribute parameters (listed in request example) and runs method execution <br>System search project <br>System creates attribute and relates it to the project <br>System returns project attribute properties (example listed in response parameters) + /// /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CustomAttributeModel) - System.Threading.Tasks.Task> CreateProjectsAttributeWithHttpInfoAsync(string id, CustomAttributePostModel customAttributePostModel = default(CustomAttributePostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (Guid) + System.Threading.Tasks.Task> BackgroundImportZipProjectWithHttpInfoAsync(FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Delete attribute from project's test plans + /// Import project from Zip file into existing project in background job /// /// - /// <br>Use case <br>User sets project internal or global identifier and attribute identifier <br>User runs method execution <br>System updates project and delete attribute from project for test plans <br>System returns no content response + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) + /// Cancellation Token to cancel the request. + /// Task of Guid + System.Threading.Tasks.Task BackgroundImportZipToExistingProjectAsync(string id, FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Import project from Zip file into existing project in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Guid) + System.Threading.Tasks.Task> BackgroundImportZipToExistingProjectWithHttpInfoAsync(string id, FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Add attributes to project's test plans + /// + /// + /// <br>Use case <br>User sets project internal or global identifier and attributes identifiers <br>User runs method execution <br>System updates project and add attributes to project for test plans <br>System returns no content response + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task CreateCustomAttributeTestPlanProjectRelationsAsync(string id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Add attributes to project's test plans + /// + /// + /// <br>Use case <br>User sets project internal or global identifier and attributes identifiers <br>User runs method execution <br>System updates project and add attributes to project for test plans <br>System returns no content response + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> CreateCustomAttributeTestPlanProjectRelationsWithHttpInfoAsync(string id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create project + /// + /// + /// <br>Use case <br>User sets project parameters (listed in request example) and runs method execution <br>System creates project <br>System returns project model (example listed in response parameters) + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ProjectModel + System.Threading.Tasks.Task CreateProjectAsync(ProjectPostModel projectPostModel = default(ProjectPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create project + /// + /// + /// <br>Use case <br>User sets project parameters (listed in request example) and runs method execution <br>System creates project <br>System returns project model (example listed in response parameters) + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ProjectModel) + System.Threading.Tasks.Task> CreateProjectWithHttpInfoAsync(ProjectPostModel projectPostModel = default(ProjectPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Create project attribute + /// + /// + /// <br>Use case <br>User sets attribute parameters (listed in request example) and runs method execution <br>System search project <br>System creates attribute and relates it to the project <br>System returns project attribute properties (example listed in response parameters) + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of CustomAttributeModel + System.Threading.Tasks.Task CreateProjectsAttributeAsync(string id, CustomAttributePostModel customAttributePostModel = default(CustomAttributePostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create project attribute + /// + /// + /// <br>Use case <br>User sets attribute parameters (listed in request example) and runs method execution <br>System search project <br>System creates attribute and relates it to the project <br>System returns project attribute properties (example listed in response parameters) + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CustomAttributeModel) + System.Threading.Tasks.Task> CreateProjectsAttributeWithHttpInfoAsync(string id, CustomAttributePostModel customAttributePostModel = default(CustomAttributePostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete attribute from project's test plans + /// + /// + /// <br>Use case <br>User sets project internal or global identifier and attribute identifier <br>User runs method execution <br>System updates project and delete attribute from project for test plans <br>System returns no content response /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier @@ -1866,7 +2272,7 @@ public interface IProjectsApiAsync : IApiAccessor /// Export project as JSON file /// /// - /// <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> <code> curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" </code> <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. + /// <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> ``` curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" ``` <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. /// /// Thrown when fails to make API call /// Specifies the ID of the project you want to export. @@ -1874,13 +2280,14 @@ public interface IProjectsApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of FileParameter + [Obsolete] System.Threading.Tasks.Task ExportAsync(string id, bool? includeAttachments = default(bool?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Export project as JSON file /// /// - /// <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> <code> curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" </code> <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. + /// <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> ``` curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" ``` <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. /// /// Thrown when fails to make API call /// Specifies the ID of the project you want to export. @@ -1888,8 +2295,117 @@ public interface IProjectsApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileParameter) + [Obsolete] System.Threading.Tasks.Task> ExportWithHttpInfoAsync(string id, bool? includeAttachments = default(bool?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// + /// Export project as JSON file in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of Guid + System.Threading.Tasks.Task ExportProjectJsonAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Export project as JSON file in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Guid) + System.Threading.Tasks.Task> ExportProjectJsonWithHttpInfoAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Export project as JSON file with test plans in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of Guid + System.Threading.Tasks.Task ExportProjectWithTestPlansJsonAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Export project as JSON file with test plans in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Guid) + System.Threading.Tasks.Task> ExportProjectWithTestPlansJsonWithHttpInfoAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Export project as Zip file with test plans in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of Guid + System.Threading.Tasks.Task ExportProjectWithTestPlansZipAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Export project as Zip file with test plans in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Guid) + System.Threading.Tasks.Task> ExportProjectWithTestPlansZipWithHttpInfoAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Export project as Zip file in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of Guid + System.Threading.Tasks.Task ExportProjectZipAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Export project as Zip file in background job + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Guid) + System.Threading.Tasks.Task> ExportProjectZipWithHttpInfoAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Export project with test plans, test suites and test points as JSON file /// /// @@ -1901,6 +2417,7 @@ public interface IProjectsApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of FileParameter + [Obsolete] System.Threading.Tasks.Task ExportWithTestPlansAndConfigurationsAsync(string id, bool? includeAttachments = default(bool?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// @@ -1915,6 +2432,7 @@ public interface IProjectsApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileParameter) + [Obsolete] System.Threading.Tasks.Task> ExportWithTestPlansAndConfigurationsWithHttpInfoAsync(string id, bool? includeAttachments = default(bool?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get all projects @@ -1986,10 +2504,10 @@ public interface IProjectsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// If result must consist of only actual/deleted work items (optional, default to false) + /// (optional) /// Cancellation Token to cancel the request. /// Task of List<CustomAttributeModel> - System.Threading.Tasks.Task> GetAttributesByProjectIdAsync(string id, bool? isDeleted = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetAttributesByProjectIdAsync(string id, DeletionState? isDeleted = default(DeletionState?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get project attributes @@ -1999,10 +2517,10 @@ public interface IProjectsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// If result must consist of only actual/deleted work items (optional, default to false) + /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<CustomAttributeModel>) - System.Threading.Tasks.Task>> GetAttributesByProjectIdWithHttpInfoAsync(string id, bool? isDeleted = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> GetAttributesByProjectIdWithHttpInfoAsync(string id, DeletionState? isDeleted = default(DeletionState?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get namespaces of autotests in project /// @@ -2243,26 +2761,28 @@ public interface IProjectsApiAsync : IApiAccessor /// Import project from JSON file /// /// - /// <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> <code> 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\" </code> <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. + /// <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> ``` 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\" ``` <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. /// /// Thrown when fails to make API call /// Enables attachment import. (optional, default to false) /// Select file (optional) /// Cancellation Token to cancel the request. /// Task of void + [Obsolete] System.Threading.Tasks.Task ImportAsync(bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Import project from JSON file /// /// - /// <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> <code> 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\" </code> <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. + /// <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> ``` 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\" ``` <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. /// /// Thrown when fails to make API call /// Enables attachment import. (optional, default to false) /// Select file (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse + [Obsolete] System.Threading.Tasks.Task> ImportWithHttpInfoAsync(bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Import project from JSON file into existing project @@ -2276,6 +2796,7 @@ public interface IProjectsApiAsync : IApiAccessor /// Select file (optional) /// Cancellation Token to cancel the request. /// Task of void + [Obsolete] System.Threading.Tasks.Task ImportToExistingProjectAsync(string id, bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// @@ -2290,6 +2811,7 @@ public interface IProjectsApiAsync : IApiAccessor /// Select file (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse + [Obsolete] System.Threading.Tasks.Task> ImportToExistingProjectWithHttpInfoAsync(string id, bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Restore project @@ -3638,42 +4160,30 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdFilter } /// - /// Get TestPlans analytics <br>Use case <br>User sets project internal identifier <br>User sets query params <br>User runs method execution <br>System return analytics + /// Patch project See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details /// /// Thrown when fails to make API call - /// Project internal (UUID) identifier - /// (optional) - /// (optional, default to false) - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// List<TestPlanWithAnalyticModel> - public List ApiV2ProjectsIdTestPlansAnalyticsGet(Guid id, bool? isDeleted = default(bool?), bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)) + /// Unique or global Id of project + /// (optional) + /// + public void ApiV2ProjectsIdPatch(Guid id, List operation = default(List)) { - TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfo(id, isDeleted, mustUpdateCache, skip, take, orderBy, searchField, searchValue); - return localVarResponse.Data; + ApiV2ProjectsIdPatchWithHttpInfo(id, operation); } /// - /// Get TestPlans analytics <br>Use case <br>User sets project internal identifier <br>User sets query params <br>User runs method execution <br>System return analytics + /// Patch project See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details /// /// Thrown when fails to make API call - /// Project internal (UUID) identifier - /// (optional) - /// (optional, default to false) - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// ApiResponse of List<TestPlanWithAnalyticModel> - public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfo(Guid id, bool? isDeleted = default(bool?), bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)) + /// Unique or global Id of project + /// (optional) + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdPatchWithHttpInfo(Guid id, List operation = default(List)) { TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -3688,34 +4198,7 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdFilter if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - if (isDeleted != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "isDeleted", isDeleted)); - } - if (mustUpdateCache != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "mustUpdateCache", mustUpdateCache)); - } - if (skip != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); - } - if (take != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); - } - if (orderBy != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); - } - if (searchField != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); - } - if (searchValue != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); - } + localVarRequestOptions.Data = operation; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -3724,11 +4207,11 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdFilter } // make the HTTP request - var localVarResponse = this.Client.Get>("/api/v2/projects/{id}/testPlans/analytics", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Patch("/api/v2/projects/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansAnalyticsGet", localVarResponse); + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdPatch", localVarResponse); if (_exception != null) throw _exception; } @@ -3736,205 +4219,35 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdFilter } /// - /// Get TestPlans analytics <br>Use case <br>User sets project internal identifier <br>User sets query params <br>User runs method execution <br>System return analytics + /// Patch project See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details /// /// Thrown when fails to make API call - /// Project internal (UUID) identifier - /// (optional) - /// (optional, default to false) - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) + /// Unique or global Id of project + /// (optional) /// Cancellation Token to cancel the request. - /// Task of List<TestPlanWithAnalyticModel> - public async System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansAnalyticsGetAsync(Guid id, bool? isDeleted = default(bool?), bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of void + public async System.Threading.Tasks.Task ApiV2ProjectsIdPatchAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfoAsync(id, isDeleted, mustUpdateCache, skip, take, orderBy, searchField, searchValue, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; + await ApiV2ProjectsIdPatchWithHttpInfoAsync(id, operation, cancellationToken).ConfigureAwait(false); } /// - /// Get TestPlans analytics <br>Use case <br>User sets project internal identifier <br>User sets query params <br>User runs method execution <br>System return analytics + /// Patch project See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details /// /// Thrown when fails to make API call - /// Project internal (UUID) identifier - /// (optional) - /// (optional, default to false) - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) + /// Unique or global Id of project + /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<TestPlanWithAnalyticModel>) - public async System.Threading.Tasks.Task>> ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfoAsync(Guid id, bool? isDeleted = default(bool?), bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - - TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - - var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - if (isDeleted != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "isDeleted", isDeleted)); - } - if (mustUpdateCache != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "mustUpdateCache", mustUpdateCache)); - } - if (skip != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); - } - if (take != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); - } - if (orderBy != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); - } - if (searchField != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); - } - if (searchValue != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); - } - - // authentication (Bearer or PrivateToken) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - - var localVarResponse = await this.AsynchronousClient.GetAsync>("/api/v2/projects/{id}/testPlans/analytics", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansAnalyticsGet", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// Checks if TestPlan exists with the specified name exists for the project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System purge delete project workitems - /// - /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// TestPlan name to check - /// bool - public bool ApiV2ProjectsIdTestPlansNameExistsGet(Guid id, string name) - { - TestIt.Client.Client.ApiResponse localVarResponse = ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfo(id, name); - return localVarResponse.Data; - } - - /// - /// Checks if TestPlan exists with the specified name exists for the project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System purge delete project workitems - /// - /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// TestPlan name to check - /// ApiResponse of bool - public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfo(Guid id, string name) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ApiV2ProjectsIdPatchWithHttpInfoAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - // verify the required parameter 'name' is set - if (name == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'name' when calling ProjectsApi->ApiV2ProjectsIdTestPlansNameExistsGet"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - }; - - // to determine the Accept header - string[] _accepts = new string[] { "application/json" }; - var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.PathParameters.Add("name", TestIt.Client.Client.ClientUtils.ParameterToString(name)); // path parameter - - // authentication (Bearer or PrivateToken) required - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) - { - localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/api/v2/projects/{id}/testPlans/{name}/exists", localVarRequestOptions, this.Configuration); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansNameExistsGet", localVarResponse); - if (_exception != null) throw _exception; - } - - return localVarResponse; - } - - /// - /// Checks if TestPlan exists with the specified name exists for the project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System purge delete project workitems - /// - /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// TestPlan name to check - /// Cancellation Token to cancel the request. - /// Task of bool - public async System.Threading.Tasks.Task ApiV2ProjectsIdTestPlansNameExistsGetAsync(Guid id, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - TestIt.Client.Client.ApiResponse localVarResponse = await ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfoAsync(id, name, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Checks if TestPlan exists with the specified name exists for the project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System purge delete project workitems - /// - /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// TestPlan name to check - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfoAsync(Guid id, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // verify the required parameter 'name' is set - if (name == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'name' when calling ProjectsApi->ApiV2ProjectsIdTestPlansNameExistsGet"); - - - TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - }; - // to determine the Accept header string[] _accepts = new string[] { "application/json" @@ -3948,7 +4261,7 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExists if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.PathParameters.Add("name", TestIt.Client.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.Data = operation; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -3958,11 +4271,11 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExists // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/api/v2/projects/{id}/testPlans/{name}/exists", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PatchAsync("/api/v2/projects/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansNameExistsGet", localVarResponse); + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdPatch", localVarResponse); if (_exception != null) throw _exception; } @@ -3970,47 +4283,42 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExists } /// - /// Get Project TestPlans with analytics <br>Use case <br>User sets project internal or global identifier <br>User sets request body <br>User runs method execution <br>System returns project testplans with analytics + /// Get TestPlans analytics <br>Use case <br>User sets project internal identifier <br>User sets query params <br>User runs method execution <br>System return analytics /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier + /// Project internal (UUID) identifier + /// (optional) /// (optional, default to false) /// Amount of items to be skipped (offset) (optional) /// Amount of items to be taken (limit) (optional) /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) /// Property name for searching (optional) /// Value for searching (optional) - /// (optional) /// List<TestPlanWithAnalyticModel> - public List ApiV2ProjectsIdTestPlansSearchPost(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), TestPlanSearchQueryModel testPlanSearchQueryModel = default(TestPlanSearchQueryModel)) + public List ApiV2ProjectsIdTestPlansAnalyticsGet(Guid id, bool? isDeleted = default(bool?), bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)) { - TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdTestPlansSearchPostWithHttpInfo(id, mustUpdateCache, skip, take, orderBy, searchField, searchValue, testPlanSearchQueryModel); + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfo(id, isDeleted, mustUpdateCache, skip, take, orderBy, searchField, searchValue); return localVarResponse.Data; } /// - /// Get Project TestPlans with analytics <br>Use case <br>User sets project internal or global identifier <br>User sets request body <br>User runs method execution <br>System returns project testplans with analytics + /// Get TestPlans analytics <br>Use case <br>User sets project internal identifier <br>User sets query params <br>User runs method execution <br>System return analytics /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier + /// Project internal (UUID) identifier + /// (optional) /// (optional, default to false) /// Amount of items to be skipped (offset) (optional) /// Amount of items to be taken (limit) (optional) /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) /// Property name for searching (optional) /// Value for searching (optional) - /// (optional) /// ApiResponse of List<TestPlanWithAnalyticModel> - public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdTestPlansSearchPostWithHttpInfo(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), TestPlanSearchQueryModel testPlanSearchQueryModel = default(TestPlanSearchQueryModel)) + public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfo(Guid id, bool? isDeleted = default(bool?), bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)) { - // verify the required parameter 'id' is set - if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestPlansSearchPost"); - TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json" }; // to determine the Accept header @@ -4025,6 +4333,10 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExists if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (isDeleted != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "isDeleted", isDeleted)); + } if (mustUpdateCache != null) { localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "mustUpdateCache", mustUpdateCache)); @@ -4049,7 +4361,6 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExists { localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); } - localVarRequestOptions.Data = testPlanSearchQueryModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -4058,11 +4369,11 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExists } // make the HTTP request - var localVarResponse = this.Client.Post>("/api/v2/projects/{id}/testPlans/search", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/api/v2/projects/{id}/testPlans/analytics", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansSearchPost", localVarResponse); + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansAnalyticsGet", localVarResponse); if (_exception != null) throw _exception; } @@ -4070,50 +4381,45 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExists } /// - /// Get Project TestPlans with analytics <br>Use case <br>User sets project internal or global identifier <br>User sets request body <br>User runs method execution <br>System returns project testplans with analytics + /// Get TestPlans analytics <br>Use case <br>User sets project internal identifier <br>User sets query params <br>User runs method execution <br>System return analytics /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier + /// Project internal (UUID) identifier + /// (optional) /// (optional, default to false) /// Amount of items to be skipped (offset) (optional) /// Amount of items to be taken (limit) (optional) /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) /// Property name for searching (optional) /// Value for searching (optional) - /// (optional) /// Cancellation Token to cancel the request. /// Task of List<TestPlanWithAnalyticModel> - public async System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansSearchPostAsync(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), TestPlanSearchQueryModel testPlanSearchQueryModel = default(TestPlanSearchQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansAnalyticsGetAsync(Guid id, bool? isDeleted = default(bool?), bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdTestPlansSearchPostWithHttpInfoAsync(id, mustUpdateCache, skip, take, orderBy, searchField, searchValue, testPlanSearchQueryModel, cancellationToken).ConfigureAwait(false); + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfoAsync(id, isDeleted, mustUpdateCache, skip, take, orderBy, searchField, searchValue, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// Get Project TestPlans with analytics <br>Use case <br>User sets project internal or global identifier <br>User sets request body <br>User runs method execution <br>System returns project testplans with analytics + /// Get TestPlans analytics <br>Use case <br>User sets project internal identifier <br>User sets query params <br>User runs method execution <br>System return analytics /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier + /// Project internal (UUID) identifier + /// (optional) /// (optional, default to false) /// Amount of items to be skipped (offset) (optional) /// Amount of items to be taken (limit) (optional) /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) /// Property name for searching (optional) /// Value for searching (optional) - /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<TestPlanWithAnalyticModel>) - public async System.Threading.Tasks.Task>> ApiV2ProjectsIdTestPlansSearchPostWithHttpInfoAsync(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), TestPlanSearchQueryModel testPlanSearchQueryModel = default(TestPlanSearchQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> ApiV2ProjectsIdTestPlansAnalyticsGetWithHttpInfoAsync(Guid id, bool? isDeleted = default(bool?), bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - // verify the required parameter 'id' is set - if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestPlansSearchPost"); - TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json" }; // to determine the Accept header @@ -4129,6 +4435,10 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExists if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (isDeleted != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "isDeleted", isDeleted)); + } if (mustUpdateCache != null) { localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "mustUpdateCache", mustUpdateCache)); @@ -4153,7 +4463,6 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExists { localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); } - localVarRequestOptions.Data = testPlanSearchQueryModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -4163,11 +4472,11 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExists // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync>("/api/v2/projects/{id}/testPlans/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/api/v2/projects/{id}/testPlans/analytics", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansSearchPost", localVarResponse); + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansAnalyticsGet", localVarResponse); if (_exception != null) throw _exception; } @@ -4175,32 +4484,35 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExists } /// - /// Get active Project TestRuns <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System returns active testruns + /// Delete multiple test plans /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// List<PublicTestRunModel> - public List ApiV2ProjectsIdTestRunsActiveGet(string id) + /// Unique or global ID of the project + /// (optional) + /// List<Guid> + public List ApiV2ProjectsIdTestPlansDeleteBulkPost(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel)) { - TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdTestRunsActiveGetWithHttpInfo(id); + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdTestPlansDeleteBulkPostWithHttpInfo(id, projectTestPlansFilterModel); return localVarResponse.Data; } /// - /// Get active Project TestRuns <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System returns active testruns + /// Delete multiple test plans /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// ApiResponse of List<PublicTestRunModel> - public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdTestRunsActiveGetWithHttpInfo(string id) + /// Unique or global ID of the project + /// (optional) + /// ApiResponse of List<Guid> + public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdTestPlansDeleteBulkPostWithHttpInfo(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestRunsActiveGet"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestPlansDeleteBulkPost"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -4215,6 +4527,7 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = projectTestPlansFilterModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -4223,11 +4536,11 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } // make the HTTP request - var localVarResponse = this.Client.Get>("/api/v2/projects/{id}/testRuns/active", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post>("/api/v2/projects/{id}/testPlans/delete/bulk", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestRunsActiveGet", localVarResponse); + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansDeleteBulkPost", localVarResponse); if (_exception != null) throw _exception; } @@ -4235,35 +4548,38 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } /// - /// Get active Project TestRuns <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System returns active testruns + /// Delete multiple test plans /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier + /// Unique or global ID of the project + /// (optional) /// Cancellation Token to cancel the request. - /// Task of List<PublicTestRunModel> - public async System.Threading.Tasks.Task> ApiV2ProjectsIdTestRunsActiveGetAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of List<Guid> + public async System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansDeleteBulkPostAsync(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdTestRunsActiveGetWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdTestPlansDeleteBulkPostWithHttpInfoAsync(id, projectTestPlansFilterModel, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// Get active Project TestRuns <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System returns active testruns + /// Delete multiple test plans /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier + /// Unique or global ID of the project + /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<PublicTestRunModel>) - public async System.Threading.Tasks.Task>> ApiV2ProjectsIdTestRunsActiveGetWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (List<Guid>) + public async System.Threading.Tasks.Task>> ApiV2ProjectsIdTestPlansDeleteBulkPostWithHttpInfoAsync(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestRunsActiveGet"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestPlansDeleteBulkPost"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -4279,6 +4595,7 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = projectTestPlansFilterModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -4288,11 +4605,11 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/api/v2/projects/{id}/testRuns/active", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync>("/api/v2/projects/{id}/testPlans/delete/bulk", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestRunsActiveGet", localVarResponse); + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansDeleteBulkPost", localVarResponse); if (_exception != null) throw _exception; } @@ -4300,60 +4617,1734 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } /// - /// Get Project TestRuns full models <br>Use case <br>User sets project internal or global identifier <br>User sets query params <br>User runs method execution <br>System returns project test runs full models + /// Checks if TestPlan exists with the specified name exists for the project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System purge delete project workitems + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// TestPlan name to check + /// bool + public bool ApiV2ProjectsIdTestPlansNameExistsGet(Guid id, string name) + { + TestIt.Client.Client.ApiResponse localVarResponse = ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfo(id, name); + return localVarResponse.Data; + } + + /// + /// Checks if TestPlan exists with the specified name exists for the project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System purge delete project workitems + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// TestPlan name to check + /// ApiResponse of bool + public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfo(Guid id, string name) + { + // verify the required parameter 'name' is set + if (name == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'name' when calling ProjectsApi->ApiV2ProjectsIdTestPlansNameExistsGet"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("name", TestIt.Client.Client.ClientUtils.ParameterToString(name)); // path parameter + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/api/v2/projects/{id}/testPlans/{name}/exists", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansNameExistsGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Checks if TestPlan exists with the specified name exists for the project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System purge delete project workitems + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// TestPlan name to check + /// Cancellation Token to cancel the request. + /// Task of bool + public async System.Threading.Tasks.Task ApiV2ProjectsIdTestPlansNameExistsGetAsync(Guid id, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse localVarResponse = await ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfoAsync(id, name, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Checks if TestPlan exists with the specified name exists for the project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System purge delete project workitems + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// TestPlan name to check + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (bool) + public async System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansNameExistsGetWithHttpInfoAsync(Guid id, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'name' when calling ProjectsApi->ApiV2ProjectsIdTestPlansNameExistsGet"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("name", TestIt.Client.Client.ClientUtils.ParameterToString(name)); // path parameter + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync("/api/v2/projects/{id}/testPlans/{name}/exists", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansNameExistsGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Restore multiple test plans + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// (optional) + /// + public void ApiV2ProjectsIdTestPlansRestoreBulkPost(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel)) + { + ApiV2ProjectsIdTestPlansRestoreBulkPostWithHttpInfo(id, projectTestPlansFilterModel); + } + + /// + /// Restore multiple test plans + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// (optional) + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse ApiV2ProjectsIdTestPlansRestoreBulkPostWithHttpInfo(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestPlansRestoreBulkPost"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = projectTestPlansFilterModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/api/v2/projects/{id}/testPlans/restore/bulk", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansRestoreBulkPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Restore multiple test plans + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task ApiV2ProjectsIdTestPlansRestoreBulkPostAsync(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await ApiV2ProjectsIdTestPlansRestoreBulkPostWithHttpInfoAsync(id, projectTestPlansFilterModel, cancellationToken).ConfigureAwait(false); + } + + /// + /// Restore multiple test plans + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansRestoreBulkPostWithHttpInfoAsync(string id, ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestPlansRestoreBulkPost"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = projectTestPlansFilterModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/testPlans/restore/bulk", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansRestoreBulkPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get Project TestPlans with analytics <br>Use case <br>User sets project internal or global identifier <br>User sets request body <br>User runs method execution <br>System returns project testplans with analytics + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional, default to false) + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// List<TestPlanWithAnalyticModel> + public List ApiV2ProjectsIdTestPlansSearchPost(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdTestPlansSearchPostWithHttpInfo(id, mustUpdateCache, skip, take, orderBy, searchField, searchValue, projectTestPlansFilterModel); + return localVarResponse.Data; + } + + /// + /// Get Project TestPlans with analytics <br>Use case <br>User sets project internal or global identifier <br>User sets request body <br>User runs method execution <br>System returns project testplans with analytics + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional, default to false) + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// ApiResponse of List<TestPlanWithAnalyticModel> + public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdTestPlansSearchPostWithHttpInfo(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestPlansSearchPost"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (mustUpdateCache != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "mustUpdateCache", mustUpdateCache)); + } + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + localVarRequestOptions.Data = projectTestPlansFilterModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/api/v2/projects/{id}/testPlans/search", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansSearchPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get Project TestPlans with analytics <br>Use case <br>User sets project internal or global identifier <br>User sets request body <br>User runs method execution <br>System returns project testplans with analytics + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional, default to false) + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of List<TestPlanWithAnalyticModel> + public async System.Threading.Tasks.Task> ApiV2ProjectsIdTestPlansSearchPostAsync(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdTestPlansSearchPostWithHttpInfoAsync(id, mustUpdateCache, skip, take, orderBy, searchField, searchValue, projectTestPlansFilterModel, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get Project TestPlans with analytics <br>Use case <br>User sets project internal or global identifier <br>User sets request body <br>User runs method execution <br>System returns project testplans with analytics + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional, default to false) + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<TestPlanWithAnalyticModel>) + public async System.Threading.Tasks.Task>> ApiV2ProjectsIdTestPlansSearchPostWithHttpInfoAsync(string id, bool? mustUpdateCache = default(bool?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectTestPlansFilterModel projectTestPlansFilterModel = default(ProjectTestPlansFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestPlansSearchPost"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (mustUpdateCache != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "mustUpdateCache", mustUpdateCache)); + } + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + localVarRequestOptions.Data = projectTestPlansFilterModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync>("/api/v2/projects/{id}/testPlans/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestPlansSearchPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get active Project TestRuns <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System returns active testruns + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// List<PublicTestRunModel> + public List ApiV2ProjectsIdTestRunsActiveGet(string id) + { + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdTestRunsActiveGetWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get active Project TestRuns <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System returns active testruns + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// ApiResponse of List<PublicTestRunModel> + public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdTestRunsActiveGetWithHttpInfo(string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestRunsActiveGet"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/api/v2/projects/{id}/testRuns/active", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestRunsActiveGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get active Project TestRuns <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System returns active testruns + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// Cancellation Token to cancel the request. + /// Task of List<PublicTestRunModel> + public async System.Threading.Tasks.Task> ApiV2ProjectsIdTestRunsActiveGetAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdTestRunsActiveGetWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get active Project TestRuns <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System returns active testruns + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<PublicTestRunModel>) + public async System.Threading.Tasks.Task>> ApiV2ProjectsIdTestRunsActiveGetWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestRunsActiveGet"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync>("/api/v2/projects/{id}/testRuns/active", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestRunsActiveGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get Project TestRuns full models <br>Use case <br>User sets project internal or global identifier <br>User sets query params <br>User runs method execution <br>System returns project test runs full models + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional, default to false) + /// (optional, default to true) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// List<TestRunModel> + public List ApiV2ProjectsIdTestRunsFullGet(string id, bool? includeTestResults = default(bool?), bool? mustAggregateTestResults = default(bool?), bool? notStarted = default(bool?), bool? inProgress = default(bool?), bool? stopped = default(bool?), bool? completed = default(bool?), DateTime? createdDateFrom = default(DateTime?), DateTime? createdDateTo = default(DateTime?), Guid? testPlanId = default(Guid?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdTestRunsFullGetWithHttpInfo(id, includeTestResults, mustAggregateTestResults, notStarted, inProgress, stopped, completed, createdDateFrom, createdDateTo, testPlanId, skip, take, orderBy, searchField, searchValue); + return localVarResponse.Data; + } + + /// + /// Get Project TestRuns full models <br>Use case <br>User sets project internal or global identifier <br>User sets query params <br>User runs method execution <br>System returns project test runs full models + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional, default to false) + /// (optional, default to true) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// ApiResponse of List<TestRunModel> + public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdTestRunsFullGetWithHttpInfo(string id, bool? includeTestResults = default(bool?), bool? mustAggregateTestResults = default(bool?), bool? notStarted = default(bool?), bool? inProgress = default(bool?), bool? stopped = default(bool?), bool? completed = default(bool?), DateTime? createdDateFrom = default(DateTime?), DateTime? createdDateTo = default(DateTime?), Guid? testPlanId = default(Guid?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestRunsFullGet"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (includeTestResults != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "includeTestResults", includeTestResults)); + } + if (mustAggregateTestResults != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "mustAggregateTestResults", mustAggregateTestResults)); + } + if (notStarted != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "notStarted", notStarted)); + } + if (inProgress != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "inProgress", inProgress)); + } + if (stopped != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "stopped", stopped)); + } + if (completed != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "completed", completed)); + } + if (createdDateFrom != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "createdDateFrom", createdDateFrom)); + } + if (createdDateTo != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "createdDateTo", createdDateTo)); + } + if (testPlanId != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "testPlanId", testPlanId)); + } + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/api/v2/projects/{id}/testRuns/full", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestRunsFullGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get Project TestRuns full models <br>Use case <br>User sets project internal or global identifier <br>User sets query params <br>User runs method execution <br>System returns project test runs full models + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional, default to false) + /// (optional, default to true) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// Cancellation Token to cancel the request. + /// Task of List<TestRunModel> + public async System.Threading.Tasks.Task> ApiV2ProjectsIdTestRunsFullGetAsync(string id, bool? includeTestResults = default(bool?), bool? mustAggregateTestResults = default(bool?), bool? notStarted = default(bool?), bool? inProgress = default(bool?), bool? stopped = default(bool?), bool? completed = default(bool?), DateTime? createdDateFrom = default(DateTime?), DateTime? createdDateTo = default(DateTime?), Guid? testPlanId = default(Guid?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdTestRunsFullGetWithHttpInfoAsync(id, includeTestResults, mustAggregateTestResults, notStarted, inProgress, stopped, completed, createdDateFrom, createdDateTo, testPlanId, skip, take, orderBy, searchField, searchValue, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get Project TestRuns full models <br>Use case <br>User sets project internal or global identifier <br>User sets query params <br>User runs method execution <br>System returns project test runs full models + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional, default to false) + /// (optional, default to true) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// (optional) + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<TestRunModel>) + public async System.Threading.Tasks.Task>> ApiV2ProjectsIdTestRunsFullGetWithHttpInfoAsync(string id, bool? includeTestResults = default(bool?), bool? mustAggregateTestResults = default(bool?), bool? notStarted = default(bool?), bool? inProgress = default(bool?), bool? stopped = default(bool?), bool? completed = default(bool?), DateTime? createdDateFrom = default(DateTime?), DateTime? createdDateTo = default(DateTime?), Guid? testPlanId = default(Guid?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestRunsFullGet"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (includeTestResults != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "includeTestResults", includeTestResults)); + } + if (mustAggregateTestResults != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "mustAggregateTestResults", mustAggregateTestResults)); + } + if (notStarted != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "notStarted", notStarted)); + } + if (inProgress != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "inProgress", inProgress)); + } + if (stopped != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "stopped", stopped)); + } + if (completed != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "completed", completed)); + } + if (createdDateFrom != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "createdDateFrom", createdDateFrom)); + } + if (createdDateTo != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "createdDateTo", createdDateTo)); + } + if (testPlanId != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "testPlanId", testPlanId)); + } + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync>("/api/v2/projects/{id}/testRuns/full", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestRunsFullGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Search for work items and extract IDs only + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// List<Guid> + public List ApiV2ProjectsIdWorkItemsSearchIdPost(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfo(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel); + return localVarResponse.Data; + } + + /// + /// Search for work items and extract IDs only + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// ApiResponse of List<Guid> + public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfo(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdWorkItemsSearchIdPost"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + localVarRequestOptions.Data = workItemSelectModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/api/v2/projects/{id}/workItems/search/id", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdWorkItemsSearchIdPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Search for work items and extract IDs only + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of List<Guid> + public async System.Threading.Tasks.Task> ApiV2ProjectsIdWorkItemsSearchIdPostAsync(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfoAsync(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Search for work items and extract IDs only + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Guid>) + public async System.Threading.Tasks.Task>> ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfoAsync(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdWorkItemsSearchIdPost"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + localVarRequestOptions.Data = workItemSelectModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync>("/api/v2/projects/{id}/workItems/search/id", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdWorkItemsSearchIdPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Search for work items + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// List<WorkItemShortModel> + public List ApiV2ProjectsIdWorkItemsSearchPost(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfo(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel); + return localVarResponse.Data; + } + + /// + /// Search for work items + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// ApiResponse of List<WorkItemShortModel> + public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfo(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdWorkItemsSearchPost"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + localVarRequestOptions.Data = workItemSelectModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/api/v2/projects/{id}/workItems/search", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdWorkItemsSearchPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Search for work items + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of List<WorkItemShortModel> + public async System.Threading.Tasks.Task> ApiV2ProjectsIdWorkItemsSearchPostAsync(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfoAsync(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Search for work items + /// + /// Thrown when fails to make API call + /// Unique or global ID of the project + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<WorkItemShortModel>) + public async System.Threading.Tasks.Task>> ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfoAsync(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdWorkItemsSearchPost"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + localVarRequestOptions.Data = workItemSelectModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync>("/api/v2/projects/{id}/workItems/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdWorkItemsSearchPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get WorkItems Tags <br>Use case <br>User sets project internal identifier <br>User runs method execution <br>System returns work items tags + /// + /// Thrown when fails to make API call + /// Project internal (UUID) identifier + /// (optional) + /// List<TagShortModel> + public List ApiV2ProjectsIdWorkItemsTagsGet(Guid id, bool? isDeleted = default(bool?)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfo(id, isDeleted); + return localVarResponse.Data; + } + + /// + /// Get WorkItems Tags <br>Use case <br>User sets project internal identifier <br>User runs method execution <br>System returns work items tags + /// + /// Thrown when fails to make API call + /// Project internal (UUID) identifier + /// (optional) + /// ApiResponse of List<TagShortModel> + public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfo(Guid id, bool? isDeleted = default(bool?)) + { + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (isDeleted != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "isDeleted", isDeleted)); + } + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/api/v2/projects/{id}/workItems/tags", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdWorkItemsTagsGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get WorkItems Tags <br>Use case <br>User sets project internal identifier <br>User runs method execution <br>System returns work items tags + /// + /// Thrown when fails to make API call + /// Project internal (UUID) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of List<TagShortModel> + public async System.Threading.Tasks.Task> ApiV2ProjectsIdWorkItemsTagsGetAsync(Guid id, bool? isDeleted = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfoAsync(id, isDeleted, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get WorkItems Tags <br>Use case <br>User sets project internal identifier <br>User runs method execution <br>System returns work items tags + /// + /// Thrown when fails to make API call + /// Project internal (UUID) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<TagShortModel>) + public async System.Threading.Tasks.Task>> ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfoAsync(Guid id, bool? isDeleted = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (isDeleted != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "isDeleted", isDeleted)); + } + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync>("/api/v2/projects/{id}/workItems/tags", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdWorkItemsTagsGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// bool + public bool ApiV2ProjectsNameNameExistsGet(string name) + { + TestIt.Client.Client.ApiResponse localVarResponse = ApiV2ProjectsNameNameExistsGetWithHttpInfo(name); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// ApiResponse of bool + public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWithHttpInfo(string name) + { + // verify the required parameter 'name' is set + if (name == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'name' when calling ProjectsApi->ApiV2ProjectsNameNameExistsGet"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("name", TestIt.Client.Client.ClientUtils.ParameterToString(name)); // path parameter + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/api/v2/projects/name/{name}/exists", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsNameNameExistsGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Cancellation Token to cancel the request. + /// Task of bool + public async System.Threading.Tasks.Task ApiV2ProjectsNameNameExistsGetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse localVarResponse = await ApiV2ProjectsNameNameExistsGetWithHttpInfoAsync(name, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// + /// + /// Thrown when fails to make API call + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (bool) + public async System.Threading.Tasks.Task> ApiV2ProjectsNameNameExistsGetWithHttpInfoAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'name' is set + if (name == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'name' when calling ProjectsApi->ApiV2ProjectsNameNameExistsGet"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("name", TestIt.Client.Client.ClientUtils.ParameterToString(name)); // path parameter + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync("/api/v2/projects/name/{name}/exists", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsNameNameExistsGet", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Search for projects + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// List<ProjectModel> + public List ApiV2ProjectsSearchPost(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectsFilterModel projectsFilterModel = default(ProjectsFilterModel)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsSearchPostWithHttpInfo(skip, take, orderBy, searchField, searchValue, projectsFilterModel); + return localVarResponse.Data; + } + + /// + /// Search for projects + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// ApiResponse of List<ProjectModel> + public TestIt.Client.Client.ApiResponse> ApiV2ProjectsSearchPostWithHttpInfo(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectsFilterModel projectsFilterModel = default(ProjectsFilterModel)) + { + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + localVarRequestOptions.Data = projectsFilterModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/api/v2/projects/search", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsSearchPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Search for projects + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of List<ProjectModel> + public async System.Threading.Tasks.Task> ApiV2ProjectsSearchPostAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectsFilterModel projectsFilterModel = default(ProjectsFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsSearchPostWithHttpInfoAsync(skip, take, orderBy, searchField, searchValue, projectsFilterModel, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Search for projects + /// + /// Thrown when fails to make API call + /// Amount of items to be skipped (offset) (optional) + /// Amount of items to be taken (limit) (optional) + /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) + /// Property name for searching (optional) + /// Value for searching (optional) + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ProjectModel>) + public async System.Threading.Tasks.Task>> ApiV2ProjectsSearchPostWithHttpInfoAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectsFilterModel projectsFilterModel = default(ProjectsFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (skip != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + } + if (take != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + } + if (orderBy != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + } + if (searchField != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + } + if (searchValue != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + } + localVarRequestOptions.Data = projectsFilterModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync>("/api/v2/projects/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2ProjectsSearchPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Import project from JSON file in background job /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// (optional, default to false) - /// (optional, default to true) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// List<TestRunModel> - public List ApiV2ProjectsIdTestRunsFullGet(string id, bool? includeTestResults = default(bool?), bool? mustAggregateTestResults = default(bool?), bool? notStarted = default(bool?), bool? inProgress = default(bool?), bool? stopped = default(bool?), bool? completed = default(bool?), DateTime? createdDateFrom = default(DateTime?), DateTime? createdDateTo = default(DateTime?), Guid? testPlanId = default(Guid?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)) + /// (optional) + /// Guid + public Guid BackgroundImportProject(FileParameter file = default(FileParameter)) { - TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdTestRunsFullGetWithHttpInfo(id, includeTestResults, mustAggregateTestResults, notStarted, inProgress, stopped, completed, createdDateFrom, createdDateTo, testPlanId, skip, take, orderBy, searchField, searchValue); + TestIt.Client.Client.ApiResponse localVarResponse = BackgroundImportProjectWithHttpInfo(file); return localVarResponse.Data; } /// - /// Get Project TestRuns full models <br>Use case <br>User sets project internal or global identifier <br>User sets query params <br>User runs method execution <br>System returns project test runs full models + /// Import project from JSON file in background job /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// (optional, default to false) - /// (optional, default to true) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// ApiResponse of List<TestRunModel> - public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdTestRunsFullGetWithHttpInfo(string id, bool? includeTestResults = default(bool?), bool? mustAggregateTestResults = default(bool?), bool? notStarted = default(bool?), bool? inProgress = default(bool?), bool? stopped = default(bool?), bool? completed = default(bool?), DateTime? createdDateFrom = default(DateTime?), DateTime? createdDateTo = default(DateTime?), Guid? testPlanId = default(Guid?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string)) + /// (optional) + /// ApiResponse of Guid + public TestIt.Client.Client.ApiResponse BackgroundImportProjectWithHttpInfo(FileParameter file = default(FileParameter)) { - // verify the required parameter 'id' is set - if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestRunsFullGet"); - TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "multipart/form-data", + "application/json" }; // to determine the Accept header @@ -4367,62 +6358,275 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - if (includeTestResults != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "includeTestResults", includeTestResults)); - } - if (mustAggregateTestResults != null) + if (file != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "mustAggregateTestResults", mustAggregateTestResults)); + localVarRequestOptions.FileParameters.Add("file", file); } - if (notStarted != null) + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "notStarted", notStarted)); + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } - if (inProgress != null) + + // make the HTTP request + var localVarResponse = this.Client.Post("/api/v2/projects/import/json", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "inProgress", inProgress)); + Exception _exception = this.ExceptionFactory("BackgroundImportProject", localVarResponse); + if (_exception != null) throw _exception; } - if (stopped != null) + + return localVarResponse; + } + + /// + /// Import project from JSON file in background job + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of Guid + public async System.Threading.Tasks.Task BackgroundImportProjectAsync(FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse localVarResponse = await BackgroundImportProjectWithHttpInfoAsync(file, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Import project from JSON file in background job + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Guid) + public async System.Threading.Tasks.Task> BackgroundImportProjectWithHttpInfoAsync(FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "multipart/form-data", + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (file != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "stopped", stopped)); + localVarRequestOptions.FileParameters.Add("file", file); } - if (completed != null) + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "completed", completed)); + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } - if (createdDateFrom != null) + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/import/json", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "createdDateFrom", createdDateFrom)); + Exception _exception = this.ExceptionFactory("BackgroundImportProject", localVarResponse); + if (_exception != null) throw _exception; } - if (createdDateTo != null) + + return localVarResponse; + } + + /// + /// Import project from JSON file into existing project in background job + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) + /// Guid + public Guid BackgroundImportToExistingProject(string id, FileParameter file = default(FileParameter)) + { + TestIt.Client.Client.ApiResponse localVarResponse = BackgroundImportToExistingProjectWithHttpInfo(id, file); + return localVarResponse.Data; + } + + /// + /// Import project from JSON file into existing project in background job + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) + /// ApiResponse of Guid + public TestIt.Client.Client.ApiResponse BackgroundImportToExistingProjectWithHttpInfo(string id, FileParameter file = default(FileParameter)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->BackgroundImportToExistingProject"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "multipart/form-data" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (file != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "createdDateTo", createdDateTo)); + localVarRequestOptions.FileParameters.Add("file", file); } - if (testPlanId != null) + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "testPlanId", testPlanId)); + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } - if (skip != null) + + // make the HTTP request + var localVarResponse = this.Client.Post("/api/v2/projects/{id}/import/json", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); + Exception _exception = this.ExceptionFactory("BackgroundImportToExistingProject", localVarResponse); + if (_exception != null) throw _exception; } - if (take != null) + + return localVarResponse; + } + + /// + /// Import project from JSON file into existing project in background job + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) + /// Cancellation Token to cancel the request. + /// Task of Guid + public async System.Threading.Tasks.Task BackgroundImportToExistingProjectAsync(string id, FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse localVarResponse = await BackgroundImportToExistingProjectWithHttpInfoAsync(id, file, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Import project from JSON file into existing project in background job + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Guid) + public async System.Threading.Tasks.Task> BackgroundImportToExistingProjectWithHttpInfoAsync(string id, FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->BackgroundImportToExistingProject"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "multipart/form-data" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (file != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); + localVarRequestOptions.FileParameters.Add("file", file); } - if (orderBy != null) + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); } - if (searchField != null) + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/import/json", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); + Exception _exception = this.ExceptionFactory("BackgroundImportToExistingProject", localVarResponse); + if (_exception != null) throw _exception; } - if (searchValue != null) + + return localVarResponse; + } + + /// + /// Import project from Zip file in background job + /// + /// Thrown when fails to make API call + /// (optional) + /// Guid + public Guid BackgroundImportZipProject(FileParameter file = default(FileParameter)) + { + TestIt.Client.Client.ApiResponse localVarResponse = BackgroundImportZipProjectWithHttpInfo(file); + return localVarResponse.Data; + } + + /// + /// Import project from Zip file in background job + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of Guid + public TestIt.Client.Client.ApiResponse BackgroundImportZipProjectWithHttpInfo(FileParameter file = default(FileParameter)) + { + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "multipart/form-data", + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (file != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + localVarRequestOptions.FileParameters.Add("file", file); } // authentication (Bearer or PrivateToken) required @@ -4432,11 +6636,11 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } // make the HTTP request - var localVarResponse = this.Client.Get>("/api/v2/projects/{id}/testRuns/full", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/api/v2/projects/import/zip", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestRunsFullGet", localVarResponse); + Exception _exception = this.ExceptionFactory("BackgroundImportZipProject", localVarResponse); if (_exception != null) throw _exception; } @@ -4444,63 +6648,33 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } /// - /// Get Project TestRuns full models <br>Use case <br>User sets project internal or global identifier <br>User sets query params <br>User runs method execution <br>System returns project test runs full models + /// Import project from Zip file in background job /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// (optional, default to false) - /// (optional, default to true) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of List<TestRunModel> - public async System.Threading.Tasks.Task> ApiV2ProjectsIdTestRunsFullGetAsync(string id, bool? includeTestResults = default(bool?), bool? mustAggregateTestResults = default(bool?), bool? notStarted = default(bool?), bool? inProgress = default(bool?), bool? stopped = default(bool?), bool? completed = default(bool?), DateTime? createdDateFrom = default(DateTime?), DateTime? createdDateTo = default(DateTime?), Guid? testPlanId = default(Guid?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of Guid + public async System.Threading.Tasks.Task BackgroundImportZipProjectAsync(FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdTestRunsFullGetWithHttpInfoAsync(id, includeTestResults, mustAggregateTestResults, notStarted, inProgress, stopped, completed, createdDateFrom, createdDateTo, testPlanId, skip, take, orderBy, searchField, searchValue, cancellationToken).ConfigureAwait(false); + TestIt.Client.Client.ApiResponse localVarResponse = await BackgroundImportZipProjectWithHttpInfoAsync(file, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// Get Project TestRuns full models <br>Use case <br>User sets project internal or global identifier <br>User sets query params <br>User runs method execution <br>System returns project test runs full models + /// Import project from Zip file in background job /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// (optional, default to false) - /// (optional, default to true) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// (optional) - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<TestRunModel>) - public async System.Threading.Tasks.Task>> ApiV2ProjectsIdTestRunsFullGetWithHttpInfoAsync(string id, bool? includeTestResults = default(bool?), bool? mustAggregateTestResults = default(bool?), bool? notStarted = default(bool?), bool? inProgress = default(bool?), bool? stopped = default(bool?), bool? completed = default(bool?), DateTime? createdDateFrom = default(DateTime?), DateTime? createdDateTo = default(DateTime?), Guid? testPlanId = default(Guid?), int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (Guid) + public async System.Threading.Tasks.Task> BackgroundImportZipProjectWithHttpInfoAsync(FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - // verify the required parameter 'id' is set - if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdTestRunsFullGet"); - TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "multipart/form-data", + "application/json" }; // to determine the Accept header @@ -4515,62 +6689,9 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - if (includeTestResults != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "includeTestResults", includeTestResults)); - } - if (mustAggregateTestResults != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "mustAggregateTestResults", mustAggregateTestResults)); - } - if (notStarted != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "notStarted", notStarted)); - } - if (inProgress != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "inProgress", inProgress)); - } - if (stopped != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "stopped", stopped)); - } - if (completed != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "completed", completed)); - } - if (createdDateFrom != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "createdDateFrom", createdDateFrom)); - } - if (createdDateTo != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "createdDateTo", createdDateTo)); - } - if (testPlanId != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "testPlanId", testPlanId)); - } - if (skip != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); - } - if (take != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); - } - if (orderBy != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); - } - if (searchField != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); - } - if (searchValue != null) + if (file != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + localVarRequestOptions.FileParameters.Add("file", file); } // authentication (Bearer or PrivateToken) required @@ -4581,11 +6702,11 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/api/v2/projects/{id}/testRuns/full", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/import/zip", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdTestRunsFullGet", localVarResponse); + Exception _exception = this.ExceptionFactory("BackgroundImportZipProject", localVarResponse); if (_exception != null) throw _exception; } @@ -4593,45 +6714,35 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } /// - /// Search for work items and extract IDs only + /// Import project from Zip file into existing project in background job /// /// Thrown when fails to make API call - /// Unique or global ID of the project - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// (optional) - /// List<Guid> - public List ApiV2ProjectsIdWorkItemsSearchIdPost(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel)) + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) + /// Guid + public Guid BackgroundImportZipToExistingProject(string id, FileParameter file = default(FileParameter)) { - TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfo(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel); + TestIt.Client.Client.ApiResponse localVarResponse = BackgroundImportZipToExistingProjectWithHttpInfo(id, file); return localVarResponse.Data; } /// - /// Search for work items and extract IDs only + /// Import project from Zip file into existing project in background job /// /// Thrown when fails to make API call - /// Unique or global ID of the project - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// (optional) - /// ApiResponse of List<Guid> - public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfo(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel)) + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) + /// ApiResponse of Guid + public TestIt.Client.Client.ApiResponse BackgroundImportZipToExistingProjectWithHttpInfo(string id, FileParameter file = default(FileParameter)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdWorkItemsSearchIdPost"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->BackgroundImportZipToExistingProject"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json" + "multipart/form-data" }; // to determine the Accept header @@ -4646,27 +6757,10 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - if (skip != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); - } - if (take != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); - } - if (orderBy != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); - } - if (searchField != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); - } - if (searchValue != null) + if (file != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + localVarRequestOptions.FileParameters.Add("file", file); } - localVarRequestOptions.Data = workItemSelectModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -4675,11 +6769,11 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } // make the HTTP request - var localVarResponse = this.Client.Post>("/api/v2/projects/{id}/workItems/search/id", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/api/v2/projects/{id}/import/zip", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdWorkItemsSearchIdPost", localVarResponse); + Exception _exception = this.ExceptionFactory("BackgroundImportZipToExistingProject", localVarResponse); if (_exception != null) throw _exception; } @@ -4687,48 +6781,38 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } /// - /// Search for work items and extract IDs only + /// Import project from Zip file into existing project in background job /// /// Thrown when fails to make API call - /// Unique or global ID of the project - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// (optional) + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) /// Cancellation Token to cancel the request. - /// Task of List<Guid> - public async System.Threading.Tasks.Task> ApiV2ProjectsIdWorkItemsSearchIdPostAsync(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of Guid + public async System.Threading.Tasks.Task BackgroundImportZipToExistingProjectAsync(string id, FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfoAsync(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel, cancellationToken).ConfigureAwait(false); + TestIt.Client.Client.ApiResponse localVarResponse = await BackgroundImportZipToExistingProjectWithHttpInfoAsync(id, file, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// Search for work items and extract IDs only + /// Import project from Zip file into existing project in background job /// /// Thrown when fails to make API call - /// Unique or global ID of the project - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// (optional) + /// Project internal (UUID) or global (integer) identifier + /// Select file (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - public async System.Threading.Tasks.Task>> ApiV2ProjectsIdWorkItemsSearchIdPostWithHttpInfoAsync(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (Guid) + public async System.Threading.Tasks.Task> BackgroundImportZipToExistingProjectWithHttpInfoAsync(string id, FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdWorkItemsSearchIdPost"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->BackgroundImportZipToExistingProject"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json" + "multipart/form-data" }; // to determine the Accept header @@ -4744,27 +6828,10 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - if (skip != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); - } - if (take != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); - } - if (orderBy != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); - } - if (searchField != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); - } - if (searchValue != null) + if (file != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); + localVarRequestOptions.FileParameters.Add("file", file); } - localVarRequestOptions.Data = workItemSelectModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -4774,11 +6841,11 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync>("/api/v2/projects/{id}/workItems/search/id", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/import/zip", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdWorkItemsSearchIdPost", localVarResponse); + Exception _exception = this.ExceptionFactory("BackgroundImportZipToExistingProject", localVarResponse); if (_exception != null) throw _exception; } @@ -4786,40 +6853,29 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } /// - /// Search for work items - /// - /// Thrown when fails to make API call - /// Unique or global ID of the project - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// (optional) - /// List<WorkItemShortModel> - public List ApiV2ProjectsIdWorkItemsSearchPost(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel)) + /// Add attributes to project's test plans <br>Use case <br>User sets project internal or global identifier and attributes identifiers <br>User runs method execution <br>System updates project and add attributes to project for test plans <br>System returns no content response + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// + public void CreateCustomAttributeTestPlanProjectRelations(string id, List requestBody = default(List)) { - TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfo(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel); - return localVarResponse.Data; + CreateCustomAttributeTestPlanProjectRelationsWithHttpInfo(id, requestBody); } /// - /// Search for work items + /// Add attributes to project's test plans <br>Use case <br>User sets project internal or global identifier and attributes identifiers <br>User runs method execution <br>System updates project and add attributes to project for test plans <br>System returns no content response /// /// Thrown when fails to make API call - /// Unique or global ID of the project - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// (optional) - /// ApiResponse of List<WorkItemShortModel> - public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfo(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel)) + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse CreateCustomAttributeTestPlanProjectRelationsWithHttpInfo(string id, List requestBody = default(List)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdWorkItemsSearchPost"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->CreateCustomAttributeTestPlanProjectRelations"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); @@ -4839,27 +6895,7 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - if (skip != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); - } - if (take != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); - } - if (orderBy != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); - } - if (searchField != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); - } - if (searchValue != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); - } - localVarRequestOptions.Data = workItemSelectModel; + localVarRequestOptions.Data = requestBody; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -4868,11 +6904,11 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } // make the HTTP request - var localVarResponse = this.Client.Post>("/api/v2/projects/{id}/workItems/search", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/api/v2/projects/{id}/testPlans/attributes", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdWorkItemsSearchPost", localVarResponse); + Exception _exception = this.ExceptionFactory("CreateCustomAttributeTestPlanProjectRelations", localVarResponse); if (_exception != null) throw _exception; } @@ -4880,42 +6916,31 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } /// - /// Search for work items + /// Add attributes to project's test plans <br>Use case <br>User sets project internal or global identifier and attributes identifiers <br>User runs method execution <br>System updates project and add attributes to project for test plans <br>System returns no content response /// /// Thrown when fails to make API call - /// Unique or global ID of the project - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// (optional) + /// Project internal (UUID) or global (integer) identifier + /// (optional) /// Cancellation Token to cancel the request. - /// Task of List<WorkItemShortModel> - public async System.Threading.Tasks.Task> ApiV2ProjectsIdWorkItemsSearchPostAsync(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of void + public async System.Threading.Tasks.Task CreateCustomAttributeTestPlanProjectRelationsAsync(string id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfoAsync(id, skip, take, orderBy, searchField, searchValue, workItemSelectModel, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; + await CreateCustomAttributeTestPlanProjectRelationsWithHttpInfoAsync(id, requestBody, cancellationToken).ConfigureAwait(false); } /// - /// Search for work items + /// Add attributes to project's test plans <br>Use case <br>User sets project internal or global identifier and attributes identifiers <br>User runs method execution <br>System updates project and add attributes to project for test plans <br>System returns no content response /// /// Thrown when fails to make API call - /// Unique or global ID of the project - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// (optional) + /// Project internal (UUID) or global (integer) identifier + /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<WorkItemShortModel>) - public async System.Threading.Tasks.Task>> ApiV2ProjectsIdWorkItemsSearchPostWithHttpInfoAsync(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CreateCustomAttributeTestPlanProjectRelationsWithHttpInfoAsync(string id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ApiV2ProjectsIdWorkItemsSearchPost"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->CreateCustomAttributeTestPlanProjectRelations"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); @@ -4937,27 +6962,7 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - if (skip != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); - } - if (take != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); - } - if (orderBy != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); - } - if (searchField != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); - } - if (searchValue != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); - } - localVarRequestOptions.Data = workItemSelectModel; + localVarRequestOptions.Data = requestBody; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -4967,11 +6972,11 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync>("/api/v2/projects/{id}/workItems/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/testPlans/attributes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdWorkItemsSearchPost", localVarResponse); + Exception _exception = this.ExceptionFactory("CreateCustomAttributeTestPlanProjectRelations", localVarResponse); if (_exception != null) throw _exception; } @@ -4979,30 +6984,29 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } /// - /// Get WorkItems Tags <br>Use case <br>User sets project internal identifier <br>User runs method execution <br>System returns work items tags + /// Create project <br>Use case <br>User sets project parameters (listed in request example) and runs method execution <br>System creates project <br>System returns project model (example listed in response parameters) /// /// Thrown when fails to make API call - /// Project internal (UUID) identifier - /// (optional) - /// List<TagShortModel> - public List ApiV2ProjectsIdWorkItemsTagsGet(Guid id, bool? isDeleted = default(bool?)) + /// (optional) + /// ProjectModel + public ProjectModel CreateProject(ProjectPostModel projectPostModel = default(ProjectPostModel)) { - TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfo(id, isDeleted); + TestIt.Client.Client.ApiResponse localVarResponse = CreateProjectWithHttpInfo(projectPostModel); return localVarResponse.Data; } /// - /// Get WorkItems Tags <br>Use case <br>User sets project internal identifier <br>User runs method execution <br>System returns work items tags + /// Create project <br>Use case <br>User sets project parameters (listed in request example) and runs method execution <br>System creates project <br>System returns project model (example listed in response parameters) /// /// Thrown when fails to make API call - /// Project internal (UUID) identifier - /// (optional) - /// ApiResponse of List<TagShortModel> - public TestIt.Client.Client.ApiResponse> ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfo(Guid id, bool? isDeleted = default(bool?)) + /// (optional) + /// ApiResponse of ProjectModel + public TestIt.Client.Client.ApiResponse CreateProjectWithHttpInfo(ProjectPostModel projectPostModel = default(ProjectPostModel)) { TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -5016,11 +7020,7 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - if (isDeleted != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "isDeleted", isDeleted)); - } + localVarRequestOptions.Data = projectPostModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5029,11 +7029,11 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } // make the HTTP request - var localVarResponse = this.Client.Get>("/api/v2/projects/{id}/workItems/tags", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/api/v2/projects", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdWorkItemsTagsGet", localVarResponse); + Exception _exception = this.ExceptionFactory("CreateProject", localVarResponse); if (_exception != null) throw _exception; } @@ -5041,33 +7041,32 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } /// - /// Get WorkItems Tags <br>Use case <br>User sets project internal identifier <br>User runs method execution <br>System returns work items tags + /// Create project <br>Use case <br>User sets project parameters (listed in request example) and runs method execution <br>System creates project <br>System returns project model (example listed in response parameters) /// /// Thrown when fails to make API call - /// Project internal (UUID) identifier - /// (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of List<TagShortModel> - public async System.Threading.Tasks.Task> ApiV2ProjectsIdWorkItemsTagsGetAsync(Guid id, bool? isDeleted = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ProjectModel + public async System.Threading.Tasks.Task CreateProjectAsync(ProjectPostModel projectPostModel = default(ProjectPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfoAsync(id, isDeleted, cancellationToken).ConfigureAwait(false); + TestIt.Client.Client.ApiResponse localVarResponse = await CreateProjectWithHttpInfoAsync(projectPostModel, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// Get WorkItems Tags <br>Use case <br>User sets project internal identifier <br>User runs method execution <br>System returns work items tags + /// Create project <br>Use case <br>User sets project parameters (listed in request example) and runs method execution <br>System creates project <br>System returns project model (example listed in response parameters) /// /// Thrown when fails to make API call - /// Project internal (UUID) identifier - /// (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<TagShortModel>) - public async System.Threading.Tasks.Task>> ApiV2ProjectsIdWorkItemsTagsGetWithHttpInfoAsync(Guid id, bool? isDeleted = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ProjectModel) + public async System.Threading.Tasks.Task> CreateProjectWithHttpInfoAsync(ProjectPostModel projectPostModel = default(ProjectPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -5082,11 +7081,7 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - if (isDeleted != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "isDeleted", isDeleted)); - } + localVarRequestOptions.Data = projectPostModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5096,11 +7091,11 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/api/v2/projects/{id}/workItems/tags", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsIdWorkItemsTagsGet", localVarResponse); + Exception _exception = this.ExceptionFactory("CreateProject", localVarResponse); if (_exception != null) throw _exception; } @@ -5108,32 +7103,35 @@ public TestIt.Client.Client.ApiResponse> ApiV2ProjectsI } /// - /// + /// Create project attribute <br>Use case <br>User sets attribute parameters (listed in request example) and runs method execution <br>System search project <br>System creates attribute and relates it to the project <br>System returns project attribute properties (example listed in response parameters) /// /// Thrown when fails to make API call - /// - /// bool - public bool ApiV2ProjectsNameNameExistsGet(string name) + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// CustomAttributeModel + public CustomAttributeModel CreateProjectsAttribute(string id, CustomAttributePostModel customAttributePostModel = default(CustomAttributePostModel)) { - TestIt.Client.Client.ApiResponse localVarResponse = ApiV2ProjectsNameNameExistsGetWithHttpInfo(name); + TestIt.Client.Client.ApiResponse localVarResponse = CreateProjectsAttributeWithHttpInfo(id, customAttributePostModel); return localVarResponse.Data; } /// - /// + /// Create project attribute <br>Use case <br>User sets attribute parameters (listed in request example) and runs method execution <br>System search project <br>System creates attribute and relates it to the project <br>System returns project attribute properties (example listed in response parameters) /// /// Thrown when fails to make API call - /// - /// ApiResponse of bool - public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWithHttpInfo(string name) + /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// ApiResponse of CustomAttributeModel + public TestIt.Client.Client.ApiResponse CreateProjectsAttributeWithHttpInfo(string id, CustomAttributePostModel customAttributePostModel = default(CustomAttributePostModel)) { - // verify the required parameter 'name' is set - if (name == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'name' when calling ProjectsApi->ApiV2ProjectsNameNameExistsGet"); + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->CreateProjectsAttribute"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -5147,7 +7145,8 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("name", TestIt.Client.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = customAttributePostModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5156,11 +7155,11 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } // make the HTTP request - var localVarResponse = this.Client.Get("/api/v2/projects/name/{name}/exists", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/api/v2/projects/{id}/attributes", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsNameNameExistsGet", localVarResponse); + Exception _exception = this.ExceptionFactory("CreateProjectsAttribute", localVarResponse); if (_exception != null) throw _exception; } @@ -5168,35 +7167,38 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } /// - /// + /// Create project attribute <br>Use case <br>User sets attribute parameters (listed in request example) and runs method execution <br>System search project <br>System creates attribute and relates it to the project <br>System returns project attribute properties (example listed in response parameters) /// /// Thrown when fails to make API call - /// + /// Project internal (UUID) or global (integer) identifier + /// (optional) /// Cancellation Token to cancel the request. - /// Task of bool - public async System.Threading.Tasks.Task ApiV2ProjectsNameNameExistsGetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CustomAttributeModel + public async System.Threading.Tasks.Task CreateProjectsAttributeAsync(string id, CustomAttributePostModel customAttributePostModel = default(CustomAttributePostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - TestIt.Client.Client.ApiResponse localVarResponse = await ApiV2ProjectsNameNameExistsGetWithHttpInfoAsync(name, cancellationToken).ConfigureAwait(false); + TestIt.Client.Client.ApiResponse localVarResponse = await CreateProjectsAttributeWithHttpInfoAsync(id, customAttributePostModel, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// + /// Create project attribute <br>Use case <br>User sets attribute parameters (listed in request example) and runs method execution <br>System search project <br>System creates attribute and relates it to the project <br>System returns project attribute properties (example listed in response parameters) /// /// Thrown when fails to make API call - /// + /// Project internal (UUID) or global (integer) identifier + /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> ApiV2ProjectsNameNameExistsGetWithHttpInfoAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (CustomAttributeModel) + public async System.Threading.Tasks.Task> CreateProjectsAttributeWithHttpInfoAsync(string id, CustomAttributePostModel customAttributePostModel = default(CustomAttributePostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - // verify the required parameter 'name' is set - if (name == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'name' when calling ProjectsApi->ApiV2ProjectsNameNameExistsGet"); + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->CreateProjectsAttribute"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -5211,7 +7213,8 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.PathParameters.Add("name", TestIt.Client.Client.ClientUtils.ParameterToString(name)); // path parameter + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = customAttributePostModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5221,51 +7224,45 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/api/v2/projects/name/{name}/exists", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/attributes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsNameNameExistsGet", localVarResponse); + Exception _exception = this.ExceptionFactory("CreateProjectsAttribute", localVarResponse); if (_exception != null) throw _exception; } return localVarResponse; } - /// - /// Search for projects - /// - /// Thrown when fails to make API call - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// (optional) - /// List<ProjectModel> - public List ApiV2ProjectsSearchPost(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectsFilterModel projectsFilterModel = default(ProjectsFilterModel)) + /// + /// Delete attribute from project's test plans <br>Use case <br>User sets project internal or global identifier and attribute identifier <br>User runs method execution <br>System updates project and delete attribute from project for test plans <br>System returns no content response + /// + /// Thrown when fails to make API call + /// Project internal (UUID) or global (integer) identifier + /// + /// + public void DeleteCustomAttributeTestPlanProjectRelations(string id, Guid attributeId) { - TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2ProjectsSearchPostWithHttpInfo(skip, take, orderBy, searchField, searchValue, projectsFilterModel); - return localVarResponse.Data; + DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfo(id, attributeId); } /// - /// Search for projects + /// Delete attribute from project's test plans <br>Use case <br>User sets project internal or global identifier and attribute identifier <br>User runs method execution <br>System updates project and delete attribute from project for test plans <br>System returns no content response /// /// Thrown when fails to make API call - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// (optional) - /// ApiResponse of List<ProjectModel> - public TestIt.Client.Client.ApiResponse> ApiV2ProjectsSearchPostWithHttpInfo(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectsFilterModel projectsFilterModel = default(ProjectsFilterModel)) + /// Project internal (UUID) or global (integer) identifier + /// + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfo(string id, Guid attributeId) { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteCustomAttributeTestPlanProjectRelations"); + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json" }; // to determine the Accept header @@ -5279,27 +7276,8 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - if (skip != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); - } - if (take != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); - } - if (orderBy != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); - } - if (searchField != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); - } - if (searchValue != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); - } - localVarRequestOptions.Data = projectsFilterModel; + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("attributeId", TestIt.Client.Client.ClientUtils.ParameterToString(attributeId)); // path parameter // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5308,11 +7286,11 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } // make the HTTP request - var localVarResponse = this.Client.Post>("/api/v2/projects/search", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/api/v2/projects/{id}/testPlans/attribute/{attributeId}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsSearchPost", localVarResponse); + Exception _exception = this.ExceptionFactory("DeleteCustomAttributeTestPlanProjectRelations", localVarResponse); if (_exception != null) throw _exception; } @@ -5320,42 +7298,36 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } /// - /// Search for projects + /// Delete attribute from project's test plans <br>Use case <br>User sets project internal or global identifier and attribute identifier <br>User runs method execution <br>System updates project and delete attribute from project for test plans <br>System returns no content response /// /// Thrown when fails to make API call - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// (optional) + /// Project internal (UUID) or global (integer) identifier + /// /// Cancellation Token to cancel the request. - /// Task of List<ProjectModel> - public async System.Threading.Tasks.Task> ApiV2ProjectsSearchPostAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectsFilterModel projectsFilterModel = default(ProjectsFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of void + public async System.Threading.Tasks.Task DeleteCustomAttributeTestPlanProjectRelationsAsync(string id, Guid attributeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2ProjectsSearchPostWithHttpInfoAsync(skip, take, orderBy, searchField, searchValue, projectsFilterModel, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; + await DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfoAsync(id, attributeId, cancellationToken).ConfigureAwait(false); } /// - /// Search for projects + /// Delete attribute from project's test plans <br>Use case <br>User sets project internal or global identifier and attribute identifier <br>User runs method execution <br>System updates project and delete attribute from project for test plans <br>System returns no content response /// /// Thrown when fails to make API call - /// Amount of items to be skipped (offset) (optional) - /// Amount of items to be taken (limit) (optional) - /// SQL-like ORDER BY statement (column1 ASC|DESC , column2 ASC|DESC) (optional) - /// Property name for searching (optional) - /// Value for searching (optional) - /// (optional) + /// Project internal (UUID) or global (integer) identifier + /// /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<ProjectModel>) - public async System.Threading.Tasks.Task>> ApiV2ProjectsSearchPostWithHttpInfoAsync(int? skip = default(int?), int? take = default(int?), string orderBy = default(string), string searchField = default(string), string searchValue = default(string), ProjectsFilterModel projectsFilterModel = default(ProjectsFilterModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfoAsync(string id, Guid attributeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteCustomAttributeTestPlanProjectRelations"); + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json" }; // to determine the Accept header @@ -5370,27 +7342,8 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - if (skip != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Skip", skip)); - } - if (take != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "Take", take)); - } - if (orderBy != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "OrderBy", orderBy)); - } - if (searchField != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchField", searchField)); - } - if (searchValue != null) - { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "SearchValue", searchValue)); - } - localVarRequestOptions.Data = projectsFilterModel; + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("attributeId", TestIt.Client.Client.ClientUtils.ParameterToString(attributeId)); // path parameter // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5400,11 +7353,11 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync>("/api/v2/projects/search", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/api/v2/projects/{id}/testPlans/attribute/{attributeId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("ApiV2ProjectsSearchPost", localVarResponse); + Exception _exception = this.ExceptionFactory("DeleteCustomAttributeTestPlanProjectRelations", localVarResponse); if (_exception != null) throw _exception; } @@ -5412,34 +7365,31 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } /// - /// Add attributes to project's test plans <br>Use case <br>User sets project internal or global identifier and attributes identifiers <br>User runs method execution <br>System updates project and add attributes to project for test plans <br>System returns no content response + /// Delete project <br>Use case: <br>1. User sets project internal or global identifier and runs method execution <br>2. System searches and moves requested project to archive <br>3. System responds with no content (204) result /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// (optional) /// - public void CreateCustomAttributeTestPlanProjectRelations(string id, List requestBody = default(List)) + public void DeleteProject(string id) { - CreateCustomAttributeTestPlanProjectRelationsWithHttpInfo(id, requestBody); + DeleteProjectWithHttpInfo(id); } /// - /// Add attributes to project's test plans <br>Use case <br>User sets project internal or global identifier and attributes identifiers <br>User runs method execution <br>System updates project and add attributes to project for test plans <br>System returns no content response + /// Delete project <br>Use case: <br>1. User sets project internal or global identifier and runs method execution <br>2. System searches and moves requested project to archive <br>3. System responds with no content (204) result /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// (optional) /// ApiResponse of Object(void) - public TestIt.Client.Client.ApiResponse CreateCustomAttributeTestPlanProjectRelationsWithHttpInfo(string id, List requestBody = default(List)) + public TestIt.Client.Client.ApiResponse DeleteProjectWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->CreateCustomAttributeTestPlanProjectRelations"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteProject"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json" }; // to determine the Accept header @@ -5454,7 +7404,6 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = requestBody; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5463,11 +7412,11 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } // make the HTTP request - var localVarResponse = this.Client.Post("/api/v2/projects/{id}/testPlans/attributes", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/api/v2/projects/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("CreateCustomAttributeTestPlanProjectRelations", localVarResponse); + Exception _exception = this.ExceptionFactory("DeleteProject", localVarResponse); if (_exception != null) throw _exception; } @@ -5475,37 +7424,34 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } /// - /// Add attributes to project's test plans <br>Use case <br>User sets project internal or global identifier and attributes identifiers <br>User runs method execution <br>System updates project and add attributes to project for test plans <br>System returns no content response + /// Delete project <br>Use case: <br>1. User sets project internal or global identifier and runs method execution <br>2. System searches and moves requested project to archive <br>3. System responds with no content (204) result /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// (optional) /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task CreateCustomAttributeTestPlanProjectRelationsAsync(string id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeleteProjectAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await CreateCustomAttributeTestPlanProjectRelationsWithHttpInfoAsync(id, requestBody, cancellationToken).ConfigureAwait(false); + await DeleteProjectWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); } /// - /// Add attributes to project's test plans <br>Use case <br>User sets project internal or global identifier and attributes identifiers <br>User runs method execution <br>System updates project and add attributes to project for test plans <br>System returns no content response + /// Delete project <br>Use case: <br>1. User sets project internal or global identifier and runs method execution <br>2. System searches and moves requested project to archive <br>3. System responds with no content (204) result /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> CreateCustomAttributeTestPlanProjectRelationsWithHttpInfoAsync(string id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeleteProjectWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->CreateCustomAttributeTestPlanProjectRelations"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteProject"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json" }; // to determine the Accept header @@ -5521,7 +7467,6 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = requestBody; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5531,11 +7476,11 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/testPlans/attributes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/api/v2/projects/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("CreateCustomAttributeTestPlanProjectRelations", localVarResponse); + Exception _exception = this.ExceptionFactory("DeleteProject", localVarResponse); if (_exception != null) throw _exception; } @@ -5543,29 +7488,31 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } /// - /// Create project <br>Use case <br>User sets project parameters (listed in request example) and runs method execution <br>System creates project <br>System returns project model (example listed in response parameters) + /// Delete project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System delete all autotests from project <br>System returns no content response /// /// Thrown when fails to make API call - /// (optional) - /// ProjectModel - public ProjectModel CreateProject(ProjectPostModel projectPostModel = default(ProjectPostModel)) + /// Project internal (UUID) or global (integer) identifier + /// + public void DeleteProjectAutoTests(string id) { - TestIt.Client.Client.ApiResponse localVarResponse = CreateProjectWithHttpInfo(projectPostModel); - return localVarResponse.Data; + DeleteProjectAutoTestsWithHttpInfo(id); } /// - /// Create project <br>Use case <br>User sets project parameters (listed in request example) and runs method execution <br>System creates project <br>System returns project model (example listed in response parameters) + /// Delete project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System delete all autotests from project <br>System returns no content response /// /// Thrown when fails to make API call - /// (optional) - /// ApiResponse of ProjectModel - public TestIt.Client.Client.ApiResponse CreateProjectWithHttpInfo(ProjectPostModel projectPostModel = default(ProjectPostModel)) + /// Project internal (UUID) or global (integer) identifier + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse DeleteProjectAutoTestsWithHttpInfo(string id) { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteProjectAutoTests"); + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json" }; // to determine the Accept header @@ -5579,7 +7526,7 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.Data = projectPostModel; + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5588,11 +7535,11 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } // make the HTTP request - var localVarResponse = this.Client.Post("/api/v2/projects", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/api/v2/projects/{id}/autoTests", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("CreateProject", localVarResponse); + Exception _exception = this.ExceptionFactory("DeleteProjectAutoTests", localVarResponse); if (_exception != null) throw _exception; } @@ -5600,32 +7547,34 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } /// - /// Create project <br>Use case <br>User sets project parameters (listed in request example) and runs method execution <br>System creates project <br>System returns project model (example listed in response parameters) + /// Delete project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System delete all autotests from project <br>System returns no content response /// /// Thrown when fails to make API call - /// (optional) + /// Project internal (UUID) or global (integer) identifier /// Cancellation Token to cancel the request. - /// Task of ProjectModel - public async System.Threading.Tasks.Task CreateProjectAsync(ProjectPostModel projectPostModel = default(ProjectPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of void + public async System.Threading.Tasks.Task DeleteProjectAutoTestsAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - TestIt.Client.Client.ApiResponse localVarResponse = await CreateProjectWithHttpInfoAsync(projectPostModel, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; + await DeleteProjectAutoTestsWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); } /// - /// Create project <br>Use case <br>User sets project parameters (listed in request example) and runs method execution <br>System creates project <br>System returns project model (example listed in response parameters) + /// Delete project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System delete all autotests from project <br>System returns no content response /// /// Thrown when fails to make API call - /// (optional) + /// Project internal (UUID) or global (integer) identifier /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ProjectModel) - public async System.Threading.Tasks.Task> CreateProjectWithHttpInfoAsync(ProjectPostModel projectPostModel = default(ProjectPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteProjectAutoTestsWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteProjectAutoTests"); + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json" }; // to determine the Accept header @@ -5640,7 +7589,7 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.Data = projectPostModel; + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5650,11 +7599,11 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/api/v2/projects/{id}/autoTests", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("CreateProject", localVarResponse); + Exception _exception = this.ExceptionFactory("DeleteProjectAutoTests", localVarResponse); if (_exception != null) throw _exception; } @@ -5662,35 +7611,33 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } /// - /// Create project attribute <br>Use case <br>User sets attribute parameters (listed in request example) and runs method execution <br>System search project <br>System creates attribute and relates it to the project <br>System returns project attribute properties (example listed in response parameters) + /// Delete project attribute <br>Use case <br>User sets project identifier and runs method execution <br>User sets attribute identifier <br>User runs method execution <br>System search project <br>System search and delete attribute <br>System returns no content response /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// (optional) - /// CustomAttributeModel - public CustomAttributeModel CreateProjectsAttribute(string id, CustomAttributePostModel customAttributePostModel = default(CustomAttributePostModel)) + /// Project attribute internal (UUID) + /// + public void DeleteProjectsAttribute(string id, Guid attributeId) { - TestIt.Client.Client.ApiResponse localVarResponse = CreateProjectsAttributeWithHttpInfo(id, customAttributePostModel); - return localVarResponse.Data; + DeleteProjectsAttributeWithHttpInfo(id, attributeId); } /// - /// Create project attribute <br>Use case <br>User sets attribute parameters (listed in request example) and runs method execution <br>System search project <br>System creates attribute and relates it to the project <br>System returns project attribute properties (example listed in response parameters) + /// Delete project attribute <br>Use case <br>User sets project identifier and runs method execution <br>User sets attribute identifier <br>User runs method execution <br>System search project <br>System search and delete attribute <br>System returns no content response /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// (optional) - /// ApiResponse of CustomAttributeModel - public TestIt.Client.Client.ApiResponse CreateProjectsAttributeWithHttpInfo(string id, CustomAttributePostModel customAttributePostModel = default(CustomAttributePostModel)) + /// Project attribute internal (UUID) + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpInfo(string id, Guid attributeId) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->CreateProjectsAttribute"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteProjectsAttribute"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json" }; // to determine the Accept header @@ -5705,7 +7652,7 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = customAttributePostModel; + localVarRequestOptions.PathParameters.Add("attributeId", TestIt.Client.Client.ClientUtils.ParameterToString(attributeId)); // path parameter // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5714,11 +7661,11 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } // make the HTTP request - var localVarResponse = this.Client.Post("/api/v2/projects/{id}/attributes", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/api/v2/projects/{id}/attributes/{attributeId}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("CreateProjectsAttribute", localVarResponse); + Exception _exception = this.ExceptionFactory("DeleteProjectsAttribute", localVarResponse); if (_exception != null) throw _exception; } @@ -5726,38 +7673,36 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } /// - /// Create project attribute <br>Use case <br>User sets attribute parameters (listed in request example) and runs method execution <br>System search project <br>System creates attribute and relates it to the project <br>System returns project attribute properties (example listed in response parameters) + /// Delete project attribute <br>Use case <br>User sets project identifier and runs method execution <br>User sets attribute identifier <br>User runs method execution <br>System search project <br>System search and delete attribute <br>System returns no content response /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// (optional) + /// Project attribute internal (UUID) /// Cancellation Token to cancel the request. - /// Task of CustomAttributeModel - public async System.Threading.Tasks.Task CreateProjectsAttributeAsync(string id, CustomAttributePostModel customAttributePostModel = default(CustomAttributePostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of void + public async System.Threading.Tasks.Task DeleteProjectsAttributeAsync(string id, Guid attributeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - TestIt.Client.Client.ApiResponse localVarResponse = await CreateProjectsAttributeWithHttpInfoAsync(id, customAttributePostModel, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; + await DeleteProjectsAttributeWithHttpInfoAsync(id, attributeId, cancellationToken).ConfigureAwait(false); } /// - /// Create project attribute <br>Use case <br>User sets attribute parameters (listed in request example) and runs method execution <br>System search project <br>System creates attribute and relates it to the project <br>System returns project attribute properties (example listed in response parameters) + /// Delete project attribute <br>Use case <br>User sets project identifier and runs method execution <br>User sets attribute identifier <br>User runs method execution <br>System search project <br>System search and delete attribute <br>System returns no content response /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// (optional) + /// Project attribute internal (UUID) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CustomAttributeModel) - public async System.Threading.Tasks.Task> CreateProjectsAttributeWithHttpInfoAsync(string id, CustomAttributePostModel customAttributePostModel = default(CustomAttributePostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteProjectsAttributeWithHttpInfoAsync(string id, Guid attributeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->CreateProjectsAttribute"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteProjectsAttribute"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { - "application/json" }; // to determine the Accept header @@ -5773,7 +7718,7 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.Data = customAttributePostModel; + localVarRequestOptions.PathParameters.Add("attributeId", TestIt.Client.Client.ClientUtils.ParameterToString(attributeId)); // path parameter // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5783,11 +7728,11 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/attributes", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/api/v2/projects/{id}/attributes/{attributeId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("CreateProjectsAttribute", localVarResponse); + Exception _exception = this.ExceptionFactory("DeleteProjectsAttribute", localVarResponse); if (_exception != null) throw _exception; } @@ -5795,33 +7740,39 @@ public TestIt.Client.Client.ApiResponse ApiV2ProjectsNameNameExistsGetWith } /// - /// Delete attribute from project's test plans <br>Use case <br>User sets project internal or global identifier and attribute identifier <br>User runs method execution <br>System updates project and delete attribute from project for test plans <br>System returns no content response + /// Export project as JSON file <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> ``` curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" ``` <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// - /// - public void DeleteCustomAttributeTestPlanProjectRelations(string id, Guid attributeId) + /// Specifies the ID of the project you want to export. + /// Enables attachment export. (optional, default to false) + /// (optional) + /// FileParameter + [Obsolete] + public FileParameter Export(string id, bool? includeAttachments = default(bool?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)) { - DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfo(id, attributeId); + TestIt.Client.Client.ApiResponse localVarResponse = ExportWithHttpInfo(id, includeAttachments, projectExportQueryModel); + return localVarResponse.Data; } /// - /// Delete attribute from project's test plans <br>Use case <br>User sets project internal or global identifier and attribute identifier <br>User runs method execution <br>System updates project and delete attribute from project for test plans <br>System returns no content response + /// Export project as JSON file <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> ``` curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" ``` <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// - /// ApiResponse of Object(void) - public TestIt.Client.Client.ApiResponse DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfo(string id, Guid attributeId) + /// Specifies the ID of the project you want to export. + /// Enables attachment export. (optional, default to false) + /// (optional) + /// ApiResponse of FileParameter + [Obsolete] + public TestIt.Client.Client.ApiResponse ExportWithHttpInfo(string id, bool? includeAttachments = default(bool?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteCustomAttributeTestPlanProjectRelations"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->Export"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -5836,7 +7787,11 @@ public TestIt.Client.Client.ApiResponse DeleteCustomAttributeTestPlanPro if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.PathParameters.Add("attributeId", TestIt.Client.Client.ClientUtils.ParameterToString(attributeId)); // path parameter + if (includeAttachments != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "includeAttachments", includeAttachments)); + } + localVarRequestOptions.Data = projectExportQueryModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5845,11 +7800,11 @@ public TestIt.Client.Client.ApiResponse DeleteCustomAttributeTestPlanPro } // make the HTTP request - var localVarResponse = this.Client.Delete("/api/v2/projects/{id}/testPlans/attribute/{attributeId}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/api/v2/projects/{id}/export", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("DeleteCustomAttributeTestPlanProjectRelations", localVarResponse); + Exception _exception = this.ExceptionFactory("Export", localVarResponse); if (_exception != null) throw _exception; } @@ -5857,36 +7812,42 @@ public TestIt.Client.Client.ApiResponse DeleteCustomAttributeTestPlanPro } /// - /// Delete attribute from project's test plans <br>Use case <br>User sets project internal or global identifier and attribute identifier <br>User runs method execution <br>System updates project and delete attribute from project for test plans <br>System returns no content response + /// Export project as JSON file <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> ``` curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" ``` <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// + /// Specifies the ID of the project you want to export. + /// Enables attachment export. (optional, default to false) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task DeleteCustomAttributeTestPlanProjectRelationsAsync(string id, Guid attributeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of FileParameter + [Obsolete] + public async System.Threading.Tasks.Task ExportAsync(string id, bool? includeAttachments = default(bool?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfoAsync(id, attributeId, cancellationToken).ConfigureAwait(false); + TestIt.Client.Client.ApiResponse localVarResponse = await ExportWithHttpInfoAsync(id, includeAttachments, projectExportQueryModel, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; } /// - /// Delete attribute from project's test plans <br>Use case <br>User sets project internal or global identifier and attribute identifier <br>User runs method execution <br>System updates project and delete attribute from project for test plans <br>System returns no content response + /// Export project as JSON file <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> ``` curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" ``` <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. /// /// Thrown when fails to make API call - /// Project internal (UUID) or global (integer) identifier - /// + /// Specifies the ID of the project you want to export. + /// Enables attachment export. (optional, default to false) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteCustomAttributeTestPlanProjectRelationsWithHttpInfoAsync(string id, Guid attributeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (FileParameter) + [Obsolete] + public async System.Threading.Tasks.Task> ExportWithHttpInfoAsync(string id, bool? includeAttachments = default(bool?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteCustomAttributeTestPlanProjectRelations"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->Export"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -5902,7 +7863,11 @@ public TestIt.Client.Client.ApiResponse DeleteCustomAttributeTestPlanPro if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.PathParameters.Add("attributeId", TestIt.Client.Client.ClientUtils.ParameterToString(attributeId)); // path parameter + if (includeAttachments != null) + { + localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "includeAttachments", includeAttachments)); + } + localVarRequestOptions.Data = projectExportQueryModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5912,11 +7877,11 @@ public TestIt.Client.Client.ApiResponse DeleteCustomAttributeTestPlanPro // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/api/v2/projects/{id}/testPlans/attribute/{attributeId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/export", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("DeleteCustomAttributeTestPlanProjectRelations", localVarResponse); + Exception _exception = this.ExceptionFactory("Export", localVarResponse); if (_exception != null) throw _exception; } @@ -5924,31 +7889,37 @@ public TestIt.Client.Client.ApiResponse DeleteCustomAttributeTestPlanPro } /// - /// Delete project <br>Use case: <br>1. User sets project internal or global identifier and runs method execution <br>2. System searches and moves requested project to archive <br>3. System responds with no content (204) result + /// Export project as JSON file in background job /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// - public void DeleteProject(string id) + /// (optional) + /// (optional) + /// Guid + public Guid ExportProjectJson(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)) { - DeleteProjectWithHttpInfo(id); + TestIt.Client.Client.ApiResponse localVarResponse = ExportProjectJsonWithHttpInfo(id, timeZoneOffsetInMinutes, projectExportQueryModel); + return localVarResponse.Data; } /// - /// Delete project <br>Use case: <br>1. User sets project internal or global identifier and runs method execution <br>2. System searches and moves requested project to archive <br>3. System responds with no content (204) result + /// Export project as JSON file in background job /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// ApiResponse of Object(void) - public TestIt.Client.Client.ApiResponse DeleteProjectWithHttpInfo(string id) + /// (optional) + /// (optional) + /// ApiResponse of Guid + public TestIt.Client.Client.ApiResponse ExportProjectJsonWithHttpInfo(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteProject"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ExportProjectJson"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -5963,6 +7934,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectWithHttpInfo(string if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (timeZoneOffsetInMinutes != null) + { + localVarRequestOptions.HeaderParameters.Add("time-Zone-Offset-In-Minutes", TestIt.Client.Client.ClientUtils.ParameterToString(timeZoneOffsetInMinutes)); // header parameter + } + localVarRequestOptions.Data = projectExportQueryModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -5971,11 +7947,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectWithHttpInfo(string } // make the HTTP request - var localVarResponse = this.Client.Delete("/api/v2/projects/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/api/v2/projects/{id}/export/json", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("DeleteProject", localVarResponse); + Exception _exception = this.ExceptionFactory("ExportProjectJson", localVarResponse); if (_exception != null) throw _exception; } @@ -5983,34 +7959,40 @@ public TestIt.Client.Client.ApiResponse DeleteProjectWithHttpInfo(string } /// - /// Delete project <br>Use case: <br>1. User sets project internal or global identifier and runs method execution <br>2. System searches and moves requested project to archive <br>3. System responds with no content (204) result + /// Export project as JSON file in background job /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task DeleteProjectAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of Guid + public async System.Threading.Tasks.Task ExportProjectJsonAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await DeleteProjectWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + TestIt.Client.Client.ApiResponse localVarResponse = await ExportProjectJsonWithHttpInfoAsync(id, timeZoneOffsetInMinutes, projectExportQueryModel, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; } /// - /// Delete project <br>Use case: <br>1. User sets project internal or global identifier and runs method execution <br>2. System searches and moves requested project to archive <br>3. System responds with no content (204) result + /// Export project as JSON file in background job /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteProjectWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (Guid) + public async System.Threading.Tasks.Task> ExportProjectJsonWithHttpInfoAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteProject"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ExportProjectJson"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -6026,6 +8008,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectWithHttpInfo(string if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (timeZoneOffsetInMinutes != null) + { + localVarRequestOptions.HeaderParameters.Add("time-Zone-Offset-In-Minutes", TestIt.Client.Client.ClientUtils.ParameterToString(timeZoneOffsetInMinutes)); // header parameter + } + localVarRequestOptions.Data = projectExportQueryModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -6035,11 +8022,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectWithHttpInfo(string // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/api/v2/projects/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/export/json", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("DeleteProject", localVarResponse); + Exception _exception = this.ExceptionFactory("ExportProjectJson", localVarResponse); if (_exception != null) throw _exception; } @@ -6047,31 +8034,37 @@ public TestIt.Client.Client.ApiResponse DeleteProjectWithHttpInfo(string } /// - /// Delete project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System delete all autotests from project <br>System returns no content response + /// Export project as JSON file with test plans in background job /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// - public void DeleteProjectAutoTests(string id) + /// (optional) + /// (optional) + /// Guid + public Guid ExportProjectWithTestPlansJson(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel)) { - DeleteProjectAutoTestsWithHttpInfo(id); + TestIt.Client.Client.ApiResponse localVarResponse = ExportProjectWithTestPlansJsonWithHttpInfo(id, timeZoneOffsetInMinutes, projectExportWithTestPlansPostModel); + return localVarResponse.Data; } /// - /// Delete project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System delete all autotests from project <br>System returns no content response + /// Export project as JSON file with test plans in background job /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// ApiResponse of Object(void) - public TestIt.Client.Client.ApiResponse DeleteProjectAutoTestsWithHttpInfo(string id) + /// (optional) + /// (optional) + /// ApiResponse of Guid + public TestIt.Client.Client.ApiResponse ExportProjectWithTestPlansJsonWithHttpInfo(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteProjectAutoTests"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ExportProjectWithTestPlansJson"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -6086,6 +8079,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectAutoTestsWithHttpIn if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (timeZoneOffsetInMinutes != null) + { + localVarRequestOptions.HeaderParameters.Add("time-Zone-Offset-In-Minutes", TestIt.Client.Client.ClientUtils.ParameterToString(timeZoneOffsetInMinutes)); // header parameter + } + localVarRequestOptions.Data = projectExportWithTestPlansPostModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -6094,11 +8092,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectAutoTestsWithHttpIn } // make the HTTP request - var localVarResponse = this.Client.Delete("/api/v2/projects/{id}/autoTests", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/api/v2/projects/{id}/export/testPlans/json", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("DeleteProjectAutoTests", localVarResponse); + Exception _exception = this.ExceptionFactory("ExportProjectWithTestPlansJson", localVarResponse); if (_exception != null) throw _exception; } @@ -6106,34 +8104,40 @@ public TestIt.Client.Client.ApiResponse DeleteProjectAutoTestsWithHttpIn } /// - /// Delete project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System delete all autotests from project <br>System returns no content response + /// Export project as JSON file with test plans in background job /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task DeleteProjectAutoTestsAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of Guid + public async System.Threading.Tasks.Task ExportProjectWithTestPlansJsonAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await DeleteProjectAutoTestsWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + TestIt.Client.Client.ApiResponse localVarResponse = await ExportProjectWithTestPlansJsonWithHttpInfoAsync(id, timeZoneOffsetInMinutes, projectExportWithTestPlansPostModel, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; } /// - /// Delete project <br>Use case <br>User sets project internal or global identifier <br>User runs method execution <br>System delete all autotests from project <br>System returns no content response + /// Export project as JSON file with test plans in background job /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier + /// (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteProjectAutoTestsWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (Guid) + public async System.Threading.Tasks.Task> ExportProjectWithTestPlansJsonWithHttpInfoAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteProjectAutoTests"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ExportProjectWithTestPlansJson"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -6149,6 +8153,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectAutoTestsWithHttpIn if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (timeZoneOffsetInMinutes != null) + { + localVarRequestOptions.HeaderParameters.Add("time-Zone-Offset-In-Minutes", TestIt.Client.Client.ClientUtils.ParameterToString(timeZoneOffsetInMinutes)); // header parameter + } + localVarRequestOptions.Data = projectExportWithTestPlansPostModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -6158,11 +8167,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectAutoTestsWithHttpIn // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/api/v2/projects/{id}/autoTests", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/export/testPlans/json", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("DeleteProjectAutoTests", localVarResponse); + Exception _exception = this.ExceptionFactory("ExportProjectWithTestPlansJson", localVarResponse); if (_exception != null) throw _exception; } @@ -6170,33 +8179,37 @@ public TestIt.Client.Client.ApiResponse DeleteProjectAutoTestsWithHttpIn } /// - /// Delete project attribute <br>Use case <br>User sets project identifier and runs method execution <br>User sets attribute identifier <br>User runs method execution <br>System search project <br>System search and delete attribute <br>System returns no content response + /// Export project as Zip file with test plans in background job /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// Project attribute internal (UUID) - /// - public void DeleteProjectsAttribute(string id, Guid attributeId) + /// (optional) + /// (optional) + /// Guid + public Guid ExportProjectWithTestPlansZip(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel)) { - DeleteProjectsAttributeWithHttpInfo(id, attributeId); + TestIt.Client.Client.ApiResponse localVarResponse = ExportProjectWithTestPlansZipWithHttpInfo(id, timeZoneOffsetInMinutes, projectExportWithTestPlansPostModel); + return localVarResponse.Data; } /// - /// Delete project attribute <br>Use case <br>User sets project identifier and runs method execution <br>User sets attribute identifier <br>User runs method execution <br>System search project <br>System search and delete attribute <br>System returns no content response + /// Export project as Zip file with test plans in background job /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// Project attribute internal (UUID) - /// ApiResponse of Object(void) - public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpInfo(string id, Guid attributeId) + /// (optional) + /// (optional) + /// ApiResponse of Guid + public TestIt.Client.Client.ApiResponse ExportProjectWithTestPlansZipWithHttpInfo(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteProjectsAttribute"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ExportProjectWithTestPlansZip"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -6211,7 +8224,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.PathParameters.Add("attributeId", TestIt.Client.Client.ClientUtils.ParameterToString(attributeId)); // path parameter + if (timeZoneOffsetInMinutes != null) + { + localVarRequestOptions.HeaderParameters.Add("time-Zone-Offset-In-Minutes", TestIt.Client.Client.ClientUtils.ParameterToString(timeZoneOffsetInMinutes)); // header parameter + } + localVarRequestOptions.Data = projectExportWithTestPlansPostModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -6220,11 +8237,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI } // make the HTTP request - var localVarResponse = this.Client.Delete("/api/v2/projects/{id}/attributes/{attributeId}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/api/v2/projects/{id}/export/testPlans/zip", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("DeleteProjectsAttribute", localVarResponse); + Exception _exception = this.ExceptionFactory("ExportProjectWithTestPlansZip", localVarResponse); if (_exception != null) throw _exception; } @@ -6232,36 +8249,40 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI } /// - /// Delete project attribute <br>Use case <br>User sets project identifier and runs method execution <br>User sets attribute identifier <br>User runs method execution <br>System search project <br>System search and delete attribute <br>System returns no content response + /// Export project as Zip file with test plans in background job /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// Project attribute internal (UUID) + /// (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of void - public async System.Threading.Tasks.Task DeleteProjectsAttributeAsync(string id, Guid attributeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of Guid + public async System.Threading.Tasks.Task ExportProjectWithTestPlansZipAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - await DeleteProjectsAttributeWithHttpInfoAsync(id, attributeId, cancellationToken).ConfigureAwait(false); + TestIt.Client.Client.ApiResponse localVarResponse = await ExportProjectWithTestPlansZipWithHttpInfoAsync(id, timeZoneOffsetInMinutes, projectExportWithTestPlansPostModel, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; } /// - /// Delete project attribute <br>Use case <br>User sets project identifier and runs method execution <br>User sets attribute identifier <br>User runs method execution <br>System search project <br>System search and delete attribute <br>System returns no content response + /// Export project as Zip file with test plans in background job /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// Project attribute internal (UUID) + /// (optional) + /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteProjectsAttributeWithHttpInfoAsync(string id, Guid attributeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (Guid) + public async System.Threading.Tasks.Task> ExportProjectWithTestPlansZipWithHttpInfoAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->DeleteProjectsAttribute"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ExportProjectWithTestPlansZip"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); string[] _contentTypes = new string[] { + "application/json" }; // to determine the Accept header @@ -6277,7 +8298,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - localVarRequestOptions.PathParameters.Add("attributeId", TestIt.Client.Client.ClientUtils.ParameterToString(attributeId)); // path parameter + if (timeZoneOffsetInMinutes != null) + { + localVarRequestOptions.HeaderParameters.Add("time-Zone-Offset-In-Minutes", TestIt.Client.Client.ClientUtils.ParameterToString(timeZoneOffsetInMinutes)); // header parameter + } + localVarRequestOptions.Data = projectExportWithTestPlansPostModel; // authentication (Bearer or PrivateToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -6287,11 +8312,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/api/v2/projects/{id}/attributes/{attributeId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/export/testPlans/zip", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("DeleteProjectsAttribute", localVarResponse); + Exception _exception = this.ExceptionFactory("ExportProjectWithTestPlansZip", localVarResponse); if (_exception != null) throw _exception; } @@ -6299,32 +8324,32 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI } /// - /// Export project as JSON file <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> <code> curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" </code> <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. + /// Export project as Zip file in background job /// /// Thrown when fails to make API call - /// Specifies the ID of the project you want to export. - /// Enables attachment export. (optional, default to false) + /// Project internal (UUID) or global (integer) identifier + /// (optional) /// (optional) - /// FileParameter - public FileParameter Export(string id, bool? includeAttachments = default(bool?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)) + /// Guid + public Guid ExportProjectZip(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)) { - TestIt.Client.Client.ApiResponse localVarResponse = ExportWithHttpInfo(id, includeAttachments, projectExportQueryModel); + TestIt.Client.Client.ApiResponse localVarResponse = ExportProjectZipWithHttpInfo(id, timeZoneOffsetInMinutes, projectExportQueryModel); return localVarResponse.Data; } /// - /// Export project as JSON file <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> <code> curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" </code> <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. + /// Export project as Zip file in background job /// /// Thrown when fails to make API call - /// Specifies the ID of the project you want to export. - /// Enables attachment export. (optional, default to false) + /// Project internal (UUID) or global (integer) identifier + /// (optional) /// (optional) - /// ApiResponse of FileParameter - public TestIt.Client.Client.ApiResponse ExportWithHttpInfo(string id, bool? includeAttachments = default(bool?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)) + /// ApiResponse of Guid + public TestIt.Client.Client.ApiResponse ExportProjectZipWithHttpInfo(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->Export"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ExportProjectZip"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); @@ -6344,9 +8369,9 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - if (includeAttachments != null) + if (timeZoneOffsetInMinutes != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "includeAttachments", includeAttachments)); + localVarRequestOptions.HeaderParameters.Add("time-Zone-Offset-In-Minutes", TestIt.Client.Client.ClientUtils.ParameterToString(timeZoneOffsetInMinutes)); // header parameter } localVarRequestOptions.Data = projectExportQueryModel; @@ -6357,11 +8382,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI } // make the HTTP request - var localVarResponse = this.Client.Post("/api/v2/projects/{id}/export", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/api/v2/projects/{id}/export/zip", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("Export", localVarResponse); + Exception _exception = this.ExceptionFactory("ExportProjectZip", localVarResponse); if (_exception != null) throw _exception; } @@ -6369,34 +8394,34 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI } /// - /// Export project as JSON file <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> <code> curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" </code> <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. + /// Export project as Zip file in background job /// /// Thrown when fails to make API call - /// Specifies the ID of the project you want to export. - /// Enables attachment export. (optional, default to false) + /// Project internal (UUID) or global (integer) identifier + /// (optional) /// (optional) /// Cancellation Token to cancel the request. - /// Task of FileParameter - public async System.Threading.Tasks.Task ExportAsync(string id, bool? includeAttachments = default(bool?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of Guid + public async System.Threading.Tasks.Task ExportProjectZipAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - TestIt.Client.Client.ApiResponse localVarResponse = await ExportWithHttpInfoAsync(id, includeAttachments, projectExportQueryModel, cancellationToken).ConfigureAwait(false); + TestIt.Client.Client.ApiResponse localVarResponse = await ExportProjectZipWithHttpInfoAsync(id, timeZoneOffsetInMinutes, projectExportQueryModel, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// Export project as JSON file <br>This method exports the selected project or its part (sections, work items) to a `.json` file. <br>In the request body, you can specify sections and test cases to be exported. <br>Example of a request to export two sections and two test cases: <br> <code> curl -X POST \"http://{domain}.com/api/v2/projects/27a32ce6-d972-4ef8-bef5-51be4bf9e468/export\" \\ -H \"accept: application/json\" -H \"Authorization: PrivateToken {token}\" -H \"Content-Type: application/json-patch+json\" \\ -d \"{\\\"sectionIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"9fa85f64-5717-4562-b3fc-2c963f66a000\\\"],\\\"workItemIds\\\":[\\\"3fa85f64-5717-4562-b3fc-2c963f66afa6\\\",\\\"90085f64-5717-4562-b3fc-2c963f66a000\\\"]}\" </code> <br>In the response, you get: <br> - A `.zip` file with attachments and a.json file if you enable attachments export.<br /> - A `.json` file with the project if you do not enable attachments export. + /// Export project as Zip file in background job /// /// Thrown when fails to make API call - /// Specifies the ID of the project you want to export. - /// Enables attachment export. (optional, default to false) + /// Project internal (UUID) or global (integer) identifier + /// (optional) /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FileParameter) - public async System.Threading.Tasks.Task> ExportWithHttpInfoAsync(string id, bool? includeAttachments = default(bool?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (Guid) + public async System.Threading.Tasks.Task> ExportProjectZipWithHttpInfoAsync(string id, long? timeZoneOffsetInMinutes = default(long?), ProjectExportQueryModel projectExportQueryModel = default(ProjectExportQueryModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) - throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->Export"); + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling ProjectsApi->ExportProjectZip"); TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); @@ -6418,9 +8443,9 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter - if (includeAttachments != null) + if (timeZoneOffsetInMinutes != null) { - localVarRequestOptions.QueryParameters.Add(TestIt.Client.Client.ClientUtils.ParameterToMultiMap("", "includeAttachments", includeAttachments)); + localVarRequestOptions.HeaderParameters.Add("time-Zone-Offset-In-Minutes", TestIt.Client.Client.ClientUtils.ParameterToString(timeZoneOffsetInMinutes)); // header parameter } localVarRequestOptions.Data = projectExportQueryModel; @@ -6432,11 +8457,11 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/export", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/projects/{id}/export/zip", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { - Exception _exception = this.ExceptionFactory("Export", localVarResponse); + Exception _exception = this.ExceptionFactory("ExportProjectZip", localVarResponse); if (_exception != null) throw _exception; } @@ -6451,6 +8476,7 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI /// Enables attachment export. (optional, default to false) /// (optional) /// FileParameter + [Obsolete] public FileParameter ExportWithTestPlansAndConfigurations(string id, bool? includeAttachments = default(bool?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel)) { TestIt.Client.Client.ApiResponse localVarResponse = ExportWithTestPlansAndConfigurationsWithHttpInfo(id, includeAttachments, projectExportWithTestPlansPostModel); @@ -6465,6 +8491,7 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI /// Enables attachment export. (optional, default to false) /// (optional) /// ApiResponse of FileParameter + [Obsolete] public TestIt.Client.Client.ApiResponse ExportWithTestPlansAndConfigurationsWithHttpInfo(string id, bool? includeAttachments = default(bool?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel)) { // verify the required parameter 'id' is set @@ -6522,6 +8549,7 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI /// (optional) /// Cancellation Token to cancel the request. /// Task of FileParameter + [Obsolete] public async System.Threading.Tasks.Task ExportWithTestPlansAndConfigurationsAsync(string id, bool? includeAttachments = default(bool?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { TestIt.Client.Client.ApiResponse localVarResponse = await ExportWithTestPlansAndConfigurationsWithHttpInfoAsync(id, includeAttachments, projectExportWithTestPlansPostModel, cancellationToken).ConfigureAwait(false); @@ -6537,6 +8565,7 @@ public TestIt.Client.Client.ApiResponse DeleteProjectsAttributeWithHttpI /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (FileParameter) + [Obsolete] public async System.Threading.Tasks.Task> ExportWithTestPlansAndConfigurationsWithHttpInfoAsync(string id, bool? includeAttachments = default(bool?), ProjectExportWithTestPlansPostModel projectExportWithTestPlansPostModel = default(ProjectExportWithTestPlansPostModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -6923,9 +8952,9 @@ public TestIt.Client.Client.ApiResponse GetAttributeByProj /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// If result must consist of only actual/deleted work items (optional, default to false) + /// (optional) /// List<CustomAttributeModel> - public List GetAttributesByProjectId(string id, bool? isDeleted = default(bool?)) + public List GetAttributesByProjectId(string id, DeletionState? isDeleted = default(DeletionState?)) { TestIt.Client.Client.ApiResponse> localVarResponse = GetAttributesByProjectIdWithHttpInfo(id, isDeleted); return localVarResponse.Data; @@ -6936,9 +8965,9 @@ public TestIt.Client.Client.ApiResponse GetAttributeByProj /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// If result must consist of only actual/deleted work items (optional, default to false) + /// (optional) /// ApiResponse of List<CustomAttributeModel> - public TestIt.Client.Client.ApiResponse> GetAttributesByProjectIdWithHttpInfo(string id, bool? isDeleted = default(bool?)) + public TestIt.Client.Client.ApiResponse> GetAttributesByProjectIdWithHttpInfo(string id, DeletionState? isDeleted = default(DeletionState?)) { // verify the required parameter 'id' is set if (id == null) @@ -6989,10 +9018,10 @@ public TestIt.Client.Client.ApiResponse GetAttributeByProj /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// If result must consist of only actual/deleted work items (optional, default to false) + /// (optional) /// Cancellation Token to cancel the request. /// Task of List<CustomAttributeModel> - public async System.Threading.Tasks.Task> GetAttributesByProjectIdAsync(string id, bool? isDeleted = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetAttributesByProjectIdAsync(string id, DeletionState? isDeleted = default(DeletionState?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { TestIt.Client.Client.ApiResponse> localVarResponse = await GetAttributesByProjectIdWithHttpInfoAsync(id, isDeleted, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -7003,10 +9032,10 @@ public TestIt.Client.Client.ApiResponse GetAttributeByProj /// /// Thrown when fails to make API call /// Project internal (UUID) or global (integer) identifier - /// If result must consist of only actual/deleted work items (optional, default to false) + /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<CustomAttributeModel>) - public async System.Threading.Tasks.Task>> GetAttributesByProjectIdWithHttpInfoAsync(string id, bool? isDeleted = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> GetAttributesByProjectIdWithHttpInfoAsync(string id, DeletionState? isDeleted = default(DeletionState?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -8368,24 +10397,26 @@ public TestIt.Client.Client.ApiResponse GetProjectByIdWithHttpInfo } /// - /// Import project from JSON file <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> <code> 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\" </code> <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. + /// Import project from JSON file <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> ``` 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\" ``` <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. /// /// Thrown when fails to make API call /// Enables attachment import. (optional, default to false) /// Select file (optional) /// + [Obsolete] public void Import(bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter)) { ImportWithHttpInfo(includeAttachments, file); } /// - /// Import project from JSON file <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> <code> 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\" </code> <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. + /// Import project from JSON file <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> ``` 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\" ``` <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. /// /// Thrown when fails to make API call /// Enables attachment import. (optional, default to false) /// Select file (optional) /// ApiResponse of Object(void) + [Obsolete] public TestIt.Client.Client.ApiResponse ImportWithHttpInfo(bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter)) { TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); @@ -8433,26 +10464,28 @@ public TestIt.Client.Client.ApiResponse GetProjectByIdWithHttpInfo } /// - /// Import project from JSON file <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> <code> 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\" </code> <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. + /// Import project from JSON file <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> ``` 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\" ``` <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. /// /// Thrown when fails to make API call /// Enables attachment import. (optional, default to false) /// Select file (optional) /// Cancellation Token to cancel the request. /// Task of void + [Obsolete] public async System.Threading.Tasks.Task ImportAsync(bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { await ImportWithHttpInfoAsync(includeAttachments, file, cancellationToken).ConfigureAwait(false); } /// - /// Import project from JSON file <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> <code> 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\" </code> <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. + /// Import project from JSON file <br> <b>A project can only be exported to another TMS instance, different from the one it was imported from.</b> <br>This method imports a `.json` file with a project to the test management system. <br>In the body of the request, send the `.json` file received by the `POST /api/v2/projects/export` method: <br> ``` 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\" ``` <br> 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. <br>Test plan execution history from the first instance of TMS cannot be transferred. /// /// Thrown when fails to make API call /// Enables attachment import. (optional, default to false) /// Select file (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse + [Obsolete] public async System.Threading.Tasks.Task> ImportWithHttpInfoAsync(bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -8510,6 +10543,7 @@ public TestIt.Client.Client.ApiResponse GetProjectByIdWithHttpInfo /// (optional) /// Select file (optional) /// + [Obsolete] public void ImportToExistingProject(string id, bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter)) { ImportToExistingProjectWithHttpInfo(id, includeAttachments, file); @@ -8523,6 +10557,7 @@ public TestIt.Client.Client.ApiResponse GetProjectByIdWithHttpInfo /// (optional) /// Select file (optional) /// ApiResponse of Object(void) + [Obsolete] public TestIt.Client.Client.ApiResponse ImportToExistingProjectWithHttpInfo(string id, bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter)) { // verify the required parameter 'id' is set @@ -8583,6 +10618,7 @@ public TestIt.Client.Client.ApiResponse GetProjectByIdWithHttpInfo /// Select file (optional) /// Cancellation Token to cancel the request. /// Task of void + [Obsolete] public async System.Threading.Tasks.Task ImportToExistingProjectAsync(string id, bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { await ImportToExistingProjectWithHttpInfoAsync(id, includeAttachments, file, cancellationToken).ConfigureAwait(false); @@ -8597,6 +10633,7 @@ public TestIt.Client.Client.ApiResponse GetProjectByIdWithHttpInfo /// Select file (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse + [Obsolete] public async System.Threading.Tasks.Task> ImportToExistingProjectWithHttpInfoAsync(string id, bool? includeAttachments = default(bool?), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set diff --git a/src/TestIt.Client/Api/SectionsApi.cs b/src/TestIt.Client/Api/SectionsApi.cs index bd42ba6d..c1b977cc 100644 --- a/src/TestIt.Client/Api/SectionsApi.cs +++ b/src/TestIt.Client/Api/SectionsApi.cs @@ -28,6 +28,29 @@ public interface ISectionsApiSync : IApiAccessor { #region Synchronous Operations /// + /// Patch section + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Section internal (UUID) identifier + /// (optional) + /// + void ApiV2SectionsIdPatch(Guid id, List operation = default(List)); + + /// + /// Patch section + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Section internal (UUID) identifier + /// (optional) + /// ApiResponse of Object(void) + ApiResponse ApiV2SectionsIdPatchWithHttpInfo(Guid id, List operation = default(List)); + /// /// Create section /// /// @@ -77,9 +100,9 @@ public interface ISectionsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Section internal (UUID) identifier - /// Requested section is deleted (optional, default to false) + /// (optional) /// SectionWithStepsModel - SectionWithStepsModel GetSectionById(Guid id, bool? isDeleted = default(bool?)); + SectionWithStepsModel GetSectionById(Guid id, DeletionState? isDeleted = default(DeletionState?)); /// /// Get section @@ -89,9 +112,9 @@ public interface ISectionsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Section internal (UUID) identifier - /// Requested section is deleted (optional, default to false) + /// (optional) /// ApiResponse of SectionWithStepsModel - ApiResponse GetSectionByIdWithHttpInfo(Guid id, bool? isDeleted = default(bool?)); + ApiResponse GetSectionByIdWithHttpInfo(Guid id, DeletionState? isDeleted = default(DeletionState?)); /// /// Get section work items /// @@ -199,6 +222,31 @@ public interface ISectionsApiAsync : IApiAccessor { #region Asynchronous Operations /// + /// Patch section + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Section internal (UUID) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task ApiV2SectionsIdPatchAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Patch section + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Section internal (UUID) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> ApiV2SectionsIdPatchWithHttpInfoAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Create section /// /// @@ -252,10 +300,10 @@ public interface ISectionsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Section internal (UUID) identifier - /// Requested section is deleted (optional, default to false) + /// (optional) /// Cancellation Token to cancel the request. /// Task of SectionWithStepsModel - System.Threading.Tasks.Task GetSectionByIdAsync(Guid id, bool? isDeleted = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetSectionByIdAsync(Guid id, DeletionState? isDeleted = default(DeletionState?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get section @@ -265,10 +313,10 @@ public interface ISectionsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Section internal (UUID) identifier - /// Requested section is deleted (optional, default to false) + /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (SectionWithStepsModel) - System.Threading.Tasks.Task> GetSectionByIdWithHttpInfoAsync(Guid id, bool? isDeleted = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetSectionByIdWithHttpInfoAsync(Guid id, DeletionState? isDeleted = default(DeletionState?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get section work items /// @@ -590,6 +638,129 @@ public TestIt.Client.Client.ExceptionFactory ExceptionFactory set { _exceptionFactory = value; } } + /// + /// Patch section See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Section internal (UUID) identifier + /// (optional) + /// + public void ApiV2SectionsIdPatch(Guid id, List operation = default(List)) + { + ApiV2SectionsIdPatchWithHttpInfo(id, operation); + } + + /// + /// Patch section See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Section internal (UUID) identifier + /// (optional) + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse ApiV2SectionsIdPatchWithHttpInfo(Guid id, List operation = default(List)) + { + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = operation; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Patch("/api/v2/sections/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2SectionsIdPatch", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Patch section See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Section internal (UUID) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task ApiV2SectionsIdPatchAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await ApiV2SectionsIdPatchWithHttpInfoAsync(id, operation, cancellationToken).ConfigureAwait(false); + } + + /// + /// Patch section See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Section internal (UUID) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ApiV2SectionsIdPatchWithHttpInfoAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = operation; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PatchAsync("/api/v2/sections/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2SectionsIdPatch", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Create section <br>Use case <br>User sets section properties (listed in request example) <br>User runs method execution <br>System creates section property values <br>System returns section (listed in response example) /// @@ -829,9 +1000,9 @@ public TestIt.Client.Client.ApiResponse DeleteSectionWithHttpInfo(Guid i /// /// Thrown when fails to make API call /// Section internal (UUID) identifier - /// Requested section is deleted (optional, default to false) + /// (optional) /// SectionWithStepsModel - public SectionWithStepsModel GetSectionById(Guid id, bool? isDeleted = default(bool?)) + public SectionWithStepsModel GetSectionById(Guid id, DeletionState? isDeleted = default(DeletionState?)) { TestIt.Client.Client.ApiResponse localVarResponse = GetSectionByIdWithHttpInfo(id, isDeleted); return localVarResponse.Data; @@ -842,9 +1013,9 @@ public TestIt.Client.Client.ApiResponse DeleteSectionWithHttpInfo(Guid i /// /// Thrown when fails to make API call /// Section internal (UUID) identifier - /// Requested section is deleted (optional, default to false) + /// (optional) /// ApiResponse of SectionWithStepsModel - public TestIt.Client.Client.ApiResponse GetSectionByIdWithHttpInfo(Guid id, bool? isDeleted = default(bool?)) + public TestIt.Client.Client.ApiResponse GetSectionByIdWithHttpInfo(Guid id, DeletionState? isDeleted = default(DeletionState?)) { TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); @@ -891,10 +1062,10 @@ public TestIt.Client.Client.ApiResponse DeleteSectionWithHttpInfo(Guid i /// /// Thrown when fails to make API call /// Section internal (UUID) identifier - /// Requested section is deleted (optional, default to false) + /// (optional) /// Cancellation Token to cancel the request. /// Task of SectionWithStepsModel - public async System.Threading.Tasks.Task GetSectionByIdAsync(Guid id, bool? isDeleted = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetSectionByIdAsync(Guid id, DeletionState? isDeleted = default(DeletionState?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { TestIt.Client.Client.ApiResponse localVarResponse = await GetSectionByIdWithHttpInfoAsync(id, isDeleted, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -905,10 +1076,10 @@ public TestIt.Client.Client.ApiResponse DeleteSectionWithHttpInfo(Guid i /// /// Thrown when fails to make API call /// Section internal (UUID) identifier - /// Requested section is deleted (optional, default to false) + /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (SectionWithStepsModel) - public async System.Threading.Tasks.Task> GetSectionByIdWithHttpInfoAsync(Guid id, bool? isDeleted = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetSectionByIdWithHttpInfoAsync(Guid id, DeletionState? isDeleted = default(DeletionState?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); diff --git a/src/TestIt.Client/Api/TestPlansApi.cs b/src/TestIt.Client/Api/TestPlansApi.cs index dfde4974..da473c14 100644 --- a/src/TestIt.Client/Api/TestPlansApi.cs +++ b/src/TestIt.Client/Api/TestPlansApi.cs @@ -245,6 +245,29 @@ public interface ITestPlansApiSync : IApiAccessor /// ApiResponse of List<TestPlanLink> ApiResponse> ApiV2TestPlansIdLinksGetWithHttpInfo(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string)); /// + /// Patch test plan + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the test plan + /// (optional) + /// + void ApiV2TestPlansIdPatch(Guid id, List operation = default(List)); + + /// + /// Patch test plan + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the test plan + /// (optional) + /// ApiResponse of Object(void) + ApiResponse ApiV2TestPlansIdPatchWithHttpInfo(Guid id, List operation = default(List)); + /// /// Get TestPoints with last result from TestPlan /// /// @@ -301,6 +324,48 @@ public interface ITestPlansApiSync : IApiAccessor /// ApiResponse of Object(void) ApiResponse ApiV2TestPlansIdTestPointsResetPostWithHttpInfo(string id, List requestBody = default(List)); /// + /// Unassign users from multiple test points + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// (optional) + /// List<Guid> + List ApiV2TestPlansIdTestPointsTesterDelete(string id, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel)); + + /// + /// Unassign users from multiple test points + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// (optional) + /// ApiResponse of List<Guid> + ApiResponse> ApiV2TestPlansIdTestPointsTesterDeleteWithHttpInfo(string id, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel)); + /// + /// Assign user as a tester to multiple test points + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// Unique ID of the user + /// (optional) + /// List<Guid> + List ApiV2TestPlansIdTestPointsTesterUserIdPost(string id, Guid userId, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel)); + + /// + /// Assign user as a tester to multiple test points + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// Unique ID of the user + /// (optional) + /// ApiResponse of List<Guid> + ApiResponse> ApiV2TestPlansIdTestPointsTesterUserIdPostWithHttpInfo(string id, Guid userId, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel)); + /// /// Get TestRuns of TestPlan /// /// @@ -895,6 +960,31 @@ public interface ITestPlansApiAsync : IApiAccessor /// Task of ApiResponse (List<TestPlanLink>) System.Threading.Tasks.Task>> ApiV2TestPlansIdLinksGetWithHttpInfoAsync(string id, int? skip = default(int?), int? take = default(int?), string orderBy = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// + /// Patch test plan + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the test plan + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task ApiV2TestPlansIdPatchAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Patch test plan + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the test plan + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> ApiV2TestPlansIdPatchWithHttpInfoAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Get TestPoints with last result from TestPlan /// /// @@ -955,6 +1045,58 @@ public interface ITestPlansApiAsync : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> ApiV2TestPlansIdTestPointsResetPostWithHttpInfoAsync(string id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// + /// Unassign users from multiple test points + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of List<Guid> + System.Threading.Tasks.Task> ApiV2TestPlansIdTestPointsTesterDeleteAsync(string id, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Unassign users from multiple test points + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Guid>) + System.Threading.Tasks.Task>> ApiV2TestPlansIdTestPointsTesterDeleteWithHttpInfoAsync(string id, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Assign user as a tester to multiple test points + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// Unique ID of the user + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of List<Guid> + System.Threading.Tasks.Task> ApiV2TestPlansIdTestPointsTesterUserIdPostAsync(string id, Guid userId, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Assign user as a tester to multiple test points + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// Unique ID of the user + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Guid>) + System.Threading.Tasks.Task>> ApiV2TestPlansIdTestPointsTesterUserIdPostWithHttpInfoAsync(string id, Guid userId, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Get TestRuns of TestPlan /// /// @@ -2861,6 +3003,129 @@ public TestIt.Client.Client.ApiResponse> ApiV2TestPlans return localVarResponse; } + /// + /// Patch test plan See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the test plan + /// (optional) + /// + public void ApiV2TestPlansIdPatch(Guid id, List operation = default(List)) + { + ApiV2TestPlansIdPatchWithHttpInfo(id, operation); + } + + /// + /// Patch test plan See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the test plan + /// (optional) + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse ApiV2TestPlansIdPatchWithHttpInfo(Guid id, List operation = default(List)) + { + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = operation; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Patch("/api/v2/testPlans/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2TestPlansIdPatch", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Patch test plan See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the test plan + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task ApiV2TestPlansIdPatchAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await ApiV2TestPlansIdPatchWithHttpInfoAsync(id, operation, cancellationToken).ConfigureAwait(false); + } + + /// + /// Patch test plan See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Unique ID of the test plan + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ApiV2TestPlansIdPatchWithHttpInfoAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = operation; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PatchAsync("/api/v2/testPlans/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2TestPlansIdPatch", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Get TestPoints with last result from TestPlan <br>Use case <br>User sets test plan identifier <br>User sets filter (listed in request example) <br>User runs method execution <br>System return test points with last result from test plan /// @@ -3189,6 +3454,278 @@ public TestIt.Client.Client.ApiResponse> ApiV2TestPlans return localVarResponse; } + /// + /// Unassign users from multiple test points + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// (optional) + /// List<Guid> + public List ApiV2TestPlansIdTestPointsTesterDelete(string id, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2TestPlansIdTestPointsTesterDeleteWithHttpInfo(id, testPointSelectModel); + return localVarResponse.Data; + } + + /// + /// Unassign users from multiple test points + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// (optional) + /// ApiResponse of List<Guid> + public TestIt.Client.Client.ApiResponse> ApiV2TestPlansIdTestPointsTesterDeleteWithHttpInfo(string id, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling TestPlansApi->ApiV2TestPlansIdTestPointsTesterDelete"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = testPointSelectModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete>("/api/v2/testPlans/{id}/testPoints/tester", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2TestPlansIdTestPointsTesterDelete", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Unassign users from multiple test points + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of List<Guid> + public async System.Threading.Tasks.Task> ApiV2TestPlansIdTestPointsTesterDeleteAsync(string id, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2TestPlansIdTestPointsTesterDeleteWithHttpInfoAsync(id, testPointSelectModel, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Unassign users from multiple test points + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Guid>) + public async System.Threading.Tasks.Task>> ApiV2TestPlansIdTestPointsTesterDeleteWithHttpInfoAsync(string id, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling TestPlansApi->ApiV2TestPlansIdTestPointsTesterDelete"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = testPointSelectModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.DeleteAsync>("/api/v2/testPlans/{id}/testPoints/tester", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2TestPlansIdTestPointsTesterDelete", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Assign user as a tester to multiple test points + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// Unique ID of the user + /// (optional) + /// List<Guid> + public List ApiV2TestPlansIdTestPointsTesterUserIdPost(string id, Guid userId, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = ApiV2TestPlansIdTestPointsTesterUserIdPostWithHttpInfo(id, userId, testPointSelectModel); + return localVarResponse.Data; + } + + /// + /// Assign user as a tester to multiple test points + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// Unique ID of the user + /// (optional) + /// ApiResponse of List<Guid> + public TestIt.Client.Client.ApiResponse> ApiV2TestPlansIdTestPointsTesterUserIdPostWithHttpInfo(string id, Guid userId, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling TestPlansApi->ApiV2TestPlansIdTestPointsTesterUserIdPost"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("userId", TestIt.Client.Client.ClientUtils.ParameterToString(userId)); // path parameter + localVarRequestOptions.Data = testPointSelectModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post>("/api/v2/testPlans/{id}/testPoints/tester/{userId}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2TestPlansIdTestPointsTesterUserIdPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Assign user as a tester to multiple test points + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// Unique ID of the user + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of List<Guid> + public async System.Threading.Tasks.Task> ApiV2TestPlansIdTestPointsTesterUserIdPostAsync(string id, Guid userId, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse> localVarResponse = await ApiV2TestPlansIdTestPointsTesterUserIdPostWithHttpInfoAsync(id, userId, testPointSelectModel, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Assign user as a tester to multiple test points + /// + /// Thrown when fails to make API call + /// Unique or global ID of the test plan + /// Unique ID of the user + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Guid>) + public async System.Threading.Tasks.Task>> ApiV2TestPlansIdTestPointsTesterUserIdPostWithHttpInfoAsync(string id, Guid userId, TestPointSelectModel testPointSelectModel = default(TestPointSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling TestPlansApi->ApiV2TestPlansIdTestPointsTesterUserIdPost"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.PathParameters.Add("userId", TestIt.Client.Client.ClientUtils.ParameterToString(userId)); // path parameter + localVarRequestOptions.Data = testPointSelectModel; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync>("/api/v2/testPlans/{id}/testPoints/tester/{userId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2TestPlansIdTestPointsTesterUserIdPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Get TestRuns of TestPlan <br>Use case <br>User sets test plan identifier <br>User sets TestRun status filter (listed in request example) <br>User runs method execution <br>System returns TestRuns for TestPlan /// diff --git a/src/TestIt.Client/Api/TestSuitesApi.cs b/src/TestIt.Client/Api/TestSuitesApi.cs index 3d8409df..45b8c538 100644 --- a/src/TestIt.Client/Api/TestSuitesApi.cs +++ b/src/TestIt.Client/Api/TestSuitesApi.cs @@ -48,6 +48,47 @@ public interface ITestSuitesApiSync : IApiAccessor /// ApiResponse of Object(void) ApiResponse AddTestPointsToTestSuiteWithHttpInfo(Guid id, WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel)); /// + /// Patch test suite + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// (optional) + /// + void ApiV2TestSuitesIdPatch(Guid id, List operation = default(List)); + + /// + /// Patch test suite + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// (optional) + /// ApiResponse of Object(void) + ApiResponse ApiV2TestSuitesIdPatchWithHttpInfo(Guid id, List operation = default(List)); + /// + /// Refresh test suite. Only dynamic test suites are supported by this method + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// + void ApiV2TestSuitesIdRefreshPost(Guid id); + + /// + /// Refresh test suite. Only dynamic test suites are supported by this method + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// ApiResponse of Object(void) + ApiResponse ApiV2TestSuitesIdRefreshPostWithHttpInfo(Guid id); + /// /// Create TestSuite /// /// @@ -211,7 +252,7 @@ public interface ITestSuitesApiSync : IApiAccessor /// Search WorkItems /// /// - /// <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns workitems array + /// <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns work items array /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" @@ -228,7 +269,7 @@ public interface ITestSuitesApiSync : IApiAccessor /// Search WorkItems /// /// - /// <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns workitems array + /// <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns work items array /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" @@ -267,11 +308,11 @@ public interface ITestSuitesApiSync : IApiAccessor /// Set WorkItems By TestSuite Id /// /// - /// <br>Use case <br>User sets test suite identifier <br>User sets collection of workitems identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems <br>System restores(if exist) or creates test points with listed workitems <br>System returns no content response + /// <br>Use case <br>User sets test suite identifier <br>User sets collection of work items identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items <br>System restores(if exist) or creates test points with listed work items <br>System returns no content response /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" - /// Collection of workitem identifiers\" (optional) + /// Collection of work item identifiers\" (optional) /// void SetWorkItemsByTestSuiteId(Guid id, List requestBody = default(List)); @@ -279,11 +320,11 @@ public interface ITestSuitesApiSync : IApiAccessor /// Set WorkItems By TestSuite Id /// /// - /// <br>Use case <br>User sets test suite identifier <br>User sets collection of workitems identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems <br>System restores(if exist) or creates test points with listed workitems <br>System returns no content response + /// <br>Use case <br>User sets test suite identifier <br>User sets collection of work items identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items <br>System restores(if exist) or creates test points with listed work items <br>System returns no content response /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" - /// Collection of workitem identifiers\" (optional) + /// Collection of work item identifiers\" (optional) /// ApiResponse of Object(void) ApiResponse SetWorkItemsByTestSuiteIdWithHttpInfo(Guid id, List requestBody = default(List)); /// @@ -342,6 +383,54 @@ public interface ITestSuitesApiAsync : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> AddTestPointsToTestSuiteWithHttpInfoAsync(Guid id, WorkItemSelectModel workItemSelectModel = default(WorkItemSelectModel), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// + /// Patch test suite + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task ApiV2TestSuitesIdPatchAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Patch test suite + /// + /// + /// See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> ApiV2TestSuitesIdPatchWithHttpInfoAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Refresh test suite. Only dynamic test suites are supported by this method + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task ApiV2TestSuitesIdRefreshPostAsync(Guid id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Refresh test suite. Only dynamic test suites are supported by this method + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> ApiV2TestSuitesIdRefreshPostWithHttpInfoAsync(Guid id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Create TestSuite /// /// @@ -522,7 +611,7 @@ public interface ITestSuitesApiAsync : IApiAccessor /// Search WorkItems /// /// - /// <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns workitems array + /// <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns work items array /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" @@ -540,7 +629,7 @@ public interface ITestSuitesApiAsync : IApiAccessor /// Search WorkItems /// /// - /// <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns workitems array + /// <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns work items array /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" @@ -582,11 +671,11 @@ public interface ITestSuitesApiAsync : IApiAccessor /// Set WorkItems By TestSuite Id /// /// - /// <br>Use case <br>User sets test suite identifier <br>User sets collection of workitems identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems <br>System restores(if exist) or creates test points with listed workitems <br>System returns no content response + /// <br>Use case <br>User sets test suite identifier <br>User sets collection of work items identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items <br>System restores(if exist) or creates test points with listed work items <br>System returns no content response /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" - /// Collection of workitem identifiers\" (optional) + /// Collection of work item identifiers\" (optional) /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task SetWorkItemsByTestSuiteIdAsync(Guid id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); @@ -595,11 +684,11 @@ public interface ITestSuitesApiAsync : IApiAccessor /// Set WorkItems By TestSuite Id /// /// - /// <br>Use case <br>User sets test suite identifier <br>User sets collection of workitems identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems <br>System restores(if exist) or creates test points with listed workitems <br>System returns no content response + /// <br>Use case <br>User sets test suite identifier <br>User sets collection of work items identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items <br>System restores(if exist) or creates test points with listed work items <br>System returns no content response /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" - /// Collection of workitem identifiers\" (optional) + /// Collection of work item identifiers\" (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> SetWorkItemsByTestSuiteIdWithHttpInfoAsync(Guid id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); @@ -962,6 +1051,244 @@ public TestIt.Client.Client.ExceptionFactory ExceptionFactory return localVarResponse; } + /// + /// Patch test suite See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// (optional) + /// + public void ApiV2TestSuitesIdPatch(Guid id, List operation = default(List)) + { + ApiV2TestSuitesIdPatchWithHttpInfo(id, operation); + } + + /// + /// Patch test suite See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// (optional) + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse ApiV2TestSuitesIdPatchWithHttpInfo(Guid id, List operation = default(List)) + { + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = operation; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Patch("/api/v2/testSuites/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2TestSuitesIdPatch", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Patch test suite See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task ApiV2TestSuitesIdPatchAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await ApiV2TestSuitesIdPatchWithHttpInfoAsync(id, operation, cancellationToken).ConfigureAwait(false); + } + + /// + /// Patch test suite See <a href=\"https://www.rfc-editor.org/rfc/rfc6902\" target=\"_blank\">RFC 6902: JavaScript Object Notation (JSON) Patch</a> for details + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ApiV2TestSuitesIdPatchWithHttpInfoAsync(Guid id, List operation = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = operation; + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PatchAsync("/api/v2/testSuites/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2TestSuitesIdPatch", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh test suite. Only dynamic test suites are supported by this method + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// + public void ApiV2TestSuitesIdRefreshPost(Guid id) + { + ApiV2TestSuitesIdRefreshPostWithHttpInfo(id); + } + + /// + /// Refresh test suite. Only dynamic test suites are supported by this method + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse ApiV2TestSuitesIdRefreshPostWithHttpInfo(Guid id) + { + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/api/v2/testSuites/{id}/refresh", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2TestSuitesIdRefreshPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Refresh test suite. Only dynamic test suites are supported by this method + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task ApiV2TestSuitesIdRefreshPostAsync(Guid id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await ApiV2TestSuitesIdRefreshPostWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + } + + /// + /// Refresh test suite. Only dynamic test suites are supported by this method + /// + /// Thrown when fails to make API call + /// Test Suite internal (UUID) identifier + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> ApiV2TestSuitesIdRefreshPostWithHttpInfoAsync(Guid id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/testSuites/{id}/refresh", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2TestSuitesIdRefreshPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Create TestSuite <br>Use case <br>User sets test suite model (listed in request parameters) <br>User runs method execution <br>System creates test suite <br>System returns test suite /// @@ -1870,7 +2197,7 @@ public TestIt.Client.Client.ApiResponse GetTestSuiteByIdWit } /// - /// Search WorkItems <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns workitems array + /// Search WorkItems <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns work items array /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" @@ -1888,7 +2215,7 @@ public TestIt.Client.Client.ApiResponse GetTestSuiteByIdWit } /// - /// Search WorkItems <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns workitems array + /// Search WorkItems <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns work items array /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" @@ -1960,7 +2287,7 @@ public TestIt.Client.Client.ApiResponse GetTestSuiteByIdWit } /// - /// Search WorkItems <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns workitems array + /// Search WorkItems <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns work items array /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" @@ -1979,7 +2306,7 @@ public TestIt.Client.Client.ApiResponse GetTestSuiteByIdWit } /// - /// Search WorkItems <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns workitems array + /// Search WorkItems <br>Use case <br>User sets test suite identifier <br>[Optional] User sets filter <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items related to the test points <br> [Optional] User sets filter, system applies filter <br>System returns work items array /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" @@ -2178,11 +2505,11 @@ public TestIt.Client.Client.ApiResponse GetTestSuiteByIdWit } /// - /// Set WorkItems By TestSuite Id <br>Use case <br>User sets test suite identifier <br>User sets collection of workitems identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems <br>System restores(if exist) or creates test points with listed workitems <br>System returns no content response + /// Set WorkItems By TestSuite Id <br>Use case <br>User sets test suite identifier <br>User sets collection of work items identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items <br>System restores(if exist) or creates test points with listed work items <br>System returns no content response /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" - /// Collection of workitem identifiers\" (optional) + /// Collection of work item identifiers\" (optional) /// public void SetWorkItemsByTestSuiteId(Guid id, List requestBody = default(List)) { @@ -2190,11 +2517,11 @@ public TestIt.Client.Client.ApiResponse GetTestSuiteByIdWit } /// - /// Set WorkItems By TestSuite Id <br>Use case <br>User sets test suite identifier <br>User sets collection of workitems identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems <br>System restores(if exist) or creates test points with listed workitems <br>System returns no content response + /// Set WorkItems By TestSuite Id <br>Use case <br>User sets test suite identifier <br>User sets collection of work items identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items <br>System restores(if exist) or creates test points with listed work items <br>System returns no content response /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" - /// Collection of workitem identifiers\" (optional) + /// Collection of work item identifiers\" (optional) /// ApiResponse of Object(void) public TestIt.Client.Client.ApiResponse SetWorkItemsByTestSuiteIdWithHttpInfo(Guid id, List requestBody = default(List)) { @@ -2237,11 +2564,11 @@ public TestIt.Client.Client.ApiResponse GetTestSuiteByIdWit } /// - /// Set WorkItems By TestSuite Id <br>Use case <br>User sets test suite identifier <br>User sets collection of workitems identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems <br>System restores(if exist) or creates test points with listed workitems <br>System returns no content response + /// Set WorkItems By TestSuite Id <br>Use case <br>User sets test suite identifier <br>User sets collection of work items identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items <br>System restores(if exist) or creates test points with listed work items <br>System returns no content response /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" - /// Collection of workitem identifiers\" (optional) + /// Collection of work item identifiers\" (optional) /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task SetWorkItemsByTestSuiteIdAsync(Guid id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) @@ -2250,11 +2577,11 @@ public TestIt.Client.Client.ApiResponse GetTestSuiteByIdWit } /// - /// Set WorkItems By TestSuite Id <br>Use case <br>User sets test suite identifier <br>User sets collection of workitems identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search workitems <br>System restores(if exist) or creates test points with listed workitems <br>System returns no content response + /// Set WorkItems By TestSuite Id <br>Use case <br>User sets test suite identifier <br>User sets collection of work items identifiers <br>User runs method execution <br>System search test suite by identifier <br>System search test points related to the test suite <br>System search work items <br>System restores(if exist) or creates test points with listed work items <br>System returns no content response /// /// Thrown when fails to make API call /// Test suite internal (guid format) identifier\" - /// Collection of workitem identifiers\" (optional) + /// Collection of work item identifiers\" (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> SetWorkItemsByTestSuiteIdWithHttpInfoAsync(Guid id, List requestBody = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) diff --git a/src/TestIt.Client/Api/WorkItemsApi.cs b/src/TestIt.Client/Api/WorkItemsApi.cs index 6e896237..e69f50b7 100644 --- a/src/TestIt.Client/Api/WorkItemsApi.cs +++ b/src/TestIt.Client/Api/WorkItemsApi.cs @@ -28,6 +28,29 @@ public interface IWorkItemsApiSync : IApiAccessor { #region Synchronous Operations /// + /// Upload and link attachment to WorkItem + /// + /// + /// <br>Use case <br>User sets workItemId <br>User attaches a file <br>System creates attachment and links it to the work item <br>System returns attachment identifier + /// + /// Thrown when fails to make API call + /// Work item internal identifier (guid format) + /// Select file (optional) + /// Guid + Guid ApiV2WorkItemsIdAttachmentsPost(Guid id, FileParameter file = default(FileParameter)); + + /// + /// Upload and link attachment to WorkItem + /// + /// + /// <br>Use case <br>User sets workItemId <br>User attaches a file <br>System creates attachment and links it to the work item <br>System returns attachment identifier + /// + /// Thrown when fails to make API call + /// Work item internal identifier (guid format) + /// Select file (optional) + /// ApiResponse of Guid + ApiResponse ApiV2WorkItemsIdAttachmentsPostWithHttpInfo(Guid id, FileParameter file = default(FileParameter)); + /// /// Transform CheckList to TestCase /// /// @@ -551,6 +574,42 @@ public interface IWorkItemsApiSync : IApiAccessor /// ApiResponse of List<WorkItemVersionModel> ApiResponse> GetWorkItemVersionsWithHttpInfo(string id, Guid? workItemVersionId = default(Guid?), int? versionNumber = default(int?)); /// + /// Permanently delete test case, checklist or shared steps from archive + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// + void PurgeWorkItem(string id); + + /// + /// Permanently delete test case, checklist or shared steps from archive + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// ApiResponse of Object(void) + ApiResponse PurgeWorkItemWithHttpInfo(string id); + /// + /// Restore test case, checklist or shared steps from archive + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// + void RestoreWorkItem(string id); + + /// + /// Restore test case, checklist or shared steps from archive + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// ApiResponse of Object(void) + ApiResponse RestoreWorkItemWithHttpInfo(string id); + /// /// Update Test Case, Checklist or Shared Step /// /// @@ -581,6 +640,31 @@ public interface IWorkItemsApiAsync : IApiAccessor { #region Asynchronous Operations /// + /// Upload and link attachment to WorkItem + /// + /// + /// <br>Use case <br>User sets workItemId <br>User attaches a file <br>System creates attachment and links it to the work item <br>System returns attachment identifier + /// + /// Thrown when fails to make API call + /// Work item internal identifier (guid format) + /// Select file (optional) + /// Cancellation Token to cancel the request. + /// Task of Guid + System.Threading.Tasks.Task ApiV2WorkItemsIdAttachmentsPostAsync(Guid id, FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Upload and link attachment to WorkItem + /// + /// + /// <br>Use case <br>User sets workItemId <br>User attaches a file <br>System creates attachment and links it to the work item <br>System returns attachment identifier + /// + /// Thrown when fails to make API call + /// Work item internal identifier (guid format) + /// Select file (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Guid) + System.Threading.Tasks.Task> ApiV2WorkItemsIdAttachmentsPostWithHttpInfoAsync(Guid id, FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Transform CheckList to TestCase /// /// @@ -1152,6 +1236,52 @@ public interface IWorkItemsApiAsync : IApiAccessor /// Task of ApiResponse (List<WorkItemVersionModel>) System.Threading.Tasks.Task>> GetWorkItemVersionsWithHttpInfoAsync(string id, Guid? workItemVersionId = default(Guid?), int? versionNumber = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// + /// Permanently delete test case, checklist or shared steps from archive + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task PurgeWorkItemAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Permanently delete test case, checklist or shared steps from archive + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> PurgeWorkItemWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Restore test case, checklist or shared steps from archive + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task RestoreWorkItemAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Restore test case, checklist or shared steps from archive + /// + /// + /// + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + System.Threading.Tasks.Task> RestoreWorkItemWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Update Test Case, Checklist or Shared Step /// /// @@ -1387,6 +1517,137 @@ public TestIt.Client.Client.ExceptionFactory ExceptionFactory set { _exceptionFactory = value; } } + /// + /// Upload and link attachment to WorkItem <br>Use case <br>User sets workItemId <br>User attaches a file <br>System creates attachment and links it to the work item <br>System returns attachment identifier + /// + /// Thrown when fails to make API call + /// Work item internal identifier (guid format) + /// Select file (optional) + /// Guid + public Guid ApiV2WorkItemsIdAttachmentsPost(Guid id, FileParameter file = default(FileParameter)) + { + TestIt.Client.Client.ApiResponse localVarResponse = ApiV2WorkItemsIdAttachmentsPostWithHttpInfo(id, file); + return localVarResponse.Data; + } + + /// + /// Upload and link attachment to WorkItem <br>Use case <br>User sets workItemId <br>User attaches a file <br>System creates attachment and links it to the work item <br>System returns attachment identifier + /// + /// Thrown when fails to make API call + /// Work item internal identifier (guid format) + /// Select file (optional) + /// ApiResponse of Guid + public TestIt.Client.Client.ApiResponse ApiV2WorkItemsIdAttachmentsPostWithHttpInfo(Guid id, FileParameter file = default(FileParameter)) + { + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "multipart/form-data" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (file != null) + { + localVarRequestOptions.FileParameters.Add("file", file); + } + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/api/v2/workItems/{id}/attachments", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2WorkItemsIdAttachmentsPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Upload and link attachment to WorkItem <br>Use case <br>User sets workItemId <br>User attaches a file <br>System creates attachment and links it to the work item <br>System returns attachment identifier + /// + /// Thrown when fails to make API call + /// Work item internal identifier (guid format) + /// Select file (optional) + /// Cancellation Token to cancel the request. + /// Task of Guid + public async System.Threading.Tasks.Task ApiV2WorkItemsIdAttachmentsPostAsync(Guid id, FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + TestIt.Client.Client.ApiResponse localVarResponse = await ApiV2WorkItemsIdAttachmentsPostWithHttpInfoAsync(id, file, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Upload and link attachment to WorkItem <br>Use case <br>User sets workItemId <br>User attaches a file <br>System creates attachment and links it to the work item <br>System returns attachment identifier + /// + /// Thrown when fails to make API call + /// Work item internal identifier (guid format) + /// Select file (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Guid) + public async System.Threading.Tasks.Task> ApiV2WorkItemsIdAttachmentsPostWithHttpInfoAsync(Guid id, FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "multipart/form-data" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + if (file != null) + { + localVarRequestOptions.FileParameters.Add("file", file); + } + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/workItems/{id}/attachments", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ApiV2WorkItemsIdAttachmentsPost", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Transform CheckList to TestCase <br>Use case <br>User sets checklist identifier <br>User runs method execution <br>System transform CheckList to TestCase /// @@ -4404,6 +4665,252 @@ public TestIt.Client.Client.ApiResponse> GetWork return localVarResponse; } + /// + /// Permanently delete test case, checklist or shared steps from archive + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// + public void PurgeWorkItem(string id) + { + PurgeWorkItemWithHttpInfo(id); + } + + /// + /// Permanently delete test case, checklist or shared steps from archive + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse PurgeWorkItemWithHttpInfo(string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling WorkItemsApi->PurgeWorkItem"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/api/v2/workItems/{id}/purge", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PurgeWorkItem", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Permanently delete test case, checklist or shared steps from archive + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task PurgeWorkItemAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await PurgeWorkItemWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + } + + /// + /// Permanently delete test case, checklist or shared steps from archive + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> PurgeWorkItemWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling WorkItemsApi->PurgeWorkItem"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/workItems/{id}/purge", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PurgeWorkItem", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Restore test case, checklist or shared steps from archive + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// + public void RestoreWorkItem(string id) + { + RestoreWorkItemWithHttpInfo(id); + } + + /// + /// Restore test case, checklist or shared steps from archive + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// ApiResponse of Object(void) + public TestIt.Client.Client.ApiResponse RestoreWorkItemWithHttpInfo(string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling WorkItemsApi->RestoreWorkItem"); + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/api/v2/workItems/{id}/restore", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RestoreWorkItem", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Restore test case, checklist or shared steps from archive + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task RestoreWorkItemAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await RestoreWorkItemWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + } + + /// + /// Restore test case, checklist or shared steps from archive + /// + /// Thrown when fails to make API call + /// Unique or global ID of the work item + /// Cancellation Token to cancel the request. + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RestoreWorkItemWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new TestIt.Client.Client.ApiException(400, "Missing required parameter 'id' when calling WorkItemsApi->RestoreWorkItem"); + + + TestIt.Client.Client.RequestOptions localVarRequestOptions = new TestIt.Client.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = TestIt.Client.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = TestIt.Client.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", TestIt.Client.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Bearer or PrivateToken) required + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync("/api/v2/workItems/{id}/restore", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("RestoreWorkItem", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Update Test Case, Checklist or Shared Step <br>Use case <br>User sets workitem properties (listed in request parameters) <br>User runs method execution <br>System updates workitem by identifier <br>System returns updated workitem model (listed in response parameters) /// diff --git a/src/TestIt.Client/Client/ApiClient.cs b/src/TestIt.Client/Client/ApiClient.cs index 4bccf6e1..31ca3189 100644 --- a/src/TestIt.Client/Client/ApiClient.cs +++ b/src/TestIt.Client/Client/ApiClient.cs @@ -530,6 +530,15 @@ private async Task> ExecAsync(HttpRequestMessage req, return await ToApiResponse(response, responseData, req.RequestUri); } + catch (OperationCanceledException original) + { + if (timeoutTokenSource != null && timeoutTokenSource.IsCancellationRequested) + { + throw new TaskCanceledException($"[{req.Method}] {req.RequestUri} was timeout.", + new TimeoutException(original.Message, original)); + } + throw; + } finally { if (timeoutTokenSource != null) diff --git a/src/TestIt.Client/Client/RequestOptions.cs b/src/TestIt.Client/Client/RequestOptions.cs index fedca8d1..69708baf 100644 --- a/src/TestIt.Client/Client/RequestOptions.cs +++ b/src/TestIt.Client/Client/RequestOptions.cs @@ -33,7 +33,7 @@ public class RequestOptions public Multimap QueryParameters { get; set; } /// - /// Header parameters to be applied to to the request. + /// Header parameters to be applied to the request. /// Keys may have 1 or more values associated. /// public Multimap HeaderParameters { get; set; } diff --git a/src/TestIt.Client/Model/ApiV2AttachmentsPostRequest.cs b/src/TestIt.Client/Model/ApiV2AttachmentsPostRequest.cs new file mode 100644 index 00000000..4806f185 --- /dev/null +++ b/src/TestIt.Client/Model/ApiV2AttachmentsPostRequest.cs @@ -0,0 +1,129 @@ +/* + * API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v2.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = TestIt.Client.Client.FileParameter; +using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter; + +namespace TestIt.Client.Model +{ + /// + /// ApiV2AttachmentsPostRequest + /// + [DataContract(Name = "_api_v2_attachments_post_request")] + public partial class ApiV2AttachmentsPostRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// file. + public ApiV2AttachmentsPostRequest(FileParameter file = default(FileParameter)) + { + this.File = file; + } + + /// + /// Gets or Sets File + /// + [DataMember(Name = "file", EmitDefaultValue = false)] + public FileParameter File { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ApiV2AttachmentsPostRequest {\n"); + sb.Append(" File: ").Append(File).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ApiV2AttachmentsPostRequest); + } + + /// + /// Returns true if ApiV2AttachmentsPostRequest instances are equal + /// + /// Instance of ApiV2AttachmentsPostRequest to be compared + /// Boolean + public bool Equals(ApiV2AttachmentsPostRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.File == input.File || + (this.File != null && + this.File.Equals(input.File)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.File != null) + { + hashCode = (hashCode * 59) + this.File.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/TestIt.Client/Model/AttachmentModel.cs b/src/TestIt.Client/Model/AttachmentModel.cs index a79dee8c..ecc355dc 100644 --- a/src/TestIt.Client/Model/AttachmentModel.cs +++ b/src/TestIt.Client/Model/AttachmentModel.cs @@ -283,6 +283,24 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // FileId (string) minLength + if (this.FileId != null && this.FileId.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FileId, length must be greater than 1.", new [] { "FileId" }); + } + + // Type (string) minLength + if (this.Type != null && this.Type.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Type, length must be greater than 1.", new [] { "Type" }); + } + + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/AttachmentModelAutoTestStepResultsModel.cs b/src/TestIt.Client/Model/AttachmentModelAutoTestStepResultsModel.cs index 575f0622..ca3d19fd 100644 --- a/src/TestIt.Client/Model/AttachmentModelAutoTestStepResultsModel.cs +++ b/src/TestIt.Client/Model/AttachmentModelAutoTestStepResultsModel.cs @@ -46,7 +46,7 @@ public partial class AttachmentModelAutoTestStepResultsModel : IEquatableExtended description of the step result.. /// Step start date.. /// Step end date.. - /// Expected or actual duration of the test run execution in seconds.. + /// Expected or actual duration of the test run execution in milliseconds.. /// outcome. /// Nested step results. The maximum nesting level is 15.. /// /// <summary> Specifies an attachment GUID. Multiple values can be sent. </summary>. @@ -101,9 +101,9 @@ public partial class AttachmentModelAutoTestStepResultsModel : IEquatable - /// Expected or actual duration of the test run execution in seconds. + /// Expected or actual duration of the test run execution in milliseconds. /// - /// Expected or actual duration of the test run execution in seconds. + /// Expected or actual duration of the test run execution in milliseconds. [DataMember(Name = "duration", EmitDefaultValue = true)] public long? Duration { get; set; } diff --git a/src/TestIt.Client/Model/AttachmentPutModelAutoTestStepResultsModel.cs b/src/TestIt.Client/Model/AttachmentPutModelAutoTestStepResultsModel.cs index ed0a8822..cfaf464a 100644 --- a/src/TestIt.Client/Model/AttachmentPutModelAutoTestStepResultsModel.cs +++ b/src/TestIt.Client/Model/AttachmentPutModelAutoTestStepResultsModel.cs @@ -46,7 +46,7 @@ public partial class AttachmentPutModelAutoTestStepResultsModel : IEquatableExtended description of the step result.. /// Step start date.. /// Step end date.. - /// Expected or actual duration of the test run execution in seconds.. + /// Expected or actual duration of the test run execution in milliseconds.. /// outcome. /// Nested step results. The maximum nesting level is 15.. /// /// <summary> Specifies an attachment GUID. Multiple values can be sent. </summary>. @@ -101,9 +101,9 @@ public partial class AttachmentPutModelAutoTestStepResultsModel : IEquatable - /// Expected or actual duration of the test run execution in seconds. + /// Expected or actual duration of the test run execution in milliseconds. /// - /// Expected or actual duration of the test run execution in seconds. + /// Expected or actual duration of the test run execution in milliseconds. [DataMember(Name = "duration", EmitDefaultValue = true)] public long? Duration { get; set; } diff --git a/src/TestIt.Client/Model/AutoTestModel.cs b/src/TestIt.Client/Model/AutoTestModel.cs index 8e3849a1..e6d8ad89 100644 --- a/src/TestIt.Client/Model/AutoTestModel.cs +++ b/src/TestIt.Client/Model/AutoTestModel.cs @@ -125,7 +125,7 @@ protected AutoTestModel() { } /// /// Indicates if the autotest has unapproved changes from linked work items [DataMember(Name = "mustBeApproved", EmitDefaultValue = true)] - public bool? MustBeApproved { get; set; } + public bool MustBeApproved { get; set; } /// /// Unique ID of the autotest @@ -356,134 +356,134 @@ public bool Equals(AutoTestModel input) { return false; } - return + return ( this.GlobalId == input.GlobalId || this.GlobalId.Equals(input.GlobalId) - ) && + ) && ( this.IsDeleted == input.IsDeleted || this.IsDeleted.Equals(input.IsDeleted) - ) && + ) && ( this.MustBeApproved == input.MustBeApproved || this.MustBeApproved.Equals(input.MustBeApproved) - ) && + ) && ( this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id)) - ) && + ) && ( this.CreatedDate == input.CreatedDate || (this.CreatedDate != null && this.CreatedDate.Equals(input.CreatedDate)) - ) && + ) && ( this.ModifiedDate == input.ModifiedDate || (this.ModifiedDate != null && this.ModifiedDate.Equals(input.ModifiedDate)) - ) && + ) && ( this.CreatedById == input.CreatedById || (this.CreatedById != null && this.CreatedById.Equals(input.CreatedById)) - ) && + ) && ( this.ModifiedById == input.ModifiedById || (this.ModifiedById != null && this.ModifiedById.Equals(input.ModifiedById)) - ) && + ) && ( this.LastTestRunId == input.LastTestRunId || (this.LastTestRunId != null && this.LastTestRunId.Equals(input.LastTestRunId)) - ) && + ) && ( this.LastTestRunName == input.LastTestRunName || (this.LastTestRunName != null && this.LastTestRunName.Equals(input.LastTestRunName)) - ) && + ) && ( this.LastTestResultId == input.LastTestResultId || (this.LastTestResultId != null && this.LastTestResultId.Equals(input.LastTestResultId)) - ) && + ) && ( this.LastTestResultOutcome == input.LastTestResultOutcome || (this.LastTestResultOutcome != null && this.LastTestResultOutcome.Equals(input.LastTestResultOutcome)) - ) && + ) && ( this.StabilityPercentage == input.StabilityPercentage || (this.StabilityPercentage != null && this.StabilityPercentage.Equals(input.StabilityPercentage)) - ) && + ) && ( this.ExternalId == input.ExternalId || (this.ExternalId != null && this.ExternalId.Equals(input.ExternalId)) - ) && + ) && ( this.Links == input.Links || this.Links != null && input.Links != null && this.Links.SequenceEqual(input.Links) - ) && + ) && ( this.ProjectId == input.ProjectId || (this.ProjectId != null && this.ProjectId.Equals(input.ProjectId)) - ) && + ) && ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) - ) && + ) && ( this.Namespace == input.Namespace || (this.Namespace != null && this.Namespace.Equals(input.Namespace)) - ) && + ) && ( this.Classname == input.Classname || (this.Classname != null && this.Classname.Equals(input.Classname)) - ) && + ) && ( this.Steps == input.Steps || this.Steps != null && input.Steps != null && this.Steps.SequenceEqual(input.Steps) - ) && + ) && ( this.Setup == input.Setup || this.Setup != null && input.Setup != null && this.Setup.SequenceEqual(input.Setup) - ) && + ) && ( this.Teardown == input.Teardown || this.Teardown != null && input.Teardown != null && this.Teardown.SequenceEqual(input.Teardown) - ) && + ) && ( this.Title == input.Title || (this.Title != null && this.Title.Equals(input.Title)) - ) && + ) && ( this.Description == input.Description || (this.Description != null && this.Description.Equals(input.Description)) - ) && + ) && ( this.Labels == input.Labels || this.Labels != null && input.Labels != null && this.Labels.SequenceEqual(input.Labels) - ) && + ) && ( this.IsFlaky == input.IsFlaky || (this.IsFlaky != null && @@ -606,6 +606,18 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // ExternalId (string) minLength + if (this.ExternalId != null && this.ExternalId.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExternalId, length must be greater than 1.", new [] { "ExternalId" }); + } + + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/AutoTestPostModel.cs b/src/TestIt.Client/Model/AutoTestPostModel.cs index 476a198f..b131c573 100644 --- a/src/TestIt.Client/Model/AutoTestPostModel.cs +++ b/src/TestIt.Client/Model/AutoTestPostModel.cs @@ -410,6 +410,18 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // ExternalId (string) minLength + if (this.ExternalId != null && this.ExternalId.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExternalId, length must be greater than 1.", new [] { "ExternalId" }); + } + + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/AutoTestPutModel.cs b/src/TestIt.Client/Model/AutoTestPutModel.cs index cb6449e4..5838f298 100644 --- a/src/TestIt.Client/Model/AutoTestPutModel.cs +++ b/src/TestIt.Client/Model/AutoTestPutModel.cs @@ -409,6 +409,18 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // ExternalId (string) minLength + if (this.ExternalId != null && this.ExternalId.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ExternalId, length must be greater than 1.", new [] { "ExternalId" }); + } + + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/AutoTestResultsForTestRunModel.cs b/src/TestIt.Client/Model/AutoTestResultsForTestRunModel.cs index 360db19a..1a43a636 100644 --- a/src/TestIt.Client/Model/AutoTestResultsForTestRunModel.cs +++ b/src/TestIt.Client/Model/AutoTestResultsForTestRunModel.cs @@ -55,7 +55,7 @@ protected AutoTestResultsForTestRunModel() { } /// An extended comment or a stack trace.. /// Test run start date.. /// Test run end date.. - /// Expected or actual duration of the test run execution in seconds.. + /// Expected or actual duration of the test run execution in milliseconds.. /// Specifies an attachment GUID. Multiple values can be sent.. /// \"<b>parameter</b>\": \"<b>value</b>\" pair with arbitrary custom parameters. Multiple parameters can be sent.. /// \"<b>property</b>\": \"<b>value</b>\" pair with arbitrary custom properties. Multiple properties can be sent.. @@ -144,9 +144,9 @@ protected AutoTestResultsForTestRunModel() { } public DateTime? CompletedOn { get; set; } /// - /// Expected or actual duration of the test run execution in seconds. + /// Expected or actual duration of the test run execution in milliseconds. /// - /// Expected or actual duration of the test run execution in seconds. + /// Expected or actual duration of the test run execution in milliseconds. [DataMember(Name = "duration", EmitDefaultValue = true)] public long? Duration { get; set; } @@ -421,6 +421,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // AutoTestExternalId (string) minLength + if (this.AutoTestExternalId != null && this.AutoTestExternalId.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AutoTestExternalId, length must be greater than 1.", new [] { "AutoTestExternalId" }); + } + // Duration (long?) minimum if (this.Duration < (long?)0) { diff --git a/src/TestIt.Client/Model/AutoTestStepModel.cs b/src/TestIt.Client/Model/AutoTestStepModel.cs index 46c6844e..7247d2b9 100644 --- a/src/TestIt.Client/Model/AutoTestStepModel.cs +++ b/src/TestIt.Client/Model/AutoTestStepModel.cs @@ -172,6 +172,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Title (string) minLength + if (this.Title != null && this.Title.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be greater than 1.", new [] { "Title" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/AutotestResultHistoricalGetModel.cs b/src/TestIt.Client/Model/AutotestResultHistoricalGetModel.cs index 0e2094e8..afbec79e 100644 --- a/src/TestIt.Client/Model/AutotestResultHistoricalGetModel.cs +++ b/src/TestIt.Client/Model/AutotestResultHistoricalGetModel.cs @@ -36,8 +36,13 @@ public partial class AutotestResultHistoricalGetModel : IEquatable /// Gets or Sets Outcome /// - [DataMember(Name = "outcome", EmitDefaultValue = false)] - public AutotestResultOutcome? Outcome { get; set; } + [DataMember(Name = "outcome", IsRequired = true, EmitDefaultValue = true)] + public AutotestResultOutcome Outcome { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AutotestResultHistoricalGetModel() { } /// /// Initializes a new instance of the class. /// @@ -46,27 +51,27 @@ public partial class AutotestResultHistoricalGetModel : IEquatablecreatedById. /// testRunId. /// testRunName. + /// configurationId. + /// outcome (required). + /// launchSource. /// testPlanId. /// testPlanGlobalId. /// testPlanName. - /// configurationId. - /// outcome. /// duration. - /// launchSource. - public AutotestResultHistoricalGetModel(Guid id = default(Guid), DateTime createdDate = default(DateTime), Guid createdById = default(Guid), Guid testRunId = default(Guid), string testRunName = default(string), Guid? testPlanId = default(Guid?), long? testPlanGlobalId = default(long?), string testPlanName = default(string), Guid configurationId = default(Guid), AutotestResultOutcome? outcome = default(AutotestResultOutcome?), long? duration = default(long?), string launchSource = default(string)) + public AutotestResultHistoricalGetModel(Guid id = default(Guid), DateTime createdDate = default(DateTime), Guid createdById = default(Guid), Guid testRunId = default(Guid), string testRunName = default(string), Guid configurationId = default(Guid), AutotestResultOutcome outcome = default(AutotestResultOutcome), string launchSource = default(string), Guid? testPlanId = default(Guid?), long? testPlanGlobalId = default(long?), string testPlanName = default(string), long? duration = default(long?)) { + this.Outcome = outcome; this.Id = id; this.CreatedDate = createdDate; this.CreatedById = createdById; this.TestRunId = testRunId; this.TestRunName = testRunName; + this.ConfigurationId = configurationId; + this.LaunchSource = launchSource; this.TestPlanId = testPlanId; this.TestPlanGlobalId = testPlanGlobalId; this.TestPlanName = testPlanName; - this.ConfigurationId = configurationId; - this.Outcome = outcome; this.Duration = duration; - this.LaunchSource = launchSource; } /// @@ -87,6 +92,30 @@ public partial class AutotestResultHistoricalGetModel : IEquatable + /// Gets or Sets TestRunId + /// + [DataMember(Name = "testRunId", EmitDefaultValue = false)] + public Guid TestRunId { get; set; } + + /// + /// Gets or Sets TestRunName + /// + [DataMember(Name = "testRunName", EmitDefaultValue = true)] + public string TestRunName { get; set; } + + /// + /// Gets or Sets ConfigurationId + /// + [DataMember(Name = "configurationId", EmitDefaultValue = false)] + public Guid ConfigurationId { get; set; } + + /// + /// Gets or Sets LaunchSource + /// + [DataMember(Name = "launchSource", EmitDefaultValue = true)] + public string LaunchSource { get; set; } + /// /// Gets or Sets ModifiedDate /// @@ -115,18 +144,6 @@ public bool ShouldSerializeModifiedById() { return false; } - /// - /// Gets or Sets TestRunId - /// - [DataMember(Name = "testRunId", EmitDefaultValue = false)] - public Guid TestRunId { get; set; } - - /// - /// Gets or Sets TestRunName - /// - [DataMember(Name = "testRunName", EmitDefaultValue = true)] - public string TestRunName { get; set; } - /// /// Gets or Sets TestPlanId /// @@ -145,24 +162,12 @@ public bool ShouldSerializeModifiedById() [DataMember(Name = "testPlanName", EmitDefaultValue = true)] public string TestPlanName { get; set; } - /// - /// Gets or Sets ConfigurationId - /// - [DataMember(Name = "configurationId", EmitDefaultValue = false)] - public Guid ConfigurationId { get; set; } - /// /// Gets or Sets Duration /// [DataMember(Name = "duration", EmitDefaultValue = true)] public long? Duration { get; set; } - /// - /// Gets or Sets LaunchSource - /// - [DataMember(Name = "launchSource", EmitDefaultValue = true)] - public string LaunchSource { get; set; } - /// /// Returns the string presentation of the object /// @@ -174,17 +179,17 @@ public override string ToString() sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" CreatedDate: ").Append(CreatedDate).Append("\n"); sb.Append(" CreatedById: ").Append(CreatedById).Append("\n"); - sb.Append(" ModifiedDate: ").Append(ModifiedDate).Append("\n"); - sb.Append(" ModifiedById: ").Append(ModifiedById).Append("\n"); sb.Append(" TestRunId: ").Append(TestRunId).Append("\n"); sb.Append(" TestRunName: ").Append(TestRunName).Append("\n"); + sb.Append(" ConfigurationId: ").Append(ConfigurationId).Append("\n"); + sb.Append(" Outcome: ").Append(Outcome).Append("\n"); + sb.Append(" LaunchSource: ").Append(LaunchSource).Append("\n"); + sb.Append(" ModifiedDate: ").Append(ModifiedDate).Append("\n"); + sb.Append(" ModifiedById: ").Append(ModifiedById).Append("\n"); sb.Append(" TestPlanId: ").Append(TestPlanId).Append("\n"); sb.Append(" TestPlanGlobalId: ").Append(TestPlanGlobalId).Append("\n"); sb.Append(" TestPlanName: ").Append(TestPlanName).Append("\n"); - sb.Append(" ConfigurationId: ").Append(ConfigurationId).Append("\n"); - sb.Append(" Outcome: ").Append(Outcome).Append("\n"); sb.Append(" Duration: ").Append(Duration).Append("\n"); - sb.Append(" LaunchSource: ").Append(LaunchSource).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -235,16 +240,6 @@ public bool Equals(AutotestResultHistoricalGetModel input) (this.CreatedById != null && this.CreatedById.Equals(input.CreatedById)) ) && - ( - this.ModifiedDate == input.ModifiedDate || - (this.ModifiedDate != null && - this.ModifiedDate.Equals(input.ModifiedDate)) - ) && - ( - this.ModifiedById == input.ModifiedById || - (this.ModifiedById != null && - this.ModifiedById.Equals(input.ModifiedById)) - ) && ( this.TestRunId == input.TestRunId || (this.TestRunId != null && @@ -255,6 +250,30 @@ public bool Equals(AutotestResultHistoricalGetModel input) (this.TestRunName != null && this.TestRunName.Equals(input.TestRunName)) ) && + ( + this.ConfigurationId == input.ConfigurationId || + (this.ConfigurationId != null && + this.ConfigurationId.Equals(input.ConfigurationId)) + ) && + ( + this.Outcome == input.Outcome || + this.Outcome.Equals(input.Outcome) + ) && + ( + this.LaunchSource == input.LaunchSource || + (this.LaunchSource != null && + this.LaunchSource.Equals(input.LaunchSource)) + ) && + ( + this.ModifiedDate == input.ModifiedDate || + (this.ModifiedDate != null && + this.ModifiedDate.Equals(input.ModifiedDate)) + ) && + ( + this.ModifiedById == input.ModifiedById || + (this.ModifiedById != null && + this.ModifiedById.Equals(input.ModifiedById)) + ) && ( this.TestPlanId == input.TestPlanId || (this.TestPlanId != null && @@ -270,24 +289,10 @@ public bool Equals(AutotestResultHistoricalGetModel input) (this.TestPlanName != null && this.TestPlanName.Equals(input.TestPlanName)) ) && - ( - this.ConfigurationId == input.ConfigurationId || - (this.ConfigurationId != null && - this.ConfigurationId.Equals(input.ConfigurationId)) - ) && - ( - this.Outcome == input.Outcome || - this.Outcome.Equals(input.Outcome) - ) && ( this.Duration == input.Duration || (this.Duration != null && this.Duration.Equals(input.Duration)) - ) && - ( - this.LaunchSource == input.LaunchSource || - (this.LaunchSource != null && - this.LaunchSource.Equals(input.LaunchSource)) ); } @@ -312,14 +317,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CreatedById.GetHashCode(); } - if (this.ModifiedDate != null) - { - hashCode = (hashCode * 59) + this.ModifiedDate.GetHashCode(); - } - if (this.ModifiedById != null) - { - hashCode = (hashCode * 59) + this.ModifiedById.GetHashCode(); - } if (this.TestRunId != null) { hashCode = (hashCode * 59) + this.TestRunId.GetHashCode(); @@ -328,6 +325,23 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.TestRunName.GetHashCode(); } + if (this.ConfigurationId != null) + { + hashCode = (hashCode * 59) + this.ConfigurationId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Outcome.GetHashCode(); + if (this.LaunchSource != null) + { + hashCode = (hashCode * 59) + this.LaunchSource.GetHashCode(); + } + if (this.ModifiedDate != null) + { + hashCode = (hashCode * 59) + this.ModifiedDate.GetHashCode(); + } + if (this.ModifiedById != null) + { + hashCode = (hashCode * 59) + this.ModifiedById.GetHashCode(); + } if (this.TestPlanId != null) { hashCode = (hashCode * 59) + this.TestPlanId.GetHashCode(); @@ -340,19 +354,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.TestPlanName.GetHashCode(); } - if (this.ConfigurationId != null) - { - hashCode = (hashCode * 59) + this.ConfigurationId.GetHashCode(); - } - hashCode = (hashCode * 59) + this.Outcome.GetHashCode(); if (this.Duration != null) { hashCode = (hashCode * 59) + this.Duration.GetHashCode(); } - if (this.LaunchSource != null) - { - hashCode = (hashCode * 59) + this.LaunchSource.GetHashCode(); - } return hashCode; } } diff --git a/src/TestIt.Client/Model/BackgroundJobAttachmentModel.cs b/src/TestIt.Client/Model/BackgroundJobAttachmentModel.cs new file mode 100644 index 00000000..bd229a25 --- /dev/null +++ b/src/TestIt.Client/Model/BackgroundJobAttachmentModel.cs @@ -0,0 +1,165 @@ +/* + * API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v2.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = TestIt.Client.Client.FileParameter; +using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter; + +namespace TestIt.Client.Model +{ + /// + /// BackgroundJobAttachmentModel + /// + [DataContract(Name = "BackgroundJobAttachmentModel")] + public partial class BackgroundJobAttachmentModel : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + /// name. + /// type. + public BackgroundJobAttachmentModel(Guid id = default(Guid), string name = default(string), string type = default(string)) + { + this.Id = id; + this.Name = name; + this.Type = type; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public Guid Id { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = true)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BackgroundJobAttachmentModel {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BackgroundJobAttachmentModel); + } + + /// + /// Returns true if BackgroundJobAttachmentModel instances are equal + /// + /// Instance of BackgroundJobAttachmentModel to be compared + /// Boolean + public bool Equals(BackgroundJobAttachmentModel input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Type != null) + { + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/TestIt.Client/Model/BackgroundJobModel.cs b/src/TestIt.Client/Model/BackgroundJobModel.cs new file mode 100644 index 00000000..aeda1d7d --- /dev/null +++ b/src/TestIt.Client/Model/BackgroundJobModel.cs @@ -0,0 +1,276 @@ +/* + * API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v2.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = TestIt.Client.Client.FileParameter; +using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter; + +namespace TestIt.Client.Model +{ + /// + /// BackgroundJobModel + /// + [DataContract(Name = "BackgroundJobModel")] + public partial class BackgroundJobModel : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets JobType + /// + [DataMember(Name = "jobType", EmitDefaultValue = false)] + public BackgroundJobType? JobType { get; set; } + + /// + /// Gets or Sets State + /// + [DataMember(Name = "state", EmitDefaultValue = false)] + public BackgroundJobState? State { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// id. + /// jobId. + /// jobType. + /// state. + /// isDeleted. + /// progress. + /// startDate. + /// endDate. + /// error. + /// attachments. + public BackgroundJobModel(Guid id = default(Guid), string jobId = default(string), BackgroundJobType? jobType = default(BackgroundJobType?), BackgroundJobState? state = default(BackgroundJobState?), bool isDeleted = default(bool), long progress = default(long), DateTime? startDate = default(DateTime?), DateTime? endDate = default(DateTime?), string error = default(string), List attachments = default(List)) + { + this.Id = id; + this.JobId = jobId; + this.JobType = jobType; + this.State = state; + this.IsDeleted = isDeleted; + this.Progress = progress; + this.StartDate = startDate; + this.EndDate = endDate; + this.Error = error; + this.Attachments = attachments; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public Guid Id { get; set; } + + /// + /// Gets or Sets JobId + /// + [DataMember(Name = "jobId", EmitDefaultValue = true)] + public string JobId { get; set; } + + /// + /// Gets or Sets IsDeleted + /// + [DataMember(Name = "isDeleted", EmitDefaultValue = true)] + public bool IsDeleted { get; set; } + + /// + /// Gets or Sets Progress + /// + [DataMember(Name = "progress", EmitDefaultValue = false)] + public long Progress { get; set; } + + /// + /// Gets or Sets StartDate + /// + [DataMember(Name = "startDate", EmitDefaultValue = true)] + public DateTime? StartDate { get; set; } + + /// + /// Gets or Sets EndDate + /// + [DataMember(Name = "endDate", EmitDefaultValue = true)] + public DateTime? EndDate { get; set; } + + /// + /// Gets or Sets Error + /// + [DataMember(Name = "error", EmitDefaultValue = true)] + public string Error { get; set; } + + /// + /// Gets or Sets Attachments + /// + [DataMember(Name = "attachments", EmitDefaultValue = true)] + public List Attachments { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BackgroundJobModel {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" JobId: ").Append(JobId).Append("\n"); + sb.Append(" JobType: ").Append(JobType).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" IsDeleted: ").Append(IsDeleted).Append("\n"); + sb.Append(" Progress: ").Append(Progress).Append("\n"); + sb.Append(" StartDate: ").Append(StartDate).Append("\n"); + sb.Append(" EndDate: ").Append(EndDate).Append("\n"); + sb.Append(" Error: ").Append(Error).Append("\n"); + sb.Append(" Attachments: ").Append(Attachments).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BackgroundJobModel); + } + + /// + /// Returns true if BackgroundJobModel instances are equal + /// + /// Instance of BackgroundJobModel to be compared + /// Boolean + public bool Equals(BackgroundJobModel input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.JobId == input.JobId || + (this.JobId != null && + this.JobId.Equals(input.JobId)) + ) && + ( + this.JobType == input.JobType || + this.JobType.Equals(input.JobType) + ) && + ( + this.State == input.State || + this.State.Equals(input.State) + ) && + ( + this.IsDeleted == input.IsDeleted || + this.IsDeleted.Equals(input.IsDeleted) + ) && + ( + this.Progress == input.Progress || + this.Progress.Equals(input.Progress) + ) && + ( + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) + ) && + ( + this.EndDate == input.EndDate || + (this.EndDate != null && + this.EndDate.Equals(input.EndDate)) + ) && + ( + this.Error == input.Error || + (this.Error != null && + this.Error.Equals(input.Error)) + ) && + ( + this.Attachments == input.Attachments || + this.Attachments != null && + input.Attachments != null && + this.Attachments.SequenceEqual(input.Attachments) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.JobId != null) + { + hashCode = (hashCode * 59) + this.JobId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.JobType.GetHashCode(); + hashCode = (hashCode * 59) + this.State.GetHashCode(); + hashCode = (hashCode * 59) + this.IsDeleted.GetHashCode(); + hashCode = (hashCode * 59) + this.Progress.GetHashCode(); + if (this.StartDate != null) + { + hashCode = (hashCode * 59) + this.StartDate.GetHashCode(); + } + if (this.EndDate != null) + { + hashCode = (hashCode * 59) + this.EndDate.GetHashCode(); + } + if (this.Error != null) + { + hashCode = (hashCode * 59) + this.Error.GetHashCode(); + } + if (this.Attachments != null) + { + hashCode = (hashCode * 59) + this.Attachments.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/TestIt.Client/Model/BackgroundJobState.cs b/src/TestIt.Client/Model/BackgroundJobState.cs new file mode 100644 index 00000000..68f911f3 --- /dev/null +++ b/src/TestIt.Client/Model/BackgroundJobState.cs @@ -0,0 +1,61 @@ +/* + * API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v2.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = TestIt.Client.Client.FileParameter; +using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter; + +namespace TestIt.Client.Model +{ + /// + /// Defines BackgroundJobState + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum BackgroundJobState + { + /// + /// Enum Enqueued for value: Enqueued + /// + [EnumMember(Value = "Enqueued")] + Enqueued = 1, + + /// + /// Enum InProgress for value: InProgress + /// + [EnumMember(Value = "InProgress")] + InProgress = 2, + + /// + /// Enum Completed for value: Completed + /// + [EnumMember(Value = "Completed")] + Completed = 3, + + /// + /// Enum Failed for value: Failed + /// + [EnumMember(Value = "Failed")] + Failed = 4 + + } + +} diff --git a/src/TestIt.Client/Model/BackgroundJobType.cs b/src/TestIt.Client/Model/BackgroundJobType.cs new file mode 100644 index 00000000..4cea1db2 --- /dev/null +++ b/src/TestIt.Client/Model/BackgroundJobType.cs @@ -0,0 +1,103 @@ +/* + * API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v2.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = TestIt.Client.Client.FileParameter; +using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter; + +namespace TestIt.Client.Model +{ + /// + /// Defines BackgroundJobType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum BackgroundJobType + { + /// + /// Enum ExportXlsxTestResultsByTestPlan for value: ExportXlsxTestResultsByTestPlan + /// + [EnumMember(Value = "ExportXlsxTestResultsByTestPlan")] + ExportXlsxTestResultsByTestPlan = 1, + + /// + /// Enum ExportXlsxWorkItemsByProject for value: ExportXlsxWorkItemsByProject + /// + [EnumMember(Value = "ExportXlsxWorkItemsByProject")] + ExportXlsxWorkItemsByProject = 2, + + /// + /// Enum ExportXlsxTestPointsByTestPlan for value: ExportXlsxTestPointsByTestPlan + /// + [EnumMember(Value = "ExportXlsxTestPointsByTestPlan")] + ExportXlsxTestPointsByTestPlan = 3, + + /// + /// Enum ExportJsonProject for value: ExportJsonProject + /// + [EnumMember(Value = "ExportJsonProject")] + ExportJsonProject = 4, + + /// + /// Enum ExportZipProject for value: ExportZipProject + /// + [EnumMember(Value = "ExportZipProject")] + ExportZipProject = 5, + + /// + /// Enum ExportJsonProjectWithTestPlans for value: ExportJsonProjectWithTestPlans + /// + [EnumMember(Value = "ExportJsonProjectWithTestPlans")] + ExportJsonProjectWithTestPlans = 6, + + /// + /// Enum ExportZipProjectWithTestPlans for value: ExportZipProjectWithTestPlans + /// + [EnumMember(Value = "ExportZipProjectWithTestPlans")] + ExportZipProjectWithTestPlans = 7, + + /// + /// Enum ImportJsonProject for value: ImportJsonProject + /// + [EnumMember(Value = "ImportJsonProject")] + ImportJsonProject = 8, + + /// + /// Enum ImportZipProject for value: ImportZipProject + /// + [EnumMember(Value = "ImportZipProject")] + ImportZipProject = 9, + + /// + /// Enum ImportXlsxProject for value: ImportXlsxProject + /// + [EnumMember(Value = "ImportXlsxProject")] + ImportXlsxProject = 10, + + /// + /// Enum ImportTestRailXmlProject for value: ImportTestRailXmlProject + /// + [EnumMember(Value = "ImportTestRailXmlProject")] + ImportTestRailXmlProject = 11 + + } + +} diff --git a/src/TestIt.Client/Model/ConfigurationByParametersModel.cs b/src/TestIt.Client/Model/ConfigurationByParametersModel.cs index 3bbfc78a..87441dc4 100644 --- a/src/TestIt.Client/Model/ConfigurationByParametersModel.cs +++ b/src/TestIt.Client/Model/ConfigurationByParametersModel.cs @@ -32,15 +32,25 @@ namespace TestIt.Client.Model [DataContract(Name = "ConfigurationByParametersModel")] public partial class ConfigurationByParametersModel : IEquatable, IValidatableObject { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ConfigurationByParametersModel() { } /// /// Initializes a new instance of the class. /// /// This property is used to link configuration with project. - /// parameterIds. + /// parameterIds (required). public ConfigurationByParametersModel(Guid projectId = default(Guid), List parameterIds = default(List)) { - this.ProjectId = projectId; + // to ensure "parameterIds" is required (not null) + if (parameterIds == null) + { + throw new ArgumentNullException("parameterIds is a required property for ConfigurationByParametersModel and cannot be null"); + } this.ParameterIds = parameterIds; + this.ProjectId = projectId; } /// @@ -53,7 +63,7 @@ public partial class ConfigurationByParametersModel : IEquatable /// Gets or Sets ParameterIds /// - [DataMember(Name = "parameterIds", EmitDefaultValue = true)] + [DataMember(Name = "parameterIds", IsRequired = true, EmitDefaultValue = true)] public List ParameterIds { get; set; } /// diff --git a/src/TestIt.Client/Model/ConfigurationPostModel.cs b/src/TestIt.Client/Model/ConfigurationPostModel.cs index abb3181a..4163e9e4 100644 --- a/src/TestIt.Client/Model/ConfigurationPostModel.cs +++ b/src/TestIt.Client/Model/ConfigurationPostModel.cs @@ -236,6 +236,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/ConfigurationPutModel.cs b/src/TestIt.Client/Model/ConfigurationPutModel.cs index 0d53064b..7b3c3270 100644 --- a/src/TestIt.Client/Model/ConfigurationPutModel.cs +++ b/src/TestIt.Client/Model/ConfigurationPutModel.cs @@ -254,6 +254,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/CustomAttributeGetModel.cs b/src/TestIt.Client/Model/CustomAttributeGetModel.cs index a80300d3..fd7e2ee2 100644 --- a/src/TestIt.Client/Model/CustomAttributeGetModel.cs +++ b/src/TestIt.Client/Model/CustomAttributeGetModel.cs @@ -36,24 +36,29 @@ public partial class CustomAttributeGetModel : IEquatable /// Gets or Sets Type /// - [DataMember(Name = "type", EmitDefaultValue = false)] - public CustomAttributeTypesEnum? Type { get; set; } + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public CustomAttributeTypesEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CustomAttributeGetModel() { } /// /// Initializes a new instance of the class. /// /// Unique ID of the attribute. /// Collection of the attribute options. - /// type. + /// type (required). /// Indicates if the attribute is deleted. /// Name of the attribute. /// Indicates if the attribute is enabled. /// Indicates if the attribute is mandatory to specify. /// Indicates if the attribute is available across all projects. - public CustomAttributeGetModel(Guid id = default(Guid), List options = default(List), CustomAttributeTypesEnum? type = default(CustomAttributeTypesEnum?), bool isDeleted = default(bool), string name = default(string), bool isEnabled = default(bool), bool isRequired = default(bool), bool isGlobal = default(bool)) + public CustomAttributeGetModel(Guid id = default(Guid), List options = default(List), CustomAttributeTypesEnum type = default(CustomAttributeTypesEnum), bool isDeleted = default(bool), string name = default(string), bool isEnabled = default(bool), bool isRequired = default(bool), bool isGlobal = default(bool)) { + this.Type = type; this.Id = id; this.Options = options; - this.Type = type; this.IsDeleted = isDeleted; this.Name = name; this.IsEnabled = isEnabled; diff --git a/src/TestIt.Client/Model/DeletionState.cs b/src/TestIt.Client/Model/DeletionState.cs new file mode 100644 index 00000000..9ffa3cad --- /dev/null +++ b/src/TestIt.Client/Model/DeletionState.cs @@ -0,0 +1,55 @@ +/* + * API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v2.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = TestIt.Client.Client.FileParameter; +using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter; + +namespace TestIt.Client.Model +{ + /// + /// Defines DeletionState + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum DeletionState + { + /// + /// Enum Any for value: Any + /// + [EnumMember(Value = "Any")] + Any = 1, + + /// + /// Enum Deleted for value: Deleted + /// + [EnumMember(Value = "Deleted")] + Deleted = 2, + + /// + /// Enum NotDeleted for value: NotDeleted + /// + [EnumMember(Value = "NotDeleted")] + NotDeleted = 3 + + } + +} diff --git a/src/TestIt.Client/Model/FailureClassModel.cs b/src/TestIt.Client/Model/FailureClassModel.cs index 20532969..6c4f0034 100644 --- a/src/TestIt.Client/Model/FailureClassModel.cs +++ b/src/TestIt.Client/Model/FailureClassModel.cs @@ -36,13 +36,18 @@ public partial class FailureClassModel : IEquatable, IValidat /// /// Gets or Sets FailureCategory /// - [DataMember(Name = "failureCategory", EmitDefaultValue = false)] - public FailureCategoryModel? FailureCategory { get; set; } + [DataMember(Name = "failureCategory", IsRequired = true, EmitDefaultValue = true)] + public FailureCategoryModel FailureCategory { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FailureClassModel() { } /// /// Initializes a new instance of the class. /// /// name. - /// failureCategory. + /// failureCategory (required). /// createdDate. /// modifiedDate. /// createdById. @@ -50,10 +55,10 @@ public partial class FailureClassModel : IEquatable, IValidat /// failureClassRegexes. /// Unique ID of the entity. /// Indicates if the entity is deleted. - public FailureClassModel(string name = default(string), FailureCategoryModel? failureCategory = default(FailureCategoryModel?), DateTime createdDate = default(DateTime), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), List failureClassRegexes = default(List), Guid id = default(Guid), bool isDeleted = default(bool)) + public FailureClassModel(string name = default(string), FailureCategoryModel failureCategory = default(FailureCategoryModel), DateTime createdDate = default(DateTime), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), List failureClassRegexes = default(List), Guid id = default(Guid), bool isDeleted = default(bool)) { - this.Name = name; this.FailureCategory = failureCategory; + this.Name = name; this.CreatedDate = createdDate; this.ModifiedDate = modifiedDate; this.CreatedById = createdById; diff --git a/src/TestIt.Client/Model/LabelPostModel.cs b/src/TestIt.Client/Model/LabelPostModel.cs index 1631886f..61f187df 100644 --- a/src/TestIt.Client/Model/LabelPostModel.cs +++ b/src/TestIt.Client/Model/LabelPostModel.cs @@ -133,6 +133,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/LabelShortModel.cs b/src/TestIt.Client/Model/LabelShortModel.cs index 853fcecc..f2872eef 100644 --- a/src/TestIt.Client/Model/LabelShortModel.cs +++ b/src/TestIt.Client/Model/LabelShortModel.cs @@ -147,6 +147,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/LinkModel.cs b/src/TestIt.Client/Model/LinkModel.cs index 04380b38..aedd9550 100644 --- a/src/TestIt.Client/Model/LinkModel.cs +++ b/src/TestIt.Client/Model/LinkModel.cs @@ -217,6 +217,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Url (string) minLength + if (this.Url != null && this.Url.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Url, length must be greater than 1.", new [] { "Url" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/LinkPostModel.cs b/src/TestIt.Client/Model/LinkPostModel.cs index 1d688ecc..4209ed52 100644 --- a/src/TestIt.Client/Model/LinkPostModel.cs +++ b/src/TestIt.Client/Model/LinkPostModel.cs @@ -199,6 +199,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Url (string) minLength + if (this.Url != null && this.Url.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Url, length must be greater than 1.", new [] { "Url" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/LinkPutModel.cs b/src/TestIt.Client/Model/LinkPutModel.cs index b2f77304..c5025da1 100644 --- a/src/TestIt.Client/Model/LinkPutModel.cs +++ b/src/TestIt.Client/Model/LinkPutModel.cs @@ -217,6 +217,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Url (string) minLength + if (this.Url != null && this.Url.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Url, length must be greater than 1.", new [] { "Url" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/NotificationModel.cs b/src/TestIt.Client/Model/NotificationModel.cs index 58bce38f..6b559b64 100644 --- a/src/TestIt.Client/Model/NotificationModel.cs +++ b/src/TestIt.Client/Model/NotificationModel.cs @@ -36,8 +36,13 @@ public partial class NotificationModel : IEquatable, IValidat /// /// Gets or Sets NotificationType /// - [DataMember(Name = "notificationType", EmitDefaultValue = false)] - public NotificationTypeModel? NotificationType { get; set; } + [DataMember(Name = "notificationType", IsRequired = true, EmitDefaultValue = true)] + public NotificationTypeModel NotificationType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected NotificationModel() { } /// /// Initializes a new instance of the class. /// @@ -45,7 +50,7 @@ public partial class NotificationModel : IEquatable, IValidat /// createdDate. /// isRead. /// entityId. - /// notificationType. + /// notificationType (required). /// projectGlobalId. /// projectName. /// testPlanGlobalId. @@ -55,13 +60,13 @@ public partial class NotificationModel : IEquatable, IValidat /// workItemName. /// attributeName. /// createdById. - public NotificationModel(Guid id = default(Guid), DateTime? createdDate = default(DateTime?), bool isRead = default(bool), Guid entityId = default(Guid), NotificationTypeModel? notificationType = default(NotificationTypeModel?), long? projectGlobalId = default(long?), string projectName = default(string), long testPlanGlobalId = default(long), string testPlanName = default(string), long? workitemGlobalId = default(long?), string comment = default(string), string workItemName = default(string), string attributeName = default(string), Guid createdById = default(Guid)) + public NotificationModel(Guid id = default(Guid), DateTime? createdDate = default(DateTime?), bool isRead = default(bool), Guid entityId = default(Guid), NotificationTypeModel notificationType = default(NotificationTypeModel), long? projectGlobalId = default(long?), string projectName = default(string), long testPlanGlobalId = default(long), string testPlanName = default(string), long? workitemGlobalId = default(long?), string comment = default(string), string workItemName = default(string), string attributeName = default(string), Guid createdById = default(Guid)) { + this.NotificationType = notificationType; this.Id = id; this.CreatedDate = createdDate; this.IsRead = isRead; this.EntityId = entityId; - this.NotificationType = notificationType; this.ProjectGlobalId = projectGlobalId; this.ProjectName = projectName; this.TestPlanGlobalId = testPlanGlobalId; diff --git a/src/TestIt.Client/Model/Operation.cs b/src/TestIt.Client/Model/Operation.cs new file mode 100644 index 00000000..80fd4342 --- /dev/null +++ b/src/TestIt.Client/Model/Operation.cs @@ -0,0 +1,183 @@ +/* + * API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v2.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = TestIt.Client.Client.FileParameter; +using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter; + +namespace TestIt.Client.Model +{ + /// + /// Operation + /// + [DataContract(Name = "Operation")] + public partial class Operation : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// value. + /// path. + /// op. + /// from. + public Operation(Object value = default(Object), string path = default(string), string op = default(string), string from = default(string)) + { + this.Value = value; + this.Path = path; + this.Op = op; + this.From = from; + } + + /// + /// Gets or Sets Value + /// + [DataMember(Name = "value", EmitDefaultValue = true)] + public Object Value { get; set; } + + /// + /// Gets or Sets Path + /// + [DataMember(Name = "path", EmitDefaultValue = true)] + public string Path { get; set; } + + /// + /// Gets or Sets Op + /// + [DataMember(Name = "op", EmitDefaultValue = true)] + public string Op { get; set; } + + /// + /// Gets or Sets From + /// + [DataMember(Name = "from", EmitDefaultValue = true)] + public string From { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class Operation {\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); + sb.Append(" Op: ").Append(Op).Append("\n"); + sb.Append(" From: ").Append(From).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Operation); + } + + /// + /// Returns true if Operation instances are equal + /// + /// Instance of Operation to be compared + /// Boolean + public bool Equals(Operation input) + { + if (input == null) + { + return false; + } + return + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ) && + ( + this.Path == input.Path || + (this.Path != null && + this.Path.Equals(input.Path)) + ) && + ( + this.Op == input.Op || + (this.Op != null && + this.Op.Equals(input.Op)) + ) && + ( + this.From == input.From || + (this.From != null && + this.From.Equals(input.From)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Value != null) + { + hashCode = (hashCode * 59) + this.Value.GetHashCode(); + } + if (this.Path != null) + { + hashCode = (hashCode * 59) + this.Path.GetHashCode(); + } + if (this.Op != null) + { + hashCode = (hashCode * 59) + this.Op.GetHashCode(); + } + if (this.From != null) + { + hashCode = (hashCode * 59) + this.From.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/TestIt.Client/Model/ParameterFilterModel.cs b/src/TestIt.Client/Model/ParameterFilterModel.cs new file mode 100644 index 00000000..c89f1d2a --- /dev/null +++ b/src/TestIt.Client/Model/ParameterFilterModel.cs @@ -0,0 +1,149 @@ +/* + * API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v2.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = TestIt.Client.Client.FileParameter; +using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter; + +namespace TestIt.Client.Model +{ + /// + /// ParameterFilterModel + /// + [DataContract(Name = "ParameterFilterModel")] + public partial class ParameterFilterModel : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Specifies a parameter deleted status to search for. + /// Specifies a parameter key name to search for. + public ParameterFilterModel(bool? isDeleted = default(bool?), string name = default(string)) + { + this.IsDeleted = isDeleted; + this.Name = name; + } + + /// + /// Specifies a parameter deleted status to search for + /// + /// Specifies a parameter deleted status to search for + [DataMember(Name = "isDeleted", EmitDefaultValue = true)] + public bool? IsDeleted { get; set; } + + /// + /// Specifies a parameter key name to search for + /// + /// Specifies a parameter key name to search for + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ParameterFilterModel {\n"); + sb.Append(" IsDeleted: ").Append(IsDeleted).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ParameterFilterModel); + } + + /// + /// Returns true if ParameterFilterModel instances are equal + /// + /// Instance of ParameterFilterModel to be compared + /// Boolean + public bool Equals(ParameterFilterModel input) + { + if (input == null) + { + return false; + } + return + ( + this.IsDeleted == input.IsDeleted || + (this.IsDeleted != null && + this.IsDeleted.Equals(input.IsDeleted)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IsDeleted != null) + { + hashCode = (hashCode * 59) + this.IsDeleted.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/TestIt.Client/Model/ProjectModel.cs b/src/TestIt.Client/Model/ProjectModel.cs index fa1e5ef5..7df82619 100644 --- a/src/TestIt.Client/Model/ProjectModel.cs +++ b/src/TestIt.Client/Model/ProjectModel.cs @@ -35,52 +35,70 @@ public partial class ProjectModel : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - [JsonConstructorAttribute] - protected ProjectModel() { } - /// - /// Initializes a new instance of the class. - /// + /// Unique ID of the project. + /// Description of the project. + /// Name of the project. + /// Indicates if the project is marked as favorite. /// Collection of the project attributes. /// Collection of the project test plans attributes. /// Number of test cases in the project. /// Number of shared steps in the project. /// Number of checklists in the project. /// Number of autotests in the project. - /// Indicates if the project is marked as favorite. /// Indicates if the project is deleted. /// Creation date of the project. /// Last modification date of the project. /// Unique ID of the project creator. /// Unique ID of the project last editor. /// Global ID of the project. - /// Unique ID of the project (required). - /// Description of the project. - /// Name of the project (required). - public ProjectModel(List attributesScheme = default(List), List testPlansAttributesScheme = default(List), int? testCasesCount = default(int?), int? sharedStepsCount = default(int?), int? checkListsCount = default(int?), int? autoTestsCount = default(int?), bool isFavorite = default(bool), bool isDeleted = default(bool), DateTime createdDate = default(DateTime), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), long globalId = default(long), Guid id = default(Guid), string description = default(string), string name = default(string)) + public ProjectModel(Guid id = default(Guid), string description = default(string), string name = default(string), bool isFavorite = default(bool), List attributesScheme = default(List), List testPlansAttributesScheme = default(List), int? testCasesCount = default(int?), int? sharedStepsCount = default(int?), int? checkListsCount = default(int?), int? autoTestsCount = default(int?), bool isDeleted = default(bool), DateTime createdDate = default(DateTime), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), long globalId = default(long)) { this.Id = id; - // to ensure "name" is required (not null) - if (name == null) - { - throw new ArgumentNullException("name is a required property for ProjectModel and cannot be null"); - } + this.Description = description; this.Name = name; + this.IsFavorite = isFavorite; this.AttributesScheme = attributesScheme; this.TestPlansAttributesScheme = testPlansAttributesScheme; this.TestCasesCount = testCasesCount; this.SharedStepsCount = sharedStepsCount; this.CheckListsCount = checkListsCount; this.AutoTestsCount = autoTestsCount; - this.IsFavorite = isFavorite; this.IsDeleted = isDeleted; this.CreatedDate = createdDate; this.ModifiedDate = modifiedDate; this.CreatedById = createdById; this.ModifiedById = modifiedById; this.GlobalId = globalId; - this.Description = description; } + /// + /// Unique ID of the project + /// + /// Unique ID of the project + [DataMember(Name = "id", EmitDefaultValue = false)] + public Guid Id { get; set; } + + /// + /// Description of the project + /// + /// Description of the project + [DataMember(Name = "description", EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// Name of the project + /// + /// Name of the project + [DataMember(Name = "name", EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Indicates if the project is marked as favorite + /// + /// Indicates if the project is marked as favorite + [DataMember(Name = "isFavorite", EmitDefaultValue = true)] + public bool IsFavorite { get; set; } + /// /// Collection of the project attributes /// @@ -123,13 +141,6 @@ protected ProjectModel() { } [DataMember(Name = "autoTestsCount", EmitDefaultValue = true)] public int? AutoTestsCount { get; set; } - /// - /// Indicates if the project is marked as favorite - /// - /// Indicates if the project is marked as favorite - [DataMember(Name = "isFavorite", EmitDefaultValue = true)] - public bool IsFavorite { get; set; } - /// /// Indicates if the project is deleted /// @@ -172,27 +183,6 @@ protected ProjectModel() { } [DataMember(Name = "globalId", EmitDefaultValue = false)] public long GlobalId { get; set; } - /// - /// Unique ID of the project - /// - /// Unique ID of the project - [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] - public Guid Id { get; set; } - - /// - /// Description of the project - /// - /// Description of the project - [DataMember(Name = "description", EmitDefaultValue = true)] - public string Description { get; set; } - - /// - /// Name of the project - /// - /// Name of the project - [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public string Name { get; set; } - /// /// Returns the string presentation of the object /// @@ -201,22 +191,22 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class ProjectModel {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" IsFavorite: ").Append(IsFavorite).Append("\n"); sb.Append(" AttributesScheme: ").Append(AttributesScheme).Append("\n"); sb.Append(" TestPlansAttributesScheme: ").Append(TestPlansAttributesScheme).Append("\n"); sb.Append(" TestCasesCount: ").Append(TestCasesCount).Append("\n"); sb.Append(" SharedStepsCount: ").Append(SharedStepsCount).Append("\n"); sb.Append(" CheckListsCount: ").Append(CheckListsCount).Append("\n"); sb.Append(" AutoTestsCount: ").Append(AutoTestsCount).Append("\n"); - sb.Append(" IsFavorite: ").Append(IsFavorite).Append("\n"); sb.Append(" IsDeleted: ").Append(IsDeleted).Append("\n"); sb.Append(" CreatedDate: ").Append(CreatedDate).Append("\n"); sb.Append(" ModifiedDate: ").Append(ModifiedDate).Append("\n"); sb.Append(" CreatedById: ").Append(CreatedById).Append("\n"); sb.Append(" ModifiedById: ").Append(ModifiedById).Append("\n"); sb.Append(" GlobalId: ").Append(GlobalId).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -252,6 +242,25 @@ public bool Equals(ProjectModel input) return false; } return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.IsFavorite == input.IsFavorite || + this.IsFavorite.Equals(input.IsFavorite) + ) && ( this.AttributesScheme == input.AttributesScheme || this.AttributesScheme != null && @@ -284,10 +293,6 @@ public bool Equals(ProjectModel input) (this.AutoTestsCount != null && this.AutoTestsCount.Equals(input.AutoTestsCount)) ) && - ( - this.IsFavorite == input.IsFavorite || - this.IsFavorite.Equals(input.IsFavorite) - ) && ( this.IsDeleted == input.IsDeleted || this.IsDeleted.Equals(input.IsDeleted) @@ -315,21 +320,6 @@ public bool Equals(ProjectModel input) ( this.GlobalId == input.GlobalId || this.GlobalId.Equals(input.GlobalId) - ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) ); } @@ -342,6 +332,19 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsFavorite.GetHashCode(); if (this.AttributesScheme != null) { hashCode = (hashCode * 59) + this.AttributesScheme.GetHashCode(); @@ -366,7 +369,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.AutoTestsCount.GetHashCode(); } - hashCode = (hashCode * 59) + this.IsFavorite.GetHashCode(); hashCode = (hashCode * 59) + this.IsDeleted.GetHashCode(); if (this.CreatedDate != null) { @@ -385,18 +387,6 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.ModifiedById.GetHashCode(); } hashCode = (hashCode * 59) + this.GlobalId.GetHashCode(); - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } - if (this.Description != null) - { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); - } - if (this.Name != null) - { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); - } return hashCode; } } diff --git a/src/TestIt.Client/Model/ProjectPostModel.cs b/src/TestIt.Client/Model/ProjectPostModel.cs index 07106dd1..ca799b08 100644 --- a/src/TestIt.Client/Model/ProjectPostModel.cs +++ b/src/TestIt.Client/Model/ProjectPostModel.cs @@ -42,7 +42,8 @@ protected ProjectPostModel() { } /// /// Description of the project. /// Name of the project (required). - public ProjectPostModel(string description = default(string), string name = default(string)) + /// Indicates if the project is marked as favorite. + public ProjectPostModel(string description = default(string), string name = default(string), bool? isFavorite = default(bool?)) { // to ensure "name" is required (not null) if (name == null) @@ -51,6 +52,7 @@ protected ProjectPostModel() { } } this.Name = name; this.Description = description; + this.IsFavorite = isFavorite; } /// @@ -67,6 +69,13 @@ protected ProjectPostModel() { } [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// + /// Indicates if the project is marked as favorite + /// + /// Indicates if the project is marked as favorite + [DataMember(Name = "isFavorite", EmitDefaultValue = true)] + public bool? IsFavorite { get; set; } + /// /// Returns the string presentation of the object /// @@ -77,6 +86,7 @@ public override string ToString() sb.Append("class ProjectPostModel {\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" IsFavorite: ").Append(IsFavorite).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -121,6 +131,11 @@ public bool Equals(ProjectPostModel input) this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) + ) && + ( + this.IsFavorite == input.IsFavorite || + (this.IsFavorite != null && + this.IsFavorite.Equals(input.IsFavorite)) ); } @@ -141,6 +156,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } + if (this.IsFavorite != null) + { + hashCode = (hashCode * 59) + this.IsFavorite.GetHashCode(); + } return hashCode; } } @@ -152,6 +171,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/ProjectPutModel.cs b/src/TestIt.Client/Model/ProjectPutModel.cs index 794d60c1..faa39476 100644 --- a/src/TestIt.Client/Model/ProjectPutModel.cs +++ b/src/TestIt.Client/Model/ProjectPutModel.cs @@ -43,7 +43,8 @@ protected ProjectPutModel() { } /// Unique ID of the project (required). /// Description of the project. /// Name of the project (required). - public ProjectPutModel(Guid id = default(Guid), string description = default(string), string name = default(string)) + /// Indicates if the project is marked as favorite. + public ProjectPutModel(Guid id = default(Guid), string description = default(string), string name = default(string), bool? isFavorite = default(bool?)) { this.Id = id; // to ensure "name" is required (not null) @@ -53,6 +54,7 @@ protected ProjectPutModel() { } } this.Name = name; this.Description = description; + this.IsFavorite = isFavorite; } /// @@ -76,6 +78,13 @@ protected ProjectPutModel() { } [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// + /// Indicates if the project is marked as favorite + /// + /// Indicates if the project is marked as favorite + [DataMember(Name = "isFavorite", EmitDefaultValue = true)] + public bool? IsFavorite { get; set; } + /// /// Returns the string presentation of the object /// @@ -87,6 +96,7 @@ public override string ToString() sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" IsFavorite: ").Append(IsFavorite).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -136,6 +146,11 @@ public bool Equals(ProjectPutModel input) this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) + ) && + ( + this.IsFavorite == input.IsFavorite || + (this.IsFavorite != null && + this.IsFavorite.Equals(input.IsFavorite)) ); } @@ -160,6 +175,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } + if (this.IsFavorite != null) + { + hashCode = (hashCode * 59) + this.IsFavorite.GetHashCode(); + } return hashCode; } } @@ -171,6 +190,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/TestPlanSearchQueryModel.cs b/src/TestIt.Client/Model/ProjectTestPlansFilterModel.cs similarity index 83% rename from src/TestIt.Client/Model/TestPlanSearchQueryModel.cs rename to src/TestIt.Client/Model/ProjectTestPlansFilterModel.cs index 8f9fac89..d6def8fb 100644 --- a/src/TestIt.Client/Model/TestPlanSearchQueryModel.cs +++ b/src/TestIt.Client/Model/ProjectTestPlansFilterModel.cs @@ -27,13 +27,13 @@ namespace TestIt.Client.Model { /// - /// TestPlanSearchQueryModel + /// ProjectTestPlansFilterModel /// - [DataContract(Name = "TestPlanSearchQueryModel")] - public partial class TestPlanSearchQueryModel : IEquatable, IValidatableObject + [DataContract(Name = "ProjectTestPlansFilterModel")] + public partial class ProjectTestPlansFilterModel : IEquatable, IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// name. /// description. @@ -51,7 +51,7 @@ public partial class TestPlanSearchQueryModel : IEquatabletagNames. /// attributes. /// isDeleted. - public TestPlanSearchQueryModel(string name = default(string), string description = default(string), string build = default(string), string productName = default(string), List status = default(List), List globalIds = default(List), bool? isLocked = default(bool?), DateRangeModel lockedDate = default(DateRangeModel), List automaticDurationTimer = default(List), List createdByIds = default(List), DateRangeModel createdDate = default(DateRangeModel), DateRangeModel startDate = default(DateRangeModel), DateRangeModel endDate = default(DateRangeModel), List tagNames = default(List), Dictionary> attributes = default(Dictionary>), bool? isDeleted = default(bool?)) + public ProjectTestPlansFilterModel(string name = default(string), string description = default(string), string build = default(string), string productName = default(string), List status = default(List), List globalIds = default(List), bool? isLocked = default(bool?), DateTimeRangeSelectorModel lockedDate = default(DateTimeRangeSelectorModel), List automaticDurationTimer = default(List), List createdByIds = default(List), DateTimeRangeSelectorModel createdDate = default(DateTimeRangeSelectorModel), DateTimeRangeSelectorModel startDate = default(DateTimeRangeSelectorModel), DateTimeRangeSelectorModel endDate = default(DateTimeRangeSelectorModel), List tagNames = default(List), Dictionary> attributes = default(Dictionary>), bool? isDeleted = default(bool?)) { this.Name = name; this.Description = description; @@ -117,7 +117,7 @@ public partial class TestPlanSearchQueryModel : IEquatable [DataMember(Name = "lockedDate", EmitDefaultValue = false)] - public DateRangeModel LockedDate { get; set; } + public DateTimeRangeSelectorModel LockedDate { get; set; } /// /// Gets or Sets AutomaticDurationTimer @@ -135,19 +135,19 @@ public partial class TestPlanSearchQueryModel : IEquatable [DataMember(Name = "createdDate", EmitDefaultValue = false)] - public DateRangeModel CreatedDate { get; set; } + public DateTimeRangeSelectorModel CreatedDate { get; set; } /// /// Gets or Sets StartDate /// [DataMember(Name = "startDate", EmitDefaultValue = false)] - public DateRangeModel StartDate { get; set; } + public DateTimeRangeSelectorModel StartDate { get; set; } /// /// Gets or Sets EndDate /// [DataMember(Name = "endDate", EmitDefaultValue = false)] - public DateRangeModel EndDate { get; set; } + public DateTimeRangeSelectorModel EndDate { get; set; } /// /// Gets or Sets TagNames @@ -174,7 +174,7 @@ public partial class TestPlanSearchQueryModel : IEquatableBoolean public override bool Equals(object input) { - return this.Equals(input as TestPlanSearchQueryModel); + return this.Equals(input as ProjectTestPlansFilterModel); } /// - /// Returns true if TestPlanSearchQueryModel instances are equal + /// Returns true if ProjectTestPlansFilterModel instances are equal /// - /// Instance of TestPlanSearchQueryModel to be compared + /// Instance of ProjectTestPlansFilterModel to be compared /// Boolean - public bool Equals(TestPlanSearchQueryModel input) + public bool Equals(ProjectTestPlansFilterModel input) { if (input == null) { @@ -404,24 +404,48 @@ public override int GetHashCode() yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than 255.", new [] { "Name" }); } + // Name (string) minLength + if (this.Name != null && this.Name.Length < 0) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 0.", new [] { "Name" }); + } + // Description (string) maxLength if (this.Description != null && this.Description.Length > 255) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than 255.", new [] { "Description" }); } + // Description (string) minLength + if (this.Description != null && this.Description.Length < 0) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be greater than 0.", new [] { "Description" }); + } + // Build (string) maxLength if (this.Build != null && this.Build.Length > 255) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Build, length must be less than 255.", new [] { "Build" }); } + // Build (string) minLength + if (this.Build != null && this.Build.Length < 0) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Build, length must be greater than 0.", new [] { "Build" }); + } + // ProductName (string) maxLength if (this.ProductName != null && this.ProductName.Length > 255) { yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductName, length must be less than 255.", new [] { "ProductName" }); } + // ProductName (string) minLength + if (this.ProductName != null && this.ProductName.Length < 0) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ProductName, length must be greater than 0.", new [] { "ProductName" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/SectionModel.cs b/src/TestIt.Client/Model/SectionModel.cs index 65765f09..20d631d7 100644 --- a/src/TestIt.Client/Model/SectionModel.cs +++ b/src/TestIt.Client/Model/SectionModel.cs @@ -272,6 +272,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/SectionWithStepsModel.cs b/src/TestIt.Client/Model/SectionWithStepsModel.cs index 174ec841..bd4e429d 100644 --- a/src/TestIt.Client/Model/SectionWithStepsModel.cs +++ b/src/TestIt.Client/Model/SectionWithStepsModel.cs @@ -310,6 +310,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/SharedStepReferenceModel.cs b/src/TestIt.Client/Model/SharedStepReferenceModel.cs index cc8ac8af..a392ac79 100644 --- a/src/TestIt.Client/Model/SharedStepReferenceModel.cs +++ b/src/TestIt.Client/Model/SharedStepReferenceModel.cs @@ -36,8 +36,13 @@ public partial class SharedStepReferenceModel : IEquatable /// Gets or Sets Priority /// - [DataMember(Name = "priority", EmitDefaultValue = false)] - public WorkItemPriorityModel? Priority { get; set; } + [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] + public WorkItemPriorityModel Priority { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SharedStepReferenceModel() { } /// /// Initializes a new instance of the class. /// @@ -53,14 +58,15 @@ public partial class SharedStepReferenceModel : IEquatablecreatedDate. /// modifiedDate. /// state. - /// priority. + /// priority (required). /// isDeleted. /// used for versioning changes in workitem. /// isAutomated. /// sectionId. /// tags. - public SharedStepReferenceModel(Guid id = default(Guid), long globalId = default(long), string name = default(string), string entityTypeName = default(string), bool hasThisSharedStepAsStep = default(bool), bool hasThisSharedStepAsPrecondition = default(bool), bool hasThisSharedStepAsPostcondition = default(bool), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), string state = default(string), WorkItemPriorityModel? priority = default(WorkItemPriorityModel?), bool isDeleted = default(bool), Guid versionId = default(Guid), bool isAutomated = default(bool), Guid sectionId = default(Guid), List tags = default(List)) + public SharedStepReferenceModel(Guid id = default(Guid), long globalId = default(long), string name = default(string), string entityTypeName = default(string), bool hasThisSharedStepAsStep = default(bool), bool hasThisSharedStepAsPrecondition = default(bool), bool hasThisSharedStepAsPostcondition = default(bool), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), string state = default(string), WorkItemPriorityModel priority = default(WorkItemPriorityModel), bool isDeleted = default(bool), Guid versionId = default(Guid), bool isAutomated = default(bool), Guid sectionId = default(Guid), List tags = default(List)) { + this.Priority = priority; this.Id = id; this.GlobalId = globalId; this.Name = name; @@ -73,7 +79,6 @@ public partial class SharedStepReferenceModel : IEquatable, IValidatable /// outcome. /// sharedStepVersionId. /// sharedStepResults. - public StepResultModel(Guid stepId = default(Guid), string outcome = default(string), Guid? sharedStepVersionId = default(Guid?), List sharedStepResults = default(List)) + /// comment. + public StepResultModel(Guid stepId = default(Guid), string outcome = default(string), Guid? sharedStepVersionId = default(Guid?), List sharedStepResults = default(List), StepCommentModel comment = default(StepCommentModel)) { this.StepId = stepId; this.Outcome = outcome; this.SharedStepVersionId = sharedStepVersionId; this.SharedStepResults = sharedStepResults; + this.Comment = comment; } /// @@ -71,6 +73,12 @@ public partial class StepResultModel : IEquatable, IValidatable [DataMember(Name = "sharedStepResults", EmitDefaultValue = true)] public List SharedStepResults { get; set; } + /// + /// Gets or Sets Comment + /// + [DataMember(Name = "comment", EmitDefaultValue = false)] + public StepCommentModel Comment { get; set; } + /// /// Returns the string presentation of the object /// @@ -83,6 +91,7 @@ public override string ToString() sb.Append(" Outcome: ").Append(Outcome).Append("\n"); sb.Append(" SharedStepVersionId: ").Append(SharedStepVersionId).Append("\n"); sb.Append(" SharedStepResults: ").Append(SharedStepResults).Append("\n"); + sb.Append(" Comment: ").Append(Comment).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -138,6 +147,11 @@ public bool Equals(StepResultModel input) this.SharedStepResults != null && input.SharedStepResults != null && this.SharedStepResults.SequenceEqual(input.SharedStepResults) + ) && + ( + this.Comment == input.Comment || + (this.Comment != null && + this.Comment.Equals(input.Comment)) ); } @@ -166,6 +180,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SharedStepResults.GetHashCode(); } + if (this.Comment != null) + { + hashCode = (hashCode * 59) + this.Comment.GetHashCode(); + } return hashCode; } } diff --git a/src/TestIt.Client/Model/TestPlanModel.cs b/src/TestIt.Client/Model/TestPlanModel.cs index 10daab2b..4c69f59c 100644 --- a/src/TestIt.Client/Model/TestPlanModel.cs +++ b/src/TestIt.Client/Model/TestPlanModel.cs @@ -36,8 +36,8 @@ public partial class TestPlanModel : IEquatable, IValidatableObje /// /// Gets or Sets Status /// - [DataMember(Name = "status", EmitDefaultValue = false)] - public TestPlanStatusModel? Status { get; set; } + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public TestPlanStatusModel Status { get; set; } /// /// Initializes a new instance of the class. /// @@ -46,7 +46,7 @@ protected TestPlanModel() { } /// /// Initializes a new instance of the class. /// - /// status. + /// status (required). /// Set when test plan is starter (status changed to: In Progress). /// set when test plan status is completed (status changed to: Completed). /// createdDate. @@ -68,8 +68,9 @@ protected TestPlanModel() { } /// productName. /// hasAutomaticDurationTimer. /// attributes. - public TestPlanModel(TestPlanStatusModel? status = default(TestPlanStatusModel?), DateTime? startedOn = default(DateTime?), DateTime? completedOn = default(DateTime?), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), long globalId = default(long), bool isDeleted = default(bool), DateTime? lockedDate = default(DateTime?), Guid id = default(Guid), Guid? lockedById = default(Guid?), List tags = default(List), string name = default(string), DateTime? startDate = default(DateTime?), DateTime? endDate = default(DateTime?), string description = default(string), string build = default(string), Guid projectId = default(Guid), string productName = default(string), bool? hasAutomaticDurationTimer = default(bool?), Dictionary attributes = default(Dictionary)) + public TestPlanModel(TestPlanStatusModel status = default(TestPlanStatusModel), DateTime? startedOn = default(DateTime?), DateTime? completedOn = default(DateTime?), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), long globalId = default(long), bool isDeleted = default(bool), DateTime? lockedDate = default(DateTime?), Guid id = default(Guid), Guid? lockedById = default(Guid?), List tags = default(List), string name = default(string), DateTime? startDate = default(DateTime?), DateTime? endDate = default(DateTime?), string description = default(string), string build = default(string), Guid projectId = default(Guid), string productName = default(string), bool? hasAutomaticDurationTimer = default(bool?), Dictionary attributes = default(Dictionary)) { + this.Status = status; this.Id = id; // to ensure "name" is required (not null) if (name == null) @@ -78,7 +79,6 @@ protected TestPlanModel() { } } this.Name = name; this.ProjectId = projectId; - this.Status = status; this.StartedOn = startedOn; this.CompletedOn = completedOn; this.CreatedDate = createdDate; @@ -518,9 +518,9 @@ public override int GetHashCode() } // Description (string) maxLength - if (this.Description != null && this.Description.Length > 999) + if (this.Description != null && this.Description.Length > 100000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than 999.", new [] { "Description" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than 100000.", new [] { "Description" }); } // Description (string) minLength diff --git a/src/TestIt.Client/Model/TestPlanPostModel.cs b/src/TestIt.Client/Model/TestPlanPostModel.cs index 1189ba65..2d5c7adf 100644 --- a/src/TestIt.Client/Model/TestPlanPostModel.cs +++ b/src/TestIt.Client/Model/TestPlanPostModel.cs @@ -311,9 +311,9 @@ public override int GetHashCode() } // Description (string) maxLength - if (this.Description != null && this.Description.Length > 999) + if (this.Description != null && this.Description.Length > 100000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than 999.", new [] { "Description" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than 100000.", new [] { "Description" }); } // Description (string) minLength diff --git a/src/TestIt.Client/Model/TestPlanPutModel.cs b/src/TestIt.Client/Model/TestPlanPutModel.cs index 24acd10a..59650e62 100644 --- a/src/TestIt.Client/Model/TestPlanPutModel.cs +++ b/src/TestIt.Client/Model/TestPlanPutModel.cs @@ -347,9 +347,9 @@ public override int GetHashCode() } // Description (string) maxLength - if (this.Description != null && this.Description.Length > 999) + if (this.Description != null && this.Description.Length > 100000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than 999.", new [] { "Description" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than 100000.", new [] { "Description" }); } // Description (string) minLength diff --git a/src/TestIt.Client/Model/TestPlanWithAnalyticModel.cs b/src/TestIt.Client/Model/TestPlanWithAnalyticModel.cs index f3f5e1f6..9176f249 100644 --- a/src/TestIt.Client/Model/TestPlanWithAnalyticModel.cs +++ b/src/TestIt.Client/Model/TestPlanWithAnalyticModel.cs @@ -36,8 +36,8 @@ public partial class TestPlanWithAnalyticModel : IEquatable /// Gets or Sets Status /// - [DataMember(Name = "status", EmitDefaultValue = false)] - public TestPlanStatusModel? Status { get; set; } + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public TestPlanStatusModel Status { get; set; } /// /// Initializes a new instance of the class. /// @@ -47,7 +47,7 @@ protected TestPlanWithAnalyticModel() { } /// Initializes a new instance of the class. /// /// analytic. - /// status. + /// status (required). /// Set when test plan is starter (status changed to: In Progress). /// set when test plan status is completed (status changed to: Completed). /// createdDate. @@ -69,8 +69,9 @@ protected TestPlanWithAnalyticModel() { } /// productName. /// hasAutomaticDurationTimer. /// attributes. - public TestPlanWithAnalyticModel(TestPointAnalyticResult analytic = default(TestPointAnalyticResult), TestPlanStatusModel? status = default(TestPlanStatusModel?), DateTime? startedOn = default(DateTime?), DateTime? completedOn = default(DateTime?), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), long globalId = default(long), bool isDeleted = default(bool), DateTime? lockedDate = default(DateTime?), Guid id = default(Guid), Guid? lockedById = default(Guid?), List tags = default(List), string name = default(string), DateTime? startDate = default(DateTime?), DateTime? endDate = default(DateTime?), string description = default(string), string build = default(string), Guid projectId = default(Guid), string productName = default(string), bool? hasAutomaticDurationTimer = default(bool?), Dictionary attributes = default(Dictionary)) + public TestPlanWithAnalyticModel(TestPointAnalyticResult analytic = default(TestPointAnalyticResult), TestPlanStatusModel status = default(TestPlanStatusModel), DateTime? startedOn = default(DateTime?), DateTime? completedOn = default(DateTime?), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), long globalId = default(long), bool isDeleted = default(bool), DateTime? lockedDate = default(DateTime?), Guid id = default(Guid), Guid? lockedById = default(Guid?), List tags = default(List), string name = default(string), DateTime? startDate = default(DateTime?), DateTime? endDate = default(DateTime?), string description = default(string), string build = default(string), Guid projectId = default(Guid), string productName = default(string), bool? hasAutomaticDurationTimer = default(bool?), Dictionary attributes = default(Dictionary)) { + this.Status = status; this.Id = id; // to ensure "name" is required (not null) if (name == null) @@ -80,7 +81,6 @@ protected TestPlanWithAnalyticModel() { } this.Name = name; this.ProjectId = projectId; this.Analytic = analytic; - this.Status = status; this.StartedOn = startedOn; this.CompletedOn = completedOn; this.CreatedDate = createdDate; @@ -536,9 +536,9 @@ public override int GetHashCode() } // Description (string) maxLength - if (this.Description != null && this.Description.Length > 999) + if (this.Description != null && this.Description.Length > 100000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than 999.", new [] { "Description" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than 100000.", new [] { "Description" }); } // Description (string) minLength diff --git a/src/TestIt.Client/Model/TestPlanWithTestSuiteTreeModel.cs b/src/TestIt.Client/Model/TestPlanWithTestSuiteTreeModel.cs index 57f952c1..347416a8 100644 --- a/src/TestIt.Client/Model/TestPlanWithTestSuiteTreeModel.cs +++ b/src/TestIt.Client/Model/TestPlanWithTestSuiteTreeModel.cs @@ -36,8 +36,8 @@ public partial class TestPlanWithTestSuiteTreeModel : IEquatable /// Gets or Sets Status /// - [DataMember(Name = "status", EmitDefaultValue = false)] - public TestPlanStatusModel? Status { get; set; } + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public TestPlanStatusModel Status { get; set; } /// /// Initializes a new instance of the class. /// @@ -47,7 +47,7 @@ protected TestPlanWithTestSuiteTreeModel() { } /// Initializes a new instance of the class. /// /// testSuites. - /// status. + /// status (required). /// Set when test plan is starter (status changed to: In Progress). /// set when test plan status is completed (status changed to: Completed). /// createdDate. @@ -69,8 +69,9 @@ protected TestPlanWithTestSuiteTreeModel() { } /// productName. /// hasAutomaticDurationTimer. /// attributes. - public TestPlanWithTestSuiteTreeModel(List testSuites = default(List), TestPlanStatusModel? status = default(TestPlanStatusModel?), DateTime? startedOn = default(DateTime?), DateTime? completedOn = default(DateTime?), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), long globalId = default(long), bool isDeleted = default(bool), DateTime? lockedDate = default(DateTime?), Guid id = default(Guid), Guid? lockedById = default(Guid?), List tags = default(List), string name = default(string), DateTime? startDate = default(DateTime?), DateTime? endDate = default(DateTime?), string description = default(string), string build = default(string), Guid projectId = default(Guid), string productName = default(string), bool? hasAutomaticDurationTimer = default(bool?), Dictionary attributes = default(Dictionary)) + public TestPlanWithTestSuiteTreeModel(List testSuites = default(List), TestPlanStatusModel status = default(TestPlanStatusModel), DateTime? startedOn = default(DateTime?), DateTime? completedOn = default(DateTime?), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), long globalId = default(long), bool isDeleted = default(bool), DateTime? lockedDate = default(DateTime?), Guid id = default(Guid), Guid? lockedById = default(Guid?), List tags = default(List), string name = default(string), DateTime? startDate = default(DateTime?), DateTime? endDate = default(DateTime?), string description = default(string), string build = default(string), Guid projectId = default(Guid), string productName = default(string), bool? hasAutomaticDurationTimer = default(bool?), Dictionary attributes = default(Dictionary)) { + this.Status = status; this.Id = id; // to ensure "name" is required (not null) if (name == null) @@ -80,7 +81,6 @@ protected TestPlanWithTestSuiteTreeModel() { } this.Name = name; this.ProjectId = projectId; this.TestSuites = testSuites; - this.Status = status; this.StartedOn = startedOn; this.CompletedOn = completedOn; this.CreatedDate = createdDate; @@ -537,9 +537,9 @@ public override int GetHashCode() } // Description (string) maxLength - if (this.Description != null && this.Description.Length > 999) + if (this.Description != null && this.Description.Length > 100000) { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than 999.", new [] { "Description" }); + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be less than 100000.", new [] { "Description" }); } // Description (string) minLength diff --git a/src/TestIt.Client/Model/TestPointFilterModel.cs b/src/TestIt.Client/Model/TestPointFilterModel.cs index 24007d0c..ab2b959b 100644 --- a/src/TestIt.Client/Model/TestPointFilterModel.cs +++ b/src/TestIt.Client/Model/TestPointFilterModel.cs @@ -35,6 +35,7 @@ public partial class TestPointFilterModel : IEquatable, IV /// /// Initializes a new instance of the class. /// + /// Specifies a test point test plan IDS to search for. /// Specifies a test point test suite IDs to search for. /// Specifies a test point work item global IDs to search for. /// Specifies a test point statuses to search for. @@ -51,8 +52,9 @@ public partial class TestPointFilterModel : IEquatable, IV /// Specifies a test point last editor IDs to search for. /// Specifies a test point tags to search for. /// Specifies a test point attributes to search for. - public TestPointFilterModel(List testSuiteIds = default(List), List workItemGlobalIds = default(List), List statuses = default(List), List priorities = default(List), bool? isAutomated = default(bool?), string name = default(string), List configurationIds = default(List), List testerIds = default(List), Int64RangeSelectorModel duration = default(Int64RangeSelectorModel), List sectionIds = default(List), DateTimeRangeSelectorModel createdDate = default(DateTimeRangeSelectorModel), List createdByIds = default(List), DateTimeRangeSelectorModel modifiedDate = default(DateTimeRangeSelectorModel), List modifiedByIds = default(List), List tags = default(List), Dictionary> attributes = default(Dictionary>)) + public TestPointFilterModel(List testPlanIds = default(List), List testSuiteIds = default(List), List workItemGlobalIds = default(List), List statuses = default(List), List priorities = default(List), bool? isAutomated = default(bool?), string name = default(string), List configurationIds = default(List), List testerIds = default(List), Int64RangeSelectorModel duration = default(Int64RangeSelectorModel), List sectionIds = default(List), DateTimeRangeSelectorModel createdDate = default(DateTimeRangeSelectorModel), List createdByIds = default(List), DateTimeRangeSelectorModel modifiedDate = default(DateTimeRangeSelectorModel), List modifiedByIds = default(List), List tags = default(List), Dictionary> attributes = default(Dictionary>)) { + this.TestPlanIds = testPlanIds; this.TestSuiteIds = testSuiteIds; this.WorkItemGlobalIds = workItemGlobalIds; this.Statuses = statuses; @@ -71,6 +73,13 @@ public partial class TestPointFilterModel : IEquatable, IV this.Attributes = attributes; } + /// + /// Specifies a test point test plan IDS to search for + /// + /// Specifies a test point test plan IDS to search for + [DataMember(Name = "testPlanIds", EmitDefaultValue = true)] + public List TestPlanIds { get; set; } + /// /// Specifies a test point test suite IDs to search for /// @@ -188,6 +197,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class TestPointFilterModel {\n"); + sb.Append(" TestPlanIds: ").Append(TestPlanIds).Append("\n"); sb.Append(" TestSuiteIds: ").Append(TestSuiteIds).Append("\n"); sb.Append(" WorkItemGlobalIds: ").Append(WorkItemGlobalIds).Append("\n"); sb.Append(" Statuses: ").Append(Statuses).Append("\n"); @@ -239,6 +249,12 @@ public bool Equals(TestPointFilterModel input) return false; } return + ( + this.TestPlanIds == input.TestPlanIds || + this.TestPlanIds != null && + input.TestPlanIds != null && + this.TestPlanIds.SequenceEqual(input.TestPlanIds) + ) && ( this.TestSuiteIds == input.TestSuiteIds || this.TestSuiteIds != null && @@ -341,6 +357,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.TestPlanIds != null) + { + hashCode = (hashCode * 59) + this.TestPlanIds.GetHashCode(); + } if (this.TestSuiteIds != null) { hashCode = (hashCode * 59) + this.TestSuiteIds.GetHashCode(); diff --git a/src/TestIt.Client/Model/TestPointSelectModel.cs b/src/TestIt.Client/Model/TestPointSelectModel.cs new file mode 100644 index 00000000..05ab4339 --- /dev/null +++ b/src/TestIt.Client/Model/TestPointSelectModel.cs @@ -0,0 +1,147 @@ +/* + * API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v2.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = TestIt.Client.Client.FileParameter; +using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter; + +namespace TestIt.Client.Model +{ + /// + /// TestPointSelectModel + /// + [DataContract(Name = "TestPointSelectModel")] + public partial class TestPointSelectModel : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// filter. + /// extractionModel. + public TestPointSelectModel(TestPointFilterModel filter = default(TestPointFilterModel), TestPointsExtractionModel extractionModel = default(TestPointsExtractionModel)) + { + this.Filter = filter; + this.ExtractionModel = extractionModel; + } + + /// + /// Gets or Sets Filter + /// + [DataMember(Name = "filter", EmitDefaultValue = false)] + public TestPointFilterModel Filter { get; set; } + + /// + /// Gets or Sets ExtractionModel + /// + [DataMember(Name = "extractionModel", EmitDefaultValue = false)] + public TestPointsExtractionModel ExtractionModel { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TestPointSelectModel {\n"); + sb.Append(" Filter: ").Append(Filter).Append("\n"); + sb.Append(" ExtractionModel: ").Append(ExtractionModel).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TestPointSelectModel); + } + + /// + /// Returns true if TestPointSelectModel instances are equal + /// + /// Instance of TestPointSelectModel to be compared + /// Boolean + public bool Equals(TestPointSelectModel input) + { + if (input == null) + { + return false; + } + return + ( + this.Filter == input.Filter || + (this.Filter != null && + this.Filter.Equals(input.Filter)) + ) && + ( + this.ExtractionModel == input.ExtractionModel || + (this.ExtractionModel != null && + this.ExtractionModel.Equals(input.ExtractionModel)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Filter != null) + { + hashCode = (hashCode * 59) + this.Filter.GetHashCode(); + } + if (this.ExtractionModel != null) + { + hashCode = (hashCode * 59) + this.ExtractionModel.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/TestIt.Client/Model/TestPointSelector.cs b/src/TestIt.Client/Model/TestPointSelector.cs index 9ac9e5f1..77bfc388 100644 --- a/src/TestIt.Client/Model/TestPointSelector.cs +++ b/src/TestIt.Client/Model/TestPointSelector.cs @@ -41,16 +41,16 @@ protected TestPointSelector() { } /// Initializes a new instance of the class. /// /// Specifies the configuration GUIDs, from which test points are created. You can specify several GUIDs. (required). - /// Specifies the work item GUIDs, from which test points are created. You can specify several GUIDs. (required). - public TestPointSelector(Guid configurationId = default(Guid), List workitemIds = default(List)) + /// Specifies the work item GUIDs, from which test points are created. You can specify several GUIDs. (required). + public TestPointSelector(Guid configurationId = default(Guid), List workItemIds = default(List)) { this.ConfigurationId = configurationId; - // to ensure "workitemIds" is required (not null) - if (workitemIds == null) + // to ensure "workItemIds" is required (not null) + if (workItemIds == null) { - throw new ArgumentNullException("workitemIds is a required property for TestPointSelector and cannot be null"); + throw new ArgumentNullException("workItemIds is a required property for TestPointSelector and cannot be null"); } - this.WorkitemIds = workitemIds; + this.WorkItemIds = workItemIds; } /// @@ -64,8 +64,8 @@ protected TestPointSelector() { } /// Specifies the work item GUIDs, from which test points are created. You can specify several GUIDs. /// /// Specifies the work item GUIDs, from which test points are created. You can specify several GUIDs. - [DataMember(Name = "workitemIds", IsRequired = true, EmitDefaultValue = true)] - public List WorkitemIds { get; set; } + [DataMember(Name = "workItemIds", IsRequired = true, EmitDefaultValue = true)] + public List WorkItemIds { get; set; } /// /// Returns the string presentation of the object @@ -76,7 +76,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class TestPointSelector {\n"); sb.Append(" ConfigurationId: ").Append(ConfigurationId).Append("\n"); - sb.Append(" WorkitemIds: ").Append(WorkitemIds).Append("\n"); + sb.Append(" WorkItemIds: ").Append(WorkItemIds).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -118,10 +118,10 @@ public bool Equals(TestPointSelector input) this.ConfigurationId.Equals(input.ConfigurationId)) ) && ( - this.WorkitemIds == input.WorkitemIds || - this.WorkitemIds != null && - input.WorkitemIds != null && - this.WorkitemIds.SequenceEqual(input.WorkitemIds) + this.WorkItemIds == input.WorkItemIds || + this.WorkItemIds != null && + input.WorkItemIds != null && + this.WorkItemIds.SequenceEqual(input.WorkItemIds) ); } @@ -138,9 +138,9 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ConfigurationId.GetHashCode(); } - if (this.WorkitemIds != null) + if (this.WorkItemIds != null) { - hashCode = (hashCode * 59) + this.WorkitemIds.GetHashCode(); + hashCode = (hashCode * 59) + this.WorkItemIds.GetHashCode(); } return hashCode; } diff --git a/src/TestIt.Client/Model/TestPointShortGetModel.cs b/src/TestIt.Client/Model/TestPointShortGetModel.cs index 2a16bbee..308a0303 100644 --- a/src/TestIt.Client/Model/TestPointShortGetModel.cs +++ b/src/TestIt.Client/Model/TestPointShortGetModel.cs @@ -36,14 +36,19 @@ public partial class TestPointShortGetModel : IEquatable /// /// Gets or Sets Status /// - [DataMember(Name = "status", EmitDefaultValue = false)] - public TestPointStatus? Status { get; set; } + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public TestPointStatus Status { get; set; } /// /// Gets or Sets Priority /// - [DataMember(Name = "priority", EmitDefaultValue = false)] - public WorkItemPriorityModel? Priority { get; set; } + [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] + public WorkItemPriorityModel Priority { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TestPointShortGetModel() { } /// /// Initializes a new instance of the class. /// @@ -58,20 +63,30 @@ public partial class TestPointShortGetModel : IEquatable /// Collection of the test point tags. /// Collection of the test point links. /// Unique ID of test suite the test point assigned to. + /// Unique ID of work item the test point represents. /// Global ID of work item the test point represents. /// Unique ID of work item version the test point represents. - /// status. - /// priority. + /// status (required). + /// priority (required). /// Indicates if the test point represents an autotest. /// Name of the test point. /// Unique ID of the test point configuration. /// Duration of the test point. /// Unique ID of section where work item the test point represents is located. + /// Name of section where work item the test point represents is located. /// Unique ID of the test point project. - /// lastTestResult. + /// lastTestResult (required). /// Unique ID of work item iteration the test point represents. - public TestPointShortGetModel(Guid id = default(Guid), DateTime createdDate = default(DateTime), Guid createdById = default(Guid), DateTime? modifiedDate = default(DateTime?), Guid? modifiedById = default(Guid?), Guid? testerId = default(Guid?), Dictionary parameters = default(Dictionary), Dictionary attributes = default(Dictionary), List tags = default(List), List links = default(List), Guid testSuiteId = default(Guid), long workItemGlobalId = default(long), Guid workItemVersionId = default(Guid), TestPointStatus? status = default(TestPointStatus?), WorkItemPriorityModel? priority = default(WorkItemPriorityModel?), bool isAutomated = default(bool), string name = default(string), Guid configurationId = default(Guid), int duration = default(int), Guid sectionId = default(Guid), Guid projectId = default(Guid), LastTestResultModel lastTestResult = default(LastTestResultModel), Guid iterationId = default(Guid)) + public TestPointShortGetModel(Guid id = default(Guid), DateTime createdDate = default(DateTime), Guid createdById = default(Guid), DateTime? modifiedDate = default(DateTime?), Guid? modifiedById = default(Guid?), Guid? testerId = default(Guid?), Dictionary parameters = default(Dictionary), Dictionary attributes = default(Dictionary), List tags = default(List), List links = default(List), Guid testSuiteId = default(Guid), Guid workItemId = default(Guid), long workItemGlobalId = default(long), Guid workItemVersionId = default(Guid), TestPointStatus status = default(TestPointStatus), WorkItemPriorityModel priority = default(WorkItemPriorityModel), bool isAutomated = default(bool), string name = default(string), Guid configurationId = default(Guid), int duration = default(int), Guid sectionId = default(Guid), string sectionName = default(string), Guid projectId = default(Guid), LastTestResultModel lastTestResult = default(LastTestResultModel), Guid iterationId = default(Guid)) { + this.Status = status; + this.Priority = priority; + // to ensure "lastTestResult" is required (not null) + if (lastTestResult == null) + { + throw new ArgumentNullException("lastTestResult is a required property for TestPointShortGetModel and cannot be null"); + } + this.LastTestResult = lastTestResult; this.Id = id; this.CreatedDate = createdDate; this.CreatedById = createdById; @@ -83,17 +98,16 @@ public partial class TestPointShortGetModel : IEquatable this.Tags = tags; this.Links = links; this.TestSuiteId = testSuiteId; + this.WorkItemId = workItemId; this.WorkItemGlobalId = workItemGlobalId; this.WorkItemVersionId = workItemVersionId; - this.Status = status; - this.Priority = priority; this.IsAutomated = isAutomated; this.Name = name; this.ConfigurationId = configurationId; this.Duration = duration; this.SectionId = sectionId; + this.SectionName = sectionName; this.ProjectId = projectId; - this.LastTestResult = lastTestResult; this.IterationId = iterationId; } @@ -174,6 +188,13 @@ public partial class TestPointShortGetModel : IEquatable [DataMember(Name = "testSuiteId", EmitDefaultValue = false)] public Guid TestSuiteId { get; set; } + /// + /// Unique ID of work item the test point represents + /// + /// Unique ID of work item the test point represents + [DataMember(Name = "workItemId", EmitDefaultValue = false)] + public Guid WorkItemId { get; set; } + /// /// Global ID of work item the test point represents /// @@ -223,6 +244,13 @@ public partial class TestPointShortGetModel : IEquatable [DataMember(Name = "sectionId", EmitDefaultValue = false)] public Guid SectionId { get; set; } + /// + /// Name of section where work item the test point represents is located + /// + /// Name of section where work item the test point represents is located + [DataMember(Name = "sectionName", EmitDefaultValue = true)] + public string SectionName { get; set; } + /// /// Unique ID of the test point project /// @@ -233,7 +261,7 @@ public partial class TestPointShortGetModel : IEquatable /// /// Gets or Sets LastTestResult /// - [DataMember(Name = "lastTestResult", EmitDefaultValue = false)] + [DataMember(Name = "lastTestResult", IsRequired = true, EmitDefaultValue = true)] public LastTestResultModel LastTestResult { get; set; } /// @@ -262,6 +290,7 @@ public override string ToString() sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" Links: ").Append(Links).Append("\n"); sb.Append(" TestSuiteId: ").Append(TestSuiteId).Append("\n"); + sb.Append(" WorkItemId: ").Append(WorkItemId).Append("\n"); sb.Append(" WorkItemGlobalId: ").Append(WorkItemGlobalId).Append("\n"); sb.Append(" WorkItemVersionId: ").Append(WorkItemVersionId).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); @@ -271,6 +300,7 @@ public override string ToString() sb.Append(" ConfigurationId: ").Append(ConfigurationId).Append("\n"); sb.Append(" Duration: ").Append(Duration).Append("\n"); sb.Append(" SectionId: ").Append(SectionId).Append("\n"); + sb.Append(" SectionName: ").Append(SectionName).Append("\n"); sb.Append(" ProjectId: ").Append(ProjectId).Append("\n"); sb.Append(" LastTestResult: ").Append(LastTestResult).Append("\n"); sb.Append(" IterationId: ").Append(IterationId).Append("\n"); @@ -368,6 +398,11 @@ public bool Equals(TestPointShortGetModel input) (this.TestSuiteId != null && this.TestSuiteId.Equals(input.TestSuiteId)) ) && + ( + this.WorkItemId == input.WorkItemId || + (this.WorkItemId != null && + this.WorkItemId.Equals(input.WorkItemId)) + ) && ( this.WorkItemGlobalId == input.WorkItemGlobalId || this.WorkItemGlobalId.Equals(input.WorkItemGlobalId) @@ -408,6 +443,11 @@ public bool Equals(TestPointShortGetModel input) (this.SectionId != null && this.SectionId.Equals(input.SectionId)) ) && + ( + this.SectionName == input.SectionName || + (this.SectionName != null && + this.SectionName.Equals(input.SectionName)) + ) && ( this.ProjectId == input.ProjectId || (this.ProjectId != null && @@ -478,6 +518,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.TestSuiteId.GetHashCode(); } + if (this.WorkItemId != null) + { + hashCode = (hashCode * 59) + this.WorkItemId.GetHashCode(); + } hashCode = (hashCode * 59) + this.WorkItemGlobalId.GetHashCode(); if (this.WorkItemVersionId != null) { @@ -499,6 +543,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SectionId.GetHashCode(); } + if (this.SectionName != null) + { + hashCode = (hashCode * 59) + this.SectionName.GetHashCode(); + } if (this.ProjectId != null) { hashCode = (hashCode * 59) + this.ProjectId.GetHashCode(); diff --git a/src/TestIt.Client/Model/TestPointWithLastResultModel.cs b/src/TestIt.Client/Model/TestPointWithLastResultModel.cs index 8a042f43..363e1c04 100644 --- a/src/TestIt.Client/Model/TestPointWithLastResultModel.cs +++ b/src/TestIt.Client/Model/TestPointWithLastResultModel.cs @@ -36,8 +36,13 @@ public partial class TestPointWithLastResultModel : IEquatable /// Gets or Sets Priority /// - [DataMember(Name = "priority", EmitDefaultValue = false)] - public WorkItemPriorityModel? Priority { get; set; } + [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] + public WorkItemPriorityModel Priority { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TestPointWithLastResultModel() { } /// /// Initializes a new instance of the class. /// @@ -61,12 +66,13 @@ public partial class TestPointWithLastResultModel : IEquatableattributes. /// tagNames. /// duration. - /// priority. + /// priority (required). /// testSuiteNameBreadCrumbs. /// groupCount. /// iteration. - public TestPointWithLastResultModel(Guid id = default(Guid), string workItemName = default(string), bool isAutomated = default(bool), Guid? testerId = default(Guid?), Guid workItemId = default(Guid), Guid? configurationId = default(Guid?), Guid testSuiteId = default(Guid), LastTestResultModel lastTestResult = default(LastTestResultModel), string status = default(string), long? workItemGlobalId = default(long?), string workItemEntityTypeName = default(string), Guid sectionId = default(Guid), string sectionName = default(string), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), Dictionary attributes = default(Dictionary), List tagNames = default(List), int duration = default(int), WorkItemPriorityModel? priority = default(WorkItemPriorityModel?), List testSuiteNameBreadCrumbs = default(List), int? groupCount = default(int?), IterationModel iteration = default(IterationModel)) + public TestPointWithLastResultModel(Guid id = default(Guid), string workItemName = default(string), bool isAutomated = default(bool), Guid? testerId = default(Guid?), Guid workItemId = default(Guid), Guid? configurationId = default(Guid?), Guid testSuiteId = default(Guid), LastTestResultModel lastTestResult = default(LastTestResultModel), string status = default(string), long? workItemGlobalId = default(long?), string workItemEntityTypeName = default(string), Guid sectionId = default(Guid), string sectionName = default(string), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), Dictionary attributes = default(Dictionary), List tagNames = default(List), int duration = default(int), WorkItemPriorityModel priority = default(WorkItemPriorityModel), List testSuiteNameBreadCrumbs = default(List), int? groupCount = default(int?), IterationModel iteration = default(IterationModel)) { + this.Priority = priority; this.Id = id; this.WorkItemName = workItemName; this.IsAutomated = isAutomated; @@ -87,7 +93,6 @@ public partial class TestPointWithLastResultModel : IEquatable - /// DateRangeModel + /// TestPointsExtractionModel /// - [DataContract(Name = "DateRangeModel")] - public partial class DateRangeModel : IEquatable, IValidatableObject + [DataContract(Name = "TestPointsExtractionModel")] + public partial class TestPointsExtractionModel : IEquatable, IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Minimum date and time. - /// Maximum date and time. - public DateRangeModel(DateTime? from = default(DateTime?), DateTime? to = default(DateTime?)) + /// ids. + public TestPointsExtractionModel(GuidExtractionModel ids = default(GuidExtractionModel)) { - this.From = from; - this.To = to; + this.Ids = ids; } /// - /// Minimum date and time + /// Gets or Sets Ids /// - /// Minimum date and time - [DataMember(Name = "from", EmitDefaultValue = true)] - public DateTime? From { get; set; } - - /// - /// Maximum date and time - /// - /// Maximum date and time - [DataMember(Name = "to", EmitDefaultValue = true)] - public DateTime? To { get; set; } + [DataMember(Name = "ids", EmitDefaultValue = false)] + public GuidExtractionModel Ids { get; set; } /// /// Returns the string presentation of the object @@ -64,9 +54,8 @@ public partial class DateRangeModel : IEquatable, IValidatableOb public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class DateRangeModel {\n"); - sb.Append(" From: ").Append(From).Append("\n"); - sb.Append(" To: ").Append(To).Append("\n"); + sb.Append("class TestPointsExtractionModel {\n"); + sb.Append(" Ids: ").Append(Ids).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -87,15 +76,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as DateRangeModel); + return this.Equals(input as TestPointsExtractionModel); } /// - /// Returns true if DateRangeModel instances are equal + /// Returns true if TestPointsExtractionModel instances are equal /// - /// Instance of DateRangeModel to be compared + /// Instance of TestPointsExtractionModel to be compared /// Boolean - public bool Equals(DateRangeModel input) + public bool Equals(TestPointsExtractionModel input) { if (input == null) { @@ -103,14 +92,9 @@ public bool Equals(DateRangeModel input) } return ( - this.From == input.From || - (this.From != null && - this.From.Equals(input.From)) - ) && - ( - this.To == input.To || - (this.To != null && - this.To.Equals(input.To)) + this.Ids == input.Ids || + (this.Ids != null && + this.Ids.Equals(input.Ids)) ); } @@ -123,13 +107,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.From != null) - { - hashCode = (hashCode * 59) + this.From.GetHashCode(); - } - if (this.To != null) + if (this.Ids != null) { - hashCode = (hashCode * 59) + this.To.GetHashCode(); + hashCode = (hashCode * 59) + this.Ids.GetHashCode(); } return hashCode; } diff --git a/src/TestIt.Client/Model/TestResultShortGetModel.cs b/src/TestIt.Client/Model/TestResultShortGetModel.cs index 213c6d00..7b7901bc 100644 --- a/src/TestIt.Client/Model/TestResultShortGetModel.cs +++ b/src/TestIt.Client/Model/TestResultShortGetModel.cs @@ -36,8 +36,13 @@ public partial class TestResultShortGetModel : IEquatable /// Gets or Sets Outcome /// - [DataMember(Name = "outcome", EmitDefaultValue = false)] - public TestResultOutcome? Outcome { get; set; } + [DataMember(Name = "outcome", IsRequired = true, EmitDefaultValue = true)] + public TestResultOutcome Outcome { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TestResultShortGetModel() { } /// /// Initializes a new instance of the class. /// @@ -47,22 +52,22 @@ public partial class TestResultShortGetModel : IEquatableUnique ID of test run where test result is located. /// Unique ID of configuration which test result uses. /// Name of configuration which test result uses. - /// outcome. + /// outcome (required). /// Collection of result reasons which test result have. /// Comment to test result. /// Date when test result has been set. /// Time which it took to run the test. /// Collection of links attached to test result. /// Collection of files attached to test result. - public TestResultShortGetModel(Guid id = default(Guid), string name = default(string), long autotestGlobalId = default(long), Guid testRunId = default(Guid), Guid configurationId = default(Guid), string configurationName = default(string), TestResultOutcome? outcome = default(TestResultOutcome?), List resultReasons = default(List), string comment = default(string), DateTime date = default(DateTime), long? duration = default(long?), List links = default(List), List attachments = default(List)) + public TestResultShortGetModel(Guid id = default(Guid), string name = default(string), long autotestGlobalId = default(long), Guid testRunId = default(Guid), Guid configurationId = default(Guid), string configurationName = default(string), TestResultOutcome outcome = default(TestResultOutcome), List resultReasons = default(List), string comment = default(string), DateTime date = default(DateTime), long? duration = default(long?), List links = default(List), List attachments = default(List)) { + this.Outcome = outcome; this.Id = id; this.Name = name; this.AutotestGlobalId = autotestGlobalId; this.TestRunId = testRunId; this.ConfigurationId = configurationId; this.ConfigurationName = configurationName; - this.Outcome = outcome; this.ResultReasons = resultReasons; this.Comment = comment; this.Date = date; diff --git a/src/TestIt.Client/Model/TestRunFillByWorkItemsPostModel.cs b/src/TestIt.Client/Model/TestRunFillByWorkItemsPostModel.cs index d16160c3..485ffb00 100644 --- a/src/TestIt.Client/Model/TestRunFillByWorkItemsPostModel.cs +++ b/src/TestIt.Client/Model/TestRunFillByWorkItemsPostModel.cs @@ -41,13 +41,13 @@ protected TestRunFillByWorkItemsPostModel() { } /// Initializes a new instance of the class. /// /// Specifies the configuration GUIDs, from which test points are created. You can specify several GUIDs. (required). - /// Specifies the work item GUIDs, from which test points are created. You can specify several GUIDs. (required). + /// Specifies the work item GUIDs, from which test points are created. You can specify several GUIDs. (required). /// Specifies the GUID of the project, in which a test run will be created. (required). /// Specifies the GUID of the test plan, within which the test run will be created. (required). /// Specifies the name of the test run.. /// Specifies the test run description.. /// Specifies the test run launch source.. - public TestRunFillByWorkItemsPostModel(List configurationIds = default(List), List workitemIds = default(List), Guid projectId = default(Guid), Guid testPlanId = default(Guid), string name = default(string), string description = default(string), string launchSource = default(string)) + public TestRunFillByWorkItemsPostModel(List configurationIds = default(List), List workItemIds = default(List), Guid projectId = default(Guid), Guid testPlanId = default(Guid), string name = default(string), string description = default(string), string launchSource = default(string)) { // to ensure "configurationIds" is required (not null) if (configurationIds == null) @@ -55,12 +55,12 @@ protected TestRunFillByWorkItemsPostModel() { } throw new ArgumentNullException("configurationIds is a required property for TestRunFillByWorkItemsPostModel and cannot be null"); } this.ConfigurationIds = configurationIds; - // to ensure "workitemIds" is required (not null) - if (workitemIds == null) + // to ensure "workItemIds" is required (not null) + if (workItemIds == null) { - throw new ArgumentNullException("workitemIds is a required property for TestRunFillByWorkItemsPostModel and cannot be null"); + throw new ArgumentNullException("workItemIds is a required property for TestRunFillByWorkItemsPostModel and cannot be null"); } - this.WorkitemIds = workitemIds; + this.WorkItemIds = workItemIds; this.ProjectId = projectId; this.TestPlanId = testPlanId; this.Name = name; @@ -79,8 +79,8 @@ protected TestRunFillByWorkItemsPostModel() { } /// Specifies the work item GUIDs, from which test points are created. You can specify several GUIDs. /// /// Specifies the work item GUIDs, from which test points are created. You can specify several GUIDs. - [DataMember(Name = "workitemIds", IsRequired = true, EmitDefaultValue = true)] - public List WorkitemIds { get; set; } + [DataMember(Name = "workItemIds", IsRequired = true, EmitDefaultValue = true)] + public List WorkItemIds { get; set; } /// /// Specifies the GUID of the project, in which a test run will be created. @@ -126,7 +126,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class TestRunFillByWorkItemsPostModel {\n"); sb.Append(" ConfigurationIds: ").Append(ConfigurationIds).Append("\n"); - sb.Append(" WorkitemIds: ").Append(WorkitemIds).Append("\n"); + sb.Append(" WorkItemIds: ").Append(WorkItemIds).Append("\n"); sb.Append(" ProjectId: ").Append(ProjectId).Append("\n"); sb.Append(" TestPlanId: ").Append(TestPlanId).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); @@ -174,10 +174,10 @@ public bool Equals(TestRunFillByWorkItemsPostModel input) this.ConfigurationIds.SequenceEqual(input.ConfigurationIds) ) && ( - this.WorkitemIds == input.WorkitemIds || - this.WorkitemIds != null && - input.WorkitemIds != null && - this.WorkitemIds.SequenceEqual(input.WorkitemIds) + this.WorkItemIds == input.WorkItemIds || + this.WorkItemIds != null && + input.WorkItemIds != null && + this.WorkItemIds.SequenceEqual(input.WorkItemIds) ) && ( this.ProjectId == input.ProjectId || @@ -219,9 +219,9 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ConfigurationIds.GetHashCode(); } - if (this.WorkitemIds != null) + if (this.WorkItemIds != null) { - hashCode = (hashCode * 59) + this.WorkitemIds.GetHashCode(); + hashCode = (hashCode * 59) + this.WorkItemIds.GetHashCode(); } if (this.ProjectId != null) { diff --git a/src/TestIt.Client/Model/TestRunModel.cs b/src/TestIt.Client/Model/TestRunModel.cs index 07de5650..8980835a 100644 --- a/src/TestIt.Client/Model/TestRunModel.cs +++ b/src/TestIt.Client/Model/TestRunModel.cs @@ -36,8 +36,13 @@ public partial class TestRunModel : IEquatable, IValidatableObject /// /// Gets or Sets StateName /// - [DataMember(Name = "stateName", EmitDefaultValue = false)] - public TestRunState? StateName { get; set; } + [DataMember(Name = "stateName", IsRequired = true, EmitDefaultValue = true)] + public TestRunState StateName { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TestRunModel() { } /// /// Initializes a new instance of the class. /// @@ -57,7 +62,7 @@ public partial class TestRunModel : IEquatable, IValidatableObject /// completedDate. /// build. /// description. - /// stateName. + /// stateName (required). /// projectId. /// testPlanId. /// runByUserId. @@ -66,8 +71,9 @@ public partial class TestRunModel : IEquatable, IValidatableObject /// launchSource. /// Unique ID of the entity. /// Indicates if the entity is deleted. - public TestRunModel(List autoTests = default(List), int autoTestsCount = default(int), List testSuiteIds = default(List), bool isAutomated = default(bool), TestRunAnalyticResultModel analytic = default(TestRunAnalyticResultModel), List testResults = default(List), TestPlanModel testPlan = default(TestPlanModel), DateTime createdDate = default(DateTime), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), string createdByUserName = default(string), DateTime? startedDate = default(DateTime?), DateTime? completedDate = default(DateTime?), string build = default(string), string description = default(string), TestRunState? stateName = default(TestRunState?), Guid projectId = default(Guid), Guid? testPlanId = default(Guid?), Guid? runByUserId = default(Guid?), Guid? stoppedByUserId = default(Guid?), string name = default(string), string launchSource = default(string), Guid id = default(Guid), bool isDeleted = default(bool)) + public TestRunModel(List autoTests = default(List), int autoTestsCount = default(int), List testSuiteIds = default(List), bool isAutomated = default(bool), TestRunAnalyticResultModel analytic = default(TestRunAnalyticResultModel), List testResults = default(List), TestPlanModel testPlan = default(TestPlanModel), DateTime createdDate = default(DateTime), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), string createdByUserName = default(string), DateTime? startedDate = default(DateTime?), DateTime? completedDate = default(DateTime?), string build = default(string), string description = default(string), TestRunState stateName = default(TestRunState), Guid projectId = default(Guid), Guid? testPlanId = default(Guid?), Guid? runByUserId = default(Guid?), Guid? stoppedByUserId = default(Guid?), string name = default(string), string launchSource = default(string), Guid id = default(Guid), bool isDeleted = default(bool)) { + this.StateName = stateName; this.AutoTests = autoTests; this.AutoTestsCount = autoTestsCount; this.TestSuiteIds = testSuiteIds; @@ -84,7 +90,6 @@ public partial class TestRunModel : IEquatable, IValidatableObject this.CompletedDate = completedDate; this.Build = build; this.Description = description; - this.StateName = stateName; this.ProjectId = projectId; this.TestPlanId = testPlanId; this.RunByUserId = runByUserId; diff --git a/src/TestIt.Client/Model/TestRunShortGetModel.cs b/src/TestIt.Client/Model/TestRunShortGetModel.cs index c5dee6c7..e18bd97a 100644 --- a/src/TestIt.Client/Model/TestRunShortGetModel.cs +++ b/src/TestIt.Client/Model/TestRunShortGetModel.cs @@ -36,8 +36,13 @@ public partial class TestRunShortGetModel : IEquatable, IV /// /// Gets or Sets State /// - [DataMember(Name = "state", EmitDefaultValue = false)] - public TestRunState? State { get; set; } + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public TestRunState State { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TestRunShortGetModel() { } /// /// Initializes a new instance of the class. /// @@ -49,12 +54,19 @@ public partial class TestRunShortGetModel : IEquatable, IV /// Date when the test run was modified last time. /// Unique ID of user who modified the test run last time. /// Is the test run is deleted. - /// state. + /// state (required). /// Date when the test run was started. /// Number of autotests run in the test run. - /// statistics. - public TestRunShortGetModel(Guid id = default(Guid), string name = default(string), Guid projectId = default(Guid), DateTime createdDate = default(DateTime), Guid createdById = default(Guid), DateTime? modifiedDate = default(DateTime?), Guid? modifiedById = default(Guid?), bool isDeleted = default(bool), TestRunState? state = default(TestRunState?), DateTime? startedDate = default(DateTime?), int autotestsCount = default(int), TestResultsStatisticsGetModel statistics = default(TestResultsStatisticsGetModel)) + /// statistics (required). + public TestRunShortGetModel(Guid id = default(Guid), string name = default(string), Guid projectId = default(Guid), DateTime createdDate = default(DateTime), Guid createdById = default(Guid), DateTime? modifiedDate = default(DateTime?), Guid? modifiedById = default(Guid?), bool isDeleted = default(bool), TestRunState state = default(TestRunState), DateTime? startedDate = default(DateTime?), int autotestsCount = default(int), TestResultsStatisticsGetModel statistics = default(TestResultsStatisticsGetModel)) { + this.State = state; + // to ensure "statistics" is required (not null) + if (statistics == null) + { + throw new ArgumentNullException("statistics is a required property for TestRunShortGetModel and cannot be null"); + } + this.Statistics = statistics; this.Id = id; this.Name = name; this.ProjectId = projectId; @@ -63,10 +75,8 @@ public partial class TestRunShortGetModel : IEquatable, IV this.ModifiedDate = modifiedDate; this.ModifiedById = modifiedById; this.IsDeleted = isDeleted; - this.State = state; this.StartedDate = startedDate; this.AutotestsCount = autotestsCount; - this.Statistics = statistics; } /// @@ -142,7 +152,7 @@ public partial class TestRunShortGetModel : IEquatable, IV /// /// Gets or Sets Statistics /// - [DataMember(Name = "statistics", EmitDefaultValue = false)] + [DataMember(Name = "statistics", IsRequired = true, EmitDefaultValue = true)] public TestResultsStatisticsGetModel Statistics { get; set; } /// diff --git a/src/TestIt.Client/Model/TestRunShortModel.cs b/src/TestIt.Client/Model/TestRunShortModel.cs index 69b6e12b..ba3b0b56 100644 --- a/src/TestIt.Client/Model/TestRunShortModel.cs +++ b/src/TestIt.Client/Model/TestRunShortModel.cs @@ -36,19 +36,24 @@ public partial class TestRunShortModel : IEquatable, IValidat /// /// Gets or Sets StateName /// - [DataMember(Name = "stateName", EmitDefaultValue = false)] - public TestRunState? StateName { get; set; } + [DataMember(Name = "stateName", IsRequired = true, EmitDefaultValue = true)] + public TestRunState StateName { get; set; } /// /// Initializes a new instance of the class. /// - /// stateName. + [JsonConstructorAttribute] + protected TestRunShortModel() { } + /// + /// Initializes a new instance of the class. + /// + /// stateName (required). /// projectId. /// testPlanId. /// name. /// description. /// Unique ID of the entity. /// Indicates if the entity is deleted. - public TestRunShortModel(TestRunState? stateName = default(TestRunState?), Guid projectId = default(Guid), Guid? testPlanId = default(Guid?), string name = default(string), string description = default(string), Guid id = default(Guid), bool isDeleted = default(bool)) + public TestRunShortModel(TestRunState stateName = default(TestRunState), Guid projectId = default(Guid), Guid? testPlanId = default(Guid?), string name = default(string), string description = default(string), Guid id = default(Guid), bool isDeleted = default(bool)) { this.StateName = stateName; this.ProjectId = projectId; diff --git a/src/TestIt.Client/Model/TestRunV2GetModel.cs b/src/TestIt.Client/Model/TestRunV2GetModel.cs index c26b8642..91322b97 100644 --- a/src/TestIt.Client/Model/TestRunV2GetModel.cs +++ b/src/TestIt.Client/Model/TestRunV2GetModel.cs @@ -36,8 +36,8 @@ public partial class TestRunV2GetModel : IEquatable, IValidat /// /// Gets or Sets StateName /// - [DataMember(Name = "stateName", EmitDefaultValue = false)] - public TestRunState? StateName { get; set; } + [DataMember(Name = "stateName", IsRequired = true, EmitDefaultValue = true)] + public TestRunState StateName { get; set; } /// /// Initializes a new instance of the class. /// @@ -48,7 +48,7 @@ protected TestRunV2GetModel() { } /// /// startedOn. /// completedOn. - /// stateName. + /// stateName (required). /// This property is used to link test run with project. /// This property is used to link test run with test plan. /// testResults. @@ -61,8 +61,9 @@ protected TestRunV2GetModel() { } /// name (required). /// description. /// Once launch source is specified it cannot be updated. - public TestRunV2GetModel(DateTime? startedOn = default(DateTime?), DateTime? completedOn = default(DateTime?), TestRunState? stateName = default(TestRunState?), Guid projectId = default(Guid), Guid? testPlanId = default(Guid?), List testResults = default(List), DateTime createdDate = default(DateTime), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), string createdByUserName = default(string), Guid id = default(Guid), string name = default(string), string description = default(string), string launchSource = default(string)) + public TestRunV2GetModel(DateTime? startedOn = default(DateTime?), DateTime? completedOn = default(DateTime?), TestRunState stateName = default(TestRunState), Guid projectId = default(Guid), Guid? testPlanId = default(Guid?), List testResults = default(List), DateTime createdDate = default(DateTime), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), string createdByUserName = default(string), Guid id = default(Guid), string name = default(string), string description = default(string), string launchSource = default(string)) { + this.StateName = stateName; this.Id = id; // to ensure "name" is required (not null) if (name == null) @@ -72,7 +73,6 @@ protected TestRunV2GetModel() { } this.Name = name; this.StartedOn = startedOn; this.CompletedOn = completedOn; - this.StateName = stateName; this.ProjectId = projectId; this.TestPlanId = testPlanId; this.TestResults = testResults; @@ -384,6 +384,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/TestRunV2PutModel.cs b/src/TestIt.Client/Model/TestRunV2PutModel.cs index 888eb87c..4cfc06dc 100644 --- a/src/TestIt.Client/Model/TestRunV2PutModel.cs +++ b/src/TestIt.Client/Model/TestRunV2PutModel.cs @@ -187,6 +187,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/TestSuiteType.cs b/src/TestIt.Client/Model/TestSuiteType.cs new file mode 100644 index 00000000..d9451b61 --- /dev/null +++ b/src/TestIt.Client/Model/TestSuiteType.cs @@ -0,0 +1,49 @@ +/* + * API + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v2.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = TestIt.Client.Client.FileParameter; +using OpenAPIDateConverter = TestIt.Client.Client.OpenAPIDateConverter; + +namespace TestIt.Client.Model +{ + /// + /// Defines TestSuiteType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TestSuiteType + { + /// + /// Enum Custom for value: Custom + /// + [EnumMember(Value = "Custom")] + Custom = 1, + + /// + /// Enum Dynamic for value: Dynamic + /// + [EnumMember(Value = "Dynamic")] + Dynamic = 2 + + } + +} diff --git a/src/TestIt.Client/Model/TestSuiteV2GetModel.cs b/src/TestIt.Client/Model/TestSuiteV2GetModel.cs index 8c53cde3..cc2bad09 100644 --- a/src/TestIt.Client/Model/TestSuiteV2GetModel.cs +++ b/src/TestIt.Client/Model/TestSuiteV2GetModel.cs @@ -32,6 +32,12 @@ namespace TestIt.Client.Model [DataContract(Name = "TestSuiteV2GetModel")] public partial class TestSuiteV2GetModel : IEquatable, IValidatableObject { + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public TestSuiteType? Type { get; set; } /// /// Initializes a new instance of the class. /// @@ -44,7 +50,9 @@ protected TestSuiteV2GetModel() { } /// parentId. /// testPlanId (required). /// name (required). - public TestSuiteV2GetModel(Guid id = default(Guid), Guid? parentId = default(Guid?), Guid testPlanId = default(Guid), string name = default(string)) + /// type. + /// saveStructure. + public TestSuiteV2GetModel(Guid id = default(Guid), Guid? parentId = default(Guid?), Guid testPlanId = default(Guid), string name = default(string), TestSuiteType? type = default(TestSuiteType?), bool? saveStructure = default(bool?)) { this.TestPlanId = testPlanId; // to ensure "name" is required (not null) @@ -55,6 +63,8 @@ protected TestSuiteV2GetModel() { } this.Name = name; this.Id = id; this.ParentId = parentId; + this.Type = type; + this.SaveStructure = saveStructure; } /// @@ -81,6 +91,12 @@ protected TestSuiteV2GetModel() { } [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// + /// Gets or Sets SaveStructure + /// + [DataMember(Name = "saveStructure", EmitDefaultValue = true)] + public bool? SaveStructure { get; set; } + /// /// Returns the string presentation of the object /// @@ -93,6 +109,8 @@ public override string ToString() sb.Append(" ParentId: ").Append(ParentId).Append("\n"); sb.Append(" TestPlanId: ").Append(TestPlanId).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" SaveStructure: ").Append(SaveStructure).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -147,6 +165,15 @@ public bool Equals(TestSuiteV2GetModel input) this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.SaveStructure == input.SaveStructure || + (this.SaveStructure != null && + this.SaveStructure.Equals(input.SaveStructure)) ); } @@ -175,6 +202,11 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + if (this.SaveStructure != null) + { + hashCode = (hashCode * 59) + this.SaveStructure.GetHashCode(); + } return hashCode; } } diff --git a/src/TestIt.Client/Model/TestSuiteV2PostModel.cs b/src/TestIt.Client/Model/TestSuiteV2PostModel.cs index ac682513..968f46f2 100644 --- a/src/TestIt.Client/Model/TestSuiteV2PostModel.cs +++ b/src/TestIt.Client/Model/TestSuiteV2PostModel.cs @@ -32,6 +32,12 @@ namespace TestIt.Client.Model [DataContract(Name = "TestSuiteV2PostModel")] public partial class TestSuiteV2PostModel : IEquatable, IValidatableObject { + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public TestSuiteType? Type { get; set; } /// /// Initializes a new instance of the class. /// @@ -43,7 +49,9 @@ protected TestSuiteV2PostModel() { } /// parentId. /// testPlanId (required). /// name (required). - public TestSuiteV2PostModel(Guid? parentId = default(Guid?), Guid testPlanId = default(Guid), string name = default(string)) + /// type. + /// saveStructure. + public TestSuiteV2PostModel(Guid? parentId = default(Guid?), Guid testPlanId = default(Guid), string name = default(string), TestSuiteType? type = default(TestSuiteType?), bool? saveStructure = default(bool?)) { this.TestPlanId = testPlanId; // to ensure "name" is required (not null) @@ -53,6 +61,8 @@ protected TestSuiteV2PostModel() { } } this.Name = name; this.ParentId = parentId; + this.Type = type; + this.SaveStructure = saveStructure; } /// @@ -73,6 +83,12 @@ protected TestSuiteV2PostModel() { } [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// + /// Gets or Sets SaveStructure + /// + [DataMember(Name = "saveStructure", EmitDefaultValue = true)] + public bool? SaveStructure { get; set; } + /// /// Returns the string presentation of the object /// @@ -84,6 +100,8 @@ public override string ToString() sb.Append(" ParentId: ").Append(ParentId).Append("\n"); sb.Append(" TestPlanId: ").Append(TestPlanId).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" SaveStructure: ").Append(SaveStructure).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -133,6 +151,15 @@ public bool Equals(TestSuiteV2PostModel input) this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.SaveStructure == input.SaveStructure || + (this.SaveStructure != null && + this.SaveStructure.Equals(input.SaveStructure)) ); } @@ -157,6 +184,11 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + if (this.SaveStructure != null) + { + hashCode = (hashCode * 59) + this.SaveStructure.GetHashCode(); + } return hashCode; } } diff --git a/src/TestIt.Client/Model/TestSuiteV2PutModel.cs b/src/TestIt.Client/Model/TestSuiteV2PutModel.cs index c6eded90..d7e0f028 100644 --- a/src/TestIt.Client/Model/TestSuiteV2PutModel.cs +++ b/src/TestIt.Client/Model/TestSuiteV2PutModel.cs @@ -43,7 +43,8 @@ protected TestSuiteV2PutModel() { } /// id (required). /// parentId. /// name (required). - public TestSuiteV2PutModel(Guid id = default(Guid), Guid? parentId = default(Guid?), string name = default(string)) + /// isDeleted. + public TestSuiteV2PutModel(Guid id = default(Guid), Guid? parentId = default(Guid?), string name = default(string), bool isDeleted = default(bool)) { this.Id = id; // to ensure "name" is required (not null) @@ -53,6 +54,7 @@ protected TestSuiteV2PutModel() { } } this.Name = name; this.ParentId = parentId; + this.IsDeleted = isDeleted; } /// @@ -73,6 +75,12 @@ protected TestSuiteV2PutModel() { } [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// + /// Gets or Sets IsDeleted + /// + [DataMember(Name = "isDeleted", EmitDefaultValue = true)] + public bool IsDeleted { get; set; } + /// /// Returns the string presentation of the object /// @@ -84,6 +92,7 @@ public override string ToString() sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" ParentId: ").Append(ParentId).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" IsDeleted: ").Append(IsDeleted).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -133,6 +142,10 @@ public bool Equals(TestSuiteV2PutModel input) this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) + ) && + ( + this.IsDeleted == input.IsDeleted || + this.IsDeleted.Equals(input.IsDeleted) ); } @@ -157,6 +170,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } + hashCode = (hashCode * 59) + this.IsDeleted.GetHashCode(); return hashCode; } } diff --git a/src/TestIt.Client/Model/TestSuiteV2TreeModel.cs b/src/TestIt.Client/Model/TestSuiteV2TreeModel.cs index d1ccb6ab..988087f1 100644 --- a/src/TestIt.Client/Model/TestSuiteV2TreeModel.cs +++ b/src/TestIt.Client/Model/TestSuiteV2TreeModel.cs @@ -32,6 +32,12 @@ namespace TestIt.Client.Model [DataContract(Name = "TestSuiteV2TreeModel")] public partial class TestSuiteV2TreeModel : IEquatable, IValidatableObject { + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public TestSuiteType? Type { get; set; } /// /// Initializes a new instance of the class. /// @@ -45,7 +51,9 @@ protected TestSuiteV2TreeModel() { } /// parentId. /// testPlanId (required). /// name (required). - public TestSuiteV2TreeModel(List children = default(List), Guid id = default(Guid), Guid? parentId = default(Guid?), Guid testPlanId = default(Guid), string name = default(string)) + /// type. + /// saveStructure. + public TestSuiteV2TreeModel(List children = default(List), Guid id = default(Guid), Guid? parentId = default(Guid?), Guid testPlanId = default(Guid), string name = default(string), TestSuiteType? type = default(TestSuiteType?), bool? saveStructure = default(bool?)) { this.TestPlanId = testPlanId; // to ensure "name" is required (not null) @@ -57,6 +65,8 @@ protected TestSuiteV2TreeModel() { } this.Children = children; this.Id = id; this.ParentId = parentId; + this.Type = type; + this.SaveStructure = saveStructure; } /// @@ -91,6 +101,12 @@ protected TestSuiteV2TreeModel() { } [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// + /// Gets or Sets SaveStructure + /// + [DataMember(Name = "saveStructure", EmitDefaultValue = true)] + public bool? SaveStructure { get; set; } + /// /// Returns the string presentation of the object /// @@ -104,6 +120,8 @@ public override string ToString() sb.Append(" ParentId: ").Append(ParentId).Append("\n"); sb.Append(" TestPlanId: ").Append(TestPlanId).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" SaveStructure: ").Append(SaveStructure).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -164,6 +182,15 @@ public bool Equals(TestSuiteV2TreeModel input) this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) + ) && + ( + this.SaveStructure == input.SaveStructure || + (this.SaveStructure != null && + this.SaveStructure.Equals(input.SaveStructure)) ); } @@ -196,6 +223,11 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + if (this.SaveStructure != null) + { + hashCode = (hashCode * 59) + this.SaveStructure.GetHashCode(); + } return hashCode; } } diff --git a/src/TestIt.Client/Model/WebHookLogModel.cs b/src/TestIt.Client/Model/WebHookLogModel.cs index 6e90040d..d995fea0 100644 --- a/src/TestIt.Client/Model/WebHookLogModel.cs +++ b/src/TestIt.Client/Model/WebHookLogModel.cs @@ -36,19 +36,24 @@ public partial class WebHookLogModel : IEquatable, IValidatable /// /// Gets or Sets EventType /// - [DataMember(Name = "eventType", EmitDefaultValue = false)] - public WebHookEventTypeModel? EventType { get; set; } + [DataMember(Name = "eventType", IsRequired = true, EmitDefaultValue = true)] + public WebHookEventTypeModel EventType { get; set; } /// /// Gets or Sets RequestType /// - [DataMember(Name = "requestType", EmitDefaultValue = false)] - public RequestTypeModel? RequestType { get; set; } + [DataMember(Name = "requestType", IsRequired = true, EmitDefaultValue = true)] + public RequestTypeModel RequestType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebHookLogModel() { } /// /// Initializes a new instance of the class. /// /// webHookName. - /// eventType. + /// eventType (required). /// webHookId. /// requestBody. /// requestMeta. @@ -57,17 +62,18 @@ public partial class WebHookLogModel : IEquatable, IValidatable /// responseMeta. /// projectId. /// url. - /// requestType. + /// requestType (required). /// createdDate. /// modifiedDate. /// createdById. /// modifiedById. /// Unique ID of the entity. /// Indicates if the entity is deleted. - public WebHookLogModel(string webHookName = default(string), WebHookEventTypeModel? eventType = default(WebHookEventTypeModel?), Guid webHookId = default(Guid), string requestBody = default(string), string requestMeta = default(string), int responseStatusCode = default(int), string responseBody = default(string), string responseMeta = default(string), Guid projectId = default(Guid), string url = default(string), RequestTypeModel? requestType = default(RequestTypeModel?), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), Guid id = default(Guid), bool isDeleted = default(bool)) + public WebHookLogModel(string webHookName = default(string), WebHookEventTypeModel eventType = default(WebHookEventTypeModel), Guid webHookId = default(Guid), string requestBody = default(string), string requestMeta = default(string), int responseStatusCode = default(int), string responseBody = default(string), string responseMeta = default(string), Guid projectId = default(Guid), string url = default(string), RequestTypeModel requestType = default(RequestTypeModel), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), Guid id = default(Guid), bool isDeleted = default(bool)) { - this.WebHookName = webHookName; this.EventType = eventType; + this.RequestType = requestType; + this.WebHookName = webHookName; this.WebHookId = webHookId; this.RequestBody = requestBody; this.RequestMeta = requestMeta; @@ -76,7 +82,6 @@ public partial class WebHookLogModel : IEquatable, IValidatable this.ResponseMeta = responseMeta; this.ProjectId = projectId; this.Url = url; - this.RequestType = requestType; this.CreatedDate = createdDate; this.ModifiedDate = modifiedDate; this.CreatedById = createdById; diff --git a/src/TestIt.Client/Model/WebHookModel.cs b/src/TestIt.Client/Model/WebHookModel.cs index ad69b901..f2c3b2b5 100644 --- a/src/TestIt.Client/Model/WebHookModel.cs +++ b/src/TestIt.Client/Model/WebHookModel.cs @@ -36,22 +36,27 @@ public partial class WebHookModel : IEquatable, IValidatableObject /// /// Gets or Sets EventType /// - [DataMember(Name = "eventType", EmitDefaultValue = false)] - public WebHookEventTypeModel? EventType { get; set; } + [DataMember(Name = "eventType", IsRequired = true, EmitDefaultValue = true)] + public WebHookEventTypeModel EventType { get; set; } /// /// Gets or Sets RequestType /// - [DataMember(Name = "requestType", EmitDefaultValue = false)] - public RequestTypeModel? RequestType { get; set; } + [DataMember(Name = "requestType", IsRequired = true, EmitDefaultValue = true)] + public RequestTypeModel RequestType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected WebHookModel() { } /// /// Initializes a new instance of the class. /// /// Name of the webhook. - /// eventType. + /// eventType (required). /// Description of the webhook. /// Url to which the webhook sends request. - /// requestType. + /// requestType (required). /// Indicates if the webhook sends body. /// Collection of headers which the webhook sends. /// Collection of query parameters which the webhook sends. @@ -68,13 +73,13 @@ public partial class WebHookModel : IEquatable, IValidatableObject /// Unique ID of project where the webhook is located. /// Unique ID of the entity. /// Indicates if the entity is deleted. - public WebHookModel(string name = default(string), WebHookEventTypeModel? eventType = default(WebHookEventTypeModel?), string description = default(string), string url = default(string), RequestTypeModel? requestType = default(RequestTypeModel?), bool shouldSendBody = default(bool), Dictionary headers = default(Dictionary), Dictionary queryParameters = default(Dictionary), bool isEnabled = default(bool), bool shouldSendCustomBody = default(bool), string customBody = default(string), string customBodyMediaType = default(string), bool shouldReplaceParameters = default(bool), bool shouldEscapeParameters = default(bool), DateTime createdDate = default(DateTime), Guid createdById = default(Guid), DateTime? modifiedDate = default(DateTime?), Guid? modifiedById = default(Guid?), Guid projectId = default(Guid), Guid id = default(Guid), bool isDeleted = default(bool)) + public WebHookModel(string name = default(string), WebHookEventTypeModel eventType = default(WebHookEventTypeModel), string description = default(string), string url = default(string), RequestTypeModel requestType = default(RequestTypeModel), bool shouldSendBody = default(bool), Dictionary headers = default(Dictionary), Dictionary queryParameters = default(Dictionary), bool isEnabled = default(bool), bool shouldSendCustomBody = default(bool), string customBody = default(string), string customBodyMediaType = default(string), bool shouldReplaceParameters = default(bool), bool shouldEscapeParameters = default(bool), DateTime createdDate = default(DateTime), Guid createdById = default(Guid), DateTime? modifiedDate = default(DateTime?), Guid? modifiedById = default(Guid?), Guid projectId = default(Guid), Guid id = default(Guid), bool isDeleted = default(bool)) { - this.Name = name; this.EventType = eventType; + this.RequestType = requestType; + this.Name = name; this.Description = description; this.Url = url; - this.RequestType = requestType; this.ShouldSendBody = shouldSendBody; this.Headers = headers; this.QueryParameters = queryParameters; diff --git a/src/TestIt.Client/Model/WebHookPostModel.cs b/src/TestIt.Client/Model/WebHookPostModel.cs index 833e1b56..7d433e79 100644 --- a/src/TestIt.Client/Model/WebHookPostModel.cs +++ b/src/TestIt.Client/Model/WebHookPostModel.cs @@ -357,6 +357,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Url (string) minLength + if (this.Url != null && this.Url.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Url, length must be greater than 1.", new [] { "Url" }); + } + // Name (string) maxLength if (this.Name != null && this.Name.Length > 255) { diff --git a/src/TestIt.Client/Model/WorkItemIdModel.cs b/src/TestIt.Client/Model/WorkItemIdModel.cs index be543fdd..b8a5540f 100644 --- a/src/TestIt.Client/Model/WorkItemIdModel.cs +++ b/src/TestIt.Client/Model/WorkItemIdModel.cs @@ -35,9 +35,19 @@ public partial class WorkItemIdModel : IEquatable, IValidatable /// /// Initializes a new instance of the class. /// - /// Used for search WorkItem. Internal identifier has a Guid data format. Global identifier has an integer data format. + [JsonConstructorAttribute] + protected WorkItemIdModel() { } + /// + /// Initializes a new instance of the class. + /// + /// Used for search WorkItem. Internal identifier has a Guid data format. Global identifier has an integer data format (required). public WorkItemIdModel(string id = default(string)) { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for WorkItemIdModel and cannot be null"); + } this.Id = id; } @@ -45,7 +55,7 @@ public partial class WorkItemIdModel : IEquatable, IValidatable /// Used for search WorkItem. Internal identifier has a Guid data format. Global identifier has an integer data format /// /// Used for search WorkItem. Internal identifier has a Guid data format. Global identifier has an integer data format - [DataMember(Name = "id", EmitDefaultValue = true)] + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } /// @@ -123,6 +133,12 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Id (string) minLength + if (this.Id != null && this.Id.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than 1.", new [] { "Id" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/WorkItemModel.cs b/src/TestIt.Client/Model/WorkItemModel.cs index e83656d8..b42d3d17 100644 --- a/src/TestIt.Client/Model/WorkItemModel.cs +++ b/src/TestIt.Client/Model/WorkItemModel.cs @@ -75,7 +75,7 @@ protected WorkItemModel() { } /// createdById. /// modifiedById. /// globalId. - /// id. + /// id (required). /// sectionId. /// description. /// state (required). @@ -91,6 +91,7 @@ protected WorkItemModel() { } public WorkItemModel(Guid versionId = default(Guid), long medianDuration = default(long), bool isDeleted = default(bool), Guid projectId = default(Guid), WorkItemEntityTypes entityTypeName = default(WorkItemEntityTypes), bool isAutomated = default(bool), List autoTests = default(List), List attachments = default(List), List sectionPreconditionSteps = default(List), List sectionPostconditionSteps = default(List), int versionNumber = default(int), List iterations = default(List), DateTime createdDate = default(DateTime), DateTime? modifiedDate = default(DateTime?), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), long globalId = default(long), Guid id = default(Guid), Guid sectionId = default(Guid), string description = default(string), WorkItemStates state = default(WorkItemStates), WorkItemPriorityModel priority = default(WorkItemPriorityModel), List steps = default(List), List preconditionSteps = default(List), List postconditionSteps = default(List), int duration = default(int), Dictionary attributes = default(Dictionary), List tags = default(List), List links = default(List), string name = default(string)) { this.EntityTypeName = entityTypeName; + this.Id = id; this.State = state; this.Priority = priority; // to ensure "steps" is required (not null) @@ -151,7 +152,6 @@ protected WorkItemModel() { } this.CreatedById = createdById; this.ModifiedById = modifiedById; this.GlobalId = globalId; - this.Id = id; this.SectionId = sectionId; this.Description = description; this.Duration = duration; @@ -259,7 +259,7 @@ protected WorkItemModel() { } /// /// Gets or Sets Id /// - [DataMember(Name = "id", EmitDefaultValue = false)] + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public Guid Id { get; set; } /// @@ -674,6 +674,12 @@ public override int GetHashCode() yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Duration, must be a value greater than or equal to 0.", new [] { "Duration" }); } + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/WorkItemPostModel.cs b/src/TestIt.Client/Model/WorkItemPostModel.cs index cf085fde..c804284b 100644 --- a/src/TestIt.Client/Model/WorkItemPostModel.cs +++ b/src/TestIt.Client/Model/WorkItemPostModel.cs @@ -457,6 +457,12 @@ public override int GetHashCode() yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Duration, must be a value greater than or equal to 0.", new [] { "Duration" }); } + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/WorkItemPutModel.cs b/src/TestIt.Client/Model/WorkItemPutModel.cs index 9e2b882f..c22f4360 100644 --- a/src/TestIt.Client/Model/WorkItemPutModel.cs +++ b/src/TestIt.Client/Model/WorkItemPutModel.cs @@ -55,7 +55,7 @@ protected WorkItemPutModel() { } /// attachments (required). /// iterations. /// autoTests. - /// id. + /// id (required). /// sectionId. /// description. /// state (required). @@ -76,6 +76,7 @@ protected WorkItemPutModel() { } throw new ArgumentNullException("attachments is a required property for WorkItemPutModel and cannot be null"); } this.Attachments = attachments; + this.Id = id; this.State = state; this.Priority = priority; // to ensure "steps" is required (not null) @@ -122,7 +123,6 @@ protected WorkItemPutModel() { } this.Name = name; this.Iterations = iterations; this.AutoTests = autoTests; - this.Id = id; this.SectionId = sectionId; this.Description = description; this.Duration = duration; @@ -149,7 +149,7 @@ protected WorkItemPutModel() { } /// /// Gets or Sets Id /// - [DataMember(Name = "id", EmitDefaultValue = false)] + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public Guid Id { get; set; } /// @@ -446,6 +446,12 @@ public override int GetHashCode() yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Duration, must be a value greater than or equal to 0.", new [] { "Duration" }); } + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/TestIt.Client/Model/WorkItemShortModel.cs b/src/TestIt.Client/Model/WorkItemShortModel.cs index e578cc69..02505ee5 100644 --- a/src/TestIt.Client/Model/WorkItemShortModel.cs +++ b/src/TestIt.Client/Model/WorkItemShortModel.cs @@ -58,6 +58,7 @@ protected WorkItemShortModel() { } /// Property can have one of these values: CheckLists, SharedSteps, TestCases (required). /// This property is used to link autotest with project (required). /// This property links workitem with section (required). + /// Name of the section where work item is located (required). /// isAutomated. /// globalId. /// duration. @@ -71,7 +72,7 @@ protected WorkItemShortModel() { } /// isDeleted. /// tagNames. /// iterations. - public WorkItemShortModel(Guid id = default(Guid), Guid versionId = default(Guid), string name = default(string), string entityTypeName = default(string), Guid projectId = default(Guid), Guid sectionId = default(Guid), bool isAutomated = default(bool), long globalId = default(long), int duration = default(int), Dictionary attributes = default(Dictionary), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), WorkItemStates state = default(WorkItemStates), WorkItemPriorityModel priority = default(WorkItemPriorityModel), bool isDeleted = default(bool), List tagNames = default(List), List iterations = default(List)) + public WorkItemShortModel(Guid id = default(Guid), Guid versionId = default(Guid), string name = default(string), string entityTypeName = default(string), Guid projectId = default(Guid), Guid sectionId = default(Guid), string sectionName = default(string), bool isAutomated = default(bool), long globalId = default(long), int duration = default(int), Dictionary attributes = default(Dictionary), Guid createdById = default(Guid), Guid? modifiedById = default(Guid?), DateTime? createdDate = default(DateTime?), DateTime? modifiedDate = default(DateTime?), WorkItemStates state = default(WorkItemStates), WorkItemPriorityModel priority = default(WorkItemPriorityModel), bool isDeleted = default(bool), List tagNames = default(List), List iterations = default(List)) { // to ensure "name" is required (not null) if (name == null) @@ -87,6 +88,12 @@ protected WorkItemShortModel() { } this.EntityTypeName = entityTypeName; this.ProjectId = projectId; this.SectionId = sectionId; + // to ensure "sectionName" is required (not null) + if (sectionName == null) + { + throw new ArgumentNullException("sectionName is a required property for WorkItemShortModel and cannot be null"); + } + this.SectionName = sectionName; this.State = state; this.Priority = priority; this.Id = id; @@ -144,6 +151,13 @@ protected WorkItemShortModel() { } [DataMember(Name = "sectionId", IsRequired = true, EmitDefaultValue = true)] public Guid SectionId { get; set; } + /// + /// Name of the section where work item is located + /// + /// Name of the section where work item is located + [DataMember(Name = "sectionName", IsRequired = true, EmitDefaultValue = true)] + public string SectionName { get; set; } + /// /// Gets or Sets IsAutomated /// @@ -224,6 +238,7 @@ public override string ToString() sb.Append(" EntityTypeName: ").Append(EntityTypeName).Append("\n"); sb.Append(" ProjectId: ").Append(ProjectId).Append("\n"); sb.Append(" SectionId: ").Append(SectionId).Append("\n"); + sb.Append(" SectionName: ").Append(SectionName).Append("\n"); sb.Append(" IsAutomated: ").Append(IsAutomated).Append("\n"); sb.Append(" GlobalId: ").Append(GlobalId).Append("\n"); sb.Append(" Duration: ").Append(Duration).Append("\n"); @@ -302,6 +317,11 @@ public bool Equals(WorkItemShortModel input) (this.SectionId != null && this.SectionId.Equals(input.SectionId)) ) && + ( + this.SectionName == input.SectionName || + (this.SectionName != null && + this.SectionName.Equals(input.SectionName)) + ) && ( this.IsAutomated == input.IsAutomated || this.IsAutomated.Equals(input.IsAutomated) @@ -399,6 +419,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SectionId.GetHashCode(); } + if (this.SectionName != null) + { + hashCode = (hashCode * 59) + this.SectionName.GetHashCode(); + } hashCode = (hashCode * 59) + this.IsAutomated.GetHashCode(); hashCode = (hashCode * 59) + this.GlobalId.GetHashCode(); hashCode = (hashCode * 59) + this.Duration.GetHashCode(); @@ -444,6 +468,24 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + + // EntityTypeName (string) minLength + if (this.EntityTypeName != null && this.EntityTypeName.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for EntityTypeName, length must be greater than 1.", new [] { "EntityTypeName" }); + } + + // SectionName (string) minLength + if (this.SectionName != null && this.SectionName.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for SectionName, length must be greater than 1.", new [] { "SectionName" }); + } + yield break; } }