diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 516dc31..0000000 --- a/.gitignore +++ /dev/null @@ -1,55 +0,0 @@ -# Build Folders (you can keep bin if you'd like, to store dlls and pdbs) -/src/**/bin/ -/src/**/obj/ -*.log -logs/ -_ReSharper*/ -output/ -release/ -*.suo -*.user -*.cache -App_Data/ -/src/GlobalAssemblyInfo.cs -/SetupVersion.inf -Thumbs.db - -# mstest test results -TestResults -/CSharp/**/src/bin -/CSharp/**/src/obj -/CSharp/**/src/**/bin -/CSharp/**/src/**/obj -CSharp/ApiClient/EnterpriseTester.API.Client.Tests/bin/* -CSharp/ApiClient/EnterpriseTester.API.Client.Tests/obj/* -CSharp/ApiClient/EnterpriseTester.API.Client/bin/* -CSharp/ApiClient/EnterpriseTester.API.Client/obj/* -CSharp/ApiClient/packages/System.Net.Http.2.0.20126.16343/System.Net.Http.2.0.20126.16343.nupkg -CSharp/ApiClient/packages/System.Net.Http.2.0.20126.16343/lib/net40/System.Net.Http.WebRequest.dll -CSharp/ApiClient/packages/System.Net.Http.2.0.20126.16343/lib/net40/System.Net.Http.WebRequest.xml -CSharp/ApiClient/packages/System.Net.Http.2.0.20126.16343/lib/net40/System.Net.Http.dll -CSharp/ApiClient/packages/System.Net.Http.2.0.20126.16343/lib/net40/System.Net.Http.xml -CSharp/ApiClient/packages/System.Net.Http.Formatting.Extension.5.2.3.0/System.Net.Http.Formatting.Extension.5.2.3.0.nupkg -CSharp/ApiClient/packages/System.Net.Http.Formatting.Extension.5.2.3.0/lib/System.Net.Http.Extensions.dll -CSharp/ApiClient/packages/System.Net.Http.Formatting.Extension.5.2.3.0/lib/System.Net.Http.Formatting.dll -CSharp/ApiClient/packages/System.Net.Http.Formatting.Extension.5.2.3.0/lib/System.Net.Http.Primitives.dll -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/LICENSE.md -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/Newtonsoft.Json.10.0.2.nupkg -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/net20/Newtonsoft.Json.dll -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/net20/Newtonsoft.Json.xml -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/net35/Newtonsoft.Json.dll -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/net35/Newtonsoft.Json.xml -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/net40/Newtonsoft.Json.dll -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/net40/Newtonsoft.Json.xml -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/portable-net45+win8+wpa81+wp8/Newtonsoft.Json.xml -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/tools/install.ps1 -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/net45/Newtonsoft.Json.dll -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/net45/Newtonsoft.Json.xml -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/netstandard1.0/Newtonsoft.Json.dll -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/portable-net40+sl5+win8+wpa81+wp8/Newtonsoft.Json.xml -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/portable-net45+win8+wpa81+wp8/Newtonsoft.Json.dll -CSharp/ApiClient/.vs/config/applicationhost.config -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/netstandard1.0/Newtonsoft.Json.xml -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/netstandard1.3/Newtonsoft.Json.dll -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/netstandard1.3/Newtonsoft.Json.xml -CSharp/ApiClient/packages/Newtonsoft.Json.10.0.2/lib/portable-net40+sl5+win8+wpa81+wp8/Newtonsoft.Json.dll diff --git a/JavaScript/CORS/SimpleDashboard/app.js b/CORS/SimpleDashboard/app.js similarity index 100% rename from JavaScript/CORS/SimpleDashboard/app.js rename to CORS/SimpleDashboard/app.js diff --git a/JavaScript/CORS/SimpleDashboard/base64.js b/CORS/SimpleDashboard/base64.js similarity index 100% rename from JavaScript/CORS/SimpleDashboard/base64.js rename to CORS/SimpleDashboard/base64.js diff --git a/JavaScript/CORS/SimpleDashboard/example.html b/CORS/SimpleDashboard/example.html similarity index 100% rename from JavaScript/CORS/SimpleDashboard/example.html rename to CORS/SimpleDashboard/example.html diff --git a/JavaScript/CORS/SimpleDashboard/styles.css b/CORS/SimpleDashboard/styles.css similarity index 100% rename from JavaScript/CORS/SimpleDashboard/styles.css rename to CORS/SimpleDashboard/styles.css diff --git a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/AgileRunTests .cs b/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/AgileRunTests .cs deleted file mode 100644 index f8075d9..0000000 --- a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/AgileRunTests .cs +++ /dev/null @@ -1,86 +0,0 @@ -using System; -using System.Linq; -using System.Net.Http; -using EnterpriseTester.API.Client.Models; -using Xunit; -using Xunit.Sdk; - -namespace EnterpriseTester.API.Client.Tests -{ - /// - /// Example demonstrating creating, updating, retrieving and delete agile runs. - /// - public class AgileRunTests - { - private readonly Client _client; - - public AgileRunTests() - { - _client = new Client("http://localhost:8092/EnterpriseTester/", "administrator", "password"); - } - - private string GetSingleExecutionPackageId() - { - var items = _client.SearchExecutionPackages(top: 1).Items; - return items.Single().Id; - } - - [Fact] - public void create_agile_run() - { - string packageId = GetSingleExecutionPackageId(); - - AgileRun run = _client.CreateAgileRun(new CreateOrUpdateAgileRun { PackageId = packageId, Name = "My Agile Run" }); - - Assert.Equal("My Agile Run", run.Name); - Assert.NotEqual(Guid.Empty.ToString(), run.Id); - } - - [Fact] - public void update_agile_run() - { - string packageId = GetSingleExecutionPackageId(); - - AgileRun run = _client.CreateAgileRun(new CreateOrUpdateAgileRun { PackageId = packageId, Name = "My Agile Run" }); - - AgileRun updatedRun = _client.UpdateAgileRun(run.Id, new CreateOrUpdateAgileRun { Name = "Updated name" }); - - Assert.Equal("Updated name", updatedRun.Name); - } - - [Fact] - public void delete_agile_run_then_do_get_for_deleted_run_returns404() - { - string packageId = GetSingleExecutionPackageId(); - - AgileRun run = _client.CreateAgileRun(new CreateOrUpdateAgileRun { PackageId = packageId, Name = "My Agile Run" }); - - _client.DeleteAgileRun(run.Id); - - Assert.Throws(() => _client.GetAgileRun(run.Id)); - } - - [Fact] - public void search_agile_runs_async() - { - var runsTask = _client.SearchAgileRunsAsync("Text ~ 'Release'", top: 100); - var result = runsTask.Result; - Assert.Equal(100, result.Top); - } - - [Fact] - public void create_faulty_agile_run() - { - try - { - _client.CreateAgileRun(new CreateOrUpdateAgileRun {Name = "My Agile Run"}); - throw new AssertException("Exception doe not thrown!"); - } - catch (HttpRequestException e) - { - Assert.Equal("System.Net.Http.HttpRequestException status code does not indicate success: 403 (Forbidden).\n{\"Message\":\"You must specify a valid PackageId which the agile run can be added to.\"}", e.Message); - } - - } - } -} \ No newline at end of file diff --git a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/EnterpriseTester.API.Client.Tests.csproj b/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/EnterpriseTester.API.Client.Tests.csproj deleted file mode 100644 index 3c4995b..0000000 --- a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/EnterpriseTester.API.Client.Tests.csproj +++ /dev/null @@ -1,105 +0,0 @@ - - - - - Debug - AnyCPU - {6432DF64-8C0E-41A1-B23E-4B7F5B4E9F0E} - Library - Properties - EnterpriseTester.API.Client.Tests - EnterpriseTester.API.Client.Tests - v4.5 - 512 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - - - - ..\packages\Newtonsoft.Json.10.0.2\lib\net45\Newtonsoft.Json.dll - True - - - - - - ..\packages\System.Net.Http.2.0.20126.16343\lib\net40\System.Net.Http.dll - True - - - ..\packages\System.Net.Http.Formatting.Extension.5.2.3.0\lib\System.Net.Http.Extensions.dll - True - - - ..\packages\System.Net.Http.Formatting.Extension.5.2.3.0\lib\System.Net.Http.Formatting.dll - True - - - ..\packages\System.Net.Http.Formatting.Extension.5.2.3.0\lib\System.Net.Http.Primitives.dll - True - - - ..\packages\System.Net.Http.2.0.20126.16343\lib\net40\System.Net.Http.WebRequest.dll - True - - - - - - - - ..\packages\xunit.1.9.1\lib\net20\xunit.dll - - - ..\packages\xunit.extensions.1.9.1\lib\net20\xunit.extensions.dll - - - - - - - - - - - {a5ed6274-4b20-4200-9197-c9a13dff2a91} - EnterpriseTester.API.Client - - - - - - - - - - - - \ No newline at end of file diff --git a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/Properties/AssemblyInfo.cs b/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index d9844d3..0000000 --- a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("EnterpriseTester.API.Client.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("EnterpriseTester.API.Client.Tests")] -[assembly: AssemblyCopyright("Copyright © 2013")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("a1f9483a-7dbe-416a-8dd4-266ed6abdecd")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/SearchTests.cs b/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/SearchTests.cs deleted file mode 100644 index 6a55457..0000000 --- a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/SearchTests.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Net.Http; -using Newtonsoft.Json.Linq; -using Xunit; - -namespace EnterpriseTester.API.Client.Tests -{ - /// - /// Example demonstrating aggregate search - /// - public class SearchTests - { - private readonly Client _client; - - public SearchTests() - { - _client = new Client("http://localhost:8092/EnterpriseTester/", "Administrator", "password"); - } - - [Fact] - public void Search_group_by_entity_type_counts() - { - var response = _client.Search("GROUP BY EntityType { COUNT }"); - var aggregations = response.Content.ReadAsAsync().Result; - - var groups = (JObject) ((JObject) aggregations["Results"])["GroupByEntityType"]; - - foreach (var group in groups) - { - Console.WriteLine("EntityType: {0}, Count: {1}", group.Key, group.Value["COUNT"].Value()); - } - } - - } -} \ No newline at end of file diff --git a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/TestScriptTests.cs b/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/TestScriptTests.cs deleted file mode 100644 index 2e52452..0000000 --- a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/TestScriptTests.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Linq; -using System.Net.Http; -using EnterpriseTester.API.Client.Models; -using Xunit; - -namespace EnterpriseTester.API.Client.Tests -{ - /// - /// Example demonstrating creating, updating, retrieving and delete agile runs. - /// - public class TestScriptTests - { - private readonly Client client; - - public TestScriptTests() - { - client = new Client("http://localhost:8092/EnterpriseTester/", "Administrator", "password"); - } - - [Fact] - public void SearchScriptsDoesNotThrows() - { - Assert.DoesNotThrow(() => client.SearchScripts()); - } - - } -} \ No newline at end of file diff --git a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/app.config b/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/app.config deleted file mode 100644 index dde2c3c..0000000 --- a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/app.config +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/packages.config b/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/packages.config deleted file mode 100644 index a689fc4..0000000 --- a/CSharp/ApiClient/EnterpriseTester.API.Client.Tests/packages.config +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/CSharp/ApiClient/EnterpriseTester.API.Client.sln b/CSharp/ApiClient/EnterpriseTester.API.Client.sln deleted file mode 100644 index f2d2cc2..0000000 --- a/CSharp/ApiClient/EnterpriseTester.API.Client.sln +++ /dev/null @@ -1,31 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EnterpriseTester.API.Client", "EnterpriseTester.API.Client\EnterpriseTester.API.Client.csproj", "{A5ED6274-4B20-4200-9197-C9A13DFF2A91}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EnterpriseTester.API.Client.Tests", "EnterpriseTester.API.Client.Tests\EnterpriseTester.API.Client.Tests.csproj", "{6432DF64-8C0E-41A1-B23E-4B7F5B4E9F0E}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9F6D1445-76FF-4D7F-B732-91014401DFE4}" - ProjectSection(SolutionItems) = preProject - readme.md = readme.md - EndProjectSection -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {A5ED6274-4B20-4200-9197-C9A13DFF2A91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A5ED6274-4B20-4200-9197-C9A13DFF2A91}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A5ED6274-4B20-4200-9197-C9A13DFF2A91}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A5ED6274-4B20-4200-9197-C9A13DFF2A91}.Release|Any CPU.Build.0 = Release|Any CPU - {6432DF64-8C0E-41A1-B23E-4B7F5B4E9F0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6432DF64-8C0E-41A1-B23E-4B7F5B4E9F0E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6432DF64-8C0E-41A1-B23E-4B7F5B4E9F0E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6432DF64-8C0E-41A1-B23E-4B7F5B4E9F0E}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/CSharp/ApiClient/EnterpriseTester.API.Client/Client.cs b/CSharp/ApiClient/EnterpriseTester.API.Client/Client.cs deleted file mode 100644 index ef27ff0..0000000 --- a/CSharp/ApiClient/EnterpriseTester.API.Client/Client.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; -using System.Net.Http; -using System.Threading.Tasks; -using EnterpriseTester.API.Client.Models; - -namespace EnterpriseTester.API.Client -{ - public partial class Client - { - public readonly EnterpriseTesterHttpClient _client; - - public Client(string baseAddress, string username, string password) - : this(new EnterpriseTesterHttpClient(baseAddress, username, password, true)) - { - } - public Client(string baseAddress, string baseAuthString) - : this(new EnterpriseTesterHttpClient(baseAddress, baseAuthString, true)) - { - } - - public EnterpriseTesterHttpClient HttpClient - { - get { return _client; } - } - - public Client(EnterpriseTesterHttpClient client) - { - if (client == null) throw new ArgumentNullException("client"); - _client = client; - } - - public virtual void EnsureSuccess(HttpResponseMessage response) - { - if (response.IsSuccessStatusCode) - return; - - var task = response.Content.ReadAsStringAsync(); - task.Wait(); - var content = task.Result; - throw new HttpRequestException( - string.Format( - "System.Net.Http.HttpRequestException status code does not indicate success: {0} ({1}).\n{2}", - (int)response.StatusCode, response.ReasonPhrase, content)); - } - } -} \ No newline at end of file diff --git a/CSharp/ApiClient/EnterpriseTester.API.Client/Client.designer.cs b/CSharp/ApiClient/EnterpriseTester.API.Client/Client.designer.cs deleted file mode 100644 index d0de1e1..0000000 --- a/CSharp/ApiClient/EnterpriseTester.API.Client/Client.designer.cs +++ /dev/null @@ -1,9188 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using System.Net.Http; -using System.Threading.Tasks; -using EnterpriseTester.API.Client.Models; - -namespace EnterpriseTester.API.Client -{ - public partial class Client - { - - - /// - /// Sends a GET to '/{id}/rest/gadgets/1.0/g/feed' - /// - /// a path parameter (no description) - /// - public virtual HttpResponseMessage GetGadgetFeed(string id) - { - var operation = Operations.GetGadgetFeed(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a GET to '/{id}/rest/gadgets/1.0/g/feed' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetGadgetFeedAsync(string id) - { - var operation = Operations.GetGadgetFeed(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - - /// - /// Sends a GET to '/api/' - /// - /// - public virtual Resources ListRootResources() - { - var operation = Operations.ListRootResources(); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/' (asynchronous) - /// - /// - public virtual async Task ListRootResourcesAsync() - { - var operation = Operations.ListRootResources(); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/agilerun/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual AgileRun GetAgileRun(string id, string expand = null) - { - var operation = Operations.GetAgileRun(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/agilerun/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetAgileRunAsync(string id, string expand = null) - { - var operation = Operations.GetAgileRun(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/agilerun/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual AgileRun UpdateAgileRun(string id, CreateOrUpdateAgileRun model, string expand = null) - { - var operation = Operations.UpdateAgileRun(id, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/agilerun/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task UpdateAgileRunAsync(string id, CreateOrUpdateAgileRun model, string expand = null) - { - var operation = Operations.UpdateAgileRun(id, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/agilerun/{id}' - /// - /// a path parameter (no description) - /// - public virtual void DeleteAgileRun(string id) - { - var operation = Operations.DeleteAgileRun(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/agilerun/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task DeleteAgileRunAsync(string id) - { - var operation = Operations.DeleteAgileRun(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/agilerun/{id}/allrelationships' - /// - /// a path parameter (no description) - /// - public virtual Relationship GetAgileRunAllRelationships(string id) - { - var operation = Operations.GetAgileRunAllRelationships(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/agilerun/{id}/allrelationships' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetAgileRunAllRelationshipsAsync(string id) - { - var operation = Operations.GetAgileRunAllRelationships(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/agilerun/{id}/relationships' - /// - /// a path parameter (no description) - /// - public virtual Relationship GetAgileRunRelationships(string id) - { - var operation = Operations.GetAgileRunRelationships(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/agilerun/{id}/relationships' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetAgileRunRelationshipsAsync(string id) - { - var operation = Operations.GetAgileRunRelationships(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a DELETE to '/api/agilerun/{runId}/step/{stepId}/attachment/{attachmentId}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual void DeleteAgileRunStepAttachment(string runId, string stepId, string attachmentId) - { - var operation = Operations.DeleteAgileRunStepAttachment(runId, stepId, attachmentId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/agilerun/{runId}/step/{stepId}/attachment/{attachmentId}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task DeleteAgileRunStepAttachmentAsync(string runId, string stepId, string attachmentId) - { - var operation = Operations.DeleteAgileRunStepAttachment(runId, stepId, attachmentId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/agilerun/{runId}/step/{stepId}/attachments' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetAgileRunStepAttachments(string runId, string stepId, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetAgileRunStepAttachments(runId, stepId, top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/agilerun/{runId}/step/{stepId}/attachments' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetAgileRunStepAttachmentsAsync(string runId, string stepId, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetAgileRunStepAttachments(runId, stepId, top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/agilerun/{runId}/step/{stepId}/attachments' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual List CreateAgileRunStepAttachment(string runId, string stepId) - { - var operation = Operations.CreateAgileRunStepAttachment(runId, stepId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a POST to '/api/agilerun/{runId}/step/{stepId}/attachments' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task> CreateAgileRunStepAttachmentAsync(string runId, string stepId) - { - var operation = Operations.CreateAgileRunStepAttachment(runId, stepId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/agilerun/{runId}/step/{stepId}/incident/{incidentId}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual AgileRunStepIncident GetAgileRunStepIncidentLink(string runId, string stepId, string incidentId) - { - var operation = Operations.GetAgileRunStepIncidentLink(runId, stepId, incidentId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/agilerun/{runId}/step/{stepId}/incident/{incidentId}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task GetAgileRunStepIncidentLinkAsync(string runId, string stepId, string incidentId) - { - var operation = Operations.GetAgileRunStepIncidentLink(runId, stepId, incidentId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/agilerun/{runId}/step/{stepId}/incident/{incidentId}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual void DeleteAgileRunStepIncidentLink(string runId, string stepId, string incidentId) - { - var operation = Operations.DeleteAgileRunStepIncidentLink(runId, stepId, incidentId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/agilerun/{runId}/step/{stepId}/incident/{incidentId}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task DeleteAgileRunStepIncidentLinkAsync(string runId, string stepId, string incidentId) - { - var operation = Operations.DeleteAgileRunStepIncidentLink(runId, stepId, incidentId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/agilerun/{runId}/step/{stepId}/incidents' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetAgileRunStepIncidentLinks(string runId, string stepId, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetAgileRunStepIncidentLinks(runId, stepId, top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/agilerun/{runId}/step/{stepId}/incidents' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetAgileRunStepIncidentLinksAsync(string runId, string stepId, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetAgileRunStepIncidentLinks(runId, stepId, top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/agilerun/{runId}/step/{stepId}/incidents' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual AgileRunStepIncident CreateAgileRunStepIncidentLink(string runId, string stepId, CreateAgileRunStepIncident model) - { - var operation = Operations.CreateAgileRunStepIncidentLink(runId, stepId, model); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/agilerun/{runId}/step/{stepId}/incidents' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual async Task CreateAgileRunStepIncidentLinkAsync(string runId, string stepId, CreateAgileRunStepIncident model) - { - var operation = Operations.CreateAgileRunStepIncidentLink(runId, stepId, model); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/agileruns' - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults SearchAgileRuns(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchAgileRuns(tql, timeZone, top, skip, inlinecount, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/agileruns' (asynchronous) - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> SearchAgileRunsAsync(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchAgileRuns(tql, timeZone, top, skip, inlinecount, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/agileruns' - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual AgileRun CreateAgileRun(CreateOrUpdateAgileRun model, string expand = null) - { - var operation = Operations.CreateAgileRun(model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/agileruns' (asynchronous) - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateAgileRunAsync(CreateOrUpdateAgileRun model, string expand = null) - { - var operation = Operations.CreateAgileRun(model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/assignedtosearch' - /// - /// a query parameter (no description) - /// a query parameter (no description) - /// - public virtual QueryResults SearchForUsersGroupsAndSpecialUsers(string query = null, bool? valuesqry = null) - { - var operation = Operations.SearchForUsersGroupsAndSpecialUsers(query, valuesqry); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/assignedtosearch' (asynchronous) - /// - /// a query parameter (no description) - /// a query parameter (no description) - /// - public virtual async Task> SearchForUsersGroupsAndSpecialUsersAsync(string query = null, bool? valuesqry = null) - { - var operation = Operations.SearchForUsersGroupsAndSpecialUsers(query, valuesqry); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/assignedtosearch' - /// - /// a form parameter (Partial name to match on) - /// a form parameter (Query to retreive a set of matches based on their values (values are separated by a pipe '|' character)) - /// - public virtual HttpResponseMessage SearchForUsersGroupsAndSpecialUsersUsingPostMethod(string query = null, string valuesqry = null) - { - var operation = Operations.SearchForUsersGroupsAndSpecialUsersUsingPostMethod(query, valuesqry); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a POST to '/api/assignedtosearch' (asynchronous) - /// - /// a form parameter (Partial name to match on) - /// a form parameter (Query to retreive a set of matches based on their values (values are separated by a pipe '|' character)) - /// - public virtual async Task SearchForUsersGroupsAndSpecialUsersUsingPostMethodAsync(string query = null, string valuesqry = null) - { - var operation = Operations.SearchForUsersGroupsAndSpecialUsersUsingPostMethod(query, valuesqry); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - - /// - /// Sends a GET to '/api/attachment/{id}/contents' - /// - /// a path parameter (no description) - /// - public virtual HttpResponseMessage RetrieveAttachmentContents(string id) - { - var operation = Operations.RetrieveAttachmentContents(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a GET to '/api/attachment/{id}/contents' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task RetrieveAttachmentContentsAsync(string id) - { - var operation = Operations.RetrieveAttachmentContents(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - - /// - /// Sends a GET to '/api/automatedtest/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual AutomatedTest GetAutomatedTest(string id, string expand = null) - { - var operation = Operations.GetAutomatedTest(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtest/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetAutomatedTestAsync(string id, string expand = null) - { - var operation = Operations.GetAutomatedTest(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/automatedtest/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual AutomatedTest UpdateAutomatedTest(string id, CreateOrUpdateAutomatedTest model, string expand = null) - { - var operation = Operations.UpdateAutomatedTest(id, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/automatedtest/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task UpdateAutomatedTestAsync(string id, CreateOrUpdateAutomatedTest model, string expand = null) - { - var operation = Operations.UpdateAutomatedTest(id, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/automatedtest/{id}' - /// - /// a path parameter (no description) - /// - public virtual void DeleteAutomatedTest(string id) - { - var operation = Operations.DeleteAutomatedTest(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/automatedtest/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task DeleteAutomatedTestAsync(string id) - { - var operation = Operations.DeleteAutomatedTest(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/automatedtest/{id}/allrelationships' - /// - /// a path parameter (no description) - /// - public virtual Relationship GetAutomatedTestAllRelationships(string id) - { - var operation = Operations.GetAutomatedTestAllRelationships(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtest/{id}/allrelationships' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetAutomatedTestAllRelationshipsAsync(string id) - { - var operation = Operations.GetAutomatedTestAllRelationships(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/automatedtest/{id}/relationships' - /// - /// a path parameter (no description) - /// - public virtual Relationship GetAutomatedTestRelationships(string id) - { - var operation = Operations.GetAutomatedTestRelationships(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtest/{id}/relationships' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetAutomatedTestRelationshipsAsync(string id) - { - var operation = Operations.GetAutomatedTestRelationships(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/automatedtest/{testId}/assignments' - /// - /// a path parameter (no description) - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults SearchAutomatedTestAssignmentsForAutomatedTest(string testId, string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchAutomatedTestAssignmentsForAutomatedTest(testId, tql, timeZone, top, skip, inlinecount, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtest/{testId}/assignments' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> SearchAutomatedTestAssignmentsForAutomatedTestAsync(string testId, string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchAutomatedTestAssignmentsForAutomatedTest(testId, tql, timeZone, top, skip, inlinecount, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/automatedtest/{testId}/assignments' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual AutomatedTestAssignment CreateAssignmentForAutomatedTest(string testId, CreateOrUpdateAutomatedTestAssignment model, string expand = null) - { - var operation = Operations.CreateAssignmentForAutomatedTest(testId, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/automatedtest/{testId}/assignments' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateAssignmentForAutomatedTestAsync(string testId, CreateOrUpdateAutomatedTestAssignment model, string expand = null) - { - var operation = Operations.CreateAssignmentForAutomatedTest(testId, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/automatedtestassignment/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual AutomatedTestAssignment GetAutomatedTestAssignment(string id, string expand = null) - { - var operation = Operations.GetAutomatedTestAssignment(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestassignment/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetAutomatedTestAssignmentAsync(string id, string expand = null) - { - var operation = Operations.GetAutomatedTestAssignment(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/automatedtestassignment/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual AutomatedTestAssignment UpdateAutomatedTestAssignment(string id, CreateOrUpdateAutomatedTestAssignment model, string expand = null) - { - var operation = Operations.UpdateAutomatedTestAssignment(id, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/automatedtestassignment/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task UpdateAutomatedTestAssignmentAsync(string id, CreateOrUpdateAutomatedTestAssignment model, string expand = null) - { - var operation = Operations.UpdateAutomatedTestAssignment(id, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/automatedtestassignment/{id}' - /// - /// a path parameter (no description) - /// - public virtual void DeleteAutomatedTestAssignment(string id) - { - var operation = Operations.DeleteAutomatedTestAssignment(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/automatedtestassignment/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task DeleteAutomatedTestAssignmentAsync(string id) - { - var operation = Operations.DeleteAutomatedTestAssignment(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/automatedtestassignment/{id}/allrelationships' - /// - /// a path parameter (no description) - /// - public virtual Relationship GetAutomatedTestAssignmentAllRelationships(string id) - { - var operation = Operations.GetAutomatedTestAssignmentAllRelationships(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestassignment/{id}/allrelationships' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetAutomatedTestAssignmentAllRelationshipsAsync(string id) - { - var operation = Operations.GetAutomatedTestAssignmentAllRelationships(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/automatedtestassignment/{id}/relationships' - /// - /// a path parameter (no description) - /// - public virtual Relationship GetAutomatedTestAssignmentRelationships(string id) - { - var operation = Operations.GetAutomatedTestAssignmentRelationships(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestassignment/{id}/relationships' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetAutomatedTestAssignmentRelationshipsAsync(string id) - { - var operation = Operations.GetAutomatedTestAssignmentRelationships(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/automatedtestassignments' - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults SearchAutomatedTestAssignments(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchAutomatedTestAssignments(tql, timeZone, top, skip, inlinecount, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestassignments' (asynchronous) - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> SearchAutomatedTestAssignmentsAsync(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchAutomatedTestAssignments(tql, timeZone, top, skip, inlinecount, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/automatedtestassignments' - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual AutomatedTestAssignment CreateAutomatedTestAssignment(CreateOrUpdateAutomatedTestAssignment model, string expand = null) - { - var operation = Operations.CreateAutomatedTestAssignment(model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/automatedtestassignments' (asynchronous) - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateAutomatedTestAssignmentAsync(CreateOrUpdateAutomatedTestAssignment model, string expand = null) - { - var operation = Operations.CreateAutomatedTestAssignment(model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/automatedtestrun/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// - public virtual AutomatedTestRun GetAutomatedTestRun(string id, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string tql = null, string timeZone = null) - { - var operation = Operations.GetAutomatedTestRun(id, top, skip, inlinecount, expand, tql, timeZone); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestrun/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// - public virtual async Task GetAutomatedTestRunAsync(string id, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string tql = null, string timeZone = null) - { - var operation = Operations.GetAutomatedTestRun(id, top, skip, inlinecount, expand, tql, timeZone); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/automatedtestrun/{id}' - /// - /// a path parameter (no description) - /// - public virtual void DeleteAutomatedTestRun(string id) - { - var operation = Operations.DeleteAutomatedTestRun(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/automatedtestrun/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task DeleteAutomatedTestRunAsync(string id) - { - var operation = Operations.DeleteAutomatedTestRun(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/automatedtestrun/{id}/testdata' - /// - /// a path parameter (no description) - /// - public virtual AutomatedTestRunDataTables GetAutomatedTestRunData(string id) - { - var operation = Operations.GetAutomatedTestRunData(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestrun/{id}/testdata' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetAutomatedTestRunDataAsync(string id) - { - var operation = Operations.GetAutomatedTestRunData(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a DELETE to '/api/automatedtestrun/{runId}/attachment/{attachmentId}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual void DeleteAutomatedTestRunAttachment(string runId, string attachmentId) - { - var operation = Operations.DeleteAutomatedTestRunAttachment(runId, attachmentId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/automatedtestrun/{runId}/attachment/{attachmentId}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task DeleteAutomatedTestRunAttachmentAsync(string runId, string attachmentId) - { - var operation = Operations.DeleteAutomatedTestRunAttachment(runId, attachmentId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/attachments' - /// - /// a path parameter (no description) - /// - public virtual List GetAutomatedTestRunAttachments(string runId) - { - var operation = Operations.GetAutomatedTestRunAttachments(runId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/attachments' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task> GetAutomatedTestRunAttachmentsAsync(string runId) - { - var operation = Operations.GetAutomatedTestRunAttachments(runId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/automatedtestrun/{runId}/attachments' - /// - /// a path parameter (no description) - /// - public virtual List CreateAutomatedTestRunAttachments(string runId) - { - var operation = Operations.CreateAutomatedTestRunAttachments(runId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a POST to '/api/automatedtestrun/{runId}/attachments' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task> CreateAutomatedTestRunAttachmentsAsync(string runId) - { - var operation = Operations.CreateAutomatedTestRunAttachments(runId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/node/{nodeId}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ResultNode GetAutomatedTestRunNode(string runId, string nodeId, string expand = null) - { - var operation = Operations.GetAutomatedTestRunNode(runId, nodeId, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/node/{nodeId}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetAutomatedTestRunNodeAsync(string runId, string nodeId, string expand = null) - { - var operation = Operations.GetAutomatedTestRunNode(runId, nodeId, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PATCH to '/api/automatedtestrun/{runId}/node/{nodeId}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ResultNode PatchAutomatedTestRunNode(string runId, string nodeId, EditResultNode model, string expand = null) - { - var operation = Operations.PatchAutomatedTestRunNode(runId, nodeId, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PATCH to '/api/automatedtestrun/{runId}/node/{nodeId}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task PatchAutomatedTestRunNodeAsync(string runId, string nodeId, EditResultNode model, string expand = null) - { - var operation = Operations.PatchAutomatedTestRunNode(runId, nodeId, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a DELETE to '/api/automatedtestrun/{runId}/node/{nodeId}/attachment/{attachmentId}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual void DeleteAutomatedTestRunNodeAttachment(string runId, string nodeId, string attachmentId) - { - var operation = Operations.DeleteAutomatedTestRunNodeAttachment(runId, nodeId, attachmentId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/automatedtestrun/{runId}/node/{nodeId}/attachment/{attachmentId}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task DeleteAutomatedTestRunNodeAttachmentAsync(string runId, string nodeId, string attachmentId) - { - var operation = Operations.DeleteAutomatedTestRunNodeAttachment(runId, nodeId, attachmentId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/node/{nodeId}/attachments' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual List GetAutomatedTestRunNodeAttachments(string runId, string nodeId) - { - var operation = Operations.GetAutomatedTestRunNodeAttachments(runId, nodeId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/node/{nodeId}/attachments' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task> GetAutomatedTestRunNodeAttachmentsAsync(string runId, string nodeId) - { - var operation = Operations.GetAutomatedTestRunNodeAttachments(runId, nodeId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/automatedtestrun/{runId}/node/{nodeId}/attachments' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual List CreateAutomatedTestRunNodeAttachments(string runId, string nodeId) - { - var operation = Operations.CreateAutomatedTestRunNodeAttachments(runId, nodeId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a POST to '/api/automatedtestrun/{runId}/node/{nodeId}/attachments' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task> CreateAutomatedTestRunNodeAttachmentsAsync(string runId, string nodeId) - { - var operation = Operations.CreateAutomatedTestRunNodeAttachments(runId, nodeId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/node/{nodeId}/children' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual List GetAutomatedTestRunNodeChildren(string runId, string nodeId, string statuses, string expand = null) - { - var operation = Operations.GetAutomatedTestRunNodeChildren(runId, nodeId, statuses, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/node/{nodeId}/children' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> GetAutomatedTestRunNodeChildrenAsync(string runId, string nodeId, string statuses, string expand = null) - { - var operation = Operations.GetAutomatedTestRunNodeChildren(runId, nodeId, statuses, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/node/{nodeId}/incident/{incidentId}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual AutomatedTestRunIncident GetAutomatedTestRunNodeIncident(string runId, string nodeId, string incidentId, string expand = null) - { - var operation = Operations.GetAutomatedTestRunNodeIncident(runId, nodeId, incidentId, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/node/{nodeId}/incident/{incidentId}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetAutomatedTestRunNodeIncidentAsync(string runId, string nodeId, string incidentId, string expand = null) - { - var operation = Operations.GetAutomatedTestRunNodeIncident(runId, nodeId, incidentId, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/automatedtestrun/{runId}/node/{nodeId}/incident/{incidentId}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual void DeleteAutomatedTestRunNodeIncident(string runId, string nodeId, string incidentId) - { - var operation = Operations.DeleteAutomatedTestRunNodeIncident(runId, nodeId, incidentId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/automatedtestrun/{runId}/node/{nodeId}/incident/{incidentId}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task DeleteAutomatedTestRunNodeIncidentAsync(string runId, string nodeId, string incidentId) - { - var operation = Operations.DeleteAutomatedTestRunNodeIncident(runId, nodeId, incidentId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/node/{nodeId}/incidents' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults GetAutomatedTestRunNodeIncidents(string runId, string nodeId, string expand = null) - { - var operation = Operations.GetAutomatedTestRunNodeIncidents(runId, nodeId, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/node/{nodeId}/incidents' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> GetAutomatedTestRunNodeIncidentsAsync(string runId, string nodeId, string expand = null) - { - var operation = Operations.GetAutomatedTestRunNodeIncidents(runId, nodeId, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/automatedtestrun/{runId}/node/{nodeId}/incidents' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual AutomatedTestRunIncident CreateAutomatedTestRunNodeIncident(string runId, string nodeId, CreateAutomatedTestRunResultNodeIncident model) - { - var operation = Operations.CreateAutomatedTestRunNodeIncident(runId, nodeId, model); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/automatedtestrun/{runId}/node/{nodeId}/incidents' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual async Task CreateAutomatedTestRunNodeIncidentAsync(string runId, string nodeId, CreateAutomatedTestRunResultNodeIncident model) - { - var operation = Operations.CreateAutomatedTestRunNodeIncident(runId, nodeId, model); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/nodes' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual List GetAutomatedTestRunRootNodes(string runId, string expand = null) - { - var operation = Operations.GetAutomatedTestRunRootNodes(runId, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestrun/{runId}/nodes' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> GetAutomatedTestRunRootNodesAsync(string runId, string expand = null) - { - var operation = Operations.GetAutomatedTestRunRootNodes(runId, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/automatedtestruns' - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults SearchAutomatedTestRuns(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchAutomatedTestRuns(tql, timeZone, top, skip, inlinecount, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtestruns' (asynchronous) - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> SearchAutomatedTestRunsAsync(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchAutomatedTestRuns(tql, timeZone, top, skip, inlinecount, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/automatedtests' - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults SearchAutomatedTests(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchAutomatedTests(tql, timeZone, top, skip, inlinecount, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/automatedtests' (asynchronous) - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> SearchAutomatedTestsAsync(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchAutomatedTests(tql, timeZone, top, skip, inlinecount, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/automatedtests' - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual AutomatedTest CreateAutomatedTest(CreateOrUpdateAutomatedTest model, string expand = null) - { - var operation = Operations.CreateAutomatedTest(model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/automatedtests' (asynchronous) - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateAutomatedTestAsync(CreateOrUpdateAutomatedTest model, string expand = null) - { - var operation = Operations.CreateAutomatedTest(model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/backgroundtask/{id}' - /// - /// a path parameter (no description) - /// - public virtual BackgroundTask GetBackgroundTaskStatus(string id) - { - var operation = Operations.GetBackgroundTaskStatus(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/backgroundtask/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetBackgroundTaskStatusAsync(string id) - { - var operation = Operations.GetBackgroundTaskStatus(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a POST to '/api/backgroundtasks' - /// - /// a body parameter (no description) - /// - public virtual BackgroundTask StartBackgroundTask(CreateBackgroundTask dto) - { - var operation = Operations.StartBackgroundTask(dto); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/backgroundtasks' (asynchronous) - /// - /// a body parameter (no description) - /// - public virtual async Task StartBackgroundTaskAsync(CreateBackgroundTask dto) - { - var operation = Operations.StartBackgroundTask(dto); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/customfield/{name}' - /// - /// a path parameter (no description) - /// - public virtual CustomField GetCustomField(string name) - { - var operation = Operations.GetCustomField(name); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/customfield/{name}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetCustomFieldAsync(string name) - { - var operation = Operations.GetCustomField(name); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PATCH to '/api/customfield/{name}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual HttpResponseMessage UpdateCustomField(string name, Operation operationModel) - { - var operation = Operations.UpdateCustomField(name, operationModel); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a PATCH to '/api/customfield/{name}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual async Task UpdateCustomFieldAsync(string name, Operation operationModel) - { - var operation = Operations.UpdateCustomField(name, operationModel); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - /// - /// Sends a DELETE to '/api/customfield/{name}' - /// - /// a path parameter (no description) - /// - public virtual void DeleteCustomField(string name) - { - var operation = Operations.DeleteCustomField(name); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/customfield/{name}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task DeleteCustomFieldAsync(string name) - { - var operation = Operations.DeleteCustomField(name); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/customfields' - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SearchCustomFields(int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchCustomFields(top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/customfields' (asynchronous) - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SearchCustomFieldsAsync(int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchCustomFields(top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/customfields' - /// - /// a body parameter (no description) - /// - public virtual HttpResponseMessage AddCustomField(CreateCustomField model) - { - var operation = Operations.AddCustomField(model); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a POST to '/api/customfields' (asynchronous) - /// - /// a body parameter (no description) - /// - public virtual async Task AddCustomFieldAsync(CreateCustomField model) - { - var operation = Operations.AddCustomField(model); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - - /// - /// Sends a GET to '/api/customfieldtype/{name}' - /// - /// a path parameter (no description) - /// - public virtual CustomFieldType GetCustomFieldType(string name) - { - var operation = Operations.GetCustomFieldType(name); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/customfieldtype/{name}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetCustomFieldTypeAsync(string name) - { - var operation = Operations.GetCustomFieldType(name); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/customfieldtypes' - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SearchCustomFieldTypes(int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchCustomFieldTypes(top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/customfieldtypes' (asynchronous) - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SearchCustomFieldTypesAsync(int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchCustomFieldTypes(top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/diagnostics/performancemeasurement/latest' - /// - /// a query parameter (no description) - /// - public virtual HttpResponseMessage GetLastPerformanceTestResults(bool? export = null) - { - var operation = Operations.GetLastPerformanceTestResults(export); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a GET to '/api/diagnostics/performancemeasurement/latest' (asynchronous) - /// - /// a query parameter (no description) - /// - public virtual async Task GetLastPerformanceTestResultsAsync(bool? export = null) - { - var operation = Operations.GetLastPerformanceTestResults(export); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - - /// - /// Sends a GET to '/api/entitytypes' - /// - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual List GetNotificationEntityTypes(string expand = null) - { - var operation = Operations.GetNotificationEntityTypes(expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/entitytypes' (asynchronous) - /// - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> GetNotificationEntityTypesAsync(string expand = null) - { - var operation = Operations.GetNotificationEntityTypes(expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/eventtypes' - /// - /// - public virtual List GetEventTypes() - { - var operation = Operations.GetEventTypes(); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/eventtypes' (asynchronous) - /// - /// - public virtual async Task> GetEventTypesAsync() - { - var operation = Operations.GetEventTypes(); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/executionpackage/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ExecutionPackage GetExecutionPackage(string id, string expand = null) - { - var operation = Operations.GetExecutionPackage(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/executionpackage/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetExecutionPackageAsync(string id, string expand = null) - { - var operation = Operations.GetExecutionPackage(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/executionpackage/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ExecutionPackage UpdateExecutionPackage(string id, CreateOrUpdateExecutionPackage model, string expand = null) - { - var operation = Operations.UpdateExecutionPackage(id, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/executionpackage/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task UpdateExecutionPackageAsync(string id, CreateOrUpdateExecutionPackage model, string expand = null) - { - var operation = Operations.UpdateExecutionPackage(id, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/executionpackage/{id}' - /// - /// a path parameter (no description) - /// - public virtual void DeleteExecutionPackage(string id) - { - var operation = Operations.DeleteExecutionPackage(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/executionpackage/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task DeleteExecutionPackageAsync(string id) - { - var operation = Operations.DeleteExecutionPackage(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/executionpackage/{id}/children' - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetExecutionPackageChildren(string id, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.GetExecutionPackageChildren(id, top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/executionpackage/{id}/children' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetExecutionPackageChildrenAsync(string id, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.GetExecutionPackageChildren(id, top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/executionpackages' - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults SearchExecutionPackages(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchExecutionPackages(tql, timeZone, top, skip, inlinecount, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/executionpackages' (asynchronous) - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> SearchExecutionPackagesAsync(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchExecutionPackages(tql, timeZone, top, skip, inlinecount, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/executionpackages' - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ExecutionPackage CreateExecutionPackage(CreateOrUpdateExecutionPackage model, string expand = null) - { - var operation = Operations.CreateExecutionPackage(model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/executionpackages' (asynchronous) - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateExecutionPackageAsync(CreateOrUpdateExecutionPackage model, string expand = null) - { - var operation = Operations.CreateExecutionPackage(model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/exportfile/{filename}' - /// - /// a path parameter (no description) - /// - public virtual HttpResponseMessage GetExportedFileContents(string filename) - { - var operation = Operations.GetExportedFileContents(filename); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a GET to '/api/exportfile/{filename}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetExportedFileContentsAsync(string filename) - { - var operation = Operations.GetExportedFileContents(filename); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - - /// - /// Sends a GET to '/api/externalsourcemetadata' - /// - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ExternalSourceMetadata GetExternalSourceByAttributes(string end = null, string key = null, string id = null, string projectId = null, string expand = null) - { - var operation = Operations.GetExternalSourceByAttributes(end, key, id, projectId, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/externalsourcemetadata' (asynchronous) - /// - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetExternalSourceByAttributesAsync(string end = null, string key = null, string id = null, string projectId = null, string expand = null) - { - var operation = Operations.GetExternalSourceByAttributes(end, key, id, projectId, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/externalsourcesmetadata' - /// - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SearchExternalSources(string compatibleWithKey = null, string end = null, string compatibleWithId = null, string projectId = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchExternalSources(compatibleWithKey, end, compatibleWithId, projectId, top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/externalsourcesmetadata' (asynchronous) - /// - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SearchExternalSourcesAsync(string compatibleWithKey = null, string end = null, string compatibleWithId = null, string projectId = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchExternalSources(compatibleWithKey, end, compatibleWithId, projectId, top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/externalsystem/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ExternalSystem GetExternalSystem(string id, string expand = null) - { - var operation = Operations.GetExternalSystem(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/externalsystem/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetExternalSystemAsync(string id, string expand = null) - { - var operation = Operations.GetExternalSystem(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PATCH to '/api/externalsystem/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ExternalSystem PatchExternalSystem(string id, CreateOrUpdateExternalSystem model, string expand = null) - { - var operation = Operations.PatchExternalSystem(id, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PATCH to '/api/externalsystem/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task PatchExternalSystemAsync(string id, CreateOrUpdateExternalSystem model, string expand = null) - { - var operation = Operations.PatchExternalSystem(id, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/externalsystem/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ExternalSystem UpdateExternalSystem(string id, CreateOrUpdateExternalSystem model, string expand = null) - { - var operation = Operations.UpdateExternalSystem(id, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/externalsystem/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task UpdateExternalSystemAsync(string id, CreateOrUpdateExternalSystem model, string expand = null) - { - var operation = Operations.UpdateExternalSystem(id, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/externalsystem/{id}' - /// - /// a path parameter (no description) - /// a query parameter (no description) - /// - public virtual void DeleteExternalSystem(string id, bool? keepReferences = null) - { - var operation = Operations.DeleteExternalSystem(id, keepReferences); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/externalsystem/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (no description) - /// - public virtual async Task DeleteExternalSystemAsync(string id, bool? keepReferences = null) - { - var operation = Operations.DeleteExternalSystem(id, keepReferences); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/externalsystem/{systemId}/links' - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetExternalSystemLinksForSystem(string systemId, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetExternalSystemLinksForSystem(systemId, top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/externalsystem/{systemId}/links' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetExternalSystemLinksForSystemAsync(string systemId, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetExternalSystemLinksForSystem(systemId, top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/externalsystemlink/{externalSystemLinkId}/ticket/{ticketId}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual TicketSearchResult GetTicket(string ticketId, string externalSystemLinkId, string expand = null) - { - var operation = Operations.GetTicket(ticketId, externalSystemLinkId, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/externalsystemlink/{externalSystemLinkId}/ticket/{ticketId}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetTicketAsync(string ticketId, string externalSystemLinkId, string expand = null) - { - var operation = Operations.GetTicket(ticketId, externalSystemLinkId, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a POST to '/api/externalsystemlink/{externalSystemLinkId}/ticket/{ticketId}/link' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual BackgroundTask StartCreateIncidentFromTicket(string ticketId, string externalSystemLinkId) - { - var operation = Operations.StartCreateIncidentFromTicket(ticketId, externalSystemLinkId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/externalsystemlink/{externalSystemLinkId}/ticket/{ticketId}/link' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task StartCreateIncidentFromTicketAsync(string ticketId, string externalSystemLinkId) - { - var operation = Operations.StartCreateIncidentFromTicket(ticketId, externalSystemLinkId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/externalsystemlink/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ExternalSystemLink GetExternalSystemLink(string id, string expand = null) - { - var operation = Operations.GetExternalSystemLink(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/externalsystemlink/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetExternalSystemLinkAsync(string id, string expand = null) - { - var operation = Operations.GetExternalSystemLink(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PATCH to '/api/externalsystemlink/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual ExternalSystemLink PatchExternalSystemLink(string id, EditExternalSystemLink model) - { - var operation = Operations.PatchExternalSystemLink(id, model); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PATCH to '/api/externalsystemlink/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual async Task PatchExternalSystemLinkAsync(string id, EditExternalSystemLink model) - { - var operation = Operations.PatchExternalSystemLink(id, model); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/externalsystemlink/{id}' - /// - /// a path parameter (no description) - /// a query parameter (no description) - /// - public virtual void DeleteExternalSystemLink(string id, bool? keepReferences = null) - { - var operation = Operations.DeleteExternalSystemLink(id, keepReferences); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/externalsystemlink/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (no description) - /// - public virtual async Task DeleteExternalSystemLinkAsync(string id, bool? keepReferences = null) - { - var operation = Operations.DeleteExternalSystemLink(id, keepReferences); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a POST to '/api/externalsystemlink/{linkId}/copy' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ExternalSystemLink CopyExternalSystemLink(string linkId, CopyExternalSystemLink model, string expand = null) - { - var operation = Operations.CopyExternalSystemLink(linkId, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/externalsystemlink/{linkId}/copy' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CopyExternalSystemLinkAsync(string linkId, CopyExternalSystemLink model, string expand = null) - { - var operation = Operations.CopyExternalSystemLink(linkId, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/externalsystemlink/{linkId}/field/{fieldName}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// - public virtual QueryResults GetOptionsForExternalSystemLinksField(string linkId, string fieldName, string query = null, bool? valuesqry = null) - { - var operation = Operations.GetOptionsForExternalSystemLinksField(linkId, fieldName, query, valuesqry); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/externalsystemlink/{linkId}/field/{fieldName}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// - public virtual async Task> GetOptionsForExternalSystemLinksFieldAsync(string linkId, string fieldName, string query = null, bool? valuesqry = null) - { - var operation = Operations.GetOptionsForExternalSystemLinksField(linkId, fieldName, query, valuesqry); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/externalsystemlinks' - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SearchExternalSystemLinks(int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchExternalSystemLinks(top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/externalsystemlinks' (asynchronous) - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SearchExternalSystemLinksAsync(int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchExternalSystemLinks(top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/externalsystemlinks' - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ExternalSystemLink CreateExternalSystemLink(CreateExternalSystemLink model, string expand = null) - { - var operation = Operations.CreateExternalSystemLink(model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/externalsystemlinks' (asynchronous) - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateExternalSystemLinkAsync(CreateExternalSystemLink model, string expand = null) - { - var operation = Operations.CreateExternalSystemLink(model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/externalsystems' - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SearchExternalSystems(int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchExternalSystems(top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/externalsystems' (asynchronous) - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SearchExternalSystemsAsync(int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchExternalSystems(top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/externalsystems' - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ExternalSystem CreateExternalSystem(CreateOrUpdateExternalSystem model, string expand = null) - { - var operation = Operations.CreateExternalSystem(model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/externalsystems' (asynchronous) - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateExternalSystemAsync(CreateOrUpdateExternalSystem model, string expand = null) - { - var operation = Operations.CreateExternalSystem(model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/externalsystemtype/{id}' - /// - /// a path parameter (no description) - /// - public virtual ExternalSystemType GetExternalSystemType(string id) - { - var operation = Operations.GetExternalSystemType(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/externalsystemtype/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetExternalSystemTypeAsync(string id) - { - var operation = Operations.GetExternalSystemType(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/externalsystemtypes' - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SearchExternalSystemTypes(int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchExternalSystemTypes(top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/externalsystemtypes' (asynchronous) - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SearchExternalSystemTypesAsync(int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchExternalSystemTypes(top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a POST to '/api/gridwidget/{widgetType}/data/{dataName}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual GridWidgetData GetGridWidgetData(string widgetType, string dataName, GridWidgetContext model) - { - var operation = Operations.GetGridWidgetData(widgetType, dataName, model); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/gridwidget/{widgetType}/data/{dataName}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual async Task GetGridWidgetDataAsync(string widgetType, string dataName, GridWidgetContext model) - { - var operation = Operations.GetGridWidgetData(widgetType, dataName, model); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/gridwidgethost/{hostId}/project/{projectId}/position/{position}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual GridWidgetState GetGridWidgetState(string hostId, string projectId, string position) - { - var operation = Operations.GetGridWidgetState(hostId, projectId, position); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/gridwidgethost/{hostId}/project/{projectId}/position/{position}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task GetGridWidgetStateAsync(string hostId, string projectId, string position) - { - var operation = Operations.GetGridWidgetState(hostId, projectId, position); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/gridwidgethost/{hostId}/project/{projectId}/position/{position}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual GridWidgetState UpdateGridWidgetState(string hostId, string projectId, string position, EditGridWidgetState model) - { - var operation = Operations.UpdateGridWidgetState(hostId, projectId, position, model); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/gridwidgethost/{hostId}/project/{projectId}/position/{position}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual async Task UpdateGridWidgetStateAsync(string hostId, string projectId, string position, EditGridWidgetState model) - { - var operation = Operations.UpdateGridWidgetState(hostId, projectId, position, model); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/gridwidgethost/{hostId}/project/{projectId}/positions' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual GridWidgetStateSet GetGridWidgetStatesForHost(string hostId, string projectId) - { - var operation = Operations.GetGridWidgetStatesForHost(hostId, projectId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/gridwidgethost/{hostId}/project/{projectId}/positions' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task GetGridWidgetStatesForHostAsync(string hostId, string projectId) - { - var operation = Operations.GetGridWidgetStatesForHost(hostId, projectId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/group/{groupId}/permissions/project/{projectId}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual List GetGroupProjectPermissions(string groupId, string projectId) - { - var operation = Operations.GetGroupProjectPermissions(groupId, projectId); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/group/{groupId}/permissions/project/{projectId}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task> GetGroupProjectPermissionsAsync(string groupId, string projectId) - { - var operation = Operations.GetGroupProjectPermissions(groupId, projectId); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a PUT to '/api/group/{groupId}/permissions/project/{projectId}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual List UpdateGroupProjectPermissions(string groupId, string projectId, List assignments) - { - var operation = Operations.UpdateGroupProjectPermissions(groupId, projectId, assignments); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/group/{groupId}/permissions/project/{projectId}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual async Task> UpdateGroupProjectPermissionsAsync(string groupId, string projectId, List assignments) - { - var operation = Operations.UpdateGroupProjectPermissions(groupId, projectId, assignments); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/group/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Group GetGroup(string id, string expand = null) - { - var operation = Operations.GetGroup(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/group/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetGroupAsync(string id, string expand = null) - { - var operation = Operations.GetGroup(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/group/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual Group UpdateGroup(string id, CreateOrUpdateGroup model) - { - var operation = Operations.UpdateGroup(id, model); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/group/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual async Task UpdateGroupAsync(string id, CreateOrUpdateGroup model) - { - var operation = Operations.UpdateGroup(id, model); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/group/{id}' - /// - /// a path parameter (no description) - /// - public virtual void DeleteGroup(string id) - { - var operation = Operations.DeleteGroup(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/group/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task DeleteGroupAsync(string id) - { - var operation = Operations.DeleteGroup(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/group/{id}/permissions/global' - /// - /// a path parameter (no description) - /// - public virtual List GetGlobalGroupPermissions(string id) - { - var operation = Operations.GetGlobalGroupPermissions(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/group/{id}/permissions/global' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task> GetGlobalGroupPermissionsAsync(string id) - { - var operation = Operations.GetGlobalGroupPermissions(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a PUT to '/api/group/{id}/permissions/global' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual List UpdateGlobalGroupPermissions(string id, List assignments) - { - var operation = Operations.UpdateGlobalGroupPermissions(id, assignments); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/group/{id}/permissions/global' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual async Task> UpdateGlobalGroupPermissionsAsync(string id, List assignments) - { - var operation = Operations.UpdateGlobalGroupPermissions(id, assignments); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/group/{id}/permissions/projects' - /// - /// a path parameter (no description) - /// - public virtual GroupPermissionProjects GetProjectGroupPermissionLinks(string id) - { - var operation = Operations.GetProjectGroupPermissionLinks(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/group/{id}/permissions/projects' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetProjectGroupPermissionLinksAsync(string id) - { - var operation = Operations.GetProjectGroupPermissionLinks(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/group/{id}/users' - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetGroupMembers(string id, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.GetGroupMembers(id, top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/group/{id}/users' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetGroupMembersAsync(string id, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.GetGroupMembers(id, top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a PUT to '/api/group/{id}/users' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SetGroupMembers(string id, GroupMemberships model, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SetGroupMembers(id, model, top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/group/{id}/users' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SetGroupMembersAsync(string id, GroupMemberships model, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SetGroupMembers(id, model, top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/groups' - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SearchGroups(int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchGroups(top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/groups' (asynchronous) - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SearchGroupsAsync(int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchGroups(top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/groups' - /// - /// a body parameter (no description) - /// - public virtual Group CreateGroup(CreateOrUpdateGroup model) - { - var operation = Operations.CreateGroup(model); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/groups' (asynchronous) - /// - /// a body parameter (no description) - /// - public virtual async Task CreateGroupAsync(CreateOrUpdateGroup model) - { - var operation = Operations.CreateGroup(model); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/groupssearch' - /// - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults SearchGroupsByPartialName(string query = null, bool? valuesqry = null, string expand = null) - { - var operation = Operations.SearchGroupsByPartialName(query, valuesqry, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/groupssearch' (asynchronous) - /// - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> SearchGroupsByPartialNameAsync(string query = null, bool? valuesqry = null, string expand = null) - { - var operation = Operations.SearchGroupsByPartialName(query, valuesqry, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/groupssearch' - /// - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a form parameter (Partial name to match on) - /// a form parameter (Query to retreive a set of matches based on their values (values are separated by a pipe '|' character)) - /// - public virtual HttpResponseMessage SearchGroupsByPartialNameUsingPostMethod(string query = null, string valuesqry = null, string expand = null) - { - var operation = Operations.SearchGroupsByPartialNameUsingPostMethod(query, valuesqry, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a POST to '/api/groupssearch' (asynchronous) - /// - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a form parameter (Partial name to match on) - /// a form parameter (Query to retreive a set of matches based on their values (values are separated by a pipe '|' character)) - /// - public virtual async Task SearchGroupsByPartialNameUsingPostMethodAsync(string query = null, string valuesqry = null, string expand = null) - { - var operation = Operations.SearchGroupsByPartialNameUsingPostMethod(query, valuesqry, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - - /// - /// Sends a GET to '/api/incident/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Incident GetIncident(string id, string expand = null) - { - var operation = Operations.GetIncident(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/incident/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetIncidentAsync(string id, string expand = null) - { - var operation = Operations.GetIncident(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PATCH to '/api/incident/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual HttpResponseMessage UpdateIncidentFields(string id, Operation operationModel) - { - var operation = Operations.UpdateIncidentFields(id, operationModel); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a PATCH to '/api/incident/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual async Task UpdateIncidentFieldsAsync(string id, Operation operationModel) - { - var operation = Operations.UpdateIncidentFields(id, operationModel); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - /// - /// Sends a PUT to '/api/incident/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Incident UpdateIncident(string id, CreateOrUpdateIncident model, string expand = null) - { - var operation = Operations.UpdateIncident(id, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/incident/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task UpdateIncidentAsync(string id, CreateOrUpdateIncident model, string expand = null) - { - var operation = Operations.UpdateIncident(id, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/incident/{id}' - /// - /// a path parameter (no description) - /// - public virtual void DeleteIncident(string id) - { - var operation = Operations.DeleteIncident(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/incident/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task DeleteIncidentAsync(string id) - { - var operation = Operations.DeleteIncident(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/incident/{id}/allrelationships' - /// - /// a path parameter (no description) - /// - public virtual Relationship GetIncidentAllRelationships(string id) - { - var operation = Operations.GetIncidentAllRelationships(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/incident/{id}/allrelationships' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetIncidentAllRelationshipsAsync(string id) - { - var operation = Operations.GetIncidentAllRelationships(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/incident/{id}/attachments' - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetIncidentAttachments(string id, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetIncidentAttachments(id, top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/incident/{id}/attachments' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetIncidentAttachmentsAsync(string id, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetIncidentAttachments(id, top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/incident/{id}/attachments' - /// - /// a path parameter (no description) - /// - public virtual List CreateIncidentAttachment(string id) - { - var operation = Operations.CreateIncidentAttachment(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a POST to '/api/incident/{id}/attachments' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task> CreateIncidentAttachmentAsync(string id) - { - var operation = Operations.CreateIncidentAttachment(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/incident/{id}/comments' - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetIncidentComments(string id, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetIncidentComments(id, top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/incident/{id}/comments' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetIncidentCommentsAsync(string id, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetIncidentComments(id, top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/incident/{id}/relationships' - /// - /// a path parameter (no description) - /// - public virtual Relationship GetIncidentRelationships(string id) - { - var operation = Operations.GetIncidentRelationships(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/incident/{id}/relationships' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetIncidentRelationshipsAsync(string id) - { - var operation = Operations.GetIncidentRelationships(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a DELETE to '/api/incident/{incidentId}/attachment/{id}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual void DeleteIncidentAttachment(string incidentId, string id) - { - var operation = Operations.DeleteIncidentAttachment(incidentId, id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/incident/{incidentId}/attachment/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task DeleteIncidentAttachmentAsync(string incidentId, string id) - { - var operation = Operations.DeleteIncidentAttachment(incidentId, id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/incidents' - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults SearchIncidents(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchIncidents(tql, timeZone, top, skip, inlinecount, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/incidents' (asynchronous) - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> SearchIncidentsAsync(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchIncidents(tql, timeZone, top, skip, inlinecount, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/incidents' - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Incident CreateIncident(CreateOrUpdateIncident model, string expand = null) - { - var operation = Operations.CreateIncident(model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/incidents' (asynchronous) - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateIncidentAsync(CreateOrUpdateIncident model, string expand = null) - { - var operation = Operations.CreateIncident(model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/mailqueue/messages' - /// - /// - public virtual QueryResults GetQueuedMailMessages() - { - var operation = Operations.GetQueuedMailMessages(); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/mailqueue/messages' (asynchronous) - /// - /// - public virtual async Task> GetQueuedMailMessagesAsync() - { - var operation = Operations.GetQueuedMailMessages(); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/mailsender/default/settings' - /// - /// - public virtual MailSenderSettings GetMailSenderSettings() - { - var operation = Operations.GetMailSenderSettings(); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/mailsender/default/settings' (asynchronous) - /// - /// - public virtual async Task GetMailSenderSettingsAsync() - { - var operation = Operations.GetMailSenderSettings(); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/mailsender/default/settings' - /// - /// a body parameter (no description) - /// - public virtual MailSenderSettings UpdateMailSenderSettings(CreateMailSenderSettings model) - { - var operation = Operations.UpdateMailSenderSettings(model); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/mailsender/default/settings' (asynchronous) - /// - /// a body parameter (no description) - /// - public virtual async Task UpdateMailSenderSettingsAsync(CreateMailSenderSettings model) - { - var operation = Operations.UpdateMailSenderSettings(model); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/organisation/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Organisation GetOrganisation(string id, string expand = null) - { - var operation = Operations.GetOrganisation(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/organisation/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetOrganisationAsync(string id, string expand = null) - { - var operation = Operations.GetOrganisation(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/organisation/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Organisation UpdateOrganisation(string id, CreateOrUpdateOrganisation model, string expand = null) - { - var operation = Operations.UpdateOrganisation(id, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/organisation/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task UpdateOrganisationAsync(string id, CreateOrUpdateOrganisation model, string expand = null) - { - var operation = Operations.UpdateOrganisation(id, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/organisation/{id}' - /// - /// a path parameter (no description) - /// - public virtual void StartDeleteOrganisation(string id) - { - var operation = Operations.StartDeleteOrganisation(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/organisation/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task StartDeleteOrganisationAsync(string id) - { - var operation = Operations.StartDeleteOrganisation(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/organisation/{id}/relationshiptype/{key}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual RelationshipType GetRelationshipTypesByKey(string id, string key, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetRelationshipTypesByKey(id, key, top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/organisation/{id}/relationshiptype/{key}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task GetRelationshipTypesByKeyAsync(string id, string key, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetRelationshipTypesByKey(id, key, top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a POST to '/api/organisation/{id}/relationshiptype/{key}/relationships' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual Relationship CreateRelationship(string id, string key, CreateRelationship model, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.CreateRelationship(id, key, model, top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/organisation/{id}/relationshiptype/{key}/relationships' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task CreateRelationshipAsync(string id, string key, CreateRelationship model, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.CreateRelationship(id, key, model, top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/organisation/{id}/relationshiptypes' - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetRelationshipTypes(string id, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetRelationshipTypes(id, top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/organisation/{id}/relationshiptypes' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetRelationshipTypesAsync(string id, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetRelationshipTypes(id, top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/organisation/{organisationId}/picklist/{type}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual QueryResults GetOrganisationPicklistValues(string organisationId, string type) - { - var operation = Operations.GetOrganisationPicklistValues(organisationId, type); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/organisation/{organisationId}/picklist/{type}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task> GetOrganisationPicklistValuesAsync(string organisationId, string type) - { - var operation = Operations.GetOrganisationPicklistValues(organisationId, type); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/organisation/{organisationId}/picklistsearch/{type}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// - public virtual QueryResults SearchOrganisationPicklistValues(string organisationId, string type, string query = null, bool? valuesqry = null) - { - var operation = Operations.SearchOrganisationPicklistValues(organisationId, type, query, valuesqry); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/organisation/{organisationId}/picklistsearch/{type}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// - public virtual async Task> SearchOrganisationPicklistValuesAsync(string organisationId, string type, string query = null, bool? valuesqry = null) - { - var operation = Operations.SearchOrganisationPicklistValues(organisationId, type, query, valuesqry); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/organisation/{organisationId}/picklistsearch/{type}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a form parameter (Partial name to match on) - /// a form parameter (Query to retreive a set of matches based on their values (values are separated by a pipe '|' character)) - /// - public virtual HttpResponseMessage SearchOrganisationPicklistValuesUsingPostMethod(string organisationId, string type, string query = null, string valuesqry = null) - { - var operation = Operations.SearchOrganisationPicklistValuesUsingPostMethod(organisationId, type, query, valuesqry); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a POST to '/api/organisation/{organisationId}/picklistsearch/{type}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a form parameter (Partial name to match on) - /// a form parameter (Query to retreive a set of matches based on their values (values are separated by a pipe '|' character)) - /// - public virtual async Task SearchOrganisationPicklistValuesUsingPostMethodAsync(string organisationId, string type, string query = null, string valuesqry = null) - { - var operation = Operations.SearchOrganisationPicklistValuesUsingPostMethod(organisationId, type, query, valuesqry); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - - /// - /// Sends a GET to '/api/organisation/{organisationId}/relationshiptype/{key}/relationship/{id}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual Relationship GetRelationship(string organisationId, string key, string id) - { - var operation = Operations.GetRelationship(organisationId, key, id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/organisation/{organisationId}/relationshiptype/{key}/relationship/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task GetRelationshipAsync(string organisationId, string key, string id) - { - var operation = Operations.GetRelationship(organisationId, key, id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/organisation/{organisationId}/relationshiptype/{key}/relationship/{id}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual Relationship UpdateRelationship(string organisationId, string key, string id, UpdateRelationship model) - { - var operation = Operations.UpdateRelationship(organisationId, key, id, model); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/organisation/{organisationId}/relationshiptype/{key}/relationship/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual async Task UpdateRelationshipAsync(string organisationId, string key, string id, UpdateRelationship model) - { - var operation = Operations.UpdateRelationship(organisationId, key, id, model); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/organisation/{organisationId}/relationshiptype/{key}/relationship/{id}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual void DeleteRelationship(string organisationId, string key, string id) - { - var operation = Operations.DeleteRelationship(organisationId, key, id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/organisation/{organisationId}/relationshiptype/{key}/relationship/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task DeleteRelationshipAsync(string organisationId, string key, string id) - { - var operation = Operations.DeleteRelationship(organisationId, key, id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/organisations' - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SearchOrganisations(int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchOrganisations(top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/organisations' (asynchronous) - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SearchOrganisationsAsync(int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchOrganisations(top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/organisations' - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual HttpResponseMessage CreateOrganisation(CreateOrUpdateOrganisation model, string expand = null) - { - var operation = Operations.CreateOrganisation(model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a POST to '/api/organisations' (asynchronous) - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateOrganisationAsync(CreateOrUpdateOrganisation model, string expand = null) - { - var operation = Operations.CreateOrganisation(model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - - /// - /// Sends a GET to '/api/permission/{id}' - /// - /// a path parameter (no description) - /// - public virtual Permission GetPermission(string id) - { - var operation = Operations.GetPermission(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/permission/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetPermissionAsync(string id) - { - var operation = Operations.GetPermission(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/permissions' - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetAllPermissions(int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetAllPermissions(top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/permissions' (asynchronous) - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetAllPermissionsAsync(int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetAllPermissions(top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/project/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Project GetProject(string id, string expand = null) - { - var operation = Operations.GetProject(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/project/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetProjectAsync(string id, string expand = null) - { - var operation = Operations.GetProject(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/project/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Project UpdateProject(string id, CreateOrUpdateProject model, string expand = null) - { - var operation = Operations.UpdateProject(id, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/project/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task UpdateProjectAsync(string id, CreateOrUpdateProject model, string expand = null) - { - var operation = Operations.UpdateProject(id, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/project/{id}' - /// - /// a path parameter (no description) - /// - public virtual void StartProjectDelete(string id) - { - var operation = Operations.StartProjectDelete(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/project/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task StartProjectDeleteAsync(string id) - { - var operation = Operations.StartProjectDelete(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/project/{projectId}/assignees' - /// - /// a path parameter (no description) - /// a query parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults SearchProjectAssignees(string projectId, string query = null, string expand = null) - { - var operation = Operations.SearchProjectAssignees(projectId, query, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/project/{projectId}/assignees' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> SearchProjectAssigneesAsync(string projectId, string query = null, string expand = null) - { - var operation = Operations.SearchProjectAssignees(projectId, query, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/project/{projectId}/picklist/{type}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetProjectPicklistValues(string projectId, string type, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetProjectPicklistValues(projectId, type, top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/project/{projectId}/picklist/{type}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetProjectPicklistValuesAsync(string projectId, string type, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetProjectPicklistValues(projectId, type, top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/project/{projectId}/picklistsearch/{type}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// - public virtual QueryResults SearchProjectPicklistValues(string projectId, string type, string query = null, bool? valuesqry = null) - { - var operation = Operations.SearchProjectPicklistValues(projectId, type, query, valuesqry); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/project/{projectId}/picklistsearch/{type}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// - public virtual async Task> SearchProjectPicklistValuesAsync(string projectId, string type, string query = null, bool? valuesqry = null) - { - var operation = Operations.SearchProjectPicklistValues(projectId, type, query, valuesqry); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/project/{projectId}/picklistsearch/{type}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a form parameter (Partial name to match on) - /// a form parameter (Query to retreive a set of matches based on their values (values are separated by a pipe '|' character)) - /// - public virtual HttpResponseMessage SearchProjectPicklistValuesUsingPostMethod(string projectId, string type, string query = null, string valuesqry = null) - { - var operation = Operations.SearchProjectPicklistValuesUsingPostMethod(projectId, type, query, valuesqry); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a POST to '/api/project/{projectId}/picklistsearch/{type}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// a form parameter (Partial name to match on) - /// a form parameter (Query to retreive a set of matches based on their values (values are separated by a pipe '|' character)) - /// - public virtual async Task SearchProjectPicklistValuesUsingPostMethodAsync(string projectId, string type, string query = null, string valuesqry = null) - { - var operation = Operations.SearchProjectPicklistValuesUsingPostMethod(projectId, type, query, valuesqry); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - - /// - /// Sends a GET to '/api/project/{projectId}/searchlinks' - /// - /// a path parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// - public virtual QueryResults SearchProjectExternalLinksByPartialName(string projectId, string query = null, bool? valuesqry = null) - { - var operation = Operations.SearchProjectExternalLinksByPartialName(projectId, query, valuesqry); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/project/{projectId}/searchlinks' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// - public virtual async Task> SearchProjectExternalLinksByPartialNameAsync(string projectId, string query = null, bool? valuesqry = null) - { - var operation = Operations.SearchProjectExternalLinksByPartialName(projectId, query, valuesqry); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/project/{projectId}/searchlinks' - /// - /// a path parameter (no description) - /// a form parameter (Partial name to match on) - /// a form parameter (Query to retreive a set of matches based on their values (values are separated by a pipe '|' character)) - /// - public virtual HttpResponseMessage SearchProjectExternalLinksByPartialNameUsingPostMethod(string projectId, string query = null, string valuesqry = null) - { - var operation = Operations.SearchProjectExternalLinksByPartialNameUsingPostMethod(projectId, query, valuesqry); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a POST to '/api/project/{projectId}/searchlinks' (asynchronous) - /// - /// a path parameter (no description) - /// a form parameter (Partial name to match on) - /// a form parameter (Query to retreive a set of matches based on their values (values are separated by a pipe '|' character)) - /// - public virtual async Task SearchProjectExternalLinksByPartialNameUsingPostMethodAsync(string projectId, string query = null, string valuesqry = null) - { - var operation = Operations.SearchProjectExternalLinksByPartialNameUsingPostMethod(projectId, query, valuesqry); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - - /// - /// Sends a GET to '/api/project/{projectId}/tickets' - /// - /// a path parameter (no description) - /// a query parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults SearchTickets(string projectId, string q = null, string expand = null) - { - var operation = Operations.SearchTickets(projectId, q, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/project/{projectId}/tickets' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> SearchTicketsAsync(string projectId, string q = null, string expand = null) - { - var operation = Operations.SearchTickets(projectId, q, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/project/{projectId}/widgets' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual EntityTypeWidgets GetWidgetsForProject(string projectId, string expand = null) - { - var operation = Operations.GetWidgetsForProject(projectId, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/project/{projectId}/widgets' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetWidgetsForProjectAsync(string projectId, string expand = null) - { - var operation = Operations.GetWidgetsForProject(projectId, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/projectcategories' - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SearchAllProjectCategories(int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchAllProjectCategories(top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/projectcategories' (asynchronous) - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SearchAllProjectCategoriesAsync(int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchAllProjectCategories(top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/projectcategories' - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ProjectCategory CreateProjectCategory(CreateOrUpdateProjectCategory model, string expand = null) - { - var operation = Operations.CreateProjectCategory(model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/projectcategories' (asynchronous) - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateProjectCategoryAsync(CreateOrUpdateProjectCategory model, string expand = null) - { - var operation = Operations.CreateProjectCategory(model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/projectcategory/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ProjectCategory GetProjectCategory(string id, string expand = null) - { - var operation = Operations.GetProjectCategory(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/projectcategory/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetProjectCategoryAsync(string id, string expand = null) - { - var operation = Operations.GetProjectCategory(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/projectcategory/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual ProjectCategory UpdateProjectCategory(string id, CreateOrUpdateProjectCategory model, string expand = null) - { - var operation = Operations.UpdateProjectCategory(id, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/projectcategory/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task UpdateProjectCategoryAsync(string id, CreateOrUpdateProjectCategory model, string expand = null) - { - var operation = Operations.UpdateProjectCategory(id, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/projectcategory/{id}' - /// - /// a path parameter (no description) - /// - public virtual void DeleteProjectCategory(string id) - { - var operation = Operations.DeleteProjectCategory(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/projectcategory/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task DeleteProjectCategoryAsync(string id) - { - var operation = Operations.DeleteProjectCategory(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/projectcategory/{id}/children' - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetProjectCategoriesChildren(string id, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.GetProjectCategoriesChildren(id, top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/projectcategory/{id}/children' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetProjectCategoriesChildrenAsync(string id, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.GetProjectCategoriesChildren(id, top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/projects' - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SearchProjects(int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchProjects(top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/projects' (asynchronous) - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SearchProjectsAsync(int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchProjects(top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/projects' - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Project CreateProject(CreateOrUpdateProject model, string expand = null) - { - var operation = Operations.CreateProject(model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/projects' (asynchronous) - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateProjectAsync(CreateOrUpdateProject model, string expand = null) - { - var operation = Operations.CreateProject(model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/projectssearch' - /// - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SearchProjectsByPartialName(string query = null, bool? valuesqry = null, string projectType = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchProjectsByPartialName(query, valuesqry, projectType, top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/projectssearch' (asynchronous) - /// - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SearchProjectsByPartialNameAsync(string query = null, bool? valuesqry = null, string projectType = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchProjectsByPartialName(query, valuesqry, projectType, top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/projectssearch' - /// - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a form parameter (Partial name to match on) - /// a form parameter (Query to retreive a set of matches based on their values (values are separated by a pipe '|' character)) - /// - public virtual HttpResponseMessage SearchProjectsByPartialNameUsingPostMethod(string query = null, string valuesqry = null, string expand = null) - { - var operation = Operations.SearchProjectsByPartialNameUsingPostMethod(query, valuesqry, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a POST to '/api/projectssearch' (asynchronous) - /// - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a form parameter (Partial name to match on) - /// a form parameter (Query to retreive a set of matches based on their values (values are separated by a pipe '|' character)) - /// - public virtual async Task SearchProjectsByPartialNameUsingPostMethodAsync(string query = null, string valuesqry = null, string expand = null) - { - var operation = Operations.SearchProjectsByPartialNameUsingPostMethod(query, valuesqry, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - - /// - /// Sends a GET to '/api/projecttemplates' - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults SearchProjectTemplates(int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchProjectTemplates(top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/projecttemplates' (asynchronous) - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> SearchProjectTemplatesAsync(int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.SearchProjectTemplates(top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/relationshiptypes' - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetAllRelationshipTypes(int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetAllRelationshipTypes(top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/relationshiptypes' (asynchronous) - /// - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetAllRelationshipTypesAsync(int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetAllRelationshipTypes(top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/requirement/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Requirement GetRequirement(string id, string expand = null) - { - var operation = Operations.GetRequirement(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/requirement/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetRequirementAsync(string id, string expand = null) - { - var operation = Operations.GetRequirement(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PATCH to '/api/requirement/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual HttpResponseMessage UpdateExistingRequirementFields(string id, Operation operationModel) - { - var operation = Operations.UpdateExistingRequirementFields(id, operationModel); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - return response; - } - - /// - /// Sends a PATCH to '/api/requirement/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// - public virtual async Task UpdateExistingRequirementFieldsAsync(string id, Operation operationModel) - { - var operation = Operations.UpdateExistingRequirementFields(id, operationModel); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - return response; - - } - - /// - /// Sends a PUT to '/api/requirement/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Requirement UpdateExistingRequirement(string id, CreateOrUpdateRequirement model, string expand = null) - { - var operation = Operations.UpdateExistingRequirement(id, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/requirement/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task UpdateExistingRequirementAsync(string id, CreateOrUpdateRequirement model, string expand = null) - { - var operation = Operations.UpdateExistingRequirement(id, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/requirement/{id}' - /// - /// a path parameter (no description) - /// - public virtual void DeleteRequirement(string id) - { - var operation = Operations.DeleteRequirement(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/requirement/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task DeleteRequirementAsync(string id) - { - var operation = Operations.DeleteRequirement(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/requirement/{id}/allrelationships' - /// - /// a path parameter (no description) - /// - public virtual Relationship GetRequirementAllRelationships(string id) - { - var operation = Operations.GetRequirementAllRelationships(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/requirement/{id}/allrelationships' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetRequirementAllRelationshipsAsync(string id) - { - var operation = Operations.GetRequirementAllRelationships(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/requirement/{id}/attachments' - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetRequirementAttachments(string id, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetRequirementAttachments(id, top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/requirement/{id}/attachments' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetRequirementAttachmentsAsync(string id, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetRequirementAttachments(id, top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/requirement/{id}/attachments' - /// - /// a path parameter (no description) - /// - public virtual List CreateRequirementAttachment(string id) - { - var operation = Operations.CreateRequirementAttachment(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a POST to '/api/requirement/{id}/attachments' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task> CreateRequirementAttachmentAsync(string id) - { - var operation = Operations.CreateRequirementAttachment(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/requirement/{id}/children' - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetRequirementsChildren(string id, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.GetRequirementsChildren(id, top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/requirement/{id}/children' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetRequirementsChildrenAsync(string id, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.GetRequirementsChildren(id, top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/requirement/{id}/comments' - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetExternalTicketComments(string id, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetExternalTicketComments(id, top, skip, inlinecount, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/requirement/{id}/comments' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetExternalTicketCommentsAsync(string id, int? top = null, int? skip = null, string inlinecount = null, string filter = null, string orderby = null) - { - var operation = Operations.GetExternalTicketComments(id, top, skip, inlinecount, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/requirement/{id}/relationships' - /// - /// a path parameter (no description) - /// - public virtual Relationship GetRequirementRelationships(string id) - { - var operation = Operations.GetRequirementRelationships(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/requirement/{id}/relationships' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task GetRequirementRelationshipsAsync(string id) - { - var operation = Operations.GetRequirementRelationships(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a DELETE to '/api/requirement/{requirementId}/attachment/{id}' - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual void DeleteRequirementAttachment(string requirementId, string id) - { - var operation = Operations.DeleteRequirementAttachment(requirementId, id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/requirement/{requirementId}/attachment/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a path parameter (no description) - /// - public virtual async Task DeleteRequirementAttachmentAsync(string requirementId, string id) - { - var operation = Operations.DeleteRequirementAttachment(requirementId, id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/requirementpackage/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual RequirementPackage GetRequirementPackage(string id, string expand = null) - { - var operation = Operations.GetRequirementPackage(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a GET to '/api/requirementpackage/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task GetRequirementPackageAsync(string id, string expand = null) - { - var operation = Operations.GetRequirementPackage(id, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a PUT to '/api/requirementpackage/{id}' - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual RequirementPackage UpdateRequirementPackage(string id, CreateOrUpdateRequirementPackage model, string expand = null) - { - var operation = Operations.UpdateRequirementPackage(id, model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a PUT to '/api/requirementpackage/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task UpdateRequirementPackageAsync(string id, CreateOrUpdateRequirementPackage model, string expand = null) - { - var operation = Operations.UpdateRequirementPackage(id, model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - /// - /// Sends a DELETE to '/api/requirementpackage/{id}' - /// - /// a path parameter (no description) - /// - public virtual void DeleteRequirementPackage(string id) - { - var operation = Operations.DeleteRequirementPackage(id); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - - } - - /// - /// Sends a DELETE to '/api/requirementpackage/{id}' (asynchronous) - /// - /// a path parameter (no description) - /// - public virtual async Task DeleteRequirementPackageAsync(string id) - { - var operation = Operations.DeleteRequirementPackage(id); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - - } - - - /// - /// Sends a GET to '/api/requirementpackage/{id}/children' - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual QueryResults GetRequirementPackageChildren(string id, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.GetRequirementPackageChildren(id, top, skip, inlinecount, expand, filter, orderby); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/requirementpackage/{id}/children' (asynchronous) - /// - /// a path parameter (no description) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// a query parameter (OData filter identifying a subset of results to return.) - /// a query parameter (OData order-by syntax to order results by one or more fields in ascending or descending order.) - /// - public virtual async Task> GetRequirementPackageChildrenAsync(string id, int? top = null, int? skip = null, string inlinecount = null, string expand = null, string filter = null, string orderby = null) - { - var operation = Operations.GetRequirementPackageChildren(id, top, skip, inlinecount, expand, filter, orderby); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - - /// - /// Sends a GET to '/api/requirementpackages' - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults GetRequirementPackages(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.GetRequirementPackages(tql, timeZone, top, skip, inlinecount, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/requirementpackages' (asynchronous) - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> GetRequirementPackagesAsync(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.GetRequirementPackages(tql, timeZone, top, skip, inlinecount, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/requirementpackages' - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual RequirementPackage CreateRequirementPackage(CreateOrUpdateRequirementPackage model, string expand = null) - { - var operation = Operations.CreateRequirementPackage(model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/requirementpackages' (asynchronous) - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateRequirementPackageAsync(CreateOrUpdateRequirementPackage model, string expand = null) - { - var operation = Operations.CreateRequirementPackage(model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/requirements' - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual QueryResults SearchRequirements(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchRequirements(tql, timeZone, top, skip, inlinecount, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync>().Result; - return result; - - } - - /// - /// Sends a GET to '/api/requirements' (asynchronous) - /// - /// a query parameter (TQL query to execute, including an optional ORDER BY statement to sort the results (see TQL API feature topic in Knowledgebase for more details).) - /// a query parameter (Time Zone in which date and time values and calculates should be evaluated (see TimeZone API feature topic in Knowledgebase for more details).) - /// a query parameter (Sets the maximum number of results to return) - /// a query parameter (Sets the number of results to skip, before return up the $top number of matching items.) - /// a query parameter (Determines if the count and total number of results should be included as part of the result set) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task> SearchRequirementsAsync(string tql = null, string timeZone = null, int? top = null, int? skip = null, string inlinecount = null, string expand = null) - { - var operation = Operations.SearchRequirements(tql, timeZone, top, skip, inlinecount, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync>(); - return result; - - } - - /// - /// Sends a POST to '/api/requirements' - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Requirement CreateRequirement(CreateOrUpdateRequirement model, string expand = null) - { - var operation = Operations.CreateRequirement(model, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync().Result; - return result; - - } - - /// - /// Sends a POST to '/api/requirements' (asynchronous) - /// - /// a body parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual async Task CreateRequirementAsync(CreateOrUpdateRequirement model, string expand = null) - { - var operation = Operations.CreateRequirement(model, expand); - var response = await _client.SendAsync(operation.BuildRequest(_client)); - EnsureSuccess(response); - var result = await response.Content.ReadAsAsync(); - return result; - - } - - - /// - /// Sends a GET to '/api/script/{id}' - /// - /// a path parameter (no description) - /// a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.) - /// - public virtual Script GetScript(string id, string expand = null) - { - var operation = Operations.GetScript(id, expand); - var response = _client.SendAsync(operation.BuildRequest(_client)).Result; - EnsureSuccess(response); - var result = response.Content.ReadAsAsync