diff --git a/KeyfactorClientSDK/Client.cs b/KeyfactorClientSDK/Client.cs index e138c30..c7812f2 100644 --- a/KeyfactorClientSDK/Client.cs +++ b/KeyfactorClientSDK/Client.cs @@ -1,17 +1,4 @@ - -/******************************************************************************/ -/* Copyright 2022 Keyfactor */ -/* Licensed under the Apache License, Version 2.0 (the "License"); you may */ -/* not use this file except in compliance with the License. You may obtain a */ -/* copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless */ -/* required by applicable law or agreed to in writing, software distributed */ -/* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES */ -/* OR CONDITIONS OF ANY KIND, either express or implied. See the License for */ -/* the specific language governing permissions and limitations under the */ -/* License. */ -/******************************************************************************/ - -//---------------------- +//---------------------- // // Generated using the NSwag toolchain v13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org) // @@ -26,41 +13,40 @@ namespace Keyfactor { [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")] - public partial class Client + public partial class Client { private string _baseUrl; private System.Net.Http.HttpClient _httpClient; private System.Lazy _settings; private string x_keyfactor_requested_with = "APIClient"; private string x_keyfactor_api_version = "1"; - - public Client(string baseURL, string BasicAuthToken, System.Net.Http.HttpClient? httpClient = null) + + public Client(string baseURL, string BasicAuthToken, System.Net.Http.HttpClient? httpClient=null) { _baseUrl = baseURL; _httpClient = httpClient ?? new System.Net.Http.HttpClient(); - _httpClient.DefaultRequestHeaders.Add("Authorization", $"Basic {BasicAuthToken}"); - _settings = new System.Lazy(() => + _httpClient.DefaultRequestHeaders.Add("Authorization", $"Basic {BasicAuthToken}"); + _settings = new System.Lazy(() => { var settings = new Newtonsoft.Json.JsonSerializerSettings(); - settings.DateFormatString = "yyyy-MM-dd HH:mm:ss"; UpdateJsonSerializerSettings(settings); return settings; }); } - - public string BaseUrl + + public string BaseUrl { get { return _baseUrl; } set { _baseUrl = value; } } - + protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get { return _settings.Value; } } - + partial void UpdateJsonSerializerSettings(Newtonsoft.Json.JsonSerializerSettings settings); partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, string url); partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, System.Text.StringBuilder urlBuilder); partial void ProcessResponse(System.Net.Http.HttpClient client, System.Net.Http.HttpResponseMessage response); - + /// Returns details for a single agent, specified by ID /// Agent Id to Search /// Desired version of the api, if not provided defaults to v1 @@ -71,7 +57,7 @@ public System.Threading.Tasks.Task GetAgentDetailAsync(System.Gui { return GetAgentDetailAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns details for a single agent, specified by ID /// Agent Id to Search @@ -83,29 +69,29 @@ public async System.Threading.Tasks.Task GetAgentDetailAsync(Syst { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Agents/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -115,11 +101,11 @@ public async System.Threading.Tasks.Task GetAgentDetailAsync(Syst foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -127,10 +113,10 @@ public async System.Threading.Tasks.Task GetAgentDetailAsync(Syst else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AgentResponse); } finally @@ -144,7 +130,7 @@ public async System.Threading.Tasks.Task GetAgentDetailAsync(Syst { } } - + /// Returns all agents according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -157,9 +143,9 @@ public async System.Threading.Tasks.Task GetAgentDetailAsync(Syst /// A server side error occurred. public System.Threading.Tasks.Task> GetAgentsAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending? pq_sortAscending) { - return GetAgentsAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetAgentsAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all agents according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -175,46 +161,46 @@ public async System.Threading.Tasks.Task GetAgentDetailAsync(Syst { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Agents?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -224,11 +210,11 @@ public async System.Threading.Tasks.Task GetAgentDetailAsync(Syst foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -236,10 +222,10 @@ public async System.Threading.Tasks.Task GetAgentDetailAsync(Syst else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -253,7 +239,7 @@ public async System.Threading.Tasks.Task GetAgentDetailAsync(Syst { } } - + /// Reset a list of agents /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -262,9 +248,9 @@ public async System.Threading.Tasks.Task GetAgentDetailAsync(Syst /// A server side error occurred. public System.Threading.Tasks.Task Reset0Async(System.Collections.Generic.IEnumerable body) { - return Reset0Async(body, System.Threading.CancellationToken.None); + return Reset0Async( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Reset a list of agents /// Desired version of the api, if not provided defaults to v1 @@ -276,27 +262,27 @@ public async System.Threading.Tasks.Task Reset0Async(System.Collections.Generic. { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Agents/Reset"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -306,18 +292,18 @@ public async System.Threading.Tasks.Task Reset0Async(System.Collections.Generic. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -332,7 +318,7 @@ public async System.Threading.Tasks.Task Reset0Async(System.Collections.Generic. { } } - + /// Approve a list of agents /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -341,9 +327,9 @@ public async System.Threading.Tasks.Task Reset0Async(System.Collections.Generic. /// A server side error occurred. public System.Threading.Tasks.Task ApproveAsync(System.Collections.Generic.IEnumerable body) { - return ApproveAsync(body, System.Threading.CancellationToken.None); + return ApproveAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Approve a list of agents /// Desired version of the api, if not provided defaults to v1 @@ -355,27 +341,27 @@ public async System.Threading.Tasks.Task ApproveAsync(System.Collections.Generic { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Agents/Approve"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -385,18 +371,18 @@ public async System.Threading.Tasks.Task ApproveAsync(System.Collections.Generic foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -411,7 +397,7 @@ public async System.Threading.Tasks.Task ApproveAsync(System.Collections.Generic { } } - + /// Disapprove a list of agents /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -420,9 +406,9 @@ public async System.Threading.Tasks.Task ApproveAsync(System.Collections.Generic /// A server side error occurred. public System.Threading.Tasks.Task DisapproveAsync(System.Collections.Generic.IEnumerable body) { - return DisapproveAsync(body, System.Threading.CancellationToken.None); + return DisapproveAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Disapprove a list of agents /// Desired version of the api, if not provided defaults to v1 @@ -434,27 +420,27 @@ public async System.Threading.Tasks.Task DisapproveAsync(System.Collections.Gene { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Agents/Disapprove"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -464,18 +450,18 @@ public async System.Threading.Tasks.Task DisapproveAsync(System.Collections.Gene foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -490,7 +476,7 @@ public async System.Threading.Tasks.Task DisapproveAsync(System.Collections.Gene { } } - + /// Reset an agent to a new state /// Guid Id of Agent to reset /// Desired version of the api, if not provided defaults to v1 @@ -501,7 +487,7 @@ public System.Threading.Tasks.Task Reset1Async(System.Guid id) { return Reset1Async(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Reset an agent to a new state /// Guid Id of Agent to reset @@ -513,29 +499,29 @@ public async System.Threading.Tasks.Task Reset1Async(System.Guid id, System.Thre { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Agents/{id}/Reset"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json"); request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -545,18 +531,18 @@ public async System.Threading.Tasks.Task Reset1Async(System.Guid id, System.Thre foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -571,7 +557,7 @@ public async System.Threading.Tasks.Task Reset1Async(System.Guid id, System.Thre { } } - + /// Schedules a job on the agent to retrieve log files /// Guid Id of the agent to schedule the job for. /// Desired version of the api, if not provided defaults to v1 @@ -582,7 +568,7 @@ public System.Threading.Tasks.Task FetchLogsAsync(System.Guid id) { return FetchLogsAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Schedules a job on the agent to retrieve log files /// Guid Id of the agent to schedule the job for. @@ -594,29 +580,29 @@ public async System.Threading.Tasks.Task FetchLogsAsync(System.Guid id, System.T { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Agents/{id}/FetchLogs"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json"); request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -626,18 +612,18 @@ public async System.Threading.Tasks.Task FetchLogsAsync(System.Guid id, System.T foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -652,7 +638,7 @@ public async System.Threading.Tasks.Task FetchLogsAsync(System.Guid id, System.T { } } - + /// Update the AuthCertificateReenrollment value for an agent to request or require (or unset the request) the agent /// to enroll for a new client authentication certificate on its next registration. /// Desired version of the api, if not provided defaults to v1 @@ -662,9 +648,9 @@ public async System.Threading.Tasks.Task FetchLogsAsync(System.Guid id, System.T /// A server side error occurred. public System.Threading.Tasks.Task SetAuthCertificateReenrollmentAsync(UpdateOrchestratorAuthCertificateReenrollmentRequest body) { - return SetAuthCertificateReenrollmentAsync(body, System.Threading.CancellationToken.None); + return SetAuthCertificateReenrollmentAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update the AuthCertificateReenrollment value for an agent to request or require (or unset the request) the agent /// to enroll for a new client authentication certificate on its next registration. @@ -677,28 +663,28 @@ public async System.Threading.Tasks.Task(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -720,10 +706,10 @@ public async System.Threading.Tasks.Task - { - public ObjectResponseResult(T responseObject, string responseText) - { - this.Object = responseObject; - this.Text = responseText; - } - - public T Object { get; } - - public string Text { get; } - } - - public bool ReadResponseAsString { get; set; } - - protected virtual async System.Threading.Tasks.Task> ReadObjectResponseAsync(System.Net.Http.HttpResponseMessage response, System.Collections.Generic.IReadOnlyDictionary> headers) - { - if (response == null || response.Content == null) - { - return new ObjectResponseResult(default(T), string.Empty); - } - - if (ReadResponseAsString) - { - var responseText = await response.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - var typedBody = Newtonsoft.Json.JsonConvert.DeserializeObject(responseText, JsonSerializerSettings); - return new ObjectResponseResult(typedBody, responseText); - } - catch (Newtonsoft.Json.JsonException exception) - { - var message = "Could not deserialize the response body string as " + typeof(T).FullName + "."; - throw new ApiException(message, (int)response.StatusCode, responseText, headers, exception); - } - } - else - { - try - { - using (var responseStream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false)) - using (var streamReader = new System.IO.StreamReader(responseStream)) - using (var jsonTextReader = new Newtonsoft.Json.JsonTextReader(streamReader)) - { - var serializer = Newtonsoft.Json.JsonSerializer.Create(JsonSerializerSettings); - var typedBody = serializer.Deserialize(jsonTextReader); - return new ObjectResponseResult(typedBody, string.Empty); - } - } - catch (Newtonsoft.Json.JsonException exception) - { - var message = "Could not deserialize the response body stream as " + typeof(T).FullName + "."; - throw new ApiException(message, (int)response.StatusCode, string.Empty, headers, exception); - } - } - } - - private string ConvertToString(object value, System.Globalization.CultureInfo cultureInfo) - { - if (value is System.Enum) - { - string name = System.Enum.GetName(value.GetType(), value); - if (name != null) - { - var field = System.Reflection.IntrospectionExtensions.GetTypeInfo(value.GetType()).GetDeclaredField(name); - if (field != null) - { - var attribute = System.Reflection.CustomAttributeExtensions.GetCustomAttribute(field, typeof(System.Runtime.Serialization.EnumMemberAttribute)) - as System.Runtime.Serialization.EnumMemberAttribute; - if (attribute != null) - { - return attribute.Value != null ? attribute.Value : name; - } - } - } - } - else if (value is bool) - { - return System.Convert.ToString(value, cultureInfo).ToLowerInvariant(); - } - else if (value is byte[]) - { - return System.Convert.ToBase64String((byte[])value); - } - else if (value != null && value.GetType().IsArray) - { - var array = System.Linq.Enumerable.OfType((System.Array)value); - return string.Join(",", System.Linq.Enumerable.Select(array, o => ConvertToString(o, cultureInfo))); - } - - return System.Convert.ToString(value, cultureInfo); - } - - + + protected struct ObjectResponseResult + { + public ObjectResponseResult(T responseObject, string responseText) + { + this.Object = responseObject; + this.Text = responseText; + } + + public T Object { get; } + + public string Text { get; } + } + + public bool ReadResponseAsString { get; set; } + + protected virtual async System.Threading.Tasks.Task> ReadObjectResponseAsync(System.Net.Http.HttpResponseMessage response, System.Collections.Generic.IReadOnlyDictionary> headers) + { + if (response == null || response.Content == null) + { + return new ObjectResponseResult(default(T), string.Empty); + } + + if (ReadResponseAsString) + { + var responseText = await response.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + var typedBody = Newtonsoft.Json.JsonConvert.DeserializeObject(responseText, JsonSerializerSettings); + return new ObjectResponseResult(typedBody, responseText); + } + catch (Newtonsoft.Json.JsonException exception) + { + var message = "Could not deserialize the response body string as " + typeof(T).FullName + "."; + throw new ApiException(message, (int)response.StatusCode, responseText, headers, exception); + } + } + else + { + try + { + using (var responseStream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false)) + using (var streamReader = new System.IO.StreamReader(responseStream)) + using (var jsonTextReader = new Newtonsoft.Json.JsonTextReader(streamReader)) + { + var serializer = Newtonsoft.Json.JsonSerializer.Create(JsonSerializerSettings); + var typedBody = serializer.Deserialize(jsonTextReader); + return new ObjectResponseResult(typedBody, string.Empty); + } + } + catch (Newtonsoft.Json.JsonException exception) + { + var message = "Could not deserialize the response body stream as " + typeof(T).FullName + "."; + throw new ApiException(message, (int)response.StatusCode, string.Empty, headers, exception); + } + } + } + + private string ConvertToString( object value, System.Globalization.CultureInfo cultureInfo) + { + if (value is System.Enum) + { + string name = System.Enum.GetName(value.GetType(), value); + if (name != null) + { + var field = System.Reflection.IntrospectionExtensions.GetTypeInfo(value.GetType()).GetDeclaredField(name); + if (field != null) + { + var attribute = System.Reflection.CustomAttributeExtensions.GetCustomAttribute(field, typeof(System.Runtime.Serialization.EnumMemberAttribute)) + as System.Runtime.Serialization.EnumMemberAttribute; + if (attribute != null) + { + return attribute.Value != null ? attribute.Value : name; + } + } + } + } + else if (value is bool) { + return System.Convert.ToString(value, cultureInfo).ToLowerInvariant(); + } + else if (value is byte[]) + { + return System.Convert.ToBase64String((byte[]) value); + } + else if (value != null && value.GetType().IsArray) + { + var array = System.Linq.Enumerable.OfType((System.Array) value); + return string.Join(",", System.Linq.Enumerable.Select(array, o => ConvertToString( o, cultureInfo))); + } + + return System.Convert.ToString(value, cultureInfo); + } + + /// Returns an agent blueprint according to the provided filter and output parameters /// Returns a single agent blueprint associated with the provided id /// Desired version of the api, if not provided defaults to v1 @@ -842,7 +827,7 @@ public System.Threading.Tasks.Task GetAgentBlueprintAsyn { return GetAgentBlueprintAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns an agent blueprint according to the provided filter and output parameters /// Returns a single agent blueprint associated with the provided id @@ -854,29 +839,29 @@ public async System.Threading.Tasks.Task GetAgentBluepri { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentBluePrint/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -886,11 +871,11 @@ public async System.Threading.Tasks.Task GetAgentBluepri foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -898,10 +883,10 @@ public async System.Threading.Tasks.Task GetAgentBluepri else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AgentBlueprintResponse); } finally @@ -915,7 +900,7 @@ public async System.Threading.Tasks.Task GetAgentBluepri { } } - + /// Deletes an agent blueprint by its Keyfactor identifier /// Keyfactor agent blueprint identifier (GUID) /// Desired version of the api, if not provided defaults to v1 @@ -926,7 +911,7 @@ public System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id) { return DeleteBlueprintAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes an agent blueprint by its Keyfactor identifier /// Keyfactor agent blueprint identifier (GUID) @@ -938,28 +923,28 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentBluePrint/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -969,18 +954,18 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -995,7 +980,7 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy { } } - + /// Returns all agent blueprints according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// The current page within the result set to be returned @@ -1007,9 +992,9 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy /// A server side error occurred. public System.Threading.Tasks.Task> GetAgentBlueprintsAsync(int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending2? pq_sortAscending) { - return GetAgentBlueprintsAsync(pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetAgentBlueprintsAsync( pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all agent blueprints according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -1024,42 +1009,42 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentBluePrint?"); - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -1069,11 +1054,11 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -1081,10 +1066,10 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -1098,7 +1083,7 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy { } } - + /// Gets the agent blueprint scheduled jobs /// Desired version of the api, if not provided defaults to v1 /// The current page within the result set to be returned @@ -1112,7 +1097,7 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy { return GetBlueprintJobsAsync(id, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the agent blueprint scheduled jobs /// Desired version of the api, if not provided defaults to v1 @@ -1127,46 +1112,46 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentBluePrint/{id}/Jobs?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (pq_pageReturned != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -1176,11 +1161,11 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -1188,10 +1173,10 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -1205,7 +1190,7 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy { } } - + /// Gets the agent blueprint certificate stores /// Desired version of the api, if not provided defaults to v1 /// The current page within the result set to be returned @@ -1219,7 +1204,7 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy { return GetBlueprintStoresAsync(id, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the agent blueprint certificate stores /// Desired version of the api, if not provided defaults to v1 @@ -1234,46 +1219,46 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentBluePrint/{id}/Stores?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (pq_pageReturned != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -1283,11 +1268,11 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -1295,10 +1280,10 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -1312,7 +1297,7 @@ public async System.Threading.Tasks.Task DeleteBlueprintAsync(System.Guid id, Sy { } } - + /// Applies the selected agent blueprint to the provided agents /// Agent blueprint to apply to the agents /// Desired version of the api, if not provided defaults to v1 @@ -1324,7 +1309,7 @@ public System.Threading.Tasks.Task ApplyBlueprintAsync(System.Guid templateId, S { return ApplyBlueprintAsync(templateId, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Applies the selected agent blueprint to the provided agents /// Agent blueprint to apply to the agents @@ -1337,32 +1322,32 @@ public async System.Threading.Tasks.Task ApplyBlueprintAsync(System.Guid templat { if (templateId == null) throw new System.ArgumentNullException("templateId"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentBluePrint/ApplyBlueprint?"); - urlBuilder_.Append(System.Uri.EscapeDataString("templateId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(templateId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("templateId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( templateId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -1372,18 +1357,18 @@ public async System.Threading.Tasks.Task ApplyBlueprintAsync(System.Guid templat foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -1398,7 +1383,7 @@ public async System.Threading.Tasks.Task ApplyBlueprintAsync(System.Guid templat { } } - + /// Generates an agent blueprint from the provided agents /// Agent to generate a blueprint from /// Name of the new agent blueprint @@ -1410,7 +1395,7 @@ public System.Threading.Tasks.Task GenerateBlueprintAsyn { return GenerateBlueprintAsync(agentId, name, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Generates an agent blueprint from the provided agents /// Agent to generate a blueprint from @@ -1423,35 +1408,35 @@ public async System.Threading.Tasks.Task GenerateBluepri { if (agentId == null) throw new System.ArgumentNullException("agentId"); - + if (name == null) throw new System.ArgumentNullException("name"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentBluePrint/GenerateBluePrint?"); - urlBuilder_.Append(System.Uri.EscapeDataString("agentId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(agentId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); - urlBuilder_.Append(System.Uri.EscapeDataString("name") + "=").Append(System.Uri.EscapeDataString(ConvertToString(name, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("agentId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( agentId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("name") + "=").Append(System.Uri.EscapeDataString(ConvertToString( name, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json"); request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -1461,11 +1446,11 @@ public async System.Threading.Tasks.Task GenerateBluepri foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -1473,10 +1458,10 @@ public async System.Threading.Tasks.Task GenerateBluepri else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AgentBlueprintResponse); } finally @@ -1490,14 +1475,14 @@ public async System.Threading.Tasks.Task GenerateBluepri { } } + + + + + + - - - - - - - + /// Returns a single agent pool associated with the provided id /// Keyfactor (GUID) identifier of the agent pool /// Desired version of the api, if not provided defaults to v1 @@ -1508,7 +1493,7 @@ public System.Threading.Tasks.Task GetAgentPoolByIdAsync(System.Guid { return GetAgentPoolByIdAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a single agent pool associated with the provided id /// Keyfactor (GUID) identifier of the agent pool @@ -1520,29 +1505,29 @@ public async System.Threading.Tasks.Task GetAgentPoolByIdAsync(System { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentPools/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -1552,11 +1537,11 @@ public async System.Threading.Tasks.Task GetAgentPoolByIdAsync(System foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -1564,10 +1549,10 @@ public async System.Threading.Tasks.Task GetAgentPoolByIdAsync(System else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AgentPool); } finally @@ -1581,7 +1566,7 @@ public async System.Threading.Tasks.Task GetAgentPoolByIdAsync(System { } } - + /// Deletes the agent pool associated with the provided id /// Keyfactor identifier (GUID) of the agent pool /// Desired version of the api, if not provided defaults to v1 @@ -1592,7 +1577,7 @@ public System.Threading.Tasks.Task DeleteAgentPoolAsync(System.Guid id) { return DeleteAgentPoolAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes the agent pool associated with the provided id /// Keyfactor identifier (GUID) of the agent pool @@ -1604,28 +1589,28 @@ public async System.Threading.Tasks.Task DeleteAgentPoolAsync(System.Guid id, Sy { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentPools/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -1635,18 +1620,18 @@ public async System.Threading.Tasks.Task DeleteAgentPoolAsync(System.Guid id, Sy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -1661,7 +1646,7 @@ public async System.Threading.Tasks.Task DeleteAgentPoolAsync(System.Guid id, Sy { } } - + /// Returns all agent pools according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -1674,9 +1659,9 @@ public async System.Threading.Tasks.Task DeleteAgentPoolAsync(System.Guid id, Sy /// A server side error occurred. public System.Threading.Tasks.Task> GetAgentPoolsAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending5? pq_sortAscending) { - return GetAgentPoolsAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetAgentPoolsAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all agent pools according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -1692,46 +1677,46 @@ public async System.Threading.Tasks.Task DeleteAgentPoolAsync(System.Guid id, Sy { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentPools?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -1741,11 +1726,11 @@ public async System.Threading.Tasks.Task DeleteAgentPoolAsync(System.Guid id, Sy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -1753,10 +1738,10 @@ public async System.Threading.Tasks.Task DeleteAgentPoolAsync(System.Guid id, Sy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -1770,7 +1755,7 @@ public async System.Threading.Tasks.Task DeleteAgentPoolAsync(System.Guid id, Sy { } } - + /// Updates an existing agent pool with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -1779,9 +1764,9 @@ public async System.Threading.Tasks.Task DeleteAgentPoolAsync(System.Guid id, Sy /// A server side error occurred. public System.Threading.Tasks.Task UpdateAgentPoolAsync(AgentPool body) { - return UpdateAgentPoolAsync(body, System.Threading.CancellationToken.None); + return UpdateAgentPoolAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates an existing agent pool with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -1793,28 +1778,28 @@ public async System.Threading.Tasks.Task UpdateAgentPoolAsync(AgentPo { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentPools"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -1824,11 +1809,11 @@ public async System.Threading.Tasks.Task UpdateAgentPoolAsync(AgentPo foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -1836,10 +1821,10 @@ public async System.Threading.Tasks.Task UpdateAgentPoolAsync(AgentPo else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AgentPool); } finally @@ -1853,7 +1838,7 @@ public async System.Threading.Tasks.Task UpdateAgentPoolAsync(AgentPo { } } - + /// Creates an agent pool with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -1862,9 +1847,9 @@ public async System.Threading.Tasks.Task UpdateAgentPoolAsync(AgentPo /// A server side error occurred. public System.Threading.Tasks.Task CreateAgentPoolAsync(AgentPool body) { - return CreateAgentPoolAsync(body, System.Threading.CancellationToken.None); + return CreateAgentPoolAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates an agent pool with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -1876,28 +1861,28 @@ public async System.Threading.Tasks.Task CreateAgentPoolAsync(AgentPo { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentPools"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -1907,11 +1892,11 @@ public async System.Threading.Tasks.Task CreateAgentPoolAsync(AgentPo foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -1919,10 +1904,10 @@ public async System.Threading.Tasks.Task CreateAgentPoolAsync(AgentPo else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AgentPool); } finally @@ -1936,7 +1921,7 @@ public async System.Threading.Tasks.Task CreateAgentPoolAsync(AgentPo { } } - + /// Returns all agents for the default agent pool /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -1949,9 +1934,9 @@ public async System.Threading.Tasks.Task CreateAgentPoolAsync(AgentPo /// A server side error occurred. public System.Threading.Tasks.Task> GetDefaultAgentPoolAgentsAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending6? pq_sortAscending) { - return GetDefaultAgentPoolAgentsAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetDefaultAgentPoolAgentsAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all agents for the default agent pool /// Desired version of the api, if not provided defaults to v1 @@ -1967,46 +1952,46 @@ public async System.Threading.Tasks.Task CreateAgentPoolAsync(AgentPo { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/AgentPools/Agents?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -2016,11 +2001,11 @@ public async System.Threading.Tasks.Task CreateAgentPoolAsync(AgentPo foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -2028,10 +2013,10 @@ public async System.Threading.Tasks.Task CreateAgentPoolAsync(AgentPo else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -2045,14 +2030,14 @@ public async System.Threading.Tasks.Task CreateAgentPoolAsync(AgentPo { } } + + + + + + - - - - - - - + /// Returns the audit log entry associated with the provided identifier /// Keyfactor identifer of the audit entry to be returned /// Desired version of the api, if not provided defaults to v1 @@ -2063,7 +2048,7 @@ public System.Threading.Tasks.Task GetAuditLogAsync(int id) { return GetAuditLogAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the audit log entry associated with the provided identifier /// Keyfactor identifer of the audit entry to be returned @@ -2075,29 +2060,29 @@ public async System.Threading.Tasks.Task GetAuditLogAsync(int id, System { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Audit/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -2107,11 +2092,11 @@ public async System.Threading.Tasks.Task GetAuditLogAsync(int id, System foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -2119,10 +2104,10 @@ public async System.Threading.Tasks.Task GetAuditLogAsync(int id, System else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(object); } finally @@ -2136,7 +2121,7 @@ public async System.Threading.Tasks.Task GetAuditLogAsync(int id, System { } } - + /// Validates the audit log entry associated with the provided keyfactor id /// Keyfactor identifier of the audit log entry /// Desired version of the api, if not provided defaults to v1 @@ -2147,7 +2132,7 @@ public System.Threading.Tasks.Task ValidateAuditLogAsync(int id) { return ValidateAuditLogAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Validates the audit log entry associated with the provided keyfactor id /// Keyfactor identifier of the audit log entry @@ -2159,29 +2144,29 @@ public async System.Threading.Tasks.Task ValidateAuditLogAsync(int id, Sys { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Audit/{id}/Validate"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -2191,11 +2176,11 @@ public async System.Threading.Tasks.Task ValidateAuditLogAsync(int id, Sys foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -2203,10 +2188,10 @@ public async System.Threading.Tasks.Task ValidateAuditLogAsync(int id, Sys else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(bool); } finally @@ -2220,7 +2205,7 @@ public async System.Threading.Tasks.Task ValidateAuditLogAsync(int id, Sys { } } - + /// Returns all audit log entries according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -2233,9 +2218,9 @@ public async System.Threading.Tasks.Task ValidateAuditLogAsync(int id, Sys /// A server side error occurred. public System.Threading.Tasks.Task> GetAuditLogsAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending7? pq_sortAscending) { - return GetAuditLogsAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetAuditLogsAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all audit log entries according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -2251,46 +2236,46 @@ public async System.Threading.Tasks.Task ValidateAuditLogAsync(int id, Sys { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Audit?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -2300,11 +2285,11 @@ public async System.Threading.Tasks.Task ValidateAuditLogAsync(int id, Sys foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -2312,10 +2297,10 @@ public async System.Threading.Tasks.Task ValidateAuditLogAsync(int id, Sys else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -2329,7 +2314,7 @@ public async System.Threading.Tasks.Task ValidateAuditLogAsync(int id, Sys { } } - + /// Returns a Comma Separated file containing the audit log entries according to the provided filter /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -2342,9 +2327,9 @@ public async System.Threading.Tasks.Task ValidateAuditLogAsync(int id, Sys /// A server side error occurred. public System.Threading.Tasks.Task DownloadCSVAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending8? pq_sortAscending) { - return DownloadCSVAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return DownloadCSVAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a Comma Separated file containing the audit log entries according to the provided filter /// Desired version of the api, if not provided defaults to v1 @@ -2360,46 +2345,46 @@ public async System.Threading.Tasks.Task DownloadCSVAsync(string pq_quer { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Audit/Download?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -2409,11 +2394,11 @@ public async System.Threading.Tasks.Task DownloadCSVAsync(string pq_quer foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -2421,10 +2406,10 @@ public async System.Threading.Tasks.Task DownloadCSVAsync(string pq_quer else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(string); } finally @@ -2438,7 +2423,7 @@ public async System.Threading.Tasks.Task DownloadCSVAsync(string pq_quer { } } - + /// Returns the audit log entry associated with the provided keyfactor id /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -2451,9 +2436,9 @@ public async System.Threading.Tasks.Task DownloadCSVAsync(string pq_quer /// A server side error occurred. public System.Threading.Tasks.Task> GetRelatedEntitiesAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending9? pq_sortAscending) { - return GetRelatedEntitiesAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetRelatedEntitiesAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the audit log entry associated with the provided keyfactor id /// Desired version of the api, if not provided defaults to v1 @@ -2469,46 +2454,46 @@ public async System.Threading.Tasks.Task DownloadCSVAsync(string pq_quer { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Audit/RelatedEntities?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -2518,11 +2503,11 @@ public async System.Threading.Tasks.Task DownloadCSVAsync(string pq_quer foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -2530,10 +2515,10 @@ public async System.Threading.Tasks.Task DownloadCSVAsync(string pq_quer else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -2547,14 +2532,14 @@ public async System.Threading.Tasks.Task DownloadCSVAsync(string pq_quer { } } + + + + + + - - - - - - - + /// Gets the list of Security Identities and which permissions they have on the given certificate. /// The Id of the certificate permissions are being checked on /// The Id of the collection the certificate belongs in. Defaults to no collection @@ -2566,7 +2551,7 @@ public System.Threading.Tasks.Task GetCertificateSecurit { return GetCertificateSecurityAsync(id, collectionId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the list of Security Identities and which permissions they have on the given certificate. /// The Id of the certificate permissions are being checked on @@ -2579,34 +2564,34 @@ public async System.Threading.Tasks.Task GetCertificateS { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/{id}/Security?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (collectionId != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -2616,11 +2601,11 @@ public async System.Threading.Tasks.Task GetCertificateS foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -2628,10 +2613,10 @@ public async System.Threading.Tasks.Task GetCertificateS else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificatePermissions); } finally @@ -2645,7 +2630,7 @@ public async System.Threading.Tasks.Task GetCertificateS { } } - + /// Validates the certificate chain can be built. /// The Id of the certificate being checked /// An optional parameter for the collectin Id the certificate is in. Defaults to no collection @@ -2657,7 +2642,7 @@ public System.Threading.Tasks.Task ValidateCertif { return ValidateCertificateAsync(id, collectionId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Validates the certificate chain can be built. /// The Id of the certificate being checked @@ -2670,34 +2655,34 @@ public async System.Threading.Tasks.Task Validate { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/{id}/Validate?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (collectionId != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -2707,11 +2692,11 @@ public async System.Threading.Tasks.Task Validate foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -2719,10 +2704,10 @@ public async System.Threading.Tasks.Task Validate else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateValidationResponse); } finally @@ -2736,7 +2721,7 @@ public async System.Threading.Tasks.Task Validate { } } - + /// Returns a list of locations the certificate is in /// Keyfactor certificate identifier /// Optional certificate collection identifier used to ensure user access to the certificate @@ -2748,7 +2733,7 @@ public System.Threading.Tasks.Task GetCertificateL { return GetCertificateLocationsAsync(id, collectionId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a list of locations the certificate is in /// Keyfactor certificate identifier @@ -2761,34 +2746,34 @@ public async System.Threading.Tasks.Task GetCertif { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/Locations/{id}?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (collectionId != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -2798,11 +2783,11 @@ public async System.Threading.Tasks.Task GetCertif foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -2810,10 +2795,10 @@ public async System.Threading.Tasks.Task GetCertif else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateLocationsResponse); } finally @@ -2827,7 +2812,7 @@ public async System.Threading.Tasks.Task GetCertif { } } - + /// Audit identity permissions for certificate /// The Id of the certificate being checked /// An optional parameter for the collectin Id the certificate is in. Defaults to no collection @@ -2839,7 +2824,7 @@ public async System.Threading.Tasks.Task GetCertif { return IdentityAuditAsync(id, collectionId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Audit identity permissions for certificate /// The Id of the certificate being checked @@ -2852,34 +2837,34 @@ public async System.Threading.Tasks.Task GetCertif { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/IdentityAudit/{id}?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (collectionId != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -2889,11 +2874,11 @@ public async System.Threading.Tasks.Task GetCertif foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -2901,10 +2886,10 @@ public async System.Threading.Tasks.Task GetCertif else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -2918,7 +2903,7 @@ public async System.Threading.Tasks.Task GetCertif { } } - + /// Returns a single certificate that matches the id /// Keyfactor certificate identifier /// Include locations data for the certificate to be returned @@ -2932,7 +2917,7 @@ public System.Threading.Tasks.Task GetCertificateA { return GetCertificateAsync(id, includeLocations, includeMetadata, collectionId, verbose, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a single certificate that matches the id /// Keyfactor certificate identifier @@ -2947,46 +2932,46 @@ public async System.Threading.Tasks.Task GetCertif { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/{id}?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (includeLocations != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (includeLocations != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("includeLocations") + "=").Append(System.Uri.EscapeDataString(ConvertToString(includeLocations, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("includeLocations") + "=").Append(System.Uri.EscapeDataString(ConvertToString( includeLocations, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (includeMetadata != null) + if (includeMetadata != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("includeMetadata") + "=").Append(System.Uri.EscapeDataString(ConvertToString(includeMetadata, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("includeMetadata") + "=").Append(System.Uri.EscapeDataString(ConvertToString( includeMetadata, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (collectionId != null) + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (verbose != null) + if (verbose != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("verbose") + "=").Append(System.Uri.EscapeDataString(ConvertToString(verbose, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("verbose") + "=").Append(System.Uri.EscapeDataString(ConvertToString( verbose, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -2996,11 +2981,11 @@ public async System.Threading.Tasks.Task GetCertif foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -3008,10 +2993,10 @@ public async System.Threading.Tasks.Task GetCertif else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateRetrievalResponse); } finally @@ -3025,7 +3010,7 @@ public async System.Threading.Tasks.Task GetCertif { } } - + /// Deletes a persisted certificate by its unique id as well as the stored private key (if present) associated with it /// Keyfactor identifier of the certificate record /// Optional certificate collection identifier used to ensure user access to the certificate @@ -3037,7 +3022,7 @@ public System.Threading.Tasks.Task DeleteCertificateAsync(int id, int? collectio { return DeleteCertificateAsync(id, collectionId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes a persisted certificate by its unique id as well as the stored private key (if present) associated with it /// Keyfactor identifier of the certificate record @@ -3050,33 +3035,33 @@ public async System.Threading.Tasks.Task DeleteCertificateAsync(int id, int? col { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/{id}?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (collectionId != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -3086,18 +3071,18 @@ public async System.Threading.Tasks.Task DeleteCertificateAsync(int id, int? col foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -3112,7 +3097,7 @@ public async System.Threading.Tasks.Task DeleteCertificateAsync(int id, int? col { } } - + /// Compares the metadata value provided with the metadata value associated with the specified certificate /// Certificate identifier /// Metadata field being compared @@ -3126,7 +3111,7 @@ public System.Threading.Tasks.Task CompareMetadataAsync(int certificateId, { return CompareMetadataAsync(certificateId, metadataFieldName, value, collectionId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Compares the metadata value provided with the metadata value associated with the specified certificate /// Certificate identifier @@ -3141,42 +3126,42 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific { if (certificateId == null) throw new System.ArgumentNullException("certificateId"); - + if (metadataFieldName == null) throw new System.ArgumentNullException("metadataFieldName"); - + if (value == null) throw new System.ArgumentNullException("value"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/Metadata/Compare?"); - urlBuilder_.Append(System.Uri.EscapeDataString("certificateId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(certificateId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); - urlBuilder_.Append(System.Uri.EscapeDataString("metadataFieldName") + "=").Append(System.Uri.EscapeDataString(ConvertToString(metadataFieldName, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); - urlBuilder_.Append(System.Uri.EscapeDataString("value") + "=").Append(System.Uri.EscapeDataString(ConvertToString(value, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); - if (collectionId != null) + urlBuilder_.Append(System.Uri.EscapeDataString("certificateId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( certificateId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("metadataFieldName") + "=").Append(System.Uri.EscapeDataString(ConvertToString( metadataFieldName, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("value") + "=").Append(System.Uri.EscapeDataString(ConvertToString( value, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -3186,11 +3171,11 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -3198,10 +3183,10 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(bool); } finally @@ -3215,7 +3200,7 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific { } } - + /// Gets the history of operations on a certificate /// The Id of the certificate /// The collection the certificate could be in. Defaults to no collection. @@ -3231,7 +3216,7 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific { return CertificateHistoryAsync(id, collectionId, query_pageReturned, query_returnLimit, query_sortField, query_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the history of operations on a certificate /// The Id of the certificate @@ -3248,50 +3233,50 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/{id}/History?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (collectionId != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_pageReturned != null) + if (query_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_returnLimit != null) + if (query_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortField != null) + if (query_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortAscending != null) + if (query_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -3301,11 +3286,11 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -3313,10 +3298,10 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -3330,7 +3315,7 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific { } } - + /// Returns all certificates according to the provided filter and output parameters /// Optional certificate collection identifier used to ensure user access to the certificate /// Include locations data for the certificates to be returned @@ -3351,7 +3336,7 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific { return QueryCertificatesAsync(collectionId, includeLocations, includeMetadata, includeHasPrivateKey, verbose, pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, pq_includeRevoked, pq_includeExpired, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all certificates according to the provided filter and output parameters /// Optional certificate collection identifier used to ensure user access to the certificate @@ -3373,74 +3358,74 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates?"); - if (collectionId != null) + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (includeLocations != null) + if (includeLocations != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("includeLocations") + "=").Append(System.Uri.EscapeDataString(ConvertToString(includeLocations, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("includeLocations") + "=").Append(System.Uri.EscapeDataString(ConvertToString( includeLocations, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (includeMetadata != null) + if (includeMetadata != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("includeMetadata") + "=").Append(System.Uri.EscapeDataString(ConvertToString(includeMetadata, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("includeMetadata") + "=").Append(System.Uri.EscapeDataString(ConvertToString( includeMetadata, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (includeHasPrivateKey != null) + if (includeHasPrivateKey != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("includeHasPrivateKey") + "=").Append(System.Uri.EscapeDataString(ConvertToString(includeHasPrivateKey, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("includeHasPrivateKey") + "=").Append(System.Uri.EscapeDataString(ConvertToString( includeHasPrivateKey, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (verbose != null) + if (verbose != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("verbose") + "=").Append(System.Uri.EscapeDataString(ConvertToString(verbose, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("verbose") + "=").Append(System.Uri.EscapeDataString(ConvertToString( verbose, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_includeRevoked != null) + if (pq_includeRevoked != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.includeRevoked") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_includeRevoked, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.includeRevoked") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_includeRevoked, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_includeExpired != null) + if (pq_includeExpired != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.includeExpired") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_includeExpired, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.includeExpired") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_includeExpired, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -3450,11 +3435,11 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -3462,10 +3447,10 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -3479,7 +3464,7 @@ public async System.Threading.Tasks.Task CompareMetadataAsync(int certific { } } - + /// Deletes multiple persisted certificates by their unique ids /// Optional certificate collection identifier used to ensure user access to the certificate /// Desired version of the api, if not provided defaults to v1 @@ -3491,7 +3476,7 @@ public System.Threading.Tasks.Task DeleteCertificatesAsync(int? collectionId, Sy { return DeleteCertificatesAsync(collectionId, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes multiple persisted certificates by their unique ids /// Optional certificate collection identifier used to ensure user access to the certificate @@ -3504,32 +3489,32 @@ public async System.Threading.Tasks.Task DeleteCertificatesAsync(int? collection { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates?"); - if (collectionId != null) + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -3539,18 +3524,18 @@ public async System.Threading.Tasks.Task DeleteCertificatesAsync(int? collection foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -3565,7 +3550,7 @@ public async System.Threading.Tasks.Task DeleteCertificatesAsync(int? collection { } } - + /// Updates the metadata for the certificate associated with the identifier provided /// Optional certificate collection identifier used to ensure user access to the certificate /// Desired version of the api, if not provided defaults to v1 @@ -3577,7 +3562,7 @@ public System.Threading.Tasks.Task UpdateMetadataAsync(int? collectionId, Metada { return UpdateMetadataAsync(collectionId, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates the metadata for the certificate associated with the identifier provided /// Optional certificate collection identifier used to ensure user access to the certificate @@ -3590,32 +3575,32 @@ public async System.Threading.Tasks.Task UpdateMetadataAsync(int? collectionId, { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/Metadata?"); - if (collectionId != null) + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -3625,18 +3610,18 @@ public async System.Threading.Tasks.Task UpdateMetadataAsync(int? collectionId, foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -3651,7 +3636,7 @@ public async System.Threading.Tasks.Task UpdateMetadataAsync(int? collectionId, { } } - + /// Updates the metadata for certificates associated with the certificate identifiers or query provided /// Optional certificate collection identifier used to ensure user access to the certificate /// Desired version of the api, if not provided defaults to v1 @@ -3663,7 +3648,7 @@ public System.Threading.Tasks.Task UpdateAllMetadataAsync(int? collectionId, Met { return UpdateAllMetadataAsync(collectionId, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates the metadata for certificates associated with the certificate identifiers or query provided /// Optional certificate collection identifier used to ensure user access to the certificate @@ -3676,32 +3661,32 @@ public async System.Threading.Tasks.Task UpdateAllMetadataAsync(int? collectionI { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/Metadata/All?"); - if (collectionId != null) + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -3711,18 +3696,18 @@ public async System.Threading.Tasks.Task UpdateAllMetadataAsync(int? collectionI foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -3737,7 +3722,7 @@ public async System.Threading.Tasks.Task UpdateAllMetadataAsync(int? collectionI { } } - + /// Imports the provided certificate into the Keyfactor instance, including any provided associated data /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -3746,9 +3731,9 @@ public async System.Threading.Tasks.Task UpdateAllMetadataAsync(int? collectionI /// A server side error occurred. public System.Threading.Tasks.Task PostImportCertificateAsync(CertificateImportRequestModel body) { - return PostImportCertificateAsync(body, System.Threading.CancellationToken.None); + return PostImportCertificateAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Imports the provided certificate into the Keyfactor instance, including any provided associated data /// Desired version of the api, if not provided defaults to v1 @@ -3760,28 +3745,28 @@ public async System.Threading.Tasks.Task PostImp { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/Import"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -3791,11 +3776,11 @@ public async System.Threading.Tasks.Task PostImp foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -3803,10 +3788,10 @@ public async System.Threading.Tasks.Task PostImp else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateImportResponseModel); } finally @@ -3820,7 +3805,7 @@ public async System.Threading.Tasks.Task PostImp { } } - + /// Revokes the certificates associated with the provided identifiers and associates the provided data with the revocation /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -3829,9 +3814,9 @@ public async System.Threading.Tasks.Task PostImp /// A server side error occurred. public System.Threading.Tasks.Task RevokeAsync(RevokeCertificateRequest body) { - return RevokeAsync(body, System.Threading.CancellationToken.None); + return RevokeAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Revokes the certificates associated with the provided identifiers and associates the provided data with the revocation /// Desired version of the api, if not provided defaults to v1 @@ -3843,28 +3828,28 @@ public async System.Threading.Tasks.Task RevokeAsync(RevokeC { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/Revoke"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -3874,11 +3859,11 @@ public async System.Threading.Tasks.Task RevokeAsync(RevokeC foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -3886,10 +3871,10 @@ public async System.Threading.Tasks.Task RevokeAsync(RevokeC else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(RevocationResponse); } finally @@ -3903,7 +3888,7 @@ public async System.Threading.Tasks.Task RevokeAsync(RevokeC { } } - + /// Returns the public information of the certificate /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -3912,9 +3897,9 @@ public async System.Threading.Tasks.Task RevokeAsync(RevokeC /// A server side error occurred. public System.Threading.Tasks.Task> AnalyzeCertAsync(AnalyzeCertificateRequest body) { - return AnalyzeCertAsync(body, System.Threading.CancellationToken.None); + return AnalyzeCertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the public information of the certificate /// Desired version of the api, if not provided defaults to v1 @@ -3926,28 +3911,28 @@ public async System.Threading.Tasks.Task RevokeAsync(RevokeC { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/Analyze"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -3957,11 +3942,11 @@ public async System.Threading.Tasks.Task RevokeAsync(RevokeC foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -3969,10 +3954,10 @@ public async System.Threading.Tasks.Task RevokeAsync(RevokeC else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -3986,7 +3971,7 @@ public async System.Threading.Tasks.Task RevokeAsync(RevokeC { } } - + /// Recovers the persisted certificate associated with the provided query /// Optional certificate collection identifier used to ensure user access to the certificate /// Desired version of the api, if not provided defaults to v1 @@ -3998,7 +3983,7 @@ public System.Threading.Tasks.Task RecoverCertificateAsync(int { return RecoverCertificateAsync(collectionId, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Recovers the persisted certificate associated with the provided query /// Optional certificate collection identifier used to ensure user access to the certificate @@ -4011,33 +3996,33 @@ public async System.Threading.Tasks.Task RecoverCertificateAsy { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/Recover?"); - if (collectionId != null) + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -4047,11 +4032,11 @@ public async System.Threading.Tasks.Task RecoverCertificateAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -4059,10 +4044,10 @@ public async System.Threading.Tasks.Task RecoverCertificateAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(RecoveryResponse); } finally @@ -4076,58 +4061,63 @@ public async System.Threading.Tasks.Task RecoverCertificateAsy { } } - + /// Downloads the persisted certificate associated with the provided query /// Optional certificate collection identifier used to ensure user access to the certificate /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] + /// Desired format [DER, PEM, P7B] /// Query to filter the certificate to be recovered /// OK /// A server side error occurred. - public System.Threading.Tasks.Task DownloadCertificateAsync(int? collectionId, CertificateDownloadRequest body) + public System.Threading.Tasks.Task DownloadCertificateAsync(int? collectionId, string x_certificateformat, CertificateDownloadRequest body) { - return DownloadCertificateAsync(collectionId, body, System.Threading.CancellationToken.None); + return DownloadCertificateAsync(collectionId, x_certificateformat, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Downloads the persisted certificate associated with the provided query /// Optional certificate collection identifier used to ensure user access to the certificate /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] + /// Desired format [DER, PEM, P7B] /// Query to filter the certificate to be recovered /// OK /// A server side error occurred. - public async System.Threading.Tasks.Task DownloadCertificateAsync(int? collectionId, CertificateDownloadRequest body, System.Threading.CancellationToken cancellationToken) + public async System.Threading.Tasks.Task DownloadCertificateAsync(int? collectionId, string x_certificateformat, CertificateDownloadRequest body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/Download?"); - if (collectionId != null) + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + if (x_certificateformat == null) + throw new System.ArgumentNullException("x_certificateformat"); + request_.Headers.TryAddWithoutValidation("x-certificateformat", ConvertToString( x_certificateformat, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -4137,11 +4127,11 @@ public async System.Threading.Tasks.Task DownloadCe foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -4149,10 +4139,10 @@ public async System.Threading.Tasks.Task DownloadCe else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateDownloadResponse); } finally @@ -4166,7 +4156,7 @@ public async System.Threading.Tasks.Task DownloadCe { } } - + /// Revokes the certificates associated with the provided query and Collection Id and associates the provided data with the revocation /// A collection Id to be used for permissions and part of the query to revoke certificates /// Desired version of the api, if not provided defaults to v1 @@ -4178,7 +4168,7 @@ public System.Threading.Tasks.Task RevokeAllAsync(int? colle { return RevokeAllAsync(collectionId, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Revokes the certificates associated with the provided query and Collection Id and associates the provided data with the revocation /// A collection Id to be used for permissions and part of the query to revoke certificates @@ -4191,33 +4181,33 @@ public async System.Threading.Tasks.Task RevokeAllAsync(int? { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/RevokeAll?"); - if (collectionId != null) + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -4227,11 +4217,11 @@ public async System.Threading.Tasks.Task RevokeAllAsync(int? foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -4239,10 +4229,10 @@ public async System.Threading.Tasks.Task RevokeAllAsync(int? else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(RevocationResponse); } finally @@ -4256,7 +4246,7 @@ public async System.Threading.Tasks.Task RevokeAllAsync(int? { } } - + /// Deletes multiple persisted certificate entities selected by a given query /// Optional certificate collection identifier used to ensure user access to the certificate /// Desired version of the api, if not provided defaults to v1 @@ -4268,7 +4258,7 @@ public System.Threading.Tasks.Task DeleteByQueryAsync(int? collectionId, string { return DeleteByQueryAsync(collectionId, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes multiple persisted certificate entities selected by a given query /// Optional certificate collection identifier used to ensure user access to the certificate @@ -4281,32 +4271,32 @@ public async System.Threading.Tasks.Task DeleteByQueryAsync(int? collectionId, s { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/Query?"); - if (collectionId != null) + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -4316,18 +4306,18 @@ public async System.Threading.Tasks.Task DeleteByQueryAsync(int? collectionId, s foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -4342,7 +4332,7 @@ public async System.Threading.Tasks.Task DeleteByQueryAsync(int? collectionId, s { } } - + /// Deletes the persisted private keys of multiple certificates by the unique ids of the Certificates /// Optional certificate collection identifier used to ensure user access to the certificate /// Desired version of the api, if not provided defaults to v1 @@ -4354,7 +4344,7 @@ public System.Threading.Tasks.Task DeletePrivateKeys0Async(int? collectionId, Sy { return DeletePrivateKeys0Async(collectionId, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes the persisted private keys of multiple certificates by the unique ids of the Certificates /// Optional certificate collection identifier used to ensure user access to the certificate @@ -4367,32 +4357,32 @@ public async System.Threading.Tasks.Task DeletePrivateKeys0Async(int? collection { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/PrivateKey?"); - if (collectionId != null) + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -4402,18 +4392,18 @@ public async System.Threading.Tasks.Task DeletePrivateKeys0Async(int? collection foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -4428,7 +4418,7 @@ public async System.Threading.Tasks.Task DeletePrivateKeys0Async(int? collection { } } - + /// Deletes the persisted private key of the certificate associated with the provided identifier /// Keyfactor identifier of the certificate for which the associated private key should be deleted /// Optional certificate collection identifier used to ensure user access to the certificate @@ -4440,7 +4430,7 @@ public System.Threading.Tasks.Task DeletePrivateKeys1Async(int id, int? collecti { return DeletePrivateKeys1Async(id, collectionId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes the persisted private key of the certificate associated with the provided identifier /// Keyfactor identifier of the certificate for which the associated private key should be deleted @@ -4453,33 +4443,33 @@ public async System.Threading.Tasks.Task DeletePrivateKeys1Async(int id, int? co { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Certificates/PrivateKey/{id}?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (collectionId != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -4489,18 +4479,18 @@ public async System.Threading.Tasks.Task DeletePrivateKeys1Async(int id, int? co foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -4515,14 +4505,14 @@ public async System.Threading.Tasks.Task DeletePrivateKeys1Async(int id, int? co { } } + + + + + + - - - - - - - + /// Returns details for a single CA, specified by ID /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -4532,7 +4522,7 @@ public System.Threading.Tasks.Task GetCaAsync(int { return GetCaAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns details for a single CA, specified by ID /// Desired version of the api, if not provided defaults to v1 @@ -4543,29 +4533,29 @@ public async System.Threading.Tasks.Task GetCaAsyn { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateAuthority/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -4575,11 +4565,11 @@ public async System.Threading.Tasks.Task GetCaAsyn foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -4587,10 +4577,10 @@ public async System.Threading.Tasks.Task GetCaAsyn else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateAuthorityResponse); } finally @@ -4604,7 +4594,7 @@ public async System.Threading.Tasks.Task GetCaAsyn { } } - + /// Deletes a CertificateAuthority from the system, specified by ID /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -4614,7 +4604,7 @@ public System.Threading.Tasks.Task DeleteCAAsync(int id) { return DeleteCAAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes a CertificateAuthority from the system, specified by ID /// Desired version of the api, if not provided defaults to v1 @@ -4625,28 +4615,28 @@ public async System.Threading.Tasks.Task DeleteCAAsync(int id, System.Threading. { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateAuthority/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -4656,18 +4646,18 @@ public async System.Threading.Tasks.Task DeleteCAAsync(int id, System.Threading. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -4682,7 +4672,7 @@ public async System.Threading.Tasks.Task DeleteCAAsync(int id, System.Threading. { } } - + /// Returns all certificate authorities /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -4695,9 +4685,9 @@ public async System.Threading.Tasks.Task DeleteCAAsync(int id, System.Threading. /// A server side error occurred. public System.Threading.Tasks.Task> GetCasAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending12? pq_sortAscending) { - return GetCasAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetCasAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all certificate authorities /// Desired version of the api, if not provided defaults to v1 @@ -4713,46 +4703,46 @@ public async System.Threading.Tasks.Task DeleteCAAsync(int id, System.Threading. { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateAuthority?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -4762,11 +4752,11 @@ public async System.Threading.Tasks.Task DeleteCAAsync(int id, System.Threading. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -4774,10 +4764,10 @@ public async System.Threading.Tasks.Task DeleteCAAsync(int id, System.Threading. else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -4791,7 +4781,7 @@ public async System.Threading.Tasks.Task DeleteCAAsync(int id, System.Threading. { } } - + /// Updates a CertificateAuthority object /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -4799,9 +4789,9 @@ public async System.Threading.Tasks.Task DeleteCAAsync(int id, System.Threading. /// A server side error occurred. public System.Threading.Tasks.Task UpdateCAAsync(CertificateAuthorityRequest body) { - return UpdateCAAsync(body, System.Threading.CancellationToken.None); + return UpdateCAAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates a CertificateAuthority object /// Desired version of the api, if not provided defaults to v1 @@ -4812,28 +4802,28 @@ public async System.Threading.Tasks.Task UpdateCAA { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateAuthority"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -4843,11 +4833,11 @@ public async System.Threading.Tasks.Task UpdateCAA foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -4855,10 +4845,10 @@ public async System.Threading.Tasks.Task UpdateCAA else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateAuthorityResponse); } finally @@ -4872,7 +4862,7 @@ public async System.Threading.Tasks.Task UpdateCAA { } } - + /// Creates a new CertificateAuthority object /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -4880,9 +4870,9 @@ public async System.Threading.Tasks.Task UpdateCAA /// A server side error occurred. public System.Threading.Tasks.Task CreateCAAsync(CertificateAuthorityRequest body) { - return CreateCAAsync(body, System.Threading.CancellationToken.None); + return CreateCAAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a new CertificateAuthority object /// Desired version of the api, if not provided defaults to v1 @@ -4893,28 +4883,28 @@ public async System.Threading.Tasks.Task CreateCAA { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateAuthority"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -4924,11 +4914,11 @@ public async System.Threading.Tasks.Task CreateCAA foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -4936,10 +4926,10 @@ public async System.Threading.Tasks.Task CreateCAA else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateAuthorityResponse); } finally @@ -4953,7 +4943,7 @@ public async System.Threading.Tasks.Task CreateCAA { } } - + /// Validates the connection info for the CA provided by the model. /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -4962,9 +4952,9 @@ public async System.Threading.Tasks.Task CreateCAA /// A server side error occurred. public System.Threading.Tasks.Task TestCertificateAuthorityAsync(CertificateAuthorityRequest body) { - return TestCertificateAuthorityAsync(body, System.Threading.CancellationToken.None); + return TestCertificateAuthorityAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Validates the connection info for the CA provided by the model. /// Desired version of the api, if not provided defaults to v1 @@ -4976,28 +4966,28 @@ public async System.Threading.Tasks.Task TestC { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateAuthority/Test"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -5007,11 +4997,11 @@ public async System.Threading.Tasks.Task TestC foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -5019,10 +5009,10 @@ public async System.Threading.Tasks.Task TestC else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateAuthorityTestResponse); } finally @@ -5036,7 +5026,7 @@ public async System.Threading.Tasks.Task TestC { } } - + /// Publishes a CRL according to the provided request /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -5045,9 +5035,9 @@ public async System.Threading.Tasks.Task TestC /// A server side error occurred. public System.Threading.Tasks.Task PublishCRLAsync(CRLRequestModel body) { - return PublishCRLAsync(body, System.Threading.CancellationToken.None); + return PublishCRLAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Publishes a CRL according to the provided request /// Desired version of the api, if not provided defaults to v1 @@ -5059,27 +5049,27 @@ public async System.Threading.Tasks.Task PublishCRLAsync(CRLRequestModel body, S { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateAuthority/PublishCRL"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -5089,18 +5079,18 @@ public async System.Threading.Tasks.Task PublishCRLAsync(CRLRequestModel body, S foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -5115,14 +5105,14 @@ public async System.Threading.Tasks.Task PublishCRLAsync(CRLRequestModel body, S { } } + + + + + + - - - - - - - + /// Returns the certificate collection definition associated with the provided Keyfactor identifier /// Identifier of the certificate collection /// Desired version of the api, if not provided defaults to v1 @@ -5133,7 +5123,7 @@ public System.Threading.Tasks.Task GetCollection0Async(int id) { return GetCollection0Async(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the certificate collection definition associated with the provided Keyfactor identifier /// Identifier of the certificate collection @@ -5145,29 +5135,29 @@ public async System.Threading.Tasks.Task GetCollection0Async(i { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateCollections/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -5177,11 +5167,11 @@ public async System.Threading.Tasks.Task GetCollection0Async(i foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -5189,10 +5179,10 @@ public async System.Threading.Tasks.Task GetCollection0Async(i else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateQuery); } finally @@ -5206,7 +5196,7 @@ public async System.Threading.Tasks.Task GetCollection0Async(i { } } - + /// Returns the certificate collection associated with the provided collection name /// Name of the Collection /// Desired version of the api, if not provided defaults to v1 @@ -5217,7 +5207,7 @@ public System.Threading.Tasks.Task GetCollection1Async(string { return GetCollection1Async(name, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the certificate collection associated with the provided collection name /// Name of the Collection @@ -5229,29 +5219,29 @@ public async System.Threading.Tasks.Task GetCollection1Async(s { if (name == null) throw new System.ArgumentNullException("name"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateCollections/{name}"); - urlBuilder_.Replace("{name}", System.Uri.EscapeDataString(ConvertToString(name, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{name}", System.Uri.EscapeDataString(ConvertToString( name, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -5261,11 +5251,11 @@ public async System.Threading.Tasks.Task GetCollection1Async(s foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -5273,10 +5263,10 @@ public async System.Threading.Tasks.Task GetCollection1Async(s else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateQuery); } finally @@ -5290,7 +5280,7 @@ public async System.Threading.Tasks.Task GetCollection1Async(s { } } - + /// Returns all certificate collections /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -5303,9 +5293,9 @@ public async System.Threading.Tasks.Task GetCollection1Async(s /// A server side error occurred. public System.Threading.Tasks.Task> GetCollectionsAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending13? pq_sortAscending) { - return GetCollectionsAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetCollectionsAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all certificate collections /// Desired version of the api, if not provided defaults to v1 @@ -5321,46 +5311,46 @@ public async System.Threading.Tasks.Task GetCollection1Async(s { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateCollections?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -5370,11 +5360,11 @@ public async System.Threading.Tasks.Task GetCollection1Async(s foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -5382,10 +5372,10 @@ public async System.Threading.Tasks.Task GetCollection1Async(s else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -5399,7 +5389,7 @@ public async System.Threading.Tasks.Task GetCollection1Async(s { } } - + /// Updates an existing certificate collection with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -5408,9 +5398,9 @@ public async System.Threading.Tasks.Task GetCollection1Async(s /// A server side error occurred. public System.Threading.Tasks.Task UpdateCollectionAsync(CertificateCollectionUpdateRequest body) { - return UpdateCollectionAsync(body, System.Threading.CancellationToken.None); + return UpdateCollectionAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates an existing certificate collection with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -5422,28 +5412,28 @@ public async System.Threading.Tasks.Task UpdateCo { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateCollections"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -5453,11 +5443,11 @@ public async System.Threading.Tasks.Task UpdateCo foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -5465,10 +5455,10 @@ public async System.Threading.Tasks.Task UpdateCo else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateCollectionResponse); } finally @@ -5482,7 +5472,7 @@ public async System.Threading.Tasks.Task UpdateCo { } } - + /// Creates a new certificate collection with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -5491,9 +5481,9 @@ public async System.Threading.Tasks.Task UpdateCo /// A server side error occurred. public System.Threading.Tasks.Task CreateCollectionAsync(CertificateCollectionCreateRequest body) { - return CreateCollectionAsync(body, System.Threading.CancellationToken.None); + return CreateCollectionAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a new certificate collection with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -5505,28 +5495,28 @@ public async System.Threading.Tasks.Task CreateCo { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateCollections"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -5536,11 +5526,11 @@ public async System.Threading.Tasks.Task CreateCo foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -5548,10 +5538,10 @@ public async System.Threading.Tasks.Task CreateCo else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateCollectionResponse); } finally @@ -5565,7 +5555,7 @@ public async System.Threading.Tasks.Task CreateCo { } } - + /// Creates a new certificate collection from an existing collection. The permissions, query and description of the /// existing collection are copied when creating the new record, with the option to overwrite the query or description. /// Desired version of the api, if not provided defaults to v1 @@ -5575,9 +5565,9 @@ public async System.Threading.Tasks.Task CreateCo /// A server side error occurred. public System.Threading.Tasks.Task CopyFromExistingCollectionAsync(CertificateCollectionCopyRequest body) { - return CopyFromExistingCollectionAsync(body, System.Threading.CancellationToken.None); + return CopyFromExistingCollectionAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a new certificate collection from an existing collection. The permissions, query and description of the /// existing collection are copied when creating the new record, with the option to overwrite the query or description. @@ -5590,28 +5580,28 @@ public async System.Threading.Tasks.Task CopyFrom { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateCollections/Copy"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -5621,11 +5611,11 @@ public async System.Threading.Tasks.Task CopyFrom foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -5633,10 +5623,10 @@ public async System.Threading.Tasks.Task CopyFrom else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateCollectionResponse); } finally @@ -5650,7 +5640,7 @@ public async System.Threading.Tasks.Task CopyFrom { } } - + /// Set the permissions for a collection /// The collection to set permissions on /// Desired version of the api, if not provided defaults to v1 @@ -5663,7 +5653,7 @@ public System.Threading.Tasks.Task SetCollectionPermissionsAsync(int id, System. { return SetCollectionPermissionsAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Set the permissions for a collection /// The collection to set permissions on @@ -5677,31 +5667,31 @@ public async System.Threading.Tasks.Task SetCollectionPermissionsAsync(int id, S { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateCollections/{id}/Permissions"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -5711,18 +5701,18 @@ public async System.Threading.Tasks.Task SetCollectionPermissionsAsync(int id, S foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -5737,14 +5727,14 @@ public async System.Threading.Tasks.Task SetCollectionPermissionsAsync(int id, S { } } + + + + + + - - - - - - - + /// Deletes multiple persisted certificate store entities by their identifiers /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -5753,9 +5743,9 @@ public async System.Threading.Tasks.Task SetCollectionPermissionsAsync(int id, S /// A server side error occurred. public System.Threading.Tasks.Task DeleteCertificateStoresAsync(System.Collections.Generic.IEnumerable body) { - return DeleteCertificateStoresAsync(body, System.Threading.CancellationToken.None); + return DeleteCertificateStoresAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes multiple persisted certificate store entities by their identifiers /// Desired version of the api, if not provided defaults to v1 @@ -5767,27 +5757,27 @@ public async System.Threading.Tasks.Task DeleteCertificateStoresAsync(System.Col { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStores"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -5797,18 +5787,18 @@ public async System.Threading.Tasks.Task DeleteCertificateStoresAsync(System.Col foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -5823,7 +5813,7 @@ public async System.Threading.Tasks.Task DeleteCertificateStoresAsync(System.Col { } } - + /// Deletes a persisted certificate store by its Keyfactor identifier /// Keyfactor certificate store identifier (GUID) /// Desired version of the api, if not provided defaults to v1 @@ -5834,7 +5824,7 @@ public System.Threading.Tasks.Task DeleteCertificateStoreAsync(System.Guid id) { return DeleteCertificateStoreAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes a persisted certificate store by its Keyfactor identifier /// Keyfactor certificate store identifier (GUID) @@ -5846,28 +5836,28 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreAsync(System.Guid { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStores/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -5877,18 +5867,18 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreAsync(System.Guid foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -5903,7 +5893,7 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreAsync(System.Guid { } } - + /// Returns a single certificate store's inventory associated with the provided id /// Keyfactor identifier (GUID) of the certificate store /// Desired version of the api, if not provided defaults to v1 @@ -5918,7 +5908,7 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreAsync(System.Guid { return GetCertificateStoreInventoryAsync(id, query_pageReturned, query_returnLimit, query_sortField, query_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a single certificate store's inventory associated with the provided id /// Keyfactor identifier (GUID) of the certificate store @@ -5934,46 +5924,46 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreAsync(System.Guid { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStores/{id}/Inventory?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (query_pageReturned != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (query_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_returnLimit != null) + if (query_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortField != null) + if (query_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortAscending != null) + if (query_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -5983,11 +5973,11 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreAsync(System.Guid foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -5995,10 +5985,10 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreAsync(System.Guid else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -6012,7 +6002,7 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreAsync(System.Guid { } } - + /// Updates a given certificate store server with the properties of the provided instance /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -6022,9 +6012,9 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreAsync(System.Guid [System.Obsolete] public System.Threading.Tasks.Task UpdateCertificateStoreServerAsync(CertificateStoreUpdateServerRequest body) { - return UpdateCertificateStoreServerAsync(body, System.Threading.CancellationToken.None); + return UpdateCertificateStoreServerAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates a given certificate store server with the properties of the provided instance /// Desired version of the api, if not provided defaults to v1 @@ -6037,28 +6027,28 @@ public async System.Threading.Tasks.Task UpdateC { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStores/Server"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -6068,11 +6058,11 @@ public async System.Threading.Tasks.Task UpdateC foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -6080,10 +6070,10 @@ public async System.Threading.Tasks.Task UpdateC else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateStoreServerResponse); } finally @@ -6097,7 +6087,7 @@ public async System.Threading.Tasks.Task UpdateC { } } - + /// Creates a new certificate store server with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -6107,9 +6097,9 @@ public async System.Threading.Tasks.Task UpdateC [System.Obsolete] public System.Threading.Tasks.Task CreateCertificateStoreServerAsync(CertificateStoreCreateServerRequest body) { - return CreateCertificateStoreServerAsync(body, System.Threading.CancellationToken.None); + return CreateCertificateStoreServerAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a new certificate store server with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -6122,28 +6112,28 @@ public async System.Threading.Tasks.Task CreateC { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStores/Server"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -6153,11 +6143,11 @@ public async System.Threading.Tasks.Task CreateC foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -6165,10 +6155,10 @@ public async System.Threading.Tasks.Task CreateC else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateStoreServerResponse); } finally @@ -6182,7 +6172,7 @@ public async System.Threading.Tasks.Task CreateC { } } - + /// Sets a password for the requested certificate store /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -6191,9 +6181,9 @@ public async System.Threading.Tasks.Task CreateC /// A server side error occurred. public System.Threading.Tasks.Task SetPasswordAsync(CertStoreNewPasswordRequest body) { - return SetPasswordAsync(body, System.Threading.CancellationToken.None); + return SetPasswordAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Sets a password for the requested certificate store /// Desired version of the api, if not provided defaults to v1 @@ -6205,27 +6195,27 @@ public async System.Threading.Tasks.Task SetPasswordAsync(CertStoreNewPasswordRe { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStores/Password"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -6235,18 +6225,18 @@ public async System.Threading.Tasks.Task SetPasswordAsync(CertStoreNewPasswordRe foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -6261,7 +6251,7 @@ public async System.Threading.Tasks.Task SetPasswordAsync(CertStoreNewPasswordRe { } } - + /// Configures a discovery job to locate currently unmanaged certificate stores /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -6270,9 +6260,9 @@ public async System.Threading.Tasks.Task SetPasswordAsync(CertStoreNewPasswordRe /// A server side error occurred. public System.Threading.Tasks.Task ConfigureDiscoveryJobAsync(DiscoveryJobRequest body) { - return ConfigureDiscoveryJobAsync(body, System.Threading.CancellationToken.None); + return ConfigureDiscoveryJobAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Configures a discovery job to locate currently unmanaged certificate stores /// Desired version of the api, if not provided defaults to v1 @@ -6284,27 +6274,27 @@ public async System.Threading.Tasks.Task ConfigureDiscoveryJobAsync(DiscoveryJob { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStores/DiscoveryJob"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -6314,18 +6304,18 @@ public async System.Threading.Tasks.Task ConfigureDiscoveryJobAsync(DiscoveryJob foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -6340,7 +6330,7 @@ public async System.Threading.Tasks.Task ConfigureDiscoveryJobAsync(DiscoveryJob { } } - + /// Approves the provided certificate stores to make them available for management /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -6349,9 +6339,9 @@ public async System.Threading.Tasks.Task ConfigureDiscoveryJobAsync(DiscoveryJob /// A server side error occurred. public System.Threading.Tasks.Task ApprovePendingAsync(System.Collections.Generic.IEnumerable body) { - return ApprovePendingAsync(body, System.Threading.CancellationToken.None); + return ApprovePendingAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Approves the provided certificate stores to make them available for management /// Desired version of the api, if not provided defaults to v1 @@ -6363,27 +6353,27 @@ public async System.Threading.Tasks.Task ApprovePendingAsync(System.Collections. { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStores/Approve"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -6393,18 +6383,18 @@ public async System.Threading.Tasks.Task ApprovePendingAsync(System.Collections. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -6419,7 +6409,7 @@ public async System.Threading.Tasks.Task ApprovePendingAsync(System.Collections. { } } - + /// Creates an inventory schedule for the provided certificate stores /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -6428,9 +6418,9 @@ public async System.Threading.Tasks.Task ApprovePendingAsync(System.Collections. /// A server side error occurred. public System.Threading.Tasks.Task ScheduleAsync(CertStoresSchedule body) { - return ScheduleAsync(body, System.Threading.CancellationToken.None); + return ScheduleAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates an inventory schedule for the provided certificate stores /// Desired version of the api, if not provided defaults to v1 @@ -6442,27 +6432,27 @@ public async System.Threading.Tasks.Task ScheduleAsync(CertStoresSchedule body, { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStores/Schedule"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -6472,18 +6462,18 @@ public async System.Threading.Tasks.Task ScheduleAsync(CertStoresSchedule body, foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -6498,7 +6488,7 @@ public async System.Threading.Tasks.Task ScheduleAsync(CertStoresSchedule body, { } } - + /// Schedules a certificate store for reenrollment /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -6507,9 +6497,9 @@ public async System.Threading.Tasks.Task ScheduleAsync(CertStoresSchedule body, /// A server side error occurred. public System.Threading.Tasks.Task ScheduleForReenrollmentAsync(ReenrollmentRequest body) { - return ScheduleForReenrollmentAsync(body, System.Threading.CancellationToken.None); + return ScheduleForReenrollmentAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Schedules a certificate store for reenrollment /// Desired version of the api, if not provided defaults to v1 @@ -6521,27 +6511,27 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStores/Reenrollment"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -6551,18 +6541,18 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -6577,7 +6567,7 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme { } } - + /// Configures a management job to add a certificate to one or more stores with the provided schedule /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -6586,9 +6576,9 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme /// A server side error occurred. public System.Threading.Tasks.Task> AddCertificateAsync(AddCertificateRequest body) { - return AddCertificateAsync(body, System.Threading.CancellationToken.None); + return AddCertificateAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Configures a management job to add a certificate to one or more stores with the provided schedule /// Desired version of the api, if not provided defaults to v1 @@ -6600,28 +6590,28 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStores/Certificates/Add"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -6631,11 +6621,11 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -6643,10 +6633,10 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -6660,7 +6650,7 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme { } } - + /// Configures a management job to remove a certificate from one or more stores with the provided schedule /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -6669,9 +6659,9 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme /// A server side error occurred. public System.Threading.Tasks.Task> RemoveCertificateAsync(RemoveCertificateRequest body) { - return RemoveCertificateAsync(body, System.Threading.CancellationToken.None); + return RemoveCertificateAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Configures a management job to remove a certificate from one or more stores with the provided schedule /// Desired version of the api, if not provided defaults to v1 @@ -6683,28 +6673,28 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStores/Certificates/Remove"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -6714,11 +6704,11 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -6726,10 +6716,10 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -6743,14 +6733,14 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme { } } + + + + + + - - - - - - - + /// Returns all certificate store container according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -6763,9 +6753,9 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme /// A server side error occurred. public System.Threading.Tasks.Task> GetAllCertificateStoreContainersAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending15? pq_sortAscending) { - return GetAllCertificateStoreContainersAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetAllCertificateStoreContainersAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all certificate store container according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -6781,46 +6771,46 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStoreContainers?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -6830,11 +6820,11 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -6842,10 +6832,10 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -6859,7 +6849,7 @@ public async System.Threading.Tasks.Task ScheduleForReenrollmentAsync(Reenrollme { } } - + /// Delete a certificate store container /// Id for the certificate store container /// Desired version of the api, if not provided defaults to v1 @@ -6870,7 +6860,7 @@ public System.Threading.Tasks.Task DeleteCertificateStoreContainersAsync(int id) { return DeleteCertificateStoreContainersAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete a certificate store container /// Id for the certificate store container @@ -6882,28 +6872,28 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreContainersAsync(i { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStoreContainers/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -6913,18 +6903,18 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreContainersAsync(i foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -6939,14 +6929,14 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreContainersAsync(i { } } + + + + + + - - - - - - - + /// Returns a single certificate store type that matches id /// Keyfactor identifier of the certificate store type /// Desired version of the api, if not provided defaults to v1 @@ -6957,7 +6947,7 @@ public System.Threading.Tasks.Task GetCertificateS { return GetCertificateStoreType0Async(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a single certificate store type that matches id /// Keyfactor identifier of the certificate store type @@ -6969,29 +6959,29 @@ public async System.Threading.Tasks.Task GetCertif { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStoreTypes/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -7001,11 +6991,11 @@ public async System.Threading.Tasks.Task GetCertif foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -7013,10 +7003,10 @@ public async System.Threading.Tasks.Task GetCertif else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateStoreTypeResponse); } finally @@ -7030,7 +7020,7 @@ public async System.Threading.Tasks.Task GetCertif { } } - + /// Deletes a certificate store type according to the provided identifier /// Keyfactor identifier of the certificate store type to be deleted /// Desired version of the api, if not provided defaults to v1 @@ -7041,7 +7031,7 @@ public System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id) { return DeleteCertificateStoreTypeAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes a certificate store type according to the provided identifier /// Keyfactor identifier of the certificate store type to be deleted @@ -7053,28 +7043,28 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStoreTypes/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -7084,18 +7074,18 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -7110,7 +7100,7 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, { } } - + /// Returns a single certificate store type that matches the provided short name /// Short name of the certificate store type to return /// Desired version of the api, if not provided defaults to v1 @@ -7121,7 +7111,7 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, { return GetCertificateStoreType1Async(name, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a single certificate store type that matches the provided short name /// Short name of the certificate store type to return @@ -7133,29 +7123,29 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, { if (name == null) throw new System.ArgumentNullException("name"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStoreTypes/Name/{name}"); - urlBuilder_.Replace("{name}", System.Uri.EscapeDataString(ConvertToString(name, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{name}", System.Uri.EscapeDataString(ConvertToString( name, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -7165,11 +7155,11 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -7177,10 +7167,10 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -7194,7 +7184,7 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, { } } - + /// Returns all certificate store types according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -7207,9 +7197,9 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, /// A server side error occurred. public System.Threading.Tasks.Task> GetTypesAsync(string cstquery_queryString, int? cstquery_pageReturned, int? cstquery_returnLimit, string cstquery_sortField, SortAscending16? cstquery_sortAscending) { - return GetTypesAsync(cstquery_queryString, cstquery_pageReturned, cstquery_returnLimit, cstquery_sortField, cstquery_sortAscending, System.Threading.CancellationToken.None); + return GetTypesAsync( cstquery_queryString, cstquery_pageReturned, cstquery_returnLimit, cstquery_sortField, cstquery_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all certificate store types according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -7225,46 +7215,46 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStoreTypes?"); - if (cstquery_queryString != null) + if (cstquery_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("cstquery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(cstquery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("cstquery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( cstquery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (cstquery_pageReturned != null) + if (cstquery_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("cstquery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(cstquery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("cstquery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( cstquery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (cstquery_returnLimit != null) + if (cstquery_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("cstquery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(cstquery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("cstquery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( cstquery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (cstquery_sortField != null) + if (cstquery_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("cstquery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(cstquery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("cstquery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( cstquery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (cstquery_sortAscending != null) + if (cstquery_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("cstquery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(cstquery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("cstquery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( cstquery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -7274,11 +7264,11 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -7286,10 +7276,10 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -7303,7 +7293,7 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, { } } - + /// Updates an existing certificate store type with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -7312,9 +7302,9 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypeAsync(int id, /// A server side error occurred. public System.Threading.Tasks.Task UpdateCertificateStoreTypeAsync(CertificateStoreTypeUpdateRequest body) { - return UpdateCertificateStoreTypeAsync(body, System.Threading.CancellationToken.None); + return UpdateCertificateStoreTypeAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates an existing certificate store type with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -7326,28 +7316,28 @@ public async System.Threading.Tasks.Task UpdateCer { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStoreTypes"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -7357,11 +7347,11 @@ public async System.Threading.Tasks.Task UpdateCer foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -7369,10 +7359,10 @@ public async System.Threading.Tasks.Task UpdateCer else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateStoreTypeResponse); } finally @@ -7386,7 +7376,7 @@ public async System.Threading.Tasks.Task UpdateCer { } } - + /// Creates a new certificate store type with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -7395,9 +7385,9 @@ public async System.Threading.Tasks.Task UpdateCer /// A server side error occurred. public System.Threading.Tasks.Task CreateCertificateStoreTypeAsync(CertificateStoreTypeCreationRequest body) { - return CreateCertificateStoreTypeAsync(body, System.Threading.CancellationToken.None); + return CreateCertificateStoreTypeAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a new certificate store type with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -7409,28 +7399,28 @@ public async System.Threading.Tasks.Task CreateCer { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStoreTypes"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -7440,11 +7430,11 @@ public async System.Threading.Tasks.Task CreateCer foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -7452,10 +7442,10 @@ public async System.Threading.Tasks.Task CreateCer else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateStoreTypeResponse); } finally @@ -7469,7 +7459,7 @@ public async System.Threading.Tasks.Task CreateCer { } } - + /// Deletes certificate store types according to the provided identifiers /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -7478,9 +7468,9 @@ public async System.Threading.Tasks.Task CreateCer /// A server side error occurred. public System.Threading.Tasks.Task DeleteCertificateStoreTypesAsync(System.Collections.Generic.IEnumerable body) { - return DeleteCertificateStoreTypesAsync(body, System.Threading.CancellationToken.None); + return DeleteCertificateStoreTypesAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes certificate store types according to the provided identifiers /// Desired version of the api, if not provided defaults to v1 @@ -7492,27 +7482,27 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypesAsync(System { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CertificateStoreTypes"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -7522,18 +7512,18 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypesAsync(System foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -7548,14 +7538,14 @@ public async System.Threading.Tasks.Task DeleteCertificateStoreTypesAsync(System { } } + + + + + + - - - - - - - + /// Returns a previously generated CSR associated with the provided identifier /// Keyfactor identifier of the CSR /// Desired version of the api, if not provided defaults to v1 @@ -7566,7 +7556,7 @@ public System.Threading.Tasks.Task DownloadAsync(int { return DownloadAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a previously generated CSR associated with the provided identifier /// Keyfactor identifier of the CSR @@ -7578,29 +7568,29 @@ public async System.Threading.Tasks.Task DownloadAsy { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CSRGeneration/Pending/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -7610,11 +7600,11 @@ public async System.Threading.Tasks.Task DownloadAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -7622,10 +7612,10 @@ public async System.Threading.Tasks.Task DownloadAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CSRGenerationResponseModel); } finally @@ -7639,7 +7629,7 @@ public async System.Threading.Tasks.Task DownloadAsy { } } - + /// Deletes a CSR associated with the provided identifier /// Keyfactor identifer of the CSR to be deleted /// Desired version of the api, if not provided defaults to v1 @@ -7650,7 +7640,7 @@ public System.Threading.Tasks.Task DeleteCSRAsync(int id) { return DeleteCSRAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes a CSR associated with the provided identifier /// Keyfactor identifer of the CSR to be deleted @@ -7662,28 +7652,28 @@ public async System.Threading.Tasks.Task DeleteCSRAsync(int id, System.Threading { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CSRGeneration/Pending/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -7693,18 +7683,18 @@ public async System.Threading.Tasks.Task DeleteCSRAsync(int id, System.Threading foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -7719,7 +7709,7 @@ public async System.Threading.Tasks.Task DeleteCSRAsync(int id, System.Threading { } } - + /// Returns a list of the currently pending CSRs according to the provided query /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -7732,9 +7722,9 @@ public async System.Threading.Tasks.Task DeleteCSRAsync(int id, System.Threading /// A server side error occurred. public System.Threading.Tasks.Task> GetPendingCSRsAsync(string sq_queryString, int? sq_pageReturned, int? sq_returnLimit, string sq_sortField, SortAscending17? sq_sortAscending) { - return GetPendingCSRsAsync(sq_queryString, sq_pageReturned, sq_returnLimit, sq_sortField, sq_sortAscending, System.Threading.CancellationToken.None); + return GetPendingCSRsAsync( sq_queryString, sq_pageReturned, sq_returnLimit, sq_sortField, sq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a list of the currently pending CSRs according to the provided query /// Desired version of the api, if not provided defaults to v1 @@ -7750,46 +7740,46 @@ public async System.Threading.Tasks.Task DeleteCSRAsync(int id, System.Threading { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CSRGeneration/Pending?"); - if (sq_queryString != null) + if (sq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (sq_pageReturned != null) + if (sq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (sq_returnLimit != null) + if (sq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (sq_sortField != null) + if (sq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (sq_sortAscending != null) + if (sq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -7799,11 +7789,11 @@ public async System.Threading.Tasks.Task DeleteCSRAsync(int id, System.Threading foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -7811,10 +7801,10 @@ public async System.Threading.Tasks.Task DeleteCSRAsync(int id, System.Threading else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -7828,7 +7818,7 @@ public async System.Threading.Tasks.Task DeleteCSRAsync(int id, System.Threading { } } - + /// Deletes the CSRs associated with the provided identifiers /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -7837,9 +7827,9 @@ public async System.Threading.Tasks.Task DeleteCSRAsync(int id, System.Threading /// A server side error occurred. public System.Threading.Tasks.Task DeleteCSRsAsync(System.Collections.Generic.IEnumerable body) { - return DeleteCSRsAsync(body, System.Threading.CancellationToken.None); + return DeleteCSRsAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes the CSRs associated with the provided identifiers /// Desired version of the api, if not provided defaults to v1 @@ -7851,27 +7841,27 @@ public async System.Threading.Tasks.Task DeleteCSRsAsync(System.Collections.Gene { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CSRGeneration/Pending"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -7881,18 +7871,18 @@ public async System.Threading.Tasks.Task DeleteCSRsAsync(System.Collections.Gene foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -7907,7 +7897,7 @@ public async System.Threading.Tasks.Task DeleteCSRsAsync(System.Collections.Gene { } } - + /// Generates a CSR according the properties provided /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -7916,9 +7906,9 @@ public async System.Threading.Tasks.Task DeleteCSRsAsync(System.Collections.Gene /// A server side error occurred. public System.Threading.Tasks.Task PostGenerateAsync(CSRGenerationRequest body) { - return PostGenerateAsync(body, System.Threading.CancellationToken.None); + return PostGenerateAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Generates a CSR according the properties provided /// Desired version of the api, if not provided defaults to v1 @@ -7930,28 +7920,28 @@ public async System.Threading.Tasks.Task PostGenerateAsync(CSRGener { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/CSRGeneration/Generate"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -7961,11 +7951,11 @@ public async System.Threading.Tasks.Task PostGenerateAsync(CSRGener foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -7973,10 +7963,10 @@ public async System.Threading.Tasks.Task PostGenerateAsync(CSRGener else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CSRContents); } finally @@ -7990,14 +7980,14 @@ public async System.Threading.Tasks.Task PostGenerateAsync(CSRGener { } } + + + + + + - - - - - - - + /// Returns a single custom job type associated with the provided id /// Keyfactor (GUID) identifier of the job type /// Desired version of the api, if not provided defaults to v1 @@ -8008,7 +7998,7 @@ public System.Threading.Tasks.Task GetJobTypeByIdAsync(System.G { return GetJobTypeByIdAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a single custom job type associated with the provided id /// Keyfactor (GUID) identifier of the job type @@ -8020,29 +8010,29 @@ public async System.Threading.Tasks.Task GetJobTypeByIdAsync(Sy { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/JobTypes/Custom/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -8052,11 +8042,11 @@ public async System.Threading.Tasks.Task GetJobTypeByIdAsync(Sy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -8064,10 +8054,10 @@ public async System.Threading.Tasks.Task GetJobTypeByIdAsync(Sy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(JobTypeResponse); } finally @@ -8081,7 +8071,7 @@ public async System.Threading.Tasks.Task GetJobTypeByIdAsync(Sy { } } - + /// Deletes the custom job type associated with the provided id /// Keyfactor identifier (GUID) of the job type /// Desired version of the api, if not provided defaults to v1 @@ -8092,7 +8082,7 @@ public System.Threading.Tasks.Task DeleteJobTypeAsync(System.Guid id) { return DeleteJobTypeAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes the custom job type associated with the provided id /// Keyfactor identifier (GUID) of the job type @@ -8104,28 +8094,28 @@ public async System.Threading.Tasks.Task DeleteJobTypeAsync(System.Guid id, Syst { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/JobTypes/Custom/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -8135,18 +8125,18 @@ public async System.Threading.Tasks.Task DeleteJobTypeAsync(System.Guid id, Syst foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -8161,7 +8151,7 @@ public async System.Threading.Tasks.Task DeleteJobTypeAsync(System.Guid id, Syst { } } - + /// Returns all custom job types according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -8174,9 +8164,9 @@ public async System.Threading.Tasks.Task DeleteJobTypeAsync(System.Guid id, Syst /// A server side error occurred. public System.Threading.Tasks.Task> GetJobTypesAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending18? pq_sortAscending) { - return GetJobTypesAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetJobTypesAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all custom job types according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -8192,46 +8182,46 @@ public async System.Threading.Tasks.Task DeleteJobTypeAsync(System.Guid id, Syst { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/JobTypes/Custom?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -8241,11 +8231,11 @@ public async System.Threading.Tasks.Task DeleteJobTypeAsync(System.Guid id, Syst foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -8253,10 +8243,10 @@ public async System.Threading.Tasks.Task DeleteJobTypeAsync(System.Guid id, Syst else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -8270,7 +8260,7 @@ public async System.Threading.Tasks.Task DeleteJobTypeAsync(System.Guid id, Syst { } } - + /// Updates an existing custom job type with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -8279,9 +8269,9 @@ public async System.Threading.Tasks.Task DeleteJobTypeAsync(System.Guid id, Syst /// A server side error occurred. public System.Threading.Tasks.Task UpdateJobTypeAsync(JobTypeUpdateRequest body) { - return UpdateJobTypeAsync(body, System.Threading.CancellationToken.None); + return UpdateJobTypeAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates an existing custom job type with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -8293,28 +8283,28 @@ public async System.Threading.Tasks.Task UpdateJobTypeAsync(Job { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/JobTypes/Custom"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -8324,11 +8314,11 @@ public async System.Threading.Tasks.Task UpdateJobTypeAsync(Job foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -8336,10 +8326,10 @@ public async System.Threading.Tasks.Task UpdateJobTypeAsync(Job else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(JobTypeResponse); } finally @@ -8353,7 +8343,7 @@ public async System.Threading.Tasks.Task UpdateJobTypeAsync(Job { } } - + /// Creates a custom job type with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -8362,9 +8352,9 @@ public async System.Threading.Tasks.Task UpdateJobTypeAsync(Job /// A server side error occurred. public System.Threading.Tasks.Task CreateJobTypeAsync(JobTypeCreateRequest body) { - return CreateJobTypeAsync(body, System.Threading.CancellationToken.None); + return CreateJobTypeAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a custom job type with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -8376,28 +8366,28 @@ public async System.Threading.Tasks.Task CreateJobTypeAsync(Job { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/JobTypes/Custom"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -8407,11 +8397,11 @@ public async System.Threading.Tasks.Task CreateJobTypeAsync(Job foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -8419,10 +8409,10 @@ public async System.Threading.Tasks.Task CreateJobTypeAsync(Job else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(JobTypeResponse); } finally @@ -8436,14 +8426,14 @@ public async System.Threading.Tasks.Task CreateJobTypeAsync(Job { } } + + + + + + - - - - - - - + /// Get a denied alert /// Id for the denied alert to get /// Desired version of the api, if not provided defaults to v1 @@ -8454,7 +8444,7 @@ public System.Threading.Tasks.Task GetDeniedAlert { return GetDeniedAlertAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a denied alert /// Id for the denied alert to get @@ -8466,29 +8456,29 @@ public async System.Threading.Tasks.Task GetDenie { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Denied/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -8498,11 +8488,11 @@ public async System.Threading.Tasks.Task GetDenie foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -8510,10 +8500,10 @@ public async System.Threading.Tasks.Task GetDenie else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(DeniedAlertDefinitionResponse); } finally @@ -8527,7 +8517,7 @@ public async System.Threading.Tasks.Task GetDenie { } } - + /// Delete a denied alert /// Id for the denied alert /// Desired version of the api, if not provided defaults to v1 @@ -8538,7 +8528,7 @@ public System.Threading.Tasks.Task DeleteDeniedAlertAsync(int id) { return DeleteDeniedAlertAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete a denied alert /// Id for the denied alert @@ -8550,28 +8540,28 @@ public async System.Threading.Tasks.Task DeleteDeniedAlertAsync(int id, System.T { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Denied/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -8581,18 +8571,18 @@ public async System.Threading.Tasks.Task DeleteDeniedAlertAsync(int id, System.T foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -8607,7 +8597,7 @@ public async System.Threading.Tasks.Task DeleteDeniedAlertAsync(int id, System.T { } } - + /// Gets all denied alerts according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -8620,9 +8610,9 @@ public async System.Threading.Tasks.Task DeleteDeniedAlertAsync(int id, System.T /// A server side error occurred. public System.Threading.Tasks.Task> GetDeniedAlertsAsync(string pagedQuery_queryString, int? pagedQuery_pageReturned, int? pagedQuery_returnLimit, string pagedQuery_sortField, SortAscending19? pagedQuery_sortAscending) { - return GetDeniedAlertsAsync(pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); + return GetDeniedAlertsAsync( pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets all denied alerts according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -8638,46 +8628,46 @@ public async System.Threading.Tasks.Task DeleteDeniedAlertAsync(int id, System.T { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Denied?"); - if (pagedQuery_queryString != null) + if (pagedQuery_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_pageReturned != null) + if (pagedQuery_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_returnLimit != null) + if (pagedQuery_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortField != null) + if (pagedQuery_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortAscending != null) + if (pagedQuery_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -8687,11 +8677,11 @@ public async System.Threading.Tasks.Task DeleteDeniedAlertAsync(int id, System.T foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -8699,10 +8689,10 @@ public async System.Threading.Tasks.Task DeleteDeniedAlertAsync(int id, System.T else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -8716,7 +8706,7 @@ public async System.Threading.Tasks.Task DeleteDeniedAlertAsync(int id, System.T { } } - + /// Edit a denied alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -8725,9 +8715,9 @@ public async System.Threading.Tasks.Task DeleteDeniedAlertAsync(int id, System.T /// A server side error occurred. public System.Threading.Tasks.Task EditDeniedAlertAsync(DeniedAlertUpdateRequest body) { - return EditDeniedAlertAsync(body, System.Threading.CancellationToken.None); + return EditDeniedAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Edit a denied alert /// Desired version of the api, if not provided defaults to v1 @@ -8739,28 +8729,28 @@ public async System.Threading.Tasks.Task EditDeni { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Denied"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -8770,11 +8760,11 @@ public async System.Threading.Tasks.Task EditDeni foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -8782,10 +8772,10 @@ public async System.Threading.Tasks.Task EditDeni else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(DeniedAlertDefinitionResponse); } finally @@ -8799,7 +8789,7 @@ public async System.Threading.Tasks.Task EditDeni { } } - + /// Add a denied alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -8808,9 +8798,9 @@ public async System.Threading.Tasks.Task EditDeni /// A server side error occurred. public System.Threading.Tasks.Task AddDeniedAlertAsync(DeniedAlertCreationRequest body) { - return AddDeniedAlertAsync(body, System.Threading.CancellationToken.None); + return AddDeniedAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add a denied alert /// Desired version of the api, if not provided defaults to v1 @@ -8822,28 +8812,28 @@ public async System.Threading.Tasks.Task AddDenie { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Denied"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -8853,11 +8843,11 @@ public async System.Threading.Tasks.Task AddDenie foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -8865,10 +8855,10 @@ public async System.Threading.Tasks.Task AddDenie else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(DeniedAlertDefinitionResponse); } finally @@ -8882,14 +8872,14 @@ public async System.Threading.Tasks.Task AddDenie { } } + + + + + + - - - - - - - + /// Gets the template settings to use during enrollment. The response will be the resolved values for the settings. /// If there is a template specific setting, the template specific setting will be used in the response. /// If there is not a template specific setting, the global setting will be used in the response. @@ -8901,7 +8891,7 @@ public System.Threading.Tasks.Task GetTempla { return GetTemplateEnrollmentSettingsAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the template settings to use during enrollment. The response will be the resolved values for the settings. /// If there is a template specific setting, the template specific setting will be used in the response. @@ -8914,29 +8904,29 @@ public async System.Threading.Tasks.Task Get { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Enrollment/Settings/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -8946,11 +8936,11 @@ public async System.Threading.Tasks.Task Get foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -8958,10 +8948,10 @@ public async System.Threading.Tasks.Task Get else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(TemplateEnrollmentSettingsResponse); } finally @@ -8975,7 +8965,7 @@ public async System.Threading.Tasks.Task Get { } } - + /// Returns the list of available CSR enrollment templates and their associated CA mappings that the calling user has permissions on /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -8983,9 +8973,9 @@ public async System.Threading.Tasks.Task Get /// A server side error occurred. public System.Threading.Tasks.Task GetMyCSRContextAsync(string x_keyfactor_api_version) { - return GetMyCSRContextAsync(System.Threading.CancellationToken.None); + return GetMyCSRContextAsync( System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the list of available CSR enrollment templates and their associated CA mappings that the calling user has permissions on /// Desired version of the api, if not provided defaults to v1 @@ -8996,25 +8986,25 @@ public async System.Threading.Tasks.Task GetMyCSRC { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Enrollment/CSR/Context/My"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -9024,11 +9014,11 @@ public async System.Threading.Tasks.Task GetMyCSRC foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -9036,10 +9026,10 @@ public async System.Threading.Tasks.Task GetMyCSRC else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(EnrollmentTemplateCAResponse); } finally @@ -9053,7 +9043,7 @@ public async System.Threading.Tasks.Task GetMyCSRC { } } - + /// Returns the list of available PFX enrollment templates and their associated CA mappings that the calling user has permissions on /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -9061,9 +9051,9 @@ public async System.Threading.Tasks.Task GetMyCSRC /// A server side error occurred. public System.Threading.Tasks.Task GetMyPFXContextAsync(string x_keyfactor_api_version) { - return GetMyPFXContextAsync(System.Threading.CancellationToken.None); + return GetMyPFXContextAsync( System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the list of available PFX enrollment templates and their associated CA mappings that the calling user has permissions on /// Desired version of the api, if not provided defaults to v1 @@ -9074,25 +9064,25 @@ public async System.Threading.Tasks.Task GetMyPFXC { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Enrollment/PFX/Context/My"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -9102,11 +9092,11 @@ public async System.Threading.Tasks.Task GetMyPFXC foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -9114,10 +9104,10 @@ public async System.Threading.Tasks.Task GetMyPFXC else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(EnrollmentTemplateCAResponse); } finally @@ -9131,7 +9121,7 @@ public async System.Threading.Tasks.Task GetMyPFXC { } } - + /// Returns the type of renewal available for a given certificate. /// The Keyfactor certificate Id /// The collection id for the given certificate @@ -9143,7 +9133,7 @@ public System.Threading.Tasks.Task AvailableRenewalIdAsync(int { return AvailableRenewalIdAsync(id, collectionId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the type of renewal available for a given certificate. /// The Keyfactor certificate Id @@ -9156,34 +9146,34 @@ public async System.Threading.Tasks.Task AvailableRenewalIdAsy { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Enrollment/AvailableRenewal/Id/{id}?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (collectionId != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -9193,11 +9183,11 @@ public async System.Threading.Tasks.Task AvailableRenewalIdAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -9205,10 +9195,10 @@ public async System.Threading.Tasks.Task AvailableRenewalIdAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AvailableRenewal); } finally @@ -9222,7 +9212,7 @@ public async System.Threading.Tasks.Task AvailableRenewalIdAsy { } } - + /// Returns the type of renewal available for a given certificate. /// The certificate thumbprint /// The collection id for the given certificate @@ -9234,7 +9224,7 @@ public System.Threading.Tasks.Task AvailableRenewalThumbprintA { return AvailableRenewalThumbprintAsync(thumbprint, collectionId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the type of renewal available for a given certificate. /// The certificate thumbprint @@ -9247,34 +9237,34 @@ public async System.Threading.Tasks.Task AvailableRenewalThumb { if (thumbprint == null) throw new System.ArgumentNullException("thumbprint"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Enrollment/AvailableRenewal/Thumbprint/{thumbprint}?"); - urlBuilder_.Replace("{thumbprint}", System.Uri.EscapeDataString(ConvertToString(thumbprint, System.Globalization.CultureInfo.InvariantCulture))); - if (collectionId != null) + urlBuilder_.Replace("{thumbprint}", System.Uri.EscapeDataString(ConvertToString( thumbprint, System.Globalization.CultureInfo.InvariantCulture))); + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -9284,11 +9274,11 @@ public async System.Threading.Tasks.Task AvailableRenewalThumb foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -9296,10 +9286,10 @@ public async System.Threading.Tasks.Task AvailableRenewalThumb else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AvailableRenewal); } finally @@ -9313,7 +9303,7 @@ public async System.Threading.Tasks.Task AvailableRenewalThumb { } } - + /// Performs a CSR Enrollment based upon the provided request /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -9323,9 +9313,9 @@ public async System.Threading.Tasks.Task AvailableRenewalThumb /// A server side error occurred. public System.Threading.Tasks.Task PostCSREnrollAsync(string x_certificateformat, CSREnrollmentRequest body) { - return PostCSREnrollAsync(x_certificateformat, body, System.Threading.CancellationToken.None); + return PostCSREnrollAsync( x_certificateformat, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Performs a CSR Enrollment based upon the provided request /// Desired version of the api, if not provided defaults to v1 @@ -9338,31 +9328,31 @@ public async System.Threading.Tasks.Task PostCSREnrollAsy { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Enrollment/CSR"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); if (x_certificateformat == null) throw new System.ArgumentNullException("x_certificateformat"); - request_.Headers.TryAddWithoutValidation("x-certificateformat", ConvertToString(x_certificateformat, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-certificateformat", ConvertToString( x_certificateformat, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -9372,11 +9362,11 @@ public async System.Threading.Tasks.Task PostCSREnrollAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -9384,10 +9374,10 @@ public async System.Threading.Tasks.Task PostCSREnrollAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CSREnrollmentResponse); } finally @@ -9401,7 +9391,7 @@ public async System.Threading.Tasks.Task PostCSREnrollAsy { } } - + /// Performs a PFX Enrollment based upon the provided request /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -9411,9 +9401,9 @@ public async System.Threading.Tasks.Task PostCSREnrollAsy /// A server side error occurred. public System.Threading.Tasks.Task PostPFXEnrollAsync(string x_certificateformat, PFXEnrollmentRequest body) { - return PostPFXEnrollAsync(x_certificateformat, body, System.Threading.CancellationToken.None); + return PostPFXEnrollAsync( x_certificateformat, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Performs a PFX Enrollment based upon the provided request /// Desired version of the api, if not provided defaults to v1 @@ -9426,31 +9416,31 @@ public async System.Threading.Tasks.Task PostPFXEnrollAsy { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Enrollment/PFX"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); if (x_certificateformat == null) throw new System.ArgumentNullException("x_certificateformat"); - request_.Headers.TryAddWithoutValidation("x-certificateformat", ConvertToString(x_certificateformat, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-certificateformat", ConvertToString( x_certificateformat, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -9460,11 +9450,11 @@ public async System.Threading.Tasks.Task PostPFXEnrollAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -9472,10 +9462,10 @@ public async System.Threading.Tasks.Task PostPFXEnrollAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(PFXEnrollmentResponse); } finally @@ -9489,7 +9479,7 @@ public async System.Threading.Tasks.Task PostPFXEnrollAsy { } } - + /// Parses the provided CSR and returns the properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -9498,9 +9488,9 @@ public async System.Threading.Tasks.Task PostPFXEnrollAsy /// A server side error occurred. public System.Threading.Tasks.Task> PostParsedCSRAsync(CSRContents body) { - return PostParsedCSRAsync(body, System.Threading.CancellationToken.None); + return PostParsedCSRAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Parses the provided CSR and returns the properties /// Desired version of the api, if not provided defaults to v1 @@ -9512,28 +9502,28 @@ public async System.Threading.Tasks.Task PostPFXEnrollAsy { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Enrollment/CSR/Parse"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -9543,11 +9533,11 @@ public async System.Threading.Tasks.Task PostPFXEnrollAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -9555,10 +9545,10 @@ public async System.Threading.Tasks.Task PostPFXEnrollAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -9572,7 +9562,7 @@ public async System.Threading.Tasks.Task PostPFXEnrollAsy { } } - + /// Creates management jobs to install a newly enrolled pfx in to one or more certificate stores /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -9581,9 +9571,9 @@ public async System.Threading.Tasks.Task PostPFXEnrollAsy /// A server side error occurred. public System.Threading.Tasks.Task InstallPFXToCertStoreAsync(EnrollmentManagementRequest body) { - return InstallPFXToCertStoreAsync(body, System.Threading.CancellationToken.None); + return InstallPFXToCertStoreAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates management jobs to install a newly enrolled pfx in to one or more certificate stores /// Desired version of the api, if not provided defaults to v1 @@ -9595,28 +9585,28 @@ public async System.Threading.Tasks.Task InstallPF { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Enrollment/PFX/Deploy"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -9626,11 +9616,11 @@ public async System.Threading.Tasks.Task InstallPF foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -9638,10 +9628,10 @@ public async System.Threading.Tasks.Task InstallPF else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(EnrollmentManagementResponse); } finally @@ -9655,7 +9645,7 @@ public async System.Threading.Tasks.Task InstallPF { } } - + /// Creates management jobs to install a newly enrolled pfx into the same certificate stores as the previous certificate /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -9664,9 +9654,9 @@ public async System.Threading.Tasks.Task InstallPF /// A server side error occurred. public System.Threading.Tasks.Task AddToExistingCertStoresAsync(ExistingEnrollmentManagementRequest body) { - return AddToExistingCertStoresAsync(body, System.Threading.CancellationToken.None); + return AddToExistingCertStoresAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates management jobs to install a newly enrolled pfx into the same certificate stores as the previous certificate /// Desired version of the api, if not provided defaults to v1 @@ -9678,28 +9668,28 @@ public async System.Threading.Tasks.Task AddToExis { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Enrollment/PFX/Replace"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -9709,11 +9699,11 @@ public async System.Threading.Tasks.Task AddToExis foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -9721,10 +9711,10 @@ public async System.Threading.Tasks.Task AddToExis else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(EnrollmentManagementResponse); } finally @@ -9738,7 +9728,7 @@ public async System.Threading.Tasks.Task AddToExis { } } - + /// Performs a renewal based upon the passed in request /// The collection id for the given certificate /// Desired version of the api, if not provided defaults to v1 @@ -9750,7 +9740,7 @@ public System.Threading.Tasks.Task RenewAsync(int? collectionId { return RenewAsync(collectionId, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Performs a renewal based upon the passed in request /// The collection id for the given certificate @@ -9763,33 +9753,33 @@ public async System.Threading.Tasks.Task RenewAsync(int? collec { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Enrollment/Renew?"); - if (collectionId != null) + if (collectionId != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("collectionId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( collectionId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -9799,11 +9789,11 @@ public async System.Threading.Tasks.Task RenewAsync(int? collec foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -9811,10 +9801,10 @@ public async System.Threading.Tasks.Task RenewAsync(int? collec else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(RenewalResponse); } finally @@ -9828,14 +9818,14 @@ public async System.Threading.Tasks.Task RenewAsync(int? collec { } } + + + + + + - - - - - - - + /// Get an expiration alert /// Id for the expiration alert to get /// Desired version of the api, if not provided defaults to v1 @@ -9846,7 +9836,7 @@ public System.Threading.Tasks.Task GetExpirat { return GetExpirationAlertAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get an expiration alert /// Id for the expiration alert to get @@ -9858,29 +9848,29 @@ public async System.Threading.Tasks.Task GetE { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Expiration/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -9890,11 +9880,11 @@ public async System.Threading.Tasks.Task GetE foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -9902,10 +9892,10 @@ public async System.Threading.Tasks.Task GetE else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ExpirationAlertDefinitionResponse); } finally @@ -9919,7 +9909,7 @@ public async System.Threading.Tasks.Task GetE { } } - + /// Delete an expiration alert /// Id for the expiration alert /// Desired version of the api, if not provided defaults to v1 @@ -9930,7 +9920,7 @@ public System.Threading.Tasks.Task DeleteExpirationAlertAsync(int id) { return DeleteExpirationAlertAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete an expiration alert /// Id for the expiration alert @@ -9942,28 +9932,28 @@ public async System.Threading.Tasks.Task DeleteExpirationAlertAsync(int id, Syst { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Expiration/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -9973,18 +9963,18 @@ public async System.Threading.Tasks.Task DeleteExpirationAlertAsync(int id, Syst foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -9999,7 +9989,7 @@ public async System.Threading.Tasks.Task DeleteExpirationAlertAsync(int id, Syst { } } - + /// Get the schedule for expiration alerts /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -10007,9 +9997,9 @@ public async System.Threading.Tasks.Task DeleteExpirationAlertAsync(int id, Syst /// A server side error occurred. public System.Threading.Tasks.Task GetScheduleAsync_0(string x_keyfactor_api_version) { - return GetScheduleAsync_0(System.Threading.CancellationToken.None); + return GetScheduleAsync_0( System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the schedule for expiration alerts /// Desired version of the api, if not provided defaults to v1 @@ -10020,25 +10010,25 @@ public async System.Threading.Tasks.Task GetScheduleAsync { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Expiration/Schedule"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -10048,11 +10038,11 @@ public async System.Threading.Tasks.Task GetScheduleAsync foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -10060,10 +10050,10 @@ public async System.Threading.Tasks.Task GetScheduleAsync else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AlertScheduleResponse); } finally @@ -10077,7 +10067,7 @@ public async System.Threading.Tasks.Task GetScheduleAsync { } } - + /// Edit schedule /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -10085,9 +10075,9 @@ public async System.Threading.Tasks.Task GetScheduleAsync /// A server side error occurred. public System.Threading.Tasks.Task EditScheduleAsync_0(AlertScheduleRequest body) { - return EditScheduleAsync_0(body, System.Threading.CancellationToken.None); + return EditScheduleAsync_0( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Edit schedule /// Desired version of the api, if not provided defaults to v1 @@ -10098,28 +10088,28 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Expiration/Schedule"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -10129,11 +10119,11 @@ public async System.Threading.Tasks.Task EditScheduleAsyn foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -10141,10 +10131,10 @@ public async System.Threading.Tasks.Task EditScheduleAsyn else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AlertScheduleResponse); } finally @@ -10158,7 +10148,7 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { } } - + /// Gets all expiration alerts according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -10171,9 +10161,9 @@ public async System.Threading.Tasks.Task EditScheduleAsyn /// A server side error occurred. public System.Threading.Tasks.Task> GetExpirationAlertsAsync(string pagedQuery_queryString, int? pagedQuery_pageReturned, int? pagedQuery_returnLimit, string pagedQuery_sortField, SortAscending20? pagedQuery_sortAscending) { - return GetExpirationAlertsAsync(pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); + return GetExpirationAlertsAsync( pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets all expiration alerts according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -10189,46 +10179,46 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Expiration?"); - if (pagedQuery_queryString != null) + if (pagedQuery_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_pageReturned != null) + if (pagedQuery_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_returnLimit != null) + if (pagedQuery_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortField != null) + if (pagedQuery_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortAscending != null) + if (pagedQuery_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -10238,11 +10228,11 @@ public async System.Threading.Tasks.Task EditScheduleAsyn foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -10250,10 +10240,10 @@ public async System.Threading.Tasks.Task EditScheduleAsyn else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -10267,7 +10257,7 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { } } - + /// Edit an expiration alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -10276,9 +10266,9 @@ public async System.Threading.Tasks.Task EditScheduleAsyn /// A server side error occurred. public System.Threading.Tasks.Task EditExpirationAlertAsync(ExpirationAlertUpdateRequest body) { - return EditExpirationAlertAsync(body, System.Threading.CancellationToken.None); + return EditExpirationAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Edit an expiration alert /// Desired version of the api, if not provided defaults to v1 @@ -10290,28 +10280,28 @@ public async System.Threading.Tasks.Task Edit { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Expiration"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -10321,11 +10311,11 @@ public async System.Threading.Tasks.Task Edit foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -10333,10 +10323,10 @@ public async System.Threading.Tasks.Task Edit else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ExpirationAlertDefinitionResponse); } finally @@ -10350,7 +10340,7 @@ public async System.Threading.Tasks.Task Edit { } } - + /// Add an expiration alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -10359,9 +10349,9 @@ public async System.Threading.Tasks.Task Edit /// A server side error occurred. public System.Threading.Tasks.Task AddExpirationAlertAsync(ExpirationAlertCreationRequest body) { - return AddExpirationAlertAsync(body, System.Threading.CancellationToken.None); + return AddExpirationAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add an expiration alert /// Desired version of the api, if not provided defaults to v1 @@ -10373,28 +10363,28 @@ public async System.Threading.Tasks.Task AddE { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Expiration"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -10404,11 +10394,11 @@ public async System.Threading.Tasks.Task AddE foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -10416,10 +10406,10 @@ public async System.Threading.Tasks.Task AddE else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ExpirationAlertDefinitionResponse); } finally @@ -10433,7 +10423,7 @@ public async System.Threading.Tasks.Task AddE { } } - + /// Test an Expiration Alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -10442,9 +10432,9 @@ public async System.Threading.Tasks.Task AddE /// A server side error occurred. public System.Threading.Tasks.Task TestExpirationAlertAsync(ExpirationAlertTestRequest body) { - return TestExpirationAlertAsync(body, System.Threading.CancellationToken.None); + return TestExpirationAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Test an Expiration Alert /// Desired version of the api, if not provided defaults to v1 @@ -10456,28 +10446,28 @@ public async System.Threading.Tasks.Task TestExpira { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Expiration/Test"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -10487,11 +10477,11 @@ public async System.Threading.Tasks.Task TestExpira foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -10499,10 +10489,10 @@ public async System.Threading.Tasks.Task TestExpira else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ExpirationAlertTestResponse); } finally @@ -10516,7 +10506,7 @@ public async System.Threading.Tasks.Task TestExpira { } } - + /// Test All Expiration Alerts /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -10525,9 +10515,9 @@ public async System.Threading.Tasks.Task TestExpira /// A server side error occurred. public System.Threading.Tasks.Task TestAllExpirationAlertAsync(ExpirationAlertTestAllRequest body) { - return TestAllExpirationAlertAsync(body, System.Threading.CancellationToken.None); + return TestAllExpirationAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Test All Expiration Alerts /// Desired version of the api, if not provided defaults to v1 @@ -10539,28 +10529,28 @@ public async System.Threading.Tasks.Task TestAllExp { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Expiration/TestAll"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -10570,11 +10560,11 @@ public async System.Threading.Tasks.Task TestAllExp foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -10582,10 +10572,10 @@ public async System.Threading.Tasks.Task TestAllExp else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ExpirationAlertTestResponse); } finally @@ -10599,14 +10589,14 @@ public async System.Threading.Tasks.Task TestAllExp { } } + + + + + + - - - - - - - + /// Get a issued alert /// Id for the issued alert to get /// Desired version of the api, if not provided defaults to v1 @@ -10617,7 +10607,7 @@ public System.Threading.Tasks.Task GetIssuedAlert { return GetIssuedAlertAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a issued alert /// Id for the issued alert to get @@ -10629,29 +10619,29 @@ public async System.Threading.Tasks.Task GetIssue { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Issued/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -10661,11 +10651,11 @@ public async System.Threading.Tasks.Task GetIssue foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -10673,10 +10663,10 @@ public async System.Threading.Tasks.Task GetIssue else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(IssuedAlertDefinitionResponse); } finally @@ -10690,7 +10680,7 @@ public async System.Threading.Tasks.Task GetIssue { } } - + /// Delete a issued alert /// Id for the issued alert /// Desired version of the api, if not provided defaults to v1 @@ -10701,7 +10691,7 @@ public System.Threading.Tasks.Task DeleteIssuedAlertAsync(int id) { return DeleteIssuedAlertAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete a issued alert /// Id for the issued alert @@ -10713,28 +10703,28 @@ public async System.Threading.Tasks.Task DeleteIssuedAlertAsync(int id, System.T { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Issued/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -10744,18 +10734,18 @@ public async System.Threading.Tasks.Task DeleteIssuedAlertAsync(int id, System.T foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -10770,7 +10760,7 @@ public async System.Threading.Tasks.Task DeleteIssuedAlertAsync(int id, System.T { } } - + /// Get the schedule for issued alerts /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -10778,9 +10768,9 @@ public async System.Threading.Tasks.Task DeleteIssuedAlertAsync(int id, System.T /// A server side error occurred. public System.Threading.Tasks.Task GetScheduleAsync_1(string x_keyfactor_api_version) { - return GetScheduleAsync_1(System.Threading.CancellationToken.None); + return GetScheduleAsync_1( System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the schedule for issued alerts /// Desired version of the api, if not provided defaults to v1 @@ -10791,25 +10781,25 @@ public async System.Threading.Tasks.Task GetScheduleAsync { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Issued/Schedule"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -10819,11 +10809,11 @@ public async System.Threading.Tasks.Task GetScheduleAsync foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -10831,10 +10821,10 @@ public async System.Threading.Tasks.Task GetScheduleAsync else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AlertScheduleResponse); } finally @@ -10848,7 +10838,7 @@ public async System.Threading.Tasks.Task GetScheduleAsync { } } - + /// Edit schedule /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -10856,9 +10846,9 @@ public async System.Threading.Tasks.Task GetScheduleAsync /// A server side error occurred. public System.Threading.Tasks.Task EditScheduleAsync_1(AlertScheduleRequest body) { - return EditScheduleAsync_1(body, System.Threading.CancellationToken.None); + return EditScheduleAsync_1( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Edit schedule /// Desired version of the api, if not provided defaults to v1 @@ -10869,28 +10859,28 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Issued/Schedule"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -10900,11 +10890,11 @@ public async System.Threading.Tasks.Task EditScheduleAsyn foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -10912,10 +10902,10 @@ public async System.Threading.Tasks.Task EditScheduleAsyn else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AlertScheduleResponse); } finally @@ -10929,7 +10919,7 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { } } - + /// Gets all issued alerts according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -10942,9 +10932,9 @@ public async System.Threading.Tasks.Task EditScheduleAsyn /// A server side error occurred. public System.Threading.Tasks.Task> GetIssuedAlertsAsync(string pagedQuery_queryString, int? pagedQuery_pageReturned, int? pagedQuery_returnLimit, string pagedQuery_sortField, SortAscending21? pagedQuery_sortAscending) { - return GetIssuedAlertsAsync(pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); + return GetIssuedAlertsAsync( pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets all issued alerts according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -10960,46 +10950,46 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Issued?"); - if (pagedQuery_queryString != null) + if (pagedQuery_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_pageReturned != null) + if (pagedQuery_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_returnLimit != null) + if (pagedQuery_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortField != null) + if (pagedQuery_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortAscending != null) + if (pagedQuery_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -11009,11 +10999,11 @@ public async System.Threading.Tasks.Task EditScheduleAsyn foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -11021,10 +11011,10 @@ public async System.Threading.Tasks.Task EditScheduleAsyn else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -11038,7 +11028,7 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { } } - + /// Edit a issued alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -11047,9 +11037,9 @@ public async System.Threading.Tasks.Task EditScheduleAsyn /// A server side error occurred. public System.Threading.Tasks.Task EditIssuedAlertAsync(IssuedAlertUpdateRequest body) { - return EditIssuedAlertAsync(body, System.Threading.CancellationToken.None); + return EditIssuedAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Edit a issued alert /// Desired version of the api, if not provided defaults to v1 @@ -11061,28 +11051,28 @@ public async System.Threading.Tasks.Task EditIssu { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Issued"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -11092,11 +11082,11 @@ public async System.Threading.Tasks.Task EditIssu foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -11104,10 +11094,10 @@ public async System.Threading.Tasks.Task EditIssu else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(IssuedAlertDefinitionResponse); } finally @@ -11121,7 +11111,7 @@ public async System.Threading.Tasks.Task EditIssu { } } - + /// Add a issued alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -11130,9 +11120,9 @@ public async System.Threading.Tasks.Task EditIssu /// A server side error occurred. public System.Threading.Tasks.Task AddIssuedAlertAsync(IssuedAlertCreationRequest body) { - return AddIssuedAlertAsync(body, System.Threading.CancellationToken.None); + return AddIssuedAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add a issued alert /// Desired version of the api, if not provided defaults to v1 @@ -11144,28 +11134,28 @@ public async System.Threading.Tasks.Task AddIssue { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Issued"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -11175,11 +11165,11 @@ public async System.Threading.Tasks.Task AddIssue foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -11187,10 +11177,10 @@ public async System.Threading.Tasks.Task AddIssue else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(IssuedAlertDefinitionResponse); } finally @@ -11204,14 +11194,14 @@ public async System.Threading.Tasks.Task AddIssue { } } + + + + + + - - - - - - - + /// Returns an unmanaged SSH key with provided id. /// The id of the key to get /// Desired version of the api, if not provided defaults to v1 @@ -11222,7 +11212,7 @@ public System.Threading.Tasks.Task GetUnmanagedKeyAsync(in { return GetUnmanagedKeyAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns an unmanaged SSH key with provided id. /// The id of the key to get @@ -11234,29 +11224,29 @@ public async System.Threading.Tasks.Task GetUnmanagedKeyAs { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Keys/Unmanaged/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -11266,11 +11256,11 @@ public async System.Threading.Tasks.Task GetUnmanagedKeyAs foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -11278,10 +11268,10 @@ public async System.Threading.Tasks.Task GetUnmanagedKeyAs else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(UnmanagedKeyResponse); } finally @@ -11295,7 +11285,7 @@ public async System.Threading.Tasks.Task GetUnmanagedKeyAs { } } - + /// Deletes Unmanaged Key associated with the provided identifier /// Keyfactor identifer of the Key to be deleted /// Desired version of the api, if not provided defaults to v1 @@ -11306,7 +11296,7 @@ public System.Threading.Tasks.Task DeleteUnmanagedKeyAsync(int id) { return DeleteUnmanagedKeyAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes Unmanaged Key associated with the provided identifier /// Keyfactor identifer of the Key to be deleted @@ -11318,28 +11308,28 @@ public async System.Threading.Tasks.Task DeleteUnmanagedKeyAsync(int id, System. { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Keys/Unmanaged/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -11349,18 +11339,18 @@ public async System.Threading.Tasks.Task DeleteUnmanagedKeyAsync(int id, System. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -11375,7 +11365,7 @@ public async System.Threading.Tasks.Task DeleteUnmanagedKeyAsync(int id, System. { } } - + /// Returns the current key of the requesting user /// Whether or not to include the private key. If true, you must supply the X-Keyfactor-Key-Passphrase header /// Desired version of the api, if not provided defaults to v1 @@ -11387,7 +11377,7 @@ public System.Threading.Tasks.Task GetMyKeyAsync(bool? includePriva { return GetMyKeyAsync(includePrivateKey, x_keyfactor_key_passphrase, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the current key of the requesting user /// Whether or not to include the private key. If true, you must supply the X-Keyfactor-Key-Passphrase header @@ -11400,33 +11390,33 @@ public async System.Threading.Tasks.Task GetMyKeyAsync(bool? includ { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Keys/MyKey?"); - if (includePrivateKey != null) + if (includePrivateKey != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("includePrivateKey") + "=").Append(System.Uri.EscapeDataString(ConvertToString(includePrivateKey, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("includePrivateKey") + "=").Append(System.Uri.EscapeDataString(ConvertToString( includePrivateKey, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_key_passphrase == null) throw new System.ArgumentNullException("x_keyfactor_key_passphrase"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-key-passphrase", ConvertToString(x_keyfactor_key_passphrase, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-key-passphrase", ConvertToString( x_keyfactor_key_passphrase, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -11436,11 +11426,11 @@ public async System.Threading.Tasks.Task GetMyKeyAsync(bool? includ foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -11448,10 +11438,10 @@ public async System.Threading.Tasks.Task GetMyKeyAsync(bool? includ else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(KeyResponse); } finally @@ -11465,7 +11455,7 @@ public async System.Threading.Tasks.Task GetMyKeyAsync(bool? includ { } } - + /// Updates the requesting user's SSH key /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -11474,9 +11464,9 @@ public async System.Threading.Tasks.Task GetMyKeyAsync(bool? includ /// A server side error occurred. public System.Threading.Tasks.Task UpdateAsync(KeyUpdateRequest body) { - return UpdateAsync(body, System.Threading.CancellationToken.None); + return UpdateAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates the requesting user's SSH key /// Desired version of the api, if not provided defaults to v1 @@ -11488,28 +11478,28 @@ public async System.Threading.Tasks.Task UpdateAsync(KeyUpdateReque { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Keys/MyKey"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -11519,11 +11509,11 @@ public async System.Threading.Tasks.Task UpdateAsync(KeyUpdateReque foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -11531,10 +11521,10 @@ public async System.Threading.Tasks.Task UpdateAsync(KeyUpdateReque else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(KeyResponse); } finally @@ -11548,7 +11538,7 @@ public async System.Threading.Tasks.Task UpdateAsync(KeyUpdateReque { } } - + /// Generates an SSH Key Pair for the requesting user. /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -11557,9 +11547,9 @@ public async System.Threading.Tasks.Task UpdateAsync(KeyUpdateReque /// A server side error occurred. public System.Threading.Tasks.Task GenerateKeyAsync(KeyGenerationRequest body) { - return GenerateKeyAsync(body, System.Threading.CancellationToken.None); + return GenerateKeyAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Generates an SSH Key Pair for the requesting user. /// Desired version of the api, if not provided defaults to v1 @@ -11571,28 +11561,28 @@ public async System.Threading.Tasks.Task GenerateKeyAsync(KeyGenera { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Keys/MyKey"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -11602,11 +11592,11 @@ public async System.Threading.Tasks.Task GenerateKeyAsync(KeyGenera foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -11614,10 +11604,10 @@ public async System.Threading.Tasks.Task GenerateKeyAsync(KeyGenera else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(KeyResponse); } finally @@ -11631,7 +11621,7 @@ public async System.Threading.Tasks.Task GenerateKeyAsync(KeyGenera { } } - + /// Returns Unmanaged SSH keys /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -11644,9 +11634,9 @@ public async System.Threading.Tasks.Task GenerateKeyAsync(KeyGenera /// A server side error occurred. public System.Threading.Tasks.Task> GetUnmanagedKeysAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending22? pq_sortAscending) { - return GetUnmanagedKeysAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetUnmanagedKeysAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns Unmanaged SSH keys /// Desired version of the api, if not provided defaults to v1 @@ -11662,46 +11652,46 @@ public async System.Threading.Tasks.Task GenerateKeyAsync(KeyGenera { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Keys/Unmanaged?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -11711,11 +11701,11 @@ public async System.Threading.Tasks.Task GenerateKeyAsync(KeyGenera foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -11723,10 +11713,10 @@ public async System.Threading.Tasks.Task GenerateKeyAsync(KeyGenera else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -11740,7 +11730,7 @@ public async System.Threading.Tasks.Task GenerateKeyAsync(KeyGenera { } } - + /// Deletes Unmanaged Keys associated with the provided identifiers /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -11749,9 +11739,9 @@ public async System.Threading.Tasks.Task GenerateKeyAsync(KeyGenera /// A server side error occurred. public System.Threading.Tasks.Task DeleteUnmanagedKeysAsync(System.Collections.Generic.IEnumerable body) { - return DeleteUnmanagedKeysAsync(body, System.Threading.CancellationToken.None); + return DeleteUnmanagedKeysAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes Unmanaged Keys associated with the provided identifiers /// Desired version of the api, if not provided defaults to v1 @@ -11763,27 +11753,27 @@ public async System.Threading.Tasks.Task DeleteUnmanagedKeysAsync(System.Collect { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Keys/Unmanaged"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -11793,18 +11783,18 @@ public async System.Threading.Tasks.Task DeleteUnmanagedKeysAsync(System.Collect foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -11819,14 +11809,14 @@ public async System.Threading.Tasks.Task DeleteUnmanagedKeysAsync(System.Collect { } } + + + + + + - - - - - - - + /// Get a key rotation alert /// Id for the key rotation alert to get /// Desired version of the api, if not provided defaults to v1 @@ -11837,7 +11827,7 @@ public System.Threading.Tasks.Task GetKeyRot { return GetKeyRotationAlertAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a key rotation alert /// Id for the key rotation alert to get @@ -11849,29 +11839,29 @@ public async System.Threading.Tasks.Task Get { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/KeyRotation/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -11881,11 +11871,11 @@ public async System.Threading.Tasks.Task Get foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -11893,10 +11883,10 @@ public async System.Threading.Tasks.Task Get else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(KeyRotationAlertDefinitionResponse); } finally @@ -11910,7 +11900,7 @@ public async System.Threading.Tasks.Task Get { } } - + /// Delete a key rotation alert /// Id for the key rotation alert /// Desired version of the api, if not provided defaults to v1 @@ -11921,7 +11911,7 @@ public System.Threading.Tasks.Task DeleteKeyRotationAlertAsync(int id) { return DeleteKeyRotationAlertAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete a key rotation alert /// Id for the key rotation alert @@ -11933,28 +11923,28 @@ public async System.Threading.Tasks.Task DeleteKeyRotationAlertAsync(int id, Sys { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/KeyRotation/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -11964,18 +11954,18 @@ public async System.Threading.Tasks.Task DeleteKeyRotationAlertAsync(int id, Sys foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -11990,7 +11980,7 @@ public async System.Threading.Tasks.Task DeleteKeyRotationAlertAsync(int id, Sys { } } - + /// Get the schedule for key rotation alerts /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -11998,9 +11988,9 @@ public async System.Threading.Tasks.Task DeleteKeyRotationAlertAsync(int id, Sys /// A server side error occurred. public System.Threading.Tasks.Task GetScheduleAsync_2(string x_keyfactor_api_version) { - return GetScheduleAsync_2(System.Threading.CancellationToken.None); + return GetScheduleAsync_2( System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the schedule for key rotation alerts /// Desired version of the api, if not provided defaults to v1 @@ -12011,25 +12001,25 @@ public async System.Threading.Tasks.Task GetScheduleAsync { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/KeyRotation/Schedule"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -12039,11 +12029,11 @@ public async System.Threading.Tasks.Task GetScheduleAsync foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -12051,10 +12041,10 @@ public async System.Threading.Tasks.Task GetScheduleAsync else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AlertScheduleResponse); } finally @@ -12068,7 +12058,7 @@ public async System.Threading.Tasks.Task GetScheduleAsync { } } - + /// Edit schedule /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -12076,9 +12066,9 @@ public async System.Threading.Tasks.Task GetScheduleAsync /// A server side error occurred. public System.Threading.Tasks.Task EditScheduleAsync_2(AlertScheduleRequest body) { - return EditScheduleAsync_2(body, System.Threading.CancellationToken.None); + return EditScheduleAsync_2( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Edit schedule /// Desired version of the api, if not provided defaults to v1 @@ -12089,28 +12079,28 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/KeyRotation/Schedule"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -12120,11 +12110,11 @@ public async System.Threading.Tasks.Task EditScheduleAsyn foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -12132,10 +12122,10 @@ public async System.Threading.Tasks.Task EditScheduleAsyn else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AlertScheduleResponse); } finally @@ -12149,7 +12139,7 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { } } - + /// Gets all key rotation alerts according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -12162,9 +12152,9 @@ public async System.Threading.Tasks.Task EditScheduleAsyn /// A server side error occurred. public System.Threading.Tasks.Task> GetKeyRotationAlertsAsync(string pagedQuery_queryString, int? pagedQuery_pageReturned, int? pagedQuery_returnLimit, string pagedQuery_sortField, SortAscending23? pagedQuery_sortAscending) { - return GetKeyRotationAlertsAsync(pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); + return GetKeyRotationAlertsAsync( pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets all key rotation alerts according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -12180,46 +12170,46 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/KeyRotation?"); - if (pagedQuery_queryString != null) + if (pagedQuery_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_pageReturned != null) + if (pagedQuery_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_returnLimit != null) + if (pagedQuery_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortField != null) + if (pagedQuery_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortAscending != null) + if (pagedQuery_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -12229,11 +12219,11 @@ public async System.Threading.Tasks.Task EditScheduleAsyn foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -12241,10 +12231,10 @@ public async System.Threading.Tasks.Task EditScheduleAsyn else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -12258,7 +12248,7 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { } } - + /// Edit a key rotation alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -12267,9 +12257,9 @@ public async System.Threading.Tasks.Task EditScheduleAsyn /// A server side error occurred. public System.Threading.Tasks.Task EditKeyRotationAlertAsync(KeyRotationAlertUpdateRequest body) { - return EditKeyRotationAlertAsync(body, System.Threading.CancellationToken.None); + return EditKeyRotationAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Edit a key rotation alert /// Desired version of the api, if not provided defaults to v1 @@ -12281,28 +12271,28 @@ public async System.Threading.Tasks.Task Edi { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/KeyRotation"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -12312,11 +12302,11 @@ public async System.Threading.Tasks.Task Edi foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -12324,10 +12314,10 @@ public async System.Threading.Tasks.Task Edi else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(KeyRotationAlertDefinitionResponse); } finally @@ -12341,7 +12331,7 @@ public async System.Threading.Tasks.Task Edi { } } - + /// Add a key rotation alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -12350,9 +12340,9 @@ public async System.Threading.Tasks.Task Edi /// A server side error occurred. public System.Threading.Tasks.Task AddKeyRotationAlertAsync(KeyRotationAlertCreationRequest body) { - return AddKeyRotationAlertAsync(body, System.Threading.CancellationToken.None); + return AddKeyRotationAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add a key rotation alert /// Desired version of the api, if not provided defaults to v1 @@ -12364,28 +12354,28 @@ public async System.Threading.Tasks.Task Add { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/KeyRotation"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -12395,11 +12385,11 @@ public async System.Threading.Tasks.Task Add foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -12407,10 +12397,10 @@ public async System.Threading.Tasks.Task Add else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(KeyRotationAlertDefinitionResponse); } finally @@ -12424,7 +12414,7 @@ public async System.Threading.Tasks.Task Add { } } - + /// Test An Alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -12433,9 +12423,9 @@ public async System.Threading.Tasks.Task Add /// A server side error occurred. public System.Threading.Tasks.Task TestKeyRotationAlertAsync(KeyRotationAlertTestRequest body) { - return TestKeyRotationAlertAsync(body, System.Threading.CancellationToken.None); + return TestKeyRotationAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Test An Alert /// Desired version of the api, if not provided defaults to v1 @@ -12447,28 +12437,28 @@ public async System.Threading.Tasks.Task TestKeyRo { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/KeyRotation/Test"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -12478,11 +12468,11 @@ public async System.Threading.Tasks.Task TestKeyRo foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -12490,10 +12480,10 @@ public async System.Threading.Tasks.Task TestKeyRo else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(KeyRotationAlertTestResponse); } finally @@ -12507,7 +12497,7 @@ public async System.Threading.Tasks.Task TestKeyRo { } } - + /// Test All Alerts /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -12516,9 +12506,9 @@ public async System.Threading.Tasks.Task TestKeyRo /// A server side error occurred. public System.Threading.Tasks.Task TestAllKeyRotationAlertAsync(KeyRotationAlertTestAllRequest body) { - return TestAllKeyRotationAlertAsync(body, System.Threading.CancellationToken.None); + return TestAllKeyRotationAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Test All Alerts /// Desired version of the api, if not provided defaults to v1 @@ -12530,28 +12520,28 @@ public async System.Threading.Tasks.Task TestAllKe { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/KeyRotation/TestAll"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -12561,11 +12551,11 @@ public async System.Threading.Tasks.Task TestAllKe foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -12573,10 +12563,10 @@ public async System.Threading.Tasks.Task TestAllKe else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(KeyRotationAlertTestResponse); } finally @@ -12590,14 +12580,14 @@ public async System.Threading.Tasks.Task TestAllKe { } } + + + + + + - - - - - - - + /// Gets the current license /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -12605,9 +12595,9 @@ public async System.Threading.Tasks.Task TestAllKe /// A server side error occurred. public System.Threading.Tasks.Task GetCurrentLicenseAsync(string x_keyfactor_api_version) { - return GetCurrentLicenseAsync(System.Threading.CancellationToken.None); + return GetCurrentLicenseAsync( System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the current license /// Desired version of the api, if not provided defaults to v1 @@ -12618,25 +12608,25 @@ public async System.Threading.Tasks.Task GetCurrentLicenseAsync { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/License"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -12646,11 +12636,11 @@ public async System.Threading.Tasks.Task GetCurrentLicenseAsync foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -12658,10 +12648,10 @@ public async System.Threading.Tasks.Task GetCurrentLicenseAsync else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(LicenseResponse); } finally @@ -12675,14 +12665,14 @@ public async System.Threading.Tasks.Task GetCurrentLicenseAsync { } } + + + + + + - - - - - - - + /// Fetches a Logon associated with the provided identifier /// Keyfactor identifer of the Logon to be Fetched /// Desired version of the api, if not provided defaults to v1 @@ -12693,7 +12683,7 @@ public System.Threading.Tasks.Task GetLogonAsync(int id) { return GetLogonAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Fetches a Logon associated with the provided identifier /// Keyfactor identifer of the Logon to be Fetched @@ -12705,29 +12695,29 @@ public async System.Threading.Tasks.Task GetLogonAsync(int id, Sy { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Logons/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -12737,11 +12727,11 @@ public async System.Threading.Tasks.Task GetLogonAsync(int id, Sy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -12749,10 +12739,10 @@ public async System.Threading.Tasks.Task GetLogonAsync(int id, Sy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(LogonResponse); } finally @@ -12766,7 +12756,7 @@ public async System.Threading.Tasks.Task GetLogonAsync(int id, Sy { } } - + /// Deletes a Logon associated with the provided identifier /// Keyfactor identifer of the Logon to be deleted /// Desired version of the api, if not provided defaults to v1 @@ -12777,7 +12767,7 @@ public System.Threading.Tasks.Task DeleteAsync_0(int id) { return DeleteAsync_0(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes a Logon associated with the provided identifier /// Keyfactor identifer of the Logon to be deleted @@ -12789,28 +12779,28 @@ public async System.Threading.Tasks.Task DeleteAsync_0(int id, System.Threading. { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Logons/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -12820,18 +12810,18 @@ public async System.Threading.Tasks.Task DeleteAsync_0(int id, System.Threading. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -12846,7 +12836,7 @@ public async System.Threading.Tasks.Task DeleteAsync_0(int id, System.Threading. { } } - + /// Returns all Logons according to the provided filter parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -12859,9 +12849,9 @@ public async System.Threading.Tasks.Task DeleteAsync_0(int id, System.Threading. /// A server side error occurred. public System.Threading.Tasks.Task> QueryLogonsAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending24? pq_sortAscending) { - return QueryLogonsAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return QueryLogonsAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all Logons according to the provided filter parameters /// Desired version of the api, if not provided defaults to v1 @@ -12877,46 +12867,46 @@ public async System.Threading.Tasks.Task DeleteAsync_0(int id, System.Threading. { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Logons?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -12926,11 +12916,11 @@ public async System.Threading.Tasks.Task DeleteAsync_0(int id, System.Threading. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -12938,10 +12928,10 @@ public async System.Threading.Tasks.Task DeleteAsync_0(int id, System.Threading. else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -12955,7 +12945,7 @@ public async System.Threading.Tasks.Task DeleteAsync_0(int id, System.Threading. { } } - + /// Creates a logon with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -12964,9 +12954,9 @@ public async System.Threading.Tasks.Task DeleteAsync_0(int id, System.Threading. /// A server side error occurred. public System.Threading.Tasks.Task CreateLogonAsync(LogonCreationRequest body) { - return CreateLogonAsync(body, System.Threading.CancellationToken.None); + return CreateLogonAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a logon with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -12978,28 +12968,28 @@ public async System.Threading.Tasks.Task CreateLogonAsync(LogonCr { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Logons"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -13009,11 +12999,11 @@ public async System.Threading.Tasks.Task CreateLogonAsync(LogonCr foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -13021,10 +13011,10 @@ public async System.Threading.Tasks.Task CreateLogonAsync(LogonCr else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(LogonResponse); } finally @@ -13038,7 +13028,7 @@ public async System.Threading.Tasks.Task CreateLogonAsync(LogonCr { } } - + /// Updates the users with access to an existing logon /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -13047,9 +13037,9 @@ public async System.Threading.Tasks.Task CreateLogonAsync(LogonCr /// A server side error occurred. public System.Threading.Tasks.Task LogonAccessAsync(LogonAccessRequest body) { - return LogonAccessAsync(body, System.Threading.CancellationToken.None); + return LogonAccessAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates the users with access to an existing logon /// Desired version of the api, if not provided defaults to v1 @@ -13061,28 +13051,28 @@ public async System.Threading.Tasks.Task LogonAccessAsy { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Logons/Access"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -13092,11 +13082,11 @@ public async System.Threading.Tasks.Task LogonAccessAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -13104,10 +13094,10 @@ public async System.Threading.Tasks.Task LogonAccessAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(LogonUserAccessResponse); } finally @@ -13121,14 +13111,14 @@ public async System.Threading.Tasks.Task LogonAccessAsy { } } + + + + + + - - - - - - - + /// Gets mac enrollment settings data /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -13136,9 +13126,9 @@ public async System.Threading.Tasks.Task LogonAccessAsy /// A server side error occurred. public System.Threading.Tasks.Task MacEnrollmentAsync(string x_keyfactor_api_version) { - return MacEnrollmentAsync(System.Threading.CancellationToken.None); + return MacEnrollmentAsync( System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets mac enrollment settings data /// Desired version of the api, if not provided defaults to v1 @@ -13149,25 +13139,25 @@ public async System.Threading.Tasks.Task MacEnrollmentAsy { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/MacEnrollment"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -13177,11 +13167,11 @@ public async System.Threading.Tasks.Task MacEnrollmentAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -13189,10 +13179,10 @@ public async System.Threading.Tasks.Task MacEnrollmentAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(MacEnrollmentAPIModel); } finally @@ -13206,7 +13196,7 @@ public async System.Threading.Tasks.Task MacEnrollmentAsy { } } - + /// Updates mac enrollment settings data /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -13214,9 +13204,9 @@ public async System.Threading.Tasks.Task MacEnrollmentAsy /// A server side error occurred. public System.Threading.Tasks.Task EditMacEnrollmentAsync(MacEnrollmentAPIModel body) { - return EditMacEnrollmentAsync(body, System.Threading.CancellationToken.None); + return EditMacEnrollmentAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates mac enrollment settings data /// Desired version of the api, if not provided defaults to v1 @@ -13227,28 +13217,28 @@ public async System.Threading.Tasks.Task EditMacEnrollmen { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/MacEnrollment"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -13258,11 +13248,11 @@ public async System.Threading.Tasks.Task EditMacEnrollmen foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -13270,10 +13260,10 @@ public async System.Threading.Tasks.Task EditMacEnrollmen else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(MacEnrollmentAPIModel); } finally @@ -13287,14 +13277,14 @@ public async System.Threading.Tasks.Task EditMacEnrollmen { } } + + + + + + - - - - - - - + /// Gets a persisted metadata field type by its unique id /// The unique id of the metadata field type /// Desired version of the api, if not provided defaults to v1 @@ -13305,7 +13295,7 @@ public System.Threading.Tasks.Task GetMetadataField0Asyn { return GetMetadataField0Async(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets a persisted metadata field type by its unique id /// The unique id of the metadata field type @@ -13317,29 +13307,29 @@ public async System.Threading.Tasks.Task GetMetadataFiel { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/MetadataFields/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -13349,11 +13339,11 @@ public async System.Threading.Tasks.Task GetMetadataFiel foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -13361,10 +13351,10 @@ public async System.Threading.Tasks.Task GetMetadataFiel else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(MetadataFieldTypeModel); } finally @@ -13378,7 +13368,7 @@ public async System.Threading.Tasks.Task GetMetadataFiel { } } - + /// Deletes a persisted metadata field type by its unique id /// Keyfactor identifier of the metadata field type /// Forces deletion of the metadata field type even if in-use @@ -13390,7 +13380,7 @@ public System.Threading.Tasks.Task DeleteMetadataFieldAsync(int id, bool? force) { return DeleteMetadataFieldAsync(id, force, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes a persisted metadata field type by its unique id /// Keyfactor identifier of the metadata field type @@ -13403,33 +13393,33 @@ public async System.Threading.Tasks.Task DeleteMetadataFieldAsync(int id, bool? { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/MetadataFields/{id}?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (force != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (force != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("force") + "=").Append(System.Uri.EscapeDataString(ConvertToString(force, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("force") + "=").Append(System.Uri.EscapeDataString(ConvertToString( force, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -13439,18 +13429,18 @@ public async System.Threading.Tasks.Task DeleteMetadataFieldAsync(int id, bool? foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -13465,7 +13455,7 @@ public async System.Threading.Tasks.Task DeleteMetadataFieldAsync(int id, bool? { } } - + /// Gets a persisted metadata field type by its unique name /// The unique name of the metadata field. /// Desired version of the api, if not provided defaults to v1 @@ -13476,7 +13466,7 @@ public System.Threading.Tasks.Task GetMetadataField1Asyn { return GetMetadataField1Async(name, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets a persisted metadata field type by its unique name /// The unique name of the metadata field. @@ -13488,29 +13478,29 @@ public async System.Threading.Tasks.Task GetMetadataFiel { if (name == null) throw new System.ArgumentNullException("name"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/MetadataFields/{name}"); - urlBuilder_.Replace("{name}", System.Uri.EscapeDataString(ConvertToString(name, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{name}", System.Uri.EscapeDataString(ConvertToString( name, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -13520,11 +13510,11 @@ public async System.Threading.Tasks.Task GetMetadataFiel foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -13532,10 +13522,10 @@ public async System.Threading.Tasks.Task GetMetadataFiel else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(MetadataFieldTypeModel); } finally @@ -13549,7 +13539,7 @@ public async System.Threading.Tasks.Task GetMetadataFiel { } } - + /// Determines if a metadata field type associated with the provided identifier is currently in use /// Keyfactor identitifer of the metadata field /// Desired version of the api, if not provided defaults to v1 @@ -13560,7 +13550,7 @@ public System.Threading.Tasks.Task GetMetadataFieldInUseAsync(int id) { return GetMetadataFieldInUseAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Determines if a metadata field type associated with the provided identifier is currently in use /// Keyfactor identitifer of the metadata field @@ -13572,29 +13562,29 @@ public async System.Threading.Tasks.Task GetMetadataFieldInUseAsync(int id { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/MetadataFields/{id}/InUse"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -13604,11 +13594,11 @@ public async System.Threading.Tasks.Task GetMetadataFieldInUseAsync(int id foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -13616,10 +13606,10 @@ public async System.Threading.Tasks.Task GetMetadataFieldInUseAsync(int id else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(bool); } finally @@ -13633,7 +13623,7 @@ public async System.Threading.Tasks.Task GetMetadataFieldInUseAsync(int id { } } - + /// Returns all metadata field types according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -13646,9 +13636,9 @@ public async System.Threading.Tasks.Task GetMetadataFieldInUseAsync(int id /// A server side error occurred. public System.Threading.Tasks.Task> GetAllMetadataFieldsAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending25? pq_sortAscending) { - return GetAllMetadataFieldsAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetAllMetadataFieldsAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all metadata field types according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -13664,46 +13654,46 @@ public async System.Threading.Tasks.Task GetMetadataFieldInUseAsync(int id { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/MetadataFields?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -13713,11 +13703,11 @@ public async System.Threading.Tasks.Task GetMetadataFieldInUseAsync(int id foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -13725,10 +13715,10 @@ public async System.Threading.Tasks.Task GetMetadataFieldInUseAsync(int id else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -13742,7 +13732,7 @@ public async System.Threading.Tasks.Task GetMetadataFieldInUseAsync(int id { } } - + /// Updates a persisted metadata field with the given metadata field type /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -13751,9 +13741,9 @@ public async System.Threading.Tasks.Task GetMetadataFieldInUseAsync(int id /// A server side error occurred. public System.Threading.Tasks.Task UpdateMetadataFieldAsync(MetadataFieldUpdateRequest body) { - return UpdateMetadataFieldAsync(body, System.Threading.CancellationToken.None); + return UpdateMetadataFieldAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates a persisted metadata field with the given metadata field type /// Desired version of the api, if not provided defaults to v1 @@ -13765,28 +13755,28 @@ public async System.Threading.Tasks.Task UpdateMetadataFi { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/MetadataFields"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -13796,11 +13786,11 @@ public async System.Threading.Tasks.Task UpdateMetadataFi foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -13808,10 +13798,10 @@ public async System.Threading.Tasks.Task UpdateMetadataFi else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(MetadataFieldResponse); } finally @@ -13825,7 +13815,7 @@ public async System.Threading.Tasks.Task UpdateMetadataFi { } } - + /// Creates a new metadata field type with the given metadata field type properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -13834,9 +13824,9 @@ public async System.Threading.Tasks.Task UpdateMetadataFi /// A server side error occurred. public System.Threading.Tasks.Task CreateMetadataFieldAsync(MetadataFieldCreateRequest body) { - return CreateMetadataFieldAsync(body, System.Threading.CancellationToken.None); + return CreateMetadataFieldAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a new metadata field type with the given metadata field type properties /// Desired version of the api, if not provided defaults to v1 @@ -13848,28 +13838,28 @@ public async System.Threading.Tasks.Task CreateMetadataFi { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/MetadataFields"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -13879,11 +13869,11 @@ public async System.Threading.Tasks.Task CreateMetadataFi foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -13891,10 +13881,10 @@ public async System.Threading.Tasks.Task CreateMetadataFi else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(MetadataFieldResponse); } finally @@ -13908,7 +13898,7 @@ public async System.Threading.Tasks.Task CreateMetadataFi { } } - + /// Deletes multiple persisted metadata field types by their unique ids /// Forces deletion of the metadata field type even if in-use /// Desired version of the api, if not provided defaults to v1 @@ -13920,7 +13910,7 @@ public System.Threading.Tasks.Task DeleteMetadataFieldsAsync(bool? force, System { return DeleteMetadataFieldsAsync(force, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes multiple persisted metadata field types by their unique ids /// Forces deletion of the metadata field type even if in-use @@ -13933,32 +13923,32 @@ public async System.Threading.Tasks.Task DeleteMetadataFieldsAsync(bool? force, { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/MetadataFields?"); - if (force != null) + if (force != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("force") + "=").Append(System.Uri.EscapeDataString(ConvertToString(force, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("force") + "=").Append(System.Uri.EscapeDataString(ConvertToString( force, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -13968,18 +13958,18 @@ public async System.Threading.Tasks.Task DeleteMetadataFieldsAsync(bool? force, foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -13994,14 +13984,14 @@ public async System.Threading.Tasks.Task DeleteMetadataFieldsAsync(bool? force, { } } + + + + + + - - - - - - - + /// Get a revocation monitoring endpoint /// Id for the endpoint to get /// Desired version of the api, if not provided defaults to v1 @@ -14012,7 +14002,7 @@ public System.Threading.Tasks.Task GetRe { return GetRevocationMonitoringAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a revocation monitoring endpoint /// Id for the endpoint to get @@ -14024,29 +14014,29 @@ public async System.Threading.Tasks.Task { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Monitoring/Revocation/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -14056,11 +14046,11 @@ public async System.Threading.Tasks.Task foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -14068,10 +14058,10 @@ public async System.Threading.Tasks.Task else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(RevocationMonitoringDefinitionResponse); } finally @@ -14085,7 +14075,7 @@ public async System.Threading.Tasks.Task { } } - + /// Delete a revocation monitoring endpoint /// Id for the revocation monitoring endpoint /// Desired version of the api, if not provided defaults to v1 @@ -14096,7 +14086,7 @@ public System.Threading.Tasks.Task DeleteRevocationMonitoringAsync(int id) { return DeleteRevocationMonitoringAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete a revocation monitoring endpoint /// Id for the revocation monitoring endpoint @@ -14108,28 +14098,28 @@ public async System.Threading.Tasks.Task DeleteRevocationMonitoringAsync(int id, { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Monitoring/Revocation/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -14139,18 +14129,18 @@ public async System.Threading.Tasks.Task DeleteRevocationMonitoringAsync(int id, foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -14165,7 +14155,7 @@ public async System.Threading.Tasks.Task DeleteRevocationMonitoringAsync(int id, { } } - + /// Gets all revocation monitoring endpoints according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -14178,9 +14168,9 @@ public async System.Threading.Tasks.Task DeleteRevocationMonitoringAsync(int id, /// A server side error occurred. public System.Threading.Tasks.Task> GetRevocationMonitoringEndpointsAsync(string pagedQuery_queryString, int? pagedQuery_pageReturned, int? pagedQuery_returnLimit, string pagedQuery_sortField, SortAscending26? pagedQuery_sortAscending) { - return GetRevocationMonitoringEndpointsAsync(pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); + return GetRevocationMonitoringEndpointsAsync( pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets all revocation monitoring endpoints according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -14196,46 +14186,46 @@ public async System.Threading.Tasks.Task DeleteRevocationMonitoringAsync(int id, { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Monitoring/Revocation?"); - if (pagedQuery_queryString != null) + if (pagedQuery_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_pageReturned != null) + if (pagedQuery_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_returnLimit != null) + if (pagedQuery_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortField != null) + if (pagedQuery_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortAscending != null) + if (pagedQuery_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -14245,11 +14235,11 @@ public async System.Threading.Tasks.Task DeleteRevocationMonitoringAsync(int id, foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -14257,10 +14247,10 @@ public async System.Threading.Tasks.Task DeleteRevocationMonitoringAsync(int id, else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -14274,7 +14264,7 @@ public async System.Threading.Tasks.Task DeleteRevocationMonitoringAsync(int id, { } } - + /// Edit a revocation monitoring endpoint /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -14283,9 +14273,9 @@ public async System.Threading.Tasks.Task DeleteRevocationMonitoringAsync(int id, /// A server side error occurred. public System.Threading.Tasks.Task EditRevocationMonitoringAsync(RevocationMonitoringUpdateRequest body) { - return EditRevocationMonitoringAsync(body, System.Threading.CancellationToken.None); + return EditRevocationMonitoringAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Edit a revocation monitoring endpoint /// Desired version of the api, if not provided defaults to v1 @@ -14297,28 +14287,28 @@ public async System.Threading.Tasks.Task { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Monitoring/Revocation"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -14328,11 +14318,11 @@ public async System.Threading.Tasks.Task foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -14340,10 +14330,10 @@ public async System.Threading.Tasks.Task else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(RevocationMonitoringDefinitionResponse); } finally @@ -14357,7 +14347,7 @@ public async System.Threading.Tasks.Task { } } - + /// Add a revocation monitoring endpoint /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -14366,9 +14356,9 @@ public async System.Threading.Tasks.Task /// A server side error occurred. public System.Threading.Tasks.Task AddRevocationMonitoringAsync(RevocationMonitoringCreationRequest body) { - return AddRevocationMonitoringAsync(body, System.Threading.CancellationToken.None); + return AddRevocationMonitoringAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add a revocation monitoring endpoint /// Desired version of the api, if not provided defaults to v1 @@ -14380,28 +14370,28 @@ public async System.Threading.Tasks.Task { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Monitoring/Revocation"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -14411,11 +14401,11 @@ public async System.Threading.Tasks.Task foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -14423,10 +14413,10 @@ public async System.Threading.Tasks.Task else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(RevocationMonitoringDefinitionResponse); } finally @@ -14440,7 +14430,7 @@ public async System.Threading.Tasks.Task { } } - + /// Resolve the Certificate authority given /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -14449,9 +14439,9 @@ public async System.Threading.Tasks.Task /// A server side error occurred. public System.Threading.Tasks.Task ResolveOCSPAsync(OCSPParametersRequest body) { - return ResolveOCSPAsync(body, System.Threading.CancellationToken.None); + return ResolveOCSPAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Resolve the Certificate authority given /// Desired version of the api, if not provided defaults to v1 @@ -14463,28 +14453,28 @@ public async System.Threading.Tasks.Task ResolveOCSPAsyn { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Monitoring/ResolveOCSP"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -14494,11 +14484,11 @@ public async System.Threading.Tasks.Task ResolveOCSPAsyn foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -14506,10 +14496,10 @@ public async System.Threading.Tasks.Task ResolveOCSPAsyn else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(OCSPParametersResponse); } finally @@ -14523,7 +14513,7 @@ public async System.Threading.Tasks.Task ResolveOCSPAsyn { } } - + /// Test Alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -14532,9 +14522,9 @@ public async System.Threading.Tasks.Task ResolveOCSPAsyn /// A server side error occurred. public System.Threading.Tasks.Task TestRevocationMonitoringAlertAsync(RevocationMonitoringAlertTestRequest body) { - return TestRevocationMonitoringAlertAsync(body, System.Threading.CancellationToken.None); + return TestRevocationMonitoringAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Test Alert /// Desired version of the api, if not provided defaults to v1 @@ -14546,28 +14536,28 @@ public async System.Threading.Tasks.Task { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Monitoring/Revocation/Test"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -14577,11 +14567,11 @@ public async System.Threading.Tasks.Task foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -14589,10 +14579,10 @@ public async System.Threading.Tasks.Task else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(RevocationMonitoringAlertTestResponse); } finally @@ -14606,7 +14596,7 @@ public async System.Threading.Tasks.Task { } } - + /// Test All Alerts /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -14615,9 +14605,9 @@ public async System.Threading.Tasks.Task /// A server side error occurred. public System.Threading.Tasks.Task TestAllRevocationMonitoringAlertAsync(RevocationMonitoringAlertTestAllRequest body) { - return TestAllRevocationMonitoringAlertAsync(body, System.Threading.CancellationToken.None); + return TestAllRevocationMonitoringAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Test All Alerts /// Desired version of the api, if not provided defaults to v1 @@ -14629,28 +14619,28 @@ public async System.Threading.Tasks.Task { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Monitoring/Revocation/TestAll"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -14660,11 +14650,11 @@ public async System.Threading.Tasks.Task foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -14672,10 +14662,10 @@ public async System.Threading.Tasks.Task else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(RevocationMonitoringAlertTestResponse); } finally @@ -14689,14 +14679,14 @@ public async System.Threading.Tasks.Task { } } + + + + + + - - - - - - - + /// Retrieves the results of a custom job using the provided information /// Identifier of the job history record to retrieve /// Desired version of the api, if not provided defaults to v1 @@ -14707,7 +14697,7 @@ public System.Threading.Tasks.Task GetCustomJobResu { return GetCustomJobResultDataAsync(jobHistoryId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Retrieves the results of a custom job using the provided information /// Identifier of the job history record to retrieve @@ -14719,30 +14709,30 @@ public async System.Threading.Tasks.Task GetCustomJ { if (jobHistoryId == null) throw new System.ArgumentNullException("jobHistoryId"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/OrchestratorJobs/JobStatus/Data?"); - urlBuilder_.Append(System.Uri.EscapeDataString("jobHistoryId") + "=").Append(System.Uri.EscapeDataString(ConvertToString(jobHistoryId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("jobHistoryId") + "=").Append(System.Uri.EscapeDataString(ConvertToString( jobHistoryId, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -14752,11 +14742,11 @@ public async System.Threading.Tasks.Task GetCustomJ foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -14764,10 +14754,10 @@ public async System.Threading.Tasks.Task GetCustomJ else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CustomJobResultDataResponse); } finally @@ -14781,7 +14771,7 @@ public async System.Threading.Tasks.Task GetCustomJ { } } - + /// Returns all histories of an orchestrator job according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -14794,9 +14784,9 @@ public async System.Threading.Tasks.Task GetCustomJ /// A server side error occurred. public System.Threading.Tasks.Task> GetJobHistoryAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending27? pq_sortAscending) { - return GetJobHistoryAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetJobHistoryAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all histories of an orchestrator job according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -14812,46 +14802,46 @@ public async System.Threading.Tasks.Task GetCustomJ { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/OrchestratorJobs/JobHistory?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -14861,11 +14851,11 @@ public async System.Threading.Tasks.Task GetCustomJ foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -14873,10 +14863,10 @@ public async System.Threading.Tasks.Task GetCustomJ else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -14890,7 +14880,7 @@ public async System.Threading.Tasks.Task GetCustomJ { } } - + /// Returns all scheduled orchestrator jobs according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -14903,9 +14893,9 @@ public async System.Threading.Tasks.Task GetCustomJ /// A server side error occurred. public System.Threading.Tasks.Task> GetScheduledJobsAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending28? pq_sortAscending) { - return GetScheduledJobsAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return GetScheduledJobsAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all scheduled orchestrator jobs according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -14921,46 +14911,46 @@ public async System.Threading.Tasks.Task GetCustomJ { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/OrchestratorJobs/ScheduledJobs?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -14970,11 +14960,11 @@ public async System.Threading.Tasks.Task GetCustomJ foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -14982,10 +14972,10 @@ public async System.Threading.Tasks.Task GetCustomJ else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -14999,7 +14989,7 @@ public async System.Threading.Tasks.Task GetCustomJ { } } - + /// Schedules a job for a custom JobType on the agent using the provided information /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -15008,9 +14998,9 @@ public async System.Threading.Tasks.Task GetCustomJ /// A server side error occurred. public System.Threading.Tasks.Task ScheduleJobAsync(ScheduleJobRequest body) { - return ScheduleJobAsync(body, System.Threading.CancellationToken.None); + return ScheduleJobAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Schedules a job for a custom JobType on the agent using the provided information /// Desired version of the api, if not provided defaults to v1 @@ -15022,28 +15012,28 @@ public async System.Threading.Tasks.Task ScheduleJobAsync(ScheduleJ { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/OrchestratorJobs/Custom"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -15053,11 +15043,11 @@ public async System.Threading.Tasks.Task ScheduleJobAsync(ScheduleJ foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -15065,10 +15055,10 @@ public async System.Threading.Tasks.Task ScheduleJobAsync(ScheduleJ else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(JobResponse); } finally @@ -15082,7 +15072,7 @@ public async System.Threading.Tasks.Task ScheduleJobAsync(ScheduleJ { } } - + /// Reschedules orchestrator jobs based on the provided information /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -15091,9 +15081,9 @@ public async System.Threading.Tasks.Task ScheduleJobAsync(ScheduleJ /// A server side error occurred. public System.Threading.Tasks.Task RescheduleJobsAsync(RescheduleJobRequest body) { - return RescheduleJobsAsync(body, System.Threading.CancellationToken.None); + return RescheduleJobsAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Reschedules orchestrator jobs based on the provided information /// Desired version of the api, if not provided defaults to v1 @@ -15105,27 +15095,27 @@ public async System.Threading.Tasks.Task RescheduleJobsAsync(RescheduleJobReques { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/OrchestratorJobs/Reschedule"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -15135,18 +15125,18 @@ public async System.Threading.Tasks.Task RescheduleJobsAsync(RescheduleJobReques foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -15161,7 +15151,7 @@ public async System.Threading.Tasks.Task RescheduleJobsAsync(RescheduleJobReques { } } - + /// Unschedules orchestrator jobs based on the provided information /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -15170,9 +15160,9 @@ public async System.Threading.Tasks.Task RescheduleJobsAsync(RescheduleJobReques /// A server side error occurred. public System.Threading.Tasks.Task UnscheduleJobsAsync(UnscheduleJobRequest body) { - return UnscheduleJobsAsync(body, System.Threading.CancellationToken.None); + return UnscheduleJobsAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Unschedules orchestrator jobs based on the provided information /// Desired version of the api, if not provided defaults to v1 @@ -15184,27 +15174,27 @@ public async System.Threading.Tasks.Task UnscheduleJobsAsync(UnscheduleJobReques { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/OrchestratorJobs/Unschedule"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -15214,18 +15204,18 @@ public async System.Threading.Tasks.Task UnscheduleJobsAsync(UnscheduleJobReques foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -15240,7 +15230,7 @@ public async System.Threading.Tasks.Task UnscheduleJobsAsync(UnscheduleJobReques { } } - + /// Acknowledges orchestrator jobs based on the provided information /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -15249,9 +15239,9 @@ public async System.Threading.Tasks.Task UnscheduleJobsAsync(UnscheduleJobReques /// A server side error occurred. public System.Threading.Tasks.Task AcknowledgeJobsAsync(AcknowledgeJobRequest body) { - return AcknowledgeJobsAsync(body, System.Threading.CancellationToken.None); + return AcknowledgeJobsAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Acknowledges orchestrator jobs based on the provided information /// Desired version of the api, if not provided defaults to v1 @@ -15263,27 +15253,27 @@ public async System.Threading.Tasks.Task AcknowledgeJobsAsync(AcknowledgeJobRequ { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/OrchestratorJobs/Acknowledge"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -15293,18 +15283,18 @@ public async System.Threading.Tasks.Task AcknowledgeJobsAsync(AcknowledgeJobRequ foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -15319,7 +15309,7 @@ public async System.Threading.Tasks.Task AcknowledgeJobsAsync(AcknowledgeJobRequ { } } - + /// Schedules the same job for a custom JobType on the specified agents using the provided information /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -15328,9 +15318,9 @@ public async System.Threading.Tasks.Task AcknowledgeJobsAsync(AcknowledgeJobRequ /// A server side error occurred. public System.Threading.Tasks.Task ScheduleBulkJobAsync(ScheduleBulkJobRequest body) { - return ScheduleBulkJobAsync(body, System.Threading.CancellationToken.None); + return ScheduleBulkJobAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Schedules the same job for a custom JobType on the specified agents using the provided information /// Desired version of the api, if not provided defaults to v1 @@ -15342,28 +15332,28 @@ public async System.Threading.Tasks.Task ScheduleBulkJobAsync(S { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/OrchestratorJobs/Custom/Bulk"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -15373,11 +15363,11 @@ public async System.Threading.Tasks.Task ScheduleBulkJobAsync(S foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -15385,10 +15375,10 @@ public async System.Threading.Tasks.Task ScheduleBulkJobAsync(S else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(BulkJobResponse); } finally @@ -15402,14 +15392,14 @@ public async System.Threading.Tasks.Task ScheduleBulkJobAsync(S { } } + + + + + + - - - - - - - + /// Deletes a PAM Provider /// Keyfactor identifier of the PAM provider to be deleted /// Desired version of the api, if not provided defaults to v1 @@ -15420,7 +15410,7 @@ public System.Threading.Tasks.Task DeletePamProviderAsync(int id) { return DeletePamProviderAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes a PAM Provider /// Keyfactor identifier of the PAM provider to be deleted @@ -15432,28 +15422,28 @@ public async System.Threading.Tasks.Task DeletePamProviderAsync(int id, System.T { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/PamProviders/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -15463,18 +15453,18 @@ public async System.Threading.Tasks.Task DeletePamProviderAsync(int id, System.T foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -15489,7 +15479,7 @@ public async System.Threading.Tasks.Task DeletePamProviderAsync(int id, System.T { } } - + /// Creates a new PAM provider type with the associated properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -15498,9 +15488,9 @@ public async System.Threading.Tasks.Task DeletePamProviderAsync(int id, System.T /// A server side error occurred. public System.Threading.Tasks.Task CreatePamProviderTypeAsync(ProviderTypeCreateRequest body) { - return CreatePamProviderTypeAsync(body, System.Threading.CancellationToken.None); + return CreatePamProviderTypeAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a new PAM provider type with the associated properties /// Desired version of the api, if not provided defaults to v1 @@ -15512,28 +15502,28 @@ public async System.Threading.Tasks.Task CreatePamProvider { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/PamProviders/Types"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -15543,11 +15533,11 @@ public async System.Threading.Tasks.Task CreatePamProvider foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -15555,10 +15545,10 @@ public async System.Threading.Tasks.Task CreatePamProvider else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ProviderTypeResponse); } finally @@ -15572,14 +15562,14 @@ public async System.Threading.Tasks.Task CreatePamProvider { } } + + + + + + - - - - - - - + /// Get a pending alert /// Id for the pending alert to get /// Desired version of the api, if not provided defaults to v1 @@ -15590,7 +15580,7 @@ public System.Threading.Tasks.Task GetPendingAle { return GetPendingAlertAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a pending alert /// Id for the pending alert to get @@ -15602,29 +15592,29 @@ public async System.Threading.Tasks.Task GetPend { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Pending/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -15634,11 +15624,11 @@ public async System.Threading.Tasks.Task GetPend foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -15646,10 +15636,10 @@ public async System.Threading.Tasks.Task GetPend else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(PendingAlertDefinitionResponse); } finally @@ -15663,7 +15653,7 @@ public async System.Threading.Tasks.Task GetPend { } } - + /// Delete a pending alert /// Id for the pending alert /// Desired version of the api, if not provided defaults to v1 @@ -15674,7 +15664,7 @@ public System.Threading.Tasks.Task DeletePendingAlertAsync(int id) { return DeletePendingAlertAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete a pending alert /// Id for the pending alert @@ -15686,28 +15676,28 @@ public async System.Threading.Tasks.Task DeletePendingAlertAsync(int id, System. { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Pending/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -15717,18 +15707,18 @@ public async System.Threading.Tasks.Task DeletePendingAlertAsync(int id, System. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -15743,7 +15733,7 @@ public async System.Threading.Tasks.Task DeletePendingAlertAsync(int id, System. { } } - + /// Get the schedule for pending alerts /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -15751,9 +15741,9 @@ public async System.Threading.Tasks.Task DeletePendingAlertAsync(int id, System. /// A server side error occurred. public System.Threading.Tasks.Task GetScheduleAsync_3(string x_keyfactor_api_version) { - return GetScheduleAsync_3(System.Threading.CancellationToken.None); + return GetScheduleAsync_3( System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get the schedule for pending alerts /// Desired version of the api, if not provided defaults to v1 @@ -15764,25 +15754,25 @@ public async System.Threading.Tasks.Task GetScheduleAsync { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Pending/Schedule"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -15792,11 +15782,11 @@ public async System.Threading.Tasks.Task GetScheduleAsync foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -15804,10 +15794,10 @@ public async System.Threading.Tasks.Task GetScheduleAsync else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AlertScheduleResponse); } finally @@ -15821,7 +15811,7 @@ public async System.Threading.Tasks.Task GetScheduleAsync { } } - + /// Edit schedule /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -15829,9 +15819,9 @@ public async System.Threading.Tasks.Task GetScheduleAsync /// A server side error occurred. public System.Threading.Tasks.Task EditScheduleAsync_3(AlertScheduleRequest body) { - return EditScheduleAsync_3(body, System.Threading.CancellationToken.None); + return EditScheduleAsync_3( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Edit schedule /// Desired version of the api, if not provided defaults to v1 @@ -15842,28 +15832,28 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Pending/Schedule"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -15873,11 +15863,11 @@ public async System.Threading.Tasks.Task EditScheduleAsyn foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -15885,10 +15875,10 @@ public async System.Threading.Tasks.Task EditScheduleAsyn else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AlertScheduleResponse); } finally @@ -15902,7 +15892,7 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { } } - + /// Gets all pending alerts according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -15915,9 +15905,9 @@ public async System.Threading.Tasks.Task EditScheduleAsyn /// A server side error occurred. public System.Threading.Tasks.Task> GetPendingAlertsAsync(string pagedQuery_queryString, int? pagedQuery_pageReturned, int? pagedQuery_returnLimit, string pagedQuery_sortField, SortAscending29? pagedQuery_sortAscending) { - return GetPendingAlertsAsync(pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); + return GetPendingAlertsAsync( pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets all pending alerts according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -15933,46 +15923,46 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Pending?"); - if (pagedQuery_queryString != null) + if (pagedQuery_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_pageReturned != null) + if (pagedQuery_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_returnLimit != null) + if (pagedQuery_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortField != null) + if (pagedQuery_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortAscending != null) + if (pagedQuery_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -15982,11 +15972,11 @@ public async System.Threading.Tasks.Task EditScheduleAsyn foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -15994,10 +15984,10 @@ public async System.Threading.Tasks.Task EditScheduleAsyn else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -16011,7 +16001,7 @@ public async System.Threading.Tasks.Task EditScheduleAsyn { } } - + /// Edit a pending alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -16020,9 +16010,9 @@ public async System.Threading.Tasks.Task EditScheduleAsyn /// A server side error occurred. public System.Threading.Tasks.Task EditPendingAlertAsync(PendingAlertUpdateRequest body) { - return EditPendingAlertAsync(body, System.Threading.CancellationToken.None); + return EditPendingAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Edit a pending alert /// Desired version of the api, if not provided defaults to v1 @@ -16034,28 +16024,28 @@ public async System.Threading.Tasks.Task EditPen { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Pending"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -16065,11 +16055,11 @@ public async System.Threading.Tasks.Task EditPen foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -16077,10 +16067,10 @@ public async System.Threading.Tasks.Task EditPen else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(PendingAlertDefinitionResponse); } finally @@ -16094,7 +16084,7 @@ public async System.Threading.Tasks.Task EditPen { } } - + /// Add a pending alert /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -16103,9 +16093,9 @@ public async System.Threading.Tasks.Task EditPen /// A server side error occurred. public System.Threading.Tasks.Task AddPendingAlertAsync(PendingAlertCreationRequest body) { - return AddPendingAlertAsync(body, System.Threading.CancellationToken.None); + return AddPendingAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add a pending alert /// Desired version of the api, if not provided defaults to v1 @@ -16117,28 +16107,28 @@ public async System.Threading.Tasks.Task AddPend { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Pending"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -16148,11 +16138,11 @@ public async System.Threading.Tasks.Task AddPend foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -16160,10 +16150,10 @@ public async System.Threading.Tasks.Task AddPend else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(PendingAlertDefinitionResponse); } finally @@ -16177,7 +16167,7 @@ public async System.Threading.Tasks.Task AddPend { } } - + /// Test pending alert. Will send alert emails if SendAlerts is true /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -16186,9 +16176,9 @@ public async System.Threading.Tasks.Task AddPend /// A server side error occurred. public System.Threading.Tasks.Task TestPendingAlertAsync(PendingAlertTestRequest body) { - return TestPendingAlertAsync(body, System.Threading.CancellationToken.None); + return TestPendingAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Test pending alert. Will send alert emails if SendAlerts is true /// Desired version of the api, if not provided defaults to v1 @@ -16200,28 +16190,28 @@ public async System.Threading.Tasks.Task TestPendingAl { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Pending/Test"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -16231,11 +16221,11 @@ public async System.Threading.Tasks.Task TestPendingAl foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -16243,10 +16233,10 @@ public async System.Threading.Tasks.Task TestPendingAl else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(PendingAlertTestResponse); } finally @@ -16260,7 +16250,7 @@ public async System.Threading.Tasks.Task TestPendingAl { } } - + /// Test all pending alerts. Will send alert emails if SendAlerts is true /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -16269,9 +16259,9 @@ public async System.Threading.Tasks.Task TestPendingAl /// A server side error occurred. public System.Threading.Tasks.Task TestAllPendingAlertAsync(PendingAlertTestAllRequest body) { - return TestAllPendingAlertAsync(body, System.Threading.CancellationToken.None); + return TestAllPendingAlertAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Test all pending alerts. Will send alert emails if SendAlerts is true /// Desired version of the api, if not provided defaults to v1 @@ -16283,28 +16273,28 @@ public async System.Threading.Tasks.Task TestAllPendin { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Alerts/Pending/TestAll"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -16314,11 +16304,11 @@ public async System.Threading.Tasks.Task TestAllPendin foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -16326,10 +16316,10 @@ public async System.Threading.Tasks.Task TestAllPendin else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(PendingAlertTestResponse); } finally @@ -16343,14 +16333,14 @@ public async System.Threading.Tasks.Task TestAllPendin { } } + + + + + + - - - - - - - + /// Returns a single built-in report that matches the id /// Report identifier /// Desired version of the api, if not provided defaults to v1 @@ -16361,7 +16351,7 @@ public System.Threading.Tasks.Task GetReportAsync(int id) { return GetReportAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a single built-in report that matches the id /// Report identifier @@ -16373,29 +16363,29 @@ public async System.Threading.Tasks.Task GetReportAsync(int id, System.T { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -16405,11 +16395,11 @@ public async System.Threading.Tasks.Task GetReportAsync(int id, System.T foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -16417,10 +16407,10 @@ public async System.Threading.Tasks.Task GetReportAsync(int id, System.T else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(Report); } finally @@ -16434,7 +16424,7 @@ public async System.Threading.Tasks.Task GetReportAsync(int id, System.T { } } - + /// Returns a single custom report that matches the id /// Report identifier /// Desired version of the api, if not provided defaults to v1 @@ -16445,7 +16435,7 @@ public System.Threading.Tasks.Task GetCustomReportAsync(int id) { return GetCustomReportAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a single custom report that matches the id /// Report identifier @@ -16457,29 +16447,29 @@ public async System.Threading.Tasks.Task GetCustomReportAsync(int { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/Custom/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -16489,11 +16479,11 @@ public async System.Threading.Tasks.Task GetCustomReportAsync(int foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -16501,10 +16491,10 @@ public async System.Threading.Tasks.Task GetCustomReportAsync(int else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CustomReport); } finally @@ -16518,7 +16508,7 @@ public async System.Threading.Tasks.Task GetCustomReportAsync(int { } } - + /// Delete custom report that matches the id /// Report identifier /// Desired version of the api, if not provided defaults to v1 @@ -16529,7 +16519,7 @@ public System.Threading.Tasks.Task DeleteReportAsync(int id) { return DeleteReportAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete custom report that matches the id /// Report identifier @@ -16541,28 +16531,28 @@ public async System.Threading.Tasks.Task DeleteReportAsync(int id, System.Thread { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/Custom/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -16572,18 +16562,18 @@ public async System.Threading.Tasks.Task DeleteReportAsync(int id, System.Thread foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -16598,7 +16588,7 @@ public async System.Threading.Tasks.Task DeleteReportAsync(int id, System.Thread { } } - + /// Get a built-in report's schedule that matches the id of the schedule. /// Report Schedule identifier /// Desired version of the api, if not provided defaults to v1 @@ -16609,7 +16599,7 @@ public System.Threading.Tasks.Task GetReportScheduleAsync(int id { return GetReportScheduleAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a built-in report's schedule that matches the id of the schedule. /// Report Schedule identifier @@ -16621,29 +16611,29 @@ public async System.Threading.Tasks.Task GetReportScheduleAsync( { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/Schedules/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -16653,11 +16643,11 @@ public async System.Threading.Tasks.Task GetReportScheduleAsync( foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -16665,10 +16655,10 @@ public async System.Threading.Tasks.Task GetReportScheduleAsync( else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ReportSchedule); } finally @@ -16682,7 +16672,7 @@ public async System.Threading.Tasks.Task GetReportScheduleAsync( { } } - + /// Delete a built-in report's schedule that matches the id of the schedule. /// Report Schedule identifier /// Desired version of the api, if not provided defaults to v1 @@ -16693,7 +16683,7 @@ public System.Threading.Tasks.Task DeleteReportScheduleAsync(int id) { return DeleteReportScheduleAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Delete a built-in report's schedule that matches the id of the schedule. /// Report Schedule identifier @@ -16705,28 +16695,28 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/Schedules/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -16736,18 +16726,18 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -16762,7 +16752,7 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste { } } - + /// Get a built-in report's parameters that matches the id of the report. /// Report identifier /// Desired version of the api, if not provided defaults to v1 @@ -16773,7 +16763,7 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste { return GetReportParametersAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a built-in report's parameters that matches the id of the report. /// Report identifier @@ -16785,29 +16775,29 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/{id}/Parameters"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -16817,11 +16807,11 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -16829,10 +16819,10 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -16846,7 +16836,7 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste { } } - + /// Update a built-in report's parameters that matches the id of the report. /// Report identifier /// Desired version of the api, if not provided defaults to v1 @@ -16858,7 +16848,7 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste { return UpdateReportParametersAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a built-in report's parameters that matches the id of the report. /// Report identifier @@ -16871,32 +16861,32 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/{id}/Parameters"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -16906,11 +16896,11 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -16918,10 +16908,10 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -16935,7 +16925,7 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste { } } - + /// Returns all built-in reports according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -16948,9 +16938,9 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste /// A server side error occurred. public System.Threading.Tasks.Task> QueryReportsAsync(string query_queryString, int? query_pageReturned, int? query_returnLimit, string query_sortField, SortAscending30? query_sortAscending) { - return QueryReportsAsync(query_queryString, query_pageReturned, query_returnLimit, query_sortField, query_sortAscending, System.Threading.CancellationToken.None); + return QueryReportsAsync( query_queryString, query_pageReturned, query_returnLimit, query_sortField, query_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all built-in reports according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -16966,46 +16956,46 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports?"); - if (query_queryString != null) + if (query_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_pageReturned != null) + if (query_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_returnLimit != null) + if (query_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortField != null) + if (query_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortAscending != null) + if (query_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -17015,11 +17005,11 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -17027,10 +17017,10 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -17044,7 +17034,7 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste { } } - + /// Updates a single built-in report that matches the id. Only some fields can be updated. /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -17053,9 +17043,9 @@ public async System.Threading.Tasks.Task DeleteReportScheduleAsync(int id, Syste /// A server side error occurred. public System.Threading.Tasks.Task UpdateReportAsync(ReportRequestModel body) { - return UpdateReportAsync(body, System.Threading.CancellationToken.None); + return UpdateReportAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates a single built-in report that matches the id. Only some fields can be updated. /// Desired version of the api, if not provided defaults to v1 @@ -17067,28 +17057,28 @@ public async System.Threading.Tasks.Task UpdateReportAsync(ReportRequest { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -17098,11 +17088,11 @@ public async System.Threading.Tasks.Task UpdateReportAsync(ReportRequest foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -17110,10 +17100,10 @@ public async System.Threading.Tasks.Task UpdateReportAsync(ReportRequest else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(Report); } finally @@ -17127,7 +17117,7 @@ public async System.Threading.Tasks.Task UpdateReportAsync(ReportRequest { } } - + /// Returns all custom reports according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -17140,9 +17130,9 @@ public async System.Threading.Tasks.Task UpdateReportAsync(ReportRequest /// A server side error occurred. public System.Threading.Tasks.Task> QueryCustomReportsAsync(string query_queryString, int? query_pageReturned, int? query_returnLimit, string query_sortField, SortAscending31? query_sortAscending) { - return QueryCustomReportsAsync(query_queryString, query_pageReturned, query_returnLimit, query_sortField, query_sortAscending, System.Threading.CancellationToken.None); + return QueryCustomReportsAsync( query_queryString, query_pageReturned, query_returnLimit, query_sortField, query_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all custom reports according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -17158,46 +17148,46 @@ public async System.Threading.Tasks.Task UpdateReportAsync(ReportRequest { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/Custom?"); - if (query_queryString != null) + if (query_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_pageReturned != null) + if (query_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_returnLimit != null) + if (query_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortField != null) + if (query_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortAscending != null) + if (query_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -17207,11 +17197,11 @@ public async System.Threading.Tasks.Task UpdateReportAsync(ReportRequest foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -17219,10 +17209,10 @@ public async System.Threading.Tasks.Task UpdateReportAsync(ReportRequest else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -17236,7 +17226,7 @@ public async System.Threading.Tasks.Task UpdateReportAsync(ReportRequest { } } - + /// Updates a custom report that matches the id /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -17245,9 +17235,9 @@ public async System.Threading.Tasks.Task UpdateReportAsync(ReportRequest /// A server side error occurred. public System.Threading.Tasks.Task UpdateCustomReportAsync(CustomReportUpdateRequest body) { - return UpdateCustomReportAsync(body, System.Threading.CancellationToken.None); + return UpdateCustomReportAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates a custom report that matches the id /// Desired version of the api, if not provided defaults to v1 @@ -17259,28 +17249,28 @@ public async System.Threading.Tasks.Task UpdateCustomReportAsync(C { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/Custom"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -17290,11 +17280,11 @@ public async System.Threading.Tasks.Task UpdateCustomReportAsync(C foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -17302,10 +17292,10 @@ public async System.Threading.Tasks.Task UpdateCustomReportAsync(C else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CustomReport); } finally @@ -17319,7 +17309,7 @@ public async System.Threading.Tasks.Task UpdateCustomReportAsync(C { } } - + /// Creates a custom report /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -17328,9 +17318,9 @@ public async System.Threading.Tasks.Task UpdateCustomReportAsync(C /// A server side error occurred. public System.Threading.Tasks.Task CreateCustomReportAsync(CustomReportCreationRequest body) { - return CreateCustomReportAsync(body, System.Threading.CancellationToken.None); + return CreateCustomReportAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a custom report /// Desired version of the api, if not provided defaults to v1 @@ -17342,28 +17332,28 @@ public async System.Threading.Tasks.Task CreateCustomReportAsync(C { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/Custom"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -17373,11 +17363,11 @@ public async System.Threading.Tasks.Task CreateCustomReportAsync(C foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -17385,10 +17375,10 @@ public async System.Threading.Tasks.Task CreateCustomReportAsync(C else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CustomReport); } finally @@ -17402,7 +17392,7 @@ public async System.Threading.Tasks.Task CreateCustomReportAsync(C { } } - + /// Get a built-in report's schedules that matches the id of the report. /// Report identifier /// Desired version of the api, if not provided defaults to v1 @@ -17418,7 +17408,7 @@ public async System.Threading.Tasks.Task CreateCustomReportAsync(C { return GetReportSchedulesAsync(id, pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get a built-in report's schedules that matches the id of the report. /// Report identifier @@ -17435,50 +17425,50 @@ public async System.Threading.Tasks.Task CreateCustomReportAsync(C { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/{id}/Schedules?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (pq_queryString != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -17488,11 +17478,11 @@ public async System.Threading.Tasks.Task CreateCustomReportAsync(C foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -17500,10 +17490,10 @@ public async System.Threading.Tasks.Task CreateCustomReportAsync(C else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -17517,7 +17507,7 @@ public async System.Threading.Tasks.Task CreateCustomReportAsync(C { } } - + /// Update a built-in report's schedule that matches the id of the report. /// Report identifier /// Desired version of the api, if not provided defaults to v1 @@ -17529,7 +17519,7 @@ public System.Threading.Tasks.Task UpdateReportScheduleAsync(int { return UpdateReportScheduleAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Update a built-in report's schedule that matches the id of the report. /// Report identifier @@ -17542,32 +17532,32 @@ public async System.Threading.Tasks.Task UpdateReportScheduleAsy { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/{id}/Schedules"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -17577,11 +17567,11 @@ public async System.Threading.Tasks.Task UpdateReportScheduleAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -17589,10 +17579,10 @@ public async System.Threading.Tasks.Task UpdateReportScheduleAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ReportSchedule); } finally @@ -17606,7 +17596,7 @@ public async System.Threading.Tasks.Task UpdateReportScheduleAsy { } } - + /// Create a built-in report's schedule that matches the id of the report. /// Report identifier /// Desired version of the api, if not provided defaults to v1 @@ -17618,7 +17608,7 @@ public System.Threading.Tasks.Task CreateReportScheduleAsync(int { return CreateReportScheduleAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Create a built-in report's schedule that matches the id of the report. /// Report identifier @@ -17631,32 +17621,32 @@ public async System.Threading.Tasks.Task CreateReportScheduleAsy { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Reports/{id}/Schedules"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -17666,11 +17656,11 @@ public async System.Threading.Tasks.Task CreateReportScheduleAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -17678,10 +17668,10 @@ public async System.Threading.Tasks.Task CreateReportScheduleAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ReportSchedule); } finally @@ -17695,14 +17685,14 @@ public async System.Threading.Tasks.Task CreateReportScheduleAsy { } } + + + + + + - - - - - - - + /// Gets an object representing the permissions of the identity associated with the provided identifier. /// The identifier of the security identity /// Desired version of the api, if not provided defaults to v1 @@ -17713,7 +17703,7 @@ public System.Threading.Tasks.Task Identity { return IdentityPermissionsAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets an object representing the permissions of the identity associated with the provided identifier. /// The identifier of the security identity @@ -17725,29 +17715,29 @@ public async System.Threading.Tasks.Task Id { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Identities/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -17757,11 +17747,11 @@ public async System.Threading.Tasks.Task Id foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -17769,10 +17759,10 @@ public async System.Threading.Tasks.Task Id else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(SecurityIdentityPermissionsResponse); } finally @@ -17786,7 +17776,7 @@ public async System.Threading.Tasks.Task Id { } } - + /// Deletes the security identity whose ID is provided. /// The ID of the security identity to be deleted. /// Desired version of the api, if not provided defaults to v1 @@ -17797,7 +17787,7 @@ public System.Threading.Tasks.Task DeleteSecurityIdentityAsync(int id) { return DeleteSecurityIdentityAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes the security identity whose ID is provided. /// The ID of the security identity to be deleted. @@ -17809,28 +17799,28 @@ public async System.Threading.Tasks.Task DeleteSecurityIdentityAsync(int id, Sys { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Identities/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -17840,18 +17830,18 @@ public async System.Threading.Tasks.Task DeleteSecurityIdentityAsync(int id, Sys foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -17866,7 +17856,7 @@ public async System.Threading.Tasks.Task DeleteSecurityIdentityAsync(int id, Sys { } } - + /// Validates that the identity with the name given exists. /// The name of an identity we wish to check. /// Desired version of the api, if not provided defaults to v1 @@ -17877,7 +17867,7 @@ public System.Threading.Tasks.Task LookupIdentit { return LookupIdentityAsync(accountName, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Validates that the identity with the name given exists. /// The name of an identity we wish to check. @@ -17889,30 +17879,30 @@ public async System.Threading.Tasks.Task LookupI { if (accountName == null) throw new System.ArgumentNullException("accountName"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Identities/Lookup?"); - urlBuilder_.Append(System.Uri.EscapeDataString("accountName") + "=").Append(System.Uri.EscapeDataString(ConvertToString(accountName, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("accountName") + "=").Append(System.Uri.EscapeDataString(ConvertToString( accountName, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -17922,11 +17912,11 @@ public async System.Threading.Tasks.Task LookupI foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -17934,10 +17924,10 @@ public async System.Threading.Tasks.Task LookupI else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(SecurityIdentityLookupResponse); } finally @@ -17951,14 +17941,14 @@ public async System.Threading.Tasks.Task LookupI { } } + + + + + + - - - - - - - + /// Returns all permissions associated with the security role that matches the id. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -17969,7 +17959,7 @@ public async System.Threading.Tasks.Task LookupI { return GetPermissionsForRoleAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all permissions associated with the security role that matches the id. /// Security role identifier @@ -17981,29 +17971,29 @@ public async System.Threading.Tasks.Task LookupI { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}/Permissions"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -18013,11 +18003,11 @@ public async System.Threading.Tasks.Task LookupI foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -18025,10 +18015,10 @@ public async System.Threading.Tasks.Task LookupI else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -18042,7 +18032,7 @@ public async System.Threading.Tasks.Task LookupI { } } - + /// Returns all global permissions associated with the security role that matches the id. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -18053,7 +18043,7 @@ public async System.Threading.Tasks.Task LookupI { return GetGlobalPermissionsForRoleAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all global permissions associated with the security role that matches the id. /// Security role identifier @@ -18065,29 +18055,29 @@ public async System.Threading.Tasks.Task LookupI { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}/Permissions/Global"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -18097,11 +18087,11 @@ public async System.Threading.Tasks.Task LookupI foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -18109,10 +18099,10 @@ public async System.Threading.Tasks.Task LookupI else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -18126,7 +18116,7 @@ public async System.Threading.Tasks.Task LookupI { } } - + /// Adds global permissions to the security role that matches the id. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -18138,7 +18128,7 @@ public async System.Threading.Tasks.Task LookupI { return SetGlobalPermissionsAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Adds global permissions to the security role that matches the id. /// Security role identifier @@ -18151,32 +18141,32 @@ public async System.Threading.Tasks.Task LookupI { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}/Permissions/Global"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -18186,11 +18176,11 @@ public async System.Threading.Tasks.Task LookupI foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -18198,10 +18188,10 @@ public async System.Threading.Tasks.Task LookupI else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -18215,7 +18205,7 @@ public async System.Threading.Tasks.Task LookupI { } } - + /// Adds global permissions to the security role that matches the id. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -18227,7 +18217,7 @@ public async System.Threading.Tasks.Task LookupI { return AddGlobalPermissionsAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Adds global permissions to the security role that matches the id. /// Security role identifier @@ -18240,32 +18230,32 @@ public async System.Threading.Tasks.Task LookupI { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}/Permissions/Global"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -18275,11 +18265,11 @@ public async System.Threading.Tasks.Task LookupI foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -18287,10 +18277,10 @@ public async System.Threading.Tasks.Task LookupI else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -18304,7 +18294,7 @@ public async System.Threading.Tasks.Task LookupI { } } - + /// Returns all container permissions associated with the security role that matches the id. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -18315,7 +18305,7 @@ public async System.Threading.Tasks.Task LookupI { return GetContainerPermissionsForRoleAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all container permissions associated with the security role that matches the id. /// Security role identifier @@ -18327,29 +18317,29 @@ public async System.Threading.Tasks.Task LookupI { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}/Permissions/Containers"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -18359,11 +18349,11 @@ public async System.Threading.Tasks.Task LookupI foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -18371,10 +18361,10 @@ public async System.Threading.Tasks.Task LookupI else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -18388,7 +18378,7 @@ public async System.Threading.Tasks.Task LookupI { } } - + /// Sets container permissions to the security role that matches the id. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -18400,7 +18390,7 @@ public async System.Threading.Tasks.Task LookupI { return SetContainerPermissionsAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Sets container permissions to the security role that matches the id. /// Security role identifier @@ -18413,32 +18403,32 @@ public async System.Threading.Tasks.Task LookupI { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}/Permissions/Containers"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -18448,11 +18438,11 @@ public async System.Threading.Tasks.Task LookupI foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -18460,10 +18450,10 @@ public async System.Threading.Tasks.Task LookupI else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -18477,7 +18467,7 @@ public async System.Threading.Tasks.Task LookupI { } } - + /// Adds container permissions to the security role that matches the id. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -18489,7 +18479,7 @@ public async System.Threading.Tasks.Task LookupI { return AddContainerPermissionsAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Adds container permissions to the security role that matches the id. /// Security role identifier @@ -18502,32 +18492,32 @@ public async System.Threading.Tasks.Task LookupI { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}/Permissions/Containers"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -18537,11 +18527,11 @@ public async System.Threading.Tasks.Task LookupI foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -18549,10 +18539,10 @@ public async System.Threading.Tasks.Task LookupI else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -18566,7 +18556,7 @@ public async System.Threading.Tasks.Task LookupI { } } - + /// Returns all collection permissions associated with the security role that matches the id. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -18577,7 +18567,7 @@ public async System.Threading.Tasks.Task LookupI { return GetCollectionPermissionsForRoleAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all collection permissions associated with the security role that matches the id. /// Security role identifier @@ -18589,29 +18579,29 @@ public async System.Threading.Tasks.Task LookupI { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}/Permissions/Collections"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -18621,11 +18611,11 @@ public async System.Threading.Tasks.Task LookupI foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -18633,10 +18623,10 @@ public async System.Threading.Tasks.Task LookupI else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -18650,7 +18640,7 @@ public async System.Threading.Tasks.Task LookupI { } } - + /// Sets collection permissions to the security role that matches the id. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -18662,7 +18652,7 @@ public async System.Threading.Tasks.Task LookupI { return SetCollectionPermissionsAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Sets collection permissions to the security role that matches the id. /// Security role identifier @@ -18675,32 +18665,32 @@ public async System.Threading.Tasks.Task LookupI { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}/Permissions/Collections"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -18710,11 +18700,11 @@ public async System.Threading.Tasks.Task LookupI foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -18722,10 +18712,10 @@ public async System.Threading.Tasks.Task LookupI else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -18739,7 +18729,7 @@ public async System.Threading.Tasks.Task LookupI { } } - + /// Adds collection permissions to the security role that matches the id. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -18751,7 +18741,7 @@ public async System.Threading.Tasks.Task LookupI { return AddCollectionPermissionsAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Adds collection permissions to the security role that matches the id. /// Security role identifier @@ -18764,32 +18754,32 @@ public async System.Threading.Tasks.Task LookupI { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}/Permissions/Collections"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -18799,11 +18789,11 @@ public async System.Threading.Tasks.Task LookupI foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -18811,10 +18801,10 @@ public async System.Threading.Tasks.Task LookupI else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -18828,14 +18818,14 @@ public async System.Threading.Tasks.Task LookupI { } } + + + + + + - - - - - - - + /// Deletes the security role whose ID is provided. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -18846,7 +18836,7 @@ public System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id) { return DeleteSecurityRoleAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes the security role whose ID is provided. /// Security role identifier @@ -18858,28 +18848,28 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -18889,18 +18879,18 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -18915,7 +18905,7 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. { } } - + /// Returns all identities which have the security role that matches the id. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -18926,7 +18916,7 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. { return GetIdentitiesWithRoleAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all identities which have the security role that matches the id. /// Security role identifier @@ -18938,29 +18928,29 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}/Identities"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -18970,11 +18960,11 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -18982,10 +18972,10 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -18999,7 +18989,7 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. { } } - + /// Updates the identities which have the security role that matches the id. /// Security role identifier /// Desired version of the api, if not provided defaults to v1 @@ -19011,7 +19001,7 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. { return UpdateIdentitiesWithRoleAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates the identities which have the security role that matches the id. /// Security role identifier @@ -19024,32 +19014,32 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Security/Roles/{id}/Identities"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -19059,11 +19049,11 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -19071,10 +19061,10 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -19088,14 +19078,14 @@ public async System.Threading.Tasks.Task DeleteSecurityRoleAsync(int id, System. { } } + + + + + + - - - - - - - + /// Returns a Server associated with the provided identifier /// Keyfactor identifier of the Server /// Desired version of the api, if not provided defaults to v1 @@ -19106,7 +19096,7 @@ public System.Threading.Tasks.Task GetAsync_0(int id) { return GetAsync_0(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a Server associated with the provided identifier /// Keyfactor identifier of the Server @@ -19118,29 +19108,29 @@ public async System.Threading.Tasks.Task GetAsync_0(int id, Syst { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Servers/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -19150,11 +19140,11 @@ public async System.Threading.Tasks.Task GetAsync_0(int id, Syst foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -19162,10 +19152,10 @@ public async System.Threading.Tasks.Task GetAsync_0(int id, Syst else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerResponse); } finally @@ -19179,7 +19169,7 @@ public async System.Threading.Tasks.Task GetAsync_0(int id, Syst { } } - + /// Deletes a Server associated with the provided identifier /// Keyfactor identifer of the Server to be deleted /// Desired version of the api, if not provided defaults to v1 @@ -19190,7 +19180,7 @@ public System.Threading.Tasks.Task DeleteAsync_1(int id) { return DeleteAsync_1(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes a Server associated with the provided identifier /// Keyfactor identifer of the Server to be deleted @@ -19202,28 +19192,28 @@ public async System.Threading.Tasks.Task DeleteAsync_1(int id, System.Threading. { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Servers/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -19233,18 +19223,18 @@ public async System.Threading.Tasks.Task DeleteAsync_1(int id, System.Threading. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -19259,7 +19249,7 @@ public async System.Threading.Tasks.Task DeleteAsync_1(int id, System.Threading. { } } - + /// Retrieves logons and users with access to those logons for an existing server /// Id of the existing server /// Desired version of the api, if not provided defaults to v1 @@ -19270,7 +19260,7 @@ public System.Threading.Tasks.Task GetAccessAsync(int id) { return GetAccessAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Retrieves logons and users with access to those logons for an existing server /// Id of the existing server @@ -19282,29 +19272,29 @@ public async System.Threading.Tasks.Task GetAccessAsync(in { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Servers/Access/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -19314,11 +19304,11 @@ public async System.Threading.Tasks.Task GetAccessAsync(in foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -19326,10 +19316,10 @@ public async System.Threading.Tasks.Task GetAccessAsync(in else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerAccessResponse); } finally @@ -19343,7 +19333,7 @@ public async System.Threading.Tasks.Task GetAccessAsync(in { } } - + /// Returns all servers according to the provided filter parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -19356,9 +19346,9 @@ public async System.Threading.Tasks.Task GetAccessAsync(in /// A server side error occurred. public System.Threading.Tasks.Task> QueryServersAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending33? pq_sortAscending) { - return QueryServersAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return QueryServersAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all servers according to the provided filter parameters /// Desired version of the api, if not provided defaults to v1 @@ -19374,46 +19364,46 @@ public async System.Threading.Tasks.Task GetAccessAsync(in { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Servers?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -19423,11 +19413,11 @@ public async System.Threading.Tasks.Task GetAccessAsync(in foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -19435,10 +19425,10 @@ public async System.Threading.Tasks.Task GetAccessAsync(in else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -19452,7 +19442,7 @@ public async System.Threading.Tasks.Task GetAccessAsync(in { } } - + /// Updates an existing server with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -19461,9 +19451,9 @@ public async System.Threading.Tasks.Task GetAccessAsync(in /// A server side error occurred. public System.Threading.Tasks.Task UpdateServerAsync(ServerUpdateRequest body) { - return UpdateServerAsync(body, System.Threading.CancellationToken.None); + return UpdateServerAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates an existing server with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -19475,28 +19465,28 @@ public async System.Threading.Tasks.Task UpdateServerAsync(Serve { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Servers"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -19506,11 +19496,11 @@ public async System.Threading.Tasks.Task UpdateServerAsync(Serve foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -19518,10 +19508,10 @@ public async System.Threading.Tasks.Task UpdateServerAsync(Serve else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerResponse); } finally @@ -19535,7 +19525,7 @@ public async System.Threading.Tasks.Task UpdateServerAsync(Serve { } } - + /// Creates a server with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -19544,9 +19534,9 @@ public async System.Threading.Tasks.Task UpdateServerAsync(Serve /// A server side error occurred. public System.Threading.Tasks.Task CreateServerAsync(ServerCreationRequest body) { - return CreateServerAsync(body, System.Threading.CancellationToken.None); + return CreateServerAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a server with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -19558,28 +19548,28 @@ public async System.Threading.Tasks.Task CreateServerAsync(Serve { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Servers"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -19589,11 +19579,11 @@ public async System.Threading.Tasks.Task CreateServerAsync(Serve foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -19601,10 +19591,10 @@ public async System.Threading.Tasks.Task CreateServerAsync(Serve else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerResponse); } finally @@ -19618,7 +19608,7 @@ public async System.Threading.Tasks.Task CreateServerAsync(Serve { } } - + /// Updates logons and users with access to those logons for an existing server /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -19627,9 +19617,9 @@ public async System.Threading.Tasks.Task CreateServerAsync(Serve /// A server side error occurred. public System.Threading.Tasks.Task AddAccessAsync(ServerAccessRequest body) { - return AddAccessAsync(body, System.Threading.CancellationToken.None); + return AddAccessAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates logons and users with access to those logons for an existing server /// Desired version of the api, if not provided defaults to v1 @@ -19641,28 +19631,28 @@ public async System.Threading.Tasks.Task AddAccessAsync(Se { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Servers/Access"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -19672,11 +19662,11 @@ public async System.Threading.Tasks.Task AddAccessAsync(Se foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -19684,10 +19674,10 @@ public async System.Threading.Tasks.Task AddAccessAsync(Se else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerAccessResponse); } finally @@ -19701,7 +19691,7 @@ public async System.Threading.Tasks.Task AddAccessAsync(Se { } } - + /// Updates logons and users with access to those logons for an existing server /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -19710,9 +19700,9 @@ public async System.Threading.Tasks.Task AddAccessAsync(Se /// A server side error occurred. public System.Threading.Tasks.Task RemoveAccessAsync(ServerAccessRequest body) { - return RemoveAccessAsync(body, System.Threading.CancellationToken.None); + return RemoveAccessAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates logons and users with access to those logons for an existing server /// Desired version of the api, if not provided defaults to v1 @@ -19724,28 +19714,28 @@ public async System.Threading.Tasks.Task RemoveAccessAsync { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Servers/Access"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("DELETE"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -19755,11 +19745,11 @@ public async System.Threading.Tasks.Task RemoveAccessAsync foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -19767,10 +19757,10 @@ public async System.Threading.Tasks.Task RemoveAccessAsync else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerAccessResponse); } finally @@ -19784,14 +19774,14 @@ public async System.Threading.Tasks.Task RemoveAccessAsync { } } + + + + + + - - - - - - - + /// Returns a ServerGroup associated with the provided identifier /// Keyfactor identifier of the ServerGroup /// Desired version of the api, if not provided defaults to v1 @@ -19802,7 +19792,7 @@ public System.Threading.Tasks.Task GetGroupAsync(System.Gui { return GetGroupAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a ServerGroup associated with the provided identifier /// Keyfactor identifier of the ServerGroup @@ -19814,29 +19804,29 @@ public async System.Threading.Tasks.Task GetGroupAsync(Syst { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServerGroups/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -19846,11 +19836,11 @@ public async System.Threading.Tasks.Task GetGroupAsync(Syst foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -19858,10 +19848,10 @@ public async System.Threading.Tasks.Task GetGroupAsync(Syst else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerGroupResponse); } finally @@ -19875,7 +19865,7 @@ public async System.Threading.Tasks.Task GetGroupAsync(Syst { } } - + /// Deletes a ServerGroup associated with the provided identifier /// Keyfactor identifer of the ServerGroup to be deleted /// Desired version of the api, if not provided defaults to v1 @@ -19886,7 +19876,7 @@ public System.Threading.Tasks.Task DeleteAsync_2(System.Guid id) { return DeleteAsync_2(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes a ServerGroup associated with the provided identifier /// Keyfactor identifer of the ServerGroup to be deleted @@ -19898,28 +19888,28 @@ public async System.Threading.Tasks.Task DeleteAsync_2(System.Guid id, System.Th { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServerGroups/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -19929,18 +19919,18 @@ public async System.Threading.Tasks.Task DeleteAsync_2(System.Guid id, System.Th foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -19955,7 +19945,7 @@ public async System.Threading.Tasks.Task DeleteAsync_2(System.Guid id, System.Th { } } - + /// Returns a ServerGroup associated with the provided identifier /// name of the ServerGroup /// Desired version of the api, if not provided defaults to v1 @@ -19966,7 +19956,7 @@ public System.Threading.Tasks.Task GetGroupByNameAsync(stri { return GetGroupByNameAsync(name, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a ServerGroup associated with the provided identifier /// name of the ServerGroup @@ -19978,29 +19968,29 @@ public async System.Threading.Tasks.Task GetGroupByNameAsyn { if (name == null) throw new System.ArgumentNullException("name"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServerGroups/{name}"); - urlBuilder_.Replace("{name}", System.Uri.EscapeDataString(ConvertToString(name, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{name}", System.Uri.EscapeDataString(ConvertToString( name, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -20010,11 +20000,11 @@ public async System.Threading.Tasks.Task GetGroupByNameAsyn foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -20022,10 +20012,10 @@ public async System.Threading.Tasks.Task GetGroupByNameAsyn else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerGroupResponse); } finally @@ -20039,7 +20029,7 @@ public async System.Threading.Tasks.Task GetGroupByNameAsyn { } } - + /// Retrieves logons and users with access to those logons for an existing server group /// Id of the existing server group /// Desired version of the api, if not provided defaults to v1 @@ -20050,7 +20040,7 @@ public System.Threading.Tasks.Task GetAccessAsync(Sys { return GetAccessAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Retrieves logons and users with access to those logons for an existing server group /// Id of the existing server group @@ -20062,29 +20052,29 @@ public async System.Threading.Tasks.Task GetAccessAsy { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServerGroups/Access/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -20094,11 +20084,11 @@ public async System.Threading.Tasks.Task GetAccessAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -20106,10 +20096,10 @@ public async System.Threading.Tasks.Task GetAccessAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerGroupAccessResponse); } finally @@ -20123,7 +20113,7 @@ public async System.Threading.Tasks.Task GetAccessAsy { } } - + /// Returns all server groups according to the provided filter parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -20136,9 +20126,9 @@ public async System.Threading.Tasks.Task GetAccessAsy /// A server side error occurred. public System.Threading.Tasks.Task> QueryServerGroupsAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending34? pq_sortAscending) { - return QueryServerGroupsAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return QueryServerGroupsAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all server groups according to the provided filter parameters /// Desired version of the api, if not provided defaults to v1 @@ -20154,46 +20144,46 @@ public async System.Threading.Tasks.Task GetAccessAsy { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServerGroups?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -20203,11 +20193,11 @@ public async System.Threading.Tasks.Task GetAccessAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -20215,10 +20205,10 @@ public async System.Threading.Tasks.Task GetAccessAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -20232,7 +20222,7 @@ public async System.Threading.Tasks.Task GetAccessAsy { } } - + /// Updates an existing server group with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -20241,9 +20231,9 @@ public async System.Threading.Tasks.Task GetAccessAsy /// A server side error occurred. public System.Threading.Tasks.Task UpdateServerGroupAsync(ServerGroupUpdateRequest body) { - return UpdateServerGroupAsync(body, System.Threading.CancellationToken.None); + return UpdateServerGroupAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates an existing server group with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -20255,28 +20245,28 @@ public async System.Threading.Tasks.Task UpdateServerGroupA { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServerGroups"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -20286,11 +20276,11 @@ public async System.Threading.Tasks.Task UpdateServerGroupA foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -20298,10 +20288,10 @@ public async System.Threading.Tasks.Task UpdateServerGroupA else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerGroupResponse); } finally @@ -20315,7 +20305,7 @@ public async System.Threading.Tasks.Task UpdateServerGroupA { } } - + /// Creates a server group with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -20324,9 +20314,9 @@ public async System.Threading.Tasks.Task UpdateServerGroupA /// A server side error occurred. public System.Threading.Tasks.Task CreateServerGroupAsync(ServerGroupCreationRequest body) { - return CreateServerGroupAsync(body, System.Threading.CancellationToken.None); + return CreateServerGroupAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a server group with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -20338,28 +20328,28 @@ public async System.Threading.Tasks.Task CreateServerGroupA { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServerGroups"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -20369,11 +20359,11 @@ public async System.Threading.Tasks.Task CreateServerGroupA foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -20381,10 +20371,10 @@ public async System.Threading.Tasks.Task CreateServerGroupA else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerGroupResponse); } finally @@ -20398,7 +20388,7 @@ public async System.Threading.Tasks.Task CreateServerGroupA { } } - + /// Add access rules to the server group /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -20406,9 +20396,9 @@ public async System.Threading.Tasks.Task CreateServerGroupA /// A server side error occurred. public System.Threading.Tasks.Task AddAccessAsync(ServerGroupAccessRequest body) { - return AddAccessAsync(body, System.Threading.CancellationToken.None); + return AddAccessAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Add access rules to the server group /// Desired version of the api, if not provided defaults to v1 @@ -20419,28 +20409,28 @@ public async System.Threading.Tasks.Task AddAccessAsy { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServerGroups/Access"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -20450,11 +20440,11 @@ public async System.Threading.Tasks.Task AddAccessAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -20462,10 +20452,10 @@ public async System.Threading.Tasks.Task AddAccessAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerGroupAccessResponse); } finally @@ -20479,7 +20469,7 @@ public async System.Threading.Tasks.Task AddAccessAsy { } } - + /// Removes access mappings for the specified server group /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -20487,9 +20477,9 @@ public async System.Threading.Tasks.Task AddAccessAsy /// A server side error occurred. public System.Threading.Tasks.Task RemoveAccessAsync(ServerGroupAccessRequest body) { - return RemoveAccessAsync(body, System.Threading.CancellationToken.None); + return RemoveAccessAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Removes access mappings for the specified server group /// Desired version of the api, if not provided defaults to v1 @@ -20500,28 +20490,28 @@ public async System.Threading.Tasks.Task RemoveAccess { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServerGroups/Access"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("DELETE"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -20531,11 +20521,11 @@ public async System.Threading.Tasks.Task RemoveAccess foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -20543,10 +20533,10 @@ public async System.Threading.Tasks.Task RemoveAccess else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServerGroupAccessResponse); } finally @@ -20560,14 +20550,14 @@ public async System.Threading.Tasks.Task RemoveAccess { } } + + + + + + - - - - - - - + /// Returns a ServiceAccount associated with the provided identifier /// Keyfactor identifier of the ServiceAccount /// Desired version of the api, if not provided defaults to v1 @@ -20578,7 +20568,7 @@ public System.Threading.Tasks.Task GetAsync_1(int id) { return GetAsync_1(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a ServiceAccount associated with the provided identifier /// Keyfactor identifier of the ServiceAccount @@ -20590,29 +20580,29 @@ public async System.Threading.Tasks.Task GetAsync_1(int { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServiceAccounts/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -20622,11 +20612,11 @@ public async System.Threading.Tasks.Task GetAsync_1(int foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -20634,10 +20624,10 @@ public async System.Threading.Tasks.Task GetAsync_1(int else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServiceAccountResponse); } finally @@ -20651,7 +20641,7 @@ public async System.Threading.Tasks.Task GetAsync_1(int { } } - + /// Deletes a ServiceAccount associated with the provided identifier /// Keyfactor identifer of the ServiceAccount to be deleted /// Desired version of the api, if not provided defaults to v1 @@ -20662,7 +20652,7 @@ public System.Threading.Tasks.Task DeleteServiceAccountAsync(int id) { return DeleteServiceAccountAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes a ServiceAccount associated with the provided identifier /// Keyfactor identifer of the ServiceAccount to be deleted @@ -20674,28 +20664,28 @@ public async System.Threading.Tasks.Task DeleteServiceAccountAsync(int id, Syste { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServiceAccounts/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -20705,18 +20695,18 @@ public async System.Threading.Tasks.Task DeleteServiceAccountAsync(int id, Syste foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -20731,7 +20721,7 @@ public async System.Threading.Tasks.Task DeleteServiceAccountAsync(int id, Syste { } } - + /// Returns an SSH key with or without private key based on the provided parameters. /// The id of the service account to obtain information on /// Whether or not to include the private key in the response @@ -20743,7 +20733,7 @@ public System.Threading.Tasks.Task GetServiceAccountKeyAsync(int id { return GetServiceAccountKeyAsync(id, includePrivateKey, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns an SSH key with or without private key based on the provided parameters. /// The id of the service account to obtain information on @@ -20756,34 +20746,34 @@ public async System.Threading.Tasks.Task GetServiceAccountKeyAsync( { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServiceAccounts/Key/{id}?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (includePrivateKey != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (includePrivateKey != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("includePrivateKey") + "=").Append(System.Uri.EscapeDataString(ConvertToString(includePrivateKey, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("includePrivateKey") + "=").Append(System.Uri.EscapeDataString(ConvertToString( includePrivateKey, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -20793,11 +20783,11 @@ public async System.Threading.Tasks.Task GetServiceAccountKeyAsync( foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -20805,10 +20795,10 @@ public async System.Threading.Tasks.Task GetServiceAccountKeyAsync( else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(KeyResponse); } finally @@ -20822,7 +20812,7 @@ public async System.Threading.Tasks.Task GetServiceAccountKeyAsync( { } } - + /// Returns all ServiceAccounts according to the provided filter parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -20835,9 +20825,9 @@ public async System.Threading.Tasks.Task GetServiceAccountKeyAsync( /// A server side error occurred. public System.Threading.Tasks.Task> QueryServiceAccountsAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending35? pq_sortAscending) { - return QueryServiceAccountsAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return QueryServiceAccountsAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all ServiceAccounts according to the provided filter parameters /// Desired version of the api, if not provided defaults to v1 @@ -20853,46 +20843,46 @@ public async System.Threading.Tasks.Task GetServiceAccountKeyAsync( { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServiceAccounts?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -20902,11 +20892,11 @@ public async System.Threading.Tasks.Task GetServiceAccountKeyAsync( foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -20914,10 +20904,10 @@ public async System.Threading.Tasks.Task GetServiceAccountKeyAsync( else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -20931,7 +20921,7 @@ public async System.Threading.Tasks.Task GetServiceAccountKeyAsync( { } } - + /// Updates an SSH key for a specified service account. /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -20940,9 +20930,9 @@ public async System.Threading.Tasks.Task GetServiceAccountKeyAsync( /// A server side error occurred. public System.Threading.Tasks.Task UpdateServiceAccountAsync(ServiceAccountUpdateRequest body) { - return UpdateServiceAccountAsync(body, System.Threading.CancellationToken.None); + return UpdateServiceAccountAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates an SSH key for a specified service account. /// Desired version of the api, if not provided defaults to v1 @@ -20954,28 +20944,28 @@ public async System.Threading.Tasks.Task UpdateServiceAc { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServiceAccounts"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -20985,11 +20975,11 @@ public async System.Threading.Tasks.Task UpdateServiceAc foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -20997,10 +20987,10 @@ public async System.Threading.Tasks.Task UpdateServiceAc else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServiceAccountResponse); } finally @@ -21014,7 +21004,7 @@ public async System.Threading.Tasks.Task UpdateServiceAc { } } - + /// Creates a ServiceAccount with the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -21023,9 +21013,9 @@ public async System.Threading.Tasks.Task UpdateServiceAc /// A server side error occurred. public System.Threading.Tasks.Task CreateServiceAccountAsync(ServiceAccountCreationRequest body) { - return CreateServiceAccountAsync(body, System.Threading.CancellationToken.None); + return CreateServiceAccountAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a ServiceAccount with the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -21037,28 +21027,28 @@ public async System.Threading.Tasks.Task CreateServiceAc { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServiceAccounts"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -21068,11 +21058,11 @@ public async System.Threading.Tasks.Task CreateServiceAc foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -21080,10 +21070,10 @@ public async System.Threading.Tasks.Task CreateServiceAc else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ServiceAccountResponse); } finally @@ -21097,7 +21087,7 @@ public async System.Threading.Tasks.Task CreateServiceAc { } } - + /// Deletes Service Accounts associated with the provided identifiers /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -21106,9 +21096,9 @@ public async System.Threading.Tasks.Task CreateServiceAc /// A server side error occurred. public System.Threading.Tasks.Task DeleteServiceAccountsAsync(System.Collections.Generic.IEnumerable body) { - return DeleteServiceAccountsAsync(body, System.Threading.CancellationToken.None); + return DeleteServiceAccountsAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes Service Accounts associated with the provided identifiers /// Desired version of the api, if not provided defaults to v1 @@ -21120,27 +21110,27 @@ public async System.Threading.Tasks.Task DeleteServiceAccountsAsync(System.Colle { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServiceAccounts"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -21150,18 +21140,18 @@ public async System.Threading.Tasks.Task DeleteServiceAccountsAsync(System.Colle foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -21176,7 +21166,7 @@ public async System.Threading.Tasks.Task DeleteServiceAccountsAsync(System.Colle { } } - + /// Rotate an SSH key for a specified service account. /// The id of the service account and the updated state of the SSH key. /// Desired version of the api, if not provided defaults to v1 @@ -21187,7 +21177,7 @@ public System.Threading.Tasks.Task RotateServiceAccountKeyAsync(int { return RotateServiceAccountKeyAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Rotate an SSH key for a specified service account. /// The id of the service account and the updated state of the SSH key. @@ -21199,32 +21189,32 @@ public async System.Threading.Tasks.Task RotateServiceAccountKeyAsy { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/ServiceAccounts/Rotate/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -21234,11 +21224,11 @@ public async System.Threading.Tasks.Task RotateServiceAccountKeyAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -21246,10 +21236,10 @@ public async System.Threading.Tasks.Task RotateServiceAccountKeyAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(KeyResponse); } finally @@ -21263,14 +21253,14 @@ public async System.Threading.Tasks.Task RotateServiceAccountKeyAsy { } } + + + + + + - - - - - - - + /// Gets SMTP profile data /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -21278,9 +21268,9 @@ public async System.Threading.Tasks.Task RotateServiceAccountKeyAsy /// A server side error occurred. public System.Threading.Tasks.Task SMTPAsync(string x_keyfactor_api_version) { - return SMTPAsync(System.Threading.CancellationToken.None); + return SMTPAsync( System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets SMTP profile data /// Desired version of the api, if not provided defaults to v1 @@ -21291,25 +21281,25 @@ public async System.Threading.Tasks.Task SMTPAsync(System.Threadin { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SMTP"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -21319,11 +21309,11 @@ public async System.Threading.Tasks.Task SMTPAsync(System.Threadin foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -21331,10 +21321,10 @@ public async System.Threading.Tasks.Task SMTPAsync(System.Threadin else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(SMTPResponse); } finally @@ -21348,7 +21338,7 @@ public async System.Threading.Tasks.Task SMTPAsync(System.Threadin { } } - + /// Updates SMTP profile data /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -21356,9 +21346,9 @@ public async System.Threading.Tasks.Task SMTPAsync(System.Threadin /// A server side error occurred. public System.Threading.Tasks.Task UpdateSMTPAsync(SMTPRequest body) { - return UpdateSMTPAsync(body, System.Threading.CancellationToken.None); + return UpdateSMTPAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates SMTP profile data /// Desired version of the api, if not provided defaults to v1 @@ -21369,28 +21359,28 @@ public async System.Threading.Tasks.Task UpdateSMTPAsync(SMTPReque { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SMTP"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -21400,11 +21390,11 @@ public async System.Threading.Tasks.Task UpdateSMTPAsync(SMTPReque foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -21412,10 +21402,10 @@ public async System.Threading.Tasks.Task UpdateSMTPAsync(SMTPReque else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(SMTPResponse); } finally @@ -21429,7 +21419,7 @@ public async System.Threading.Tasks.Task UpdateSMTPAsync(SMTPReque { } } - + /// Tests SMTP profile data /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -21437,9 +21427,9 @@ public async System.Threading.Tasks.Task UpdateSMTPAsync(SMTPReque /// A server side error occurred. public System.Threading.Tasks.Task TestSMTPAsync(SMTPTestRequest body) { - return TestSMTPAsync(body, System.Threading.CancellationToken.None); + return TestSMTPAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Tests SMTP profile data /// Desired version of the api, if not provided defaults to v1 @@ -21450,28 +21440,28 @@ public async System.Threading.Tasks.Task TestSMTPAsync(SMTPTes { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SMTP/Test"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -21481,11 +21471,11 @@ public async System.Threading.Tasks.Task TestSMTPAsync(SMTPTes foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -21493,10 +21483,10 @@ public async System.Threading.Tasks.Task TestSMTPAsync(SMTPTes else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(SMTPTestResponse); } finally @@ -21510,14 +21500,14 @@ public async System.Threading.Tasks.Task TestSMTPAsync(SMTPTes { } } + + + + + + - - - - - - - + /// Returns the execution details of the associated network scan job part /// Keyfactor identifier of the scan job part /// Desired version of the api, if not provided defaults to v1 @@ -21528,7 +21518,7 @@ public System.Threading.Tasks.Task ScanPartAsync(System.Guid id) { return ScanPartAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the execution details of the associated network scan job part /// Keyfactor identifier of the scan job part @@ -21540,29 +21530,29 @@ public async System.Threading.Tasks.Task ScanPartAsync(System.Guid { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Parts/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -21572,11 +21562,11 @@ public async System.Threading.Tasks.Task ScanPartAsync(System.Guid foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -21584,10 +21574,10 @@ public async System.Threading.Tasks.Task ScanPartAsync(System.Guid else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ScanJobPart); } finally @@ -21601,7 +21591,7 @@ public async System.Threading.Tasks.Task ScanPartAsync(System.Guid { } } - + /// Returns the details of the associated scanning endpoint /// Keyfactor identifier of the endpoint /// Desired version of the api, if not provided defaults to v1 @@ -21612,7 +21602,7 @@ public System.Threading.Tasks.Task EndpointAsync(System.Guid id) { return EndpointAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the details of the associated scanning endpoint /// Keyfactor identifier of the endpoint @@ -21624,29 +21614,29 @@ public async System.Threading.Tasks.Task EndpointAsync(System.Guid id, { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Endpoints/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -21656,11 +21646,11 @@ public async System.Threading.Tasks.Task EndpointAsync(System.Guid id, foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -21668,10 +21658,10 @@ public async System.Threading.Tasks.Task EndpointAsync(System.Guid id, else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(Endpoint); } finally @@ -21685,7 +21675,7 @@ public async System.Threading.Tasks.Task EndpointAsync(System.Guid id, { } } - + /// Returns the network range definitions for the provided network definition /// Keyfactor network identifier /// Desired version of the api, if not provided defaults to v1 @@ -21696,7 +21686,7 @@ public async System.Threading.Tasks.Task EndpointAsync(System.Guid id, { return GetNetworkRangesForNetworkAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the network range definitions for the provided network definition /// Keyfactor network identifier @@ -21708,29 +21698,29 @@ public async System.Threading.Tasks.Task EndpointAsync(System.Guid id, { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/NetworkRanges/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -21740,11 +21730,11 @@ public async System.Threading.Tasks.Task EndpointAsync(System.Guid id, foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -21752,10 +21742,10 @@ public async System.Threading.Tasks.Task EndpointAsync(System.Guid id, else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -21769,7 +21759,7 @@ public async System.Threading.Tasks.Task EndpointAsync(System.Guid id, { } } - + /// Removes all network range definitions from the associated network definition /// Keyfactor network definition identifier /// Desired version of the api, if not provided defaults to v1 @@ -21780,7 +21770,7 @@ public System.Threading.Tasks.Task RemoveAllNetworkRangesAsync(System.Guid id) { return RemoveAllNetworkRangesAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Removes all network range definitions from the associated network definition /// Keyfactor network definition identifier @@ -21792,28 +21782,28 @@ public async System.Threading.Tasks.Task RemoveAllNetworkRangesAsync(System.Guid { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/NetworkRanges/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -21823,18 +21813,18 @@ public async System.Threading.Tasks.Task RemoveAllNetworkRangesAsync(System.Guid foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -21849,7 +21839,7 @@ public async System.Threading.Tasks.Task RemoveAllNetworkRangesAsync(System.Guid { } } - + /// Returns a defined SSL network according to the provided name /// Identifier (Guid or Name) of the defined network /// Desired version of the api, if not provided defaults to v1 @@ -21860,7 +21850,7 @@ public System.Threading.Tasks.Task GetNetworkAsync(string ident { return GetNetworkAsync(identifier, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a defined SSL network according to the provided name /// Identifier (Guid or Name) of the defined network @@ -21872,29 +21862,29 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string { if (identifier == null) throw new System.ArgumentNullException("identifier"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Networks/{identifier}"); - urlBuilder_.Replace("{identifier}", System.Uri.EscapeDataString(ConvertToString(identifier, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{identifier}", System.Uri.EscapeDataString(ConvertToString( identifier, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -21904,11 +21894,11 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -21916,10 +21906,10 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(NetworkResponse); } finally @@ -21933,7 +21923,7 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string { } } - + /// Returns a list of the endpoint scan results according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -21946,9 +21936,9 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string /// A server side error occurred. public System.Threading.Tasks.Task> ResultsAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending36? pq_sortAscending) { - return ResultsAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return ResultsAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a list of the endpoint scan results according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -21964,46 +21954,46 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -22013,11 +22003,11 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -22025,10 +22015,10 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -22042,7 +22032,7 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string { } } - + /// Returns all defined SSL networks according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -22055,9 +22045,9 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string /// A server side error occurred. public System.Threading.Tasks.Task> GetNetworksAsync(string sq_queryString, int? sq_pageReturned, int? sq_returnLimit, string sq_sortField, SortAscending37? sq_sortAscending) { - return GetNetworksAsync(sq_queryString, sq_pageReturned, sq_returnLimit, sq_sortField, sq_sortAscending, System.Threading.CancellationToken.None); + return GetNetworksAsync( sq_queryString, sq_pageReturned, sq_returnLimit, sq_sortField, sq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all defined SSL networks according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -22073,46 +22063,46 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Networks?"); - if (sq_queryString != null) + if (sq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (sq_pageReturned != null) + if (sq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (sq_returnLimit != null) + if (sq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (sq_sortField != null) + if (sq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (sq_sortAscending != null) + if (sq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -22122,11 +22112,11 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -22134,10 +22124,10 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -22151,7 +22141,7 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string { } } - + /// Updates an existing network definition according to the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -22160,9 +22150,9 @@ public async System.Threading.Tasks.Task GetNetworkAsync(string /// A server side error occurred. public System.Threading.Tasks.Task UpdateNetworkAsync(UpdateNetworkRequest body) { - return UpdateNetworkAsync(body, System.Threading.CancellationToken.None); + return UpdateNetworkAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates an existing network definition according to the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -22174,28 +22164,28 @@ public async System.Threading.Tasks.Task UpdateNetworkAsync(Upd { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Networks"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -22205,11 +22195,11 @@ public async System.Threading.Tasks.Task UpdateNetworkAsync(Upd foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -22217,10 +22207,10 @@ public async System.Threading.Tasks.Task UpdateNetworkAsync(Upd else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(NetworkResponse); } finally @@ -22234,7 +22224,7 @@ public async System.Threading.Tasks.Task UpdateNetworkAsync(Upd { } } - + /// Creates a network definition according to the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -22243,9 +22233,9 @@ public async System.Threading.Tasks.Task UpdateNetworkAsync(Upd /// A server side error occurred. public System.Threading.Tasks.Task CreateNetworkAsync(CreateNetworkRequest body) { - return CreateNetworkAsync(body, System.Threading.CancellationToken.None); + return CreateNetworkAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a network definition according to the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -22257,28 +22247,28 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Networks"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -22288,11 +22278,11 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -22300,10 +22290,10 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(NetworkResponse); } finally @@ -22317,7 +22307,7 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre { } } - + /// Returns a list of the scan results for the provided endpoint according to the provided filter and output parameters /// Keyfactor identifier of the endpoint /// Desired version of the api, if not provided defaults to v1 @@ -22333,7 +22323,7 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre { return EndpointHistoryAsync(id, pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns a list of the scan results for the provided endpoint according to the provided filter and output parameters /// Keyfactor identifier of the endpoint @@ -22350,50 +22340,50 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Endpoints/{id}/History?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (pq_queryString != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -22403,11 +22393,11 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -22415,10 +22405,10 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -22432,7 +22422,7 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre { } } - + /// Returns the scan job components comprising the entire scan job to be executed /// Keyfactor network definition identifier /// Desired version of the api, if not provided defaults to v1 @@ -22448,7 +22438,7 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre { return NetworkScanPartsAsync(id, pagedQuery_jobType, pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the scan job components comprising the entire scan job to be executed /// Keyfactor network definition identifier @@ -22465,54 +22455,54 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Networks/{id}/Parts?"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - if (pagedQuery_jobType != null) + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + if (pagedQuery_jobType != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.jobType") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_jobType, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.jobType") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_jobType, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_queryString != null) + if (pagedQuery_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_pageReturned != null) + if (pagedQuery_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_returnLimit != null) + if (pagedQuery_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortField != null) + if (pagedQuery_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortAscending != null) + if (pagedQuery_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -22522,11 +22512,11 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -22534,10 +22524,10 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -22551,7 +22541,7 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre { } } - + /// Configures network range definitions for the provided network /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -22560,9 +22550,9 @@ public async System.Threading.Tasks.Task CreateNetworkAsync(Cre /// A server side error occurred. public System.Threading.Tasks.Task SetNetworkRangesAsync(NetworkRangesRequest body) { - return SetNetworkRangesAsync(body, System.Threading.CancellationToken.None); + return SetNetworkRangesAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Configures network range definitions for the provided network /// Desired version of the api, if not provided defaults to v1 @@ -22574,27 +22564,27 @@ public async System.Threading.Tasks.Task SetNetworkRangesAsync(NetworkRangesRequ { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/NetworkRanges"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -22604,18 +22594,18 @@ public async System.Threading.Tasks.Task SetNetworkRangesAsync(NetworkRangesRequ foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -22630,7 +22620,7 @@ public async System.Threading.Tasks.Task SetNetworkRangesAsync(NetworkRangesRequ { } } - + /// Adds the provided network range definitions to the associated network definition /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -22639,9 +22629,9 @@ public async System.Threading.Tasks.Task SetNetworkRangesAsync(NetworkRangesRequ /// A server side error occurred. public System.Threading.Tasks.Task AddNetworkRangesAsync(NetworkRangesRequest body) { - return AddNetworkRangesAsync(body, System.Threading.CancellationToken.None); + return AddNetworkRangesAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Adds the provided network range definitions to the associated network definition /// Desired version of the api, if not provided defaults to v1 @@ -22653,27 +22643,27 @@ public async System.Threading.Tasks.Task AddNetworkRangesAsync(NetworkRangesRequ { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/NetworkRanges"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -22683,18 +22673,18 @@ public async System.Threading.Tasks.Task AddNetworkRangesAsync(NetworkRangesRequ foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -22709,7 +22699,7 @@ public async System.Threading.Tasks.Task AddNetworkRangesAsync(NetworkRangesRequ { } } - + /// Sets the reviewed status according to the provided endpoint and boolean status /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -22718,9 +22708,9 @@ public async System.Threading.Tasks.Task AddNetworkRangesAsync(NetworkRangesRequ /// A server side error occurred. public System.Threading.Tasks.Task ReviewedStatusAsync(System.Collections.Generic.IEnumerable body) { - return ReviewedStatusAsync(body, System.Threading.CancellationToken.None); + return ReviewedStatusAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Sets the reviewed status according to the provided endpoint and boolean status /// Desired version of the api, if not provided defaults to v1 @@ -22732,27 +22722,27 @@ public async System.Threading.Tasks.Task ReviewedStatusAsync(System.Collections. { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Endpoints/ReviewStatus"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -22762,18 +22752,18 @@ public async System.Threading.Tasks.Task ReviewedStatusAsync(System.Collections. foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -22788,7 +22778,7 @@ public async System.Threading.Tasks.Task ReviewedStatusAsync(System.Collections. { } } - + /// Sets the monitored status according to the provided endpoint and boolean status /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -22797,9 +22787,9 @@ public async System.Threading.Tasks.Task ReviewedStatusAsync(System.Collections. /// A server side error occurred. public System.Threading.Tasks.Task MonitoringStatusAsync(System.Collections.Generic.IEnumerable body) { - return MonitoringStatusAsync(body, System.Threading.CancellationToken.None); + return MonitoringStatusAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Sets the monitored status according to the provided endpoint and boolean status /// Desired version of the api, if not provided defaults to v1 @@ -22811,27 +22801,27 @@ public async System.Threading.Tasks.Task MonitoringStatusAsync(System.Collection { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Endpoints/MonitorStatus"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -22841,18 +22831,18 @@ public async System.Threading.Tasks.Task MonitoringStatusAsync(System.Collection foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -22867,7 +22857,7 @@ public async System.Threading.Tasks.Task MonitoringStatusAsync(System.Collection { } } - + /// Sets all endpoints matching the provided query as 'reviewed' /// Query to filter the endpoints for which the status should be set /// Desired version of the api, if not provided defaults to v1 @@ -22878,7 +22868,7 @@ public System.Threading.Tasks.Task ReviewAllAsync(string query) { return ReviewAllAsync(query, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Sets all endpoints matching the provided query as 'reviewed' /// Query to filter the endpoints for which the status should be set @@ -22890,30 +22880,30 @@ public async System.Threading.Tasks.Task ReviewAllAsync(string query, System.Thr { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Endpoints/ReviewAll?"); - if (query != null) + if (query != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json"); request_.Method = new System.Net.Http.HttpMethod("PUT"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -22923,18 +22913,18 @@ public async System.Threading.Tasks.Task ReviewAllAsync(string query, System.Thr foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -22949,7 +22939,7 @@ public async System.Threading.Tasks.Task ReviewAllAsync(string query, System.Thr { } } - + /// Sets all endpoints matching the provided query as 'monitored' /// Query to filter the endpoints for which the status should be set /// Desired version of the api, if not provided defaults to v1 @@ -22960,7 +22950,7 @@ public System.Threading.Tasks.Task MonitorAllAsync(string query) { return MonitorAllAsync(query, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Sets all endpoints matching the provided query as 'monitored' /// Query to filter the endpoints for which the status should be set @@ -22972,30 +22962,30 @@ public async System.Threading.Tasks.Task MonitorAllAsync(string query, System.Th { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Endpoints/MonitorAll?"); - if (query != null) + if (query != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json"); request_.Method = new System.Net.Http.HttpMethod("PUT"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -23005,18 +22995,18 @@ public async System.Threading.Tasks.Task MonitorAllAsync(string query, System.Th foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -23031,7 +23021,7 @@ public async System.Threading.Tasks.Task MonitorAllAsync(string query, System.Th { } } - + /// Starts an SSL Scan for the network according to the associated network definition /// Keyfactor network identifier /// Desired version of the api, if not provided defaults to v1 @@ -23043,7 +23033,7 @@ public System.Threading.Tasks.Task ImmediateSslScanAsync(System.Guid id, Immedia { return ImmediateSslScanAsync(id, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Starts an SSL Scan for the network according to the associated network definition /// Keyfactor network identifier @@ -23056,31 +23046,31 @@ public async System.Threading.Tasks.Task ImmediateSslScanAsync(System.Guid id, I { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Networks/{id}/Scan"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -23090,18 +23080,18 @@ public async System.Threading.Tasks.Task ImmediateSslScanAsync(System.Guid id, I foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -23116,7 +23106,7 @@ public async System.Threading.Tasks.Task ImmediateSslScanAsync(System.Guid id, I { } } - + /// Validates the format (using regular expressions) of the provided network range definitions /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -23125,9 +23115,9 @@ public async System.Threading.Tasks.Task ImmediateSslScanAsync(System.Guid id, I /// A server side error occurred. public System.Threading.Tasks.Task ValidateNetworkRangesAsync(System.Collections.Generic.IEnumerable body) { - return ValidateNetworkRangesAsync(body, System.Threading.CancellationToken.None); + return ValidateNetworkRangesAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Validates the format (using regular expressions) of the provided network range definitions /// Desired version of the api, if not provided defaults to v1 @@ -23139,27 +23129,27 @@ public async System.Threading.Tasks.Task ValidateNetworkRangesAsync(System.Colle { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/NetworkRanges/Validate"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -23169,18 +23159,18 @@ public async System.Threading.Tasks.Task ValidateNetworkRangesAsync(System.Colle foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -23195,7 +23185,7 @@ public async System.Threading.Tasks.Task ValidateNetworkRangesAsync(System.Colle { } } - + /// Removes a network definition according to the provided identifier /// Keyfactor network identifier /// Desired version of the api, if not provided defaults to v1 @@ -23206,7 +23196,7 @@ public System.Threading.Tasks.Task RemoveNetworkAsync(System.Guid id) { return RemoveNetworkAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Removes a network definition according to the provided identifier /// Keyfactor network identifier @@ -23218,28 +23208,28 @@ public async System.Threading.Tasks.Task RemoveNetworkAsync(System.Guid id, Syst { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSL/Networks/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -23249,18 +23239,18 @@ public async System.Threading.Tasks.Task RemoveNetworkAsync(System.Guid id, Syst foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -23275,14 +23265,14 @@ public async System.Threading.Tasks.Task RemoveNetworkAsync(System.Guid id, Syst { } } + + + + + + - - - - - - - + /// Returns all endpoints to which the requesting identity has access /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -23290,9 +23280,9 @@ public async System.Threading.Tasks.Task RemoveNetworkAsync(System.Guid id, Syst /// A server side error occurred. public System.Threading.Tasks.Task> GetEndpointsAsync(string x_keyfactor_api_version) { - return GetEndpointsAsync(System.Threading.CancellationToken.None); + return GetEndpointsAsync( System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all endpoints to which the requesting identity has access /// Desired version of the api, if not provided defaults to v1 @@ -23303,25 +23293,25 @@ public async System.Threading.Tasks.Task RemoveNetworkAsync(System.Guid id, Syst { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Status/Endpoints"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -23331,11 +23321,11 @@ public async System.Threading.Tasks.Task RemoveNetworkAsync(System.Guid id, Syst foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -23343,10 +23333,10 @@ public async System.Threading.Tasks.Task RemoveNetworkAsync(System.Guid id, Syst else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -23360,14 +23350,14 @@ public async System.Threading.Tasks.Task RemoveNetworkAsync(System.Guid id, Syst { } } + + + + + + - - - - - - - + /// Returns the certificate template associated with the provided id /// Keyfactor identifier of the certificate template /// Desired version of the api, if not provided defaults to v1 @@ -23378,7 +23368,7 @@ public System.Threading.Tasks.Task GetTemplateAsync(i { return GetTemplateAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns the certificate template associated with the provided id /// Keyfactor identifier of the certificate template @@ -23390,29 +23380,29 @@ public async System.Threading.Tasks.Task GetTemplateA { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Templates/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -23422,11 +23412,11 @@ public async System.Threading.Tasks.Task GetTemplateA foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -23434,10 +23424,10 @@ public async System.Threading.Tasks.Task GetTemplateA else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(TemplateRetrievalResponse); } finally @@ -23451,7 +23441,7 @@ public async System.Threading.Tasks.Task GetTemplateA { } } - + /// Gets the global template settings. /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -23459,9 +23449,9 @@ public async System.Threading.Tasks.Task GetTemplateA /// A server side error occurred. public System.Threading.Tasks.Task GetGlobalSettingsAsync(string x_keyfactor_api_version) { - return GetGlobalSettingsAsync(System.Threading.CancellationToken.None); + return GetGlobalSettingsAsync( System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the global template settings. /// Desired version of the api, if not provided defaults to v1 @@ -23472,25 +23462,25 @@ public async System.Threading.Tasks.Task GetGlob { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Templates/Settings"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -23500,11 +23490,11 @@ public async System.Threading.Tasks.Task GetGlob foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -23512,10 +23502,10 @@ public async System.Threading.Tasks.Task GetGlob else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(GlobalTemplateSettingsResponse); } finally @@ -23529,7 +23519,7 @@ public async System.Threading.Tasks.Task GetGlob { } } - + /// Replaces the existing global template settings. /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -23538,9 +23528,9 @@ public async System.Threading.Tasks.Task GetGlob /// A server side error occurred. public System.Threading.Tasks.Task UpdateGlobalSettingsAsync(GlobalTemplateSettingsRequest body) { - return UpdateGlobalSettingsAsync(body, System.Threading.CancellationToken.None); + return UpdateGlobalSettingsAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Replaces the existing global template settings. /// Desired version of the api, if not provided defaults to v1 @@ -23552,28 +23542,28 @@ public async System.Threading.Tasks.Task UpdateG { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Templates/Settings"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -23583,11 +23573,11 @@ public async System.Threading.Tasks.Task UpdateG foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -23595,10 +23585,10 @@ public async System.Threading.Tasks.Task UpdateG else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(GlobalTemplateSettingsResponse); } finally @@ -23612,16 +23602,16 @@ public async System.Threading.Tasks.Task UpdateG { } } - + /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] /// OK /// A server side error occurred. public System.Threading.Tasks.Task> GetValidSubjectPartsAsync(string x_keyfactor_api_version) { - return GetValidSubjectPartsAsync(System.Threading.CancellationToken.None); + return GetValidSubjectPartsAsync( System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -23631,25 +23621,25 @@ public async System.Threading.Tasks.Task UpdateG { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Templates/SubjectParts"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -23659,11 +23649,11 @@ public async System.Threading.Tasks.Task UpdateG foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -23671,10 +23661,10 @@ public async System.Threading.Tasks.Task UpdateG else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -23688,7 +23678,7 @@ public async System.Threading.Tasks.Task UpdateG { } } - + /// Returns all certificate templates according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -23701,9 +23691,9 @@ public async System.Threading.Tasks.Task UpdateG /// A server side error occurred. public System.Threading.Tasks.Task> GetTemplatesAsync(string sq_queryString, int? sq_pageReturned, int? sq_returnLimit, string sq_sortField, SortAscending40? sq_sortAscending) { - return GetTemplatesAsync(sq_queryString, sq_pageReturned, sq_returnLimit, sq_sortField, sq_sortAscending, System.Threading.CancellationToken.None); + return GetTemplatesAsync( sq_queryString, sq_pageReturned, sq_returnLimit, sq_sortField, sq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns all certificate templates according to the provided filter and output parameters /// Desired version of the api, if not provided defaults to v1 @@ -23719,46 +23709,46 @@ public async System.Threading.Tasks.Task UpdateG { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Templates?"); - if (sq_queryString != null) + if (sq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (sq_pageReturned != null) + if (sq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (sq_returnLimit != null) + if (sq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (sq_sortField != null) + if (sq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (sq_sortAscending != null) + if (sq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("sq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(sq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("sq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( sq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -23768,11 +23758,11 @@ public async System.Threading.Tasks.Task UpdateG foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -23780,10 +23770,10 @@ public async System.Threading.Tasks.Task UpdateG else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -23797,7 +23787,7 @@ public async System.Threading.Tasks.Task UpdateG { } } - + /// Updates a certificate template according to the provided properties /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -23806,9 +23796,9 @@ public async System.Threading.Tasks.Task UpdateG /// A server side error occurred. public System.Threading.Tasks.Task UpdateTemplateAsync(TemplateUpdateRequest body) { - return UpdateTemplateAsync(body, System.Threading.CancellationToken.None); + return UpdateTemplateAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates a certificate template according to the provided properties /// Desired version of the api, if not provided defaults to v1 @@ -23820,28 +23810,28 @@ public async System.Threading.Tasks.Task UpdateTempla { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Templates"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -23851,11 +23841,11 @@ public async System.Threading.Tasks.Task UpdateTempla foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -23863,10 +23853,10 @@ public async System.Threading.Tasks.Task UpdateTempla else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(TemplateRetrievalResponse); } finally @@ -23880,7 +23870,7 @@ public async System.Threading.Tasks.Task UpdateTempla { } } - + /// Imports templates from the provided configuration tenant /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -23889,9 +23879,9 @@ public async System.Threading.Tasks.Task UpdateTempla /// A server side error occurred. public System.Threading.Tasks.Task ImportAsync(ConfigurationTenantRequest body) { - return ImportAsync(body, System.Threading.CancellationToken.None); + return ImportAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Imports templates from the provided configuration tenant /// Desired version of the api, if not provided defaults to v1 @@ -23903,27 +23893,27 @@ public async System.Threading.Tasks.Task ImportAsync(ConfigurationTenantRequest { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Templates/Import"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -23933,18 +23923,18 @@ public async System.Threading.Tasks.Task ImportAsync(ConfigurationTenantRequest foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -23959,14 +23949,14 @@ public async System.Threading.Tasks.Task ImportAsync(ConfigurationTenantRequest { } } + + + + + + - - - - - - - + /// Looks up information about an existing SSH user. /// The Id of the SSH user to retrieve. /// Desired version of the api, if not provided defaults to v1 @@ -23977,7 +23967,7 @@ public System.Threading.Tasks.Task GetUserAsync(int id) { return GetUserAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Looks up information about an existing SSH user. /// The Id of the SSH user to retrieve. @@ -23989,29 +23979,29 @@ public async System.Threading.Tasks.Task GetUserAsync(int id, S { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Users/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -24021,11 +24011,11 @@ public async System.Threading.Tasks.Task GetUserAsync(int id, S foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -24033,10 +24023,10 @@ public async System.Threading.Tasks.Task GetUserAsync(int id, S else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(SshUserResponse); } finally @@ -24050,7 +24040,7 @@ public async System.Threading.Tasks.Task GetUserAsync(int id, S { } } - + /// Deletes an SSH user. /// The Id of the user to delete. /// Desired version of the api, if not provided defaults to v1 @@ -24061,7 +24051,7 @@ public System.Threading.Tasks.Task DeleteUserAsync(int id) { return DeleteUserAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes an SSH user. /// The Id of the user to delete. @@ -24073,28 +24063,28 @@ public async System.Threading.Tasks.Task DeleteUserAsync(int id, System.Threadin { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Users/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -24104,18 +24094,18 @@ public async System.Threading.Tasks.Task DeleteUserAsync(int id, System.Threadin foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -24130,7 +24120,7 @@ public async System.Threading.Tasks.Task DeleteUserAsync(int id, System.Threadin { } } - + /// Returns users matching the criteria from the provided query parameters /// Whether or not to return only logons that have access to servers the requesting user owns /// Desired version of the api, if not provided defaults to v1 @@ -24146,7 +24136,7 @@ public async System.Threading.Tasks.Task DeleteUserAsync(int id, System.Threadin { return QueryUsersAsync(showOwnedAccess, pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns users matching the criteria from the provided query parameters /// Whether or not to return only logons that have access to servers the requesting user owns @@ -24163,50 +24153,50 @@ public async System.Threading.Tasks.Task DeleteUserAsync(int id, System.Threadin { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Users?"); - if (showOwnedAccess != null) + if (showOwnedAccess != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("showOwnedAccess") + "=").Append(System.Uri.EscapeDataString(ConvertToString(showOwnedAccess, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("showOwnedAccess") + "=").Append(System.Uri.EscapeDataString(ConvertToString( showOwnedAccess, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -24216,11 +24206,11 @@ public async System.Threading.Tasks.Task DeleteUserAsync(int id, System.Threadin foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -24228,10 +24218,10 @@ public async System.Threading.Tasks.Task DeleteUserAsync(int id, System.Threadin else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -24245,7 +24235,7 @@ public async System.Threading.Tasks.Task DeleteUserAsync(int id, System.Threadin { } } - + /// Updates information about a given user. /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -24254,9 +24244,9 @@ public async System.Threading.Tasks.Task DeleteUserAsync(int id, System.Threadin /// A server side error occurred. public System.Threading.Tasks.Task UpdateUserAsync(SshUserUpdateRequest body) { - return UpdateUserAsync(body, System.Threading.CancellationToken.None); + return UpdateUserAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates information about a given user. /// Desired version of the api, if not provided defaults to v1 @@ -24268,28 +24258,28 @@ public async System.Threading.Tasks.Task UpdateUserAsync(SshUse { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Users"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -24299,11 +24289,11 @@ public async System.Threading.Tasks.Task UpdateUserAsync(SshUse foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -24311,10 +24301,10 @@ public async System.Threading.Tasks.Task UpdateUserAsync(SshUse else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(SshUserResponse); } finally @@ -24328,7 +24318,7 @@ public async System.Threading.Tasks.Task UpdateUserAsync(SshUse { } } - + /// Creates a new SSH User. /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -24337,9 +24327,9 @@ public async System.Threading.Tasks.Task UpdateUserAsync(SshUse /// A server side error occurred. public System.Threading.Tasks.Task CreateUserAsync(SshUserCreationRequest body) { - return CreateUserAsync(body, System.Threading.CancellationToken.None); + return CreateUserAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a new SSH User. /// Desired version of the api, if not provided defaults to v1 @@ -24351,28 +24341,28 @@ public async System.Threading.Tasks.Task CreateUserAsync(SshUse { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Users"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -24382,11 +24372,11 @@ public async System.Threading.Tasks.Task CreateUserAsync(SshUse foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -24394,10 +24384,10 @@ public async System.Threading.Tasks.Task CreateUserAsync(SshUse else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(SshUserResponse); } finally @@ -24411,7 +24401,7 @@ public async System.Threading.Tasks.Task CreateUserAsync(SshUse { } } - + /// Updates logon access for a user /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -24420,9 +24410,9 @@ public async System.Threading.Tasks.Task CreateUserAsync(SshUse /// A server side error occurred. public System.Threading.Tasks.Task UserAccessAsync(SshUserUpdateRequest body) { - return UserAccessAsync(body, System.Threading.CancellationToken.None); + return UserAccessAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates logon access for a user /// Desired version of the api, if not provided defaults to v1 @@ -24434,28 +24424,28 @@ public async System.Threading.Tasks.Task UserAccessAsync( { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/SSH/Users/Access"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -24465,11 +24455,11 @@ public async System.Threading.Tasks.Task UserAccessAsync( foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -24477,10 +24467,10 @@ public async System.Threading.Tasks.Task UserAccessAsync( else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(SshUserAccessResponse); } finally @@ -24494,14 +24484,14 @@ public async System.Threading.Tasks.Task UserAccessAsync( { } } + + + + + + - - - - - - - + /// Returns certificate request details based on the provided ID. /// The ID of the certificate request. /// Desired version of the api, if not provided defaults to v1 @@ -24512,7 +24502,7 @@ public System.Threading.Tasks.Task GetCertificat { return GetCertificateRequestDetailsAsync(id, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Returns certificate request details based on the provided ID. /// The ID of the certificate request. @@ -24524,29 +24514,29 @@ public async System.Threading.Tasks.Task GetCert { if (id == null) throw new System.ArgumentNullException("id"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Certificates/{id}"); - urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString( id, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -24556,11 +24546,11 @@ public async System.Threading.Tasks.Task GetCert foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -24568,10 +24558,10 @@ public async System.Threading.Tasks.Task GetCert else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(CertificateRequestDetailsModel); } finally @@ -24585,7 +24575,7 @@ public async System.Threading.Tasks.Task GetCert { } } - + /// Gets a collection of denied certificate requests based on the provided query. /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -24598,9 +24588,9 @@ public async System.Threading.Tasks.Task GetCert /// A server side error occurred. public System.Threading.Tasks.Task> GetDeniedAsync(string pagedQuery_queryString, int? pagedQuery_pageReturned, int? pagedQuery_returnLimit, string pagedQuery_sortField, SortAscending42? pagedQuery_sortAscending) { - return GetDeniedAsync(pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); + return GetDeniedAsync( pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets a collection of denied certificate requests based on the provided query. /// Desired version of the api, if not provided defaults to v1 @@ -24616,46 +24606,46 @@ public async System.Threading.Tasks.Task GetCert { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Certificates/Denied?"); - if (pagedQuery_queryString != null) + if (pagedQuery_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_pageReturned != null) + if (pagedQuery_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_returnLimit != null) + if (pagedQuery_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortField != null) + if (pagedQuery_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortAscending != null) + if (pagedQuery_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -24665,11 +24655,11 @@ public async System.Threading.Tasks.Task GetCert foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -24677,10 +24667,10 @@ public async System.Threading.Tasks.Task GetCert else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -24694,7 +24684,7 @@ public async System.Threading.Tasks.Task GetCert { } } - + /// Gets a collection of certificate requests based on the provided query. /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -24705,11 +24695,11 @@ public async System.Threading.Tasks.Task GetCert /// Type of the request [XMLHttpRequest, APIClient] /// OK /// A server side error occurred. - public System.Threading.Tasks.Task> GetAsync(string pagedQuery_queryString, int? pagedQuery_pageReturned, int? pagedQuery_returnLimit, string pagedQuery_sortField, SortAscending43? pagedQuery_sortAscending) + public System.Threading.Tasks.Task> GetAsync_0(string pagedQuery_queryString, int? pagedQuery_pageReturned, int? pagedQuery_returnLimit, string pagedQuery_sortField, SortAscending43? pagedQuery_sortAscending) { - return GetAsync(pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); + return GetAsync_0( pagedQuery_queryString, pagedQuery_pageReturned, pagedQuery_returnLimit, pagedQuery_sortField, pagedQuery_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets a collection of certificate requests based on the provided query. /// Desired version of the api, if not provided defaults to v1 @@ -24721,50 +24711,50 @@ public async System.Threading.Tasks.Task GetCert /// Type of the request [XMLHttpRequest, APIClient] /// OK /// A server side error occurred. - public async System.Threading.Tasks.Task> GetAsync(string pagedQuery_queryString, int? pagedQuery_pageReturned, int? pagedQuery_returnLimit, string pagedQuery_sortField, SortAscending43? pagedQuery_sortAscending, System.Threading.CancellationToken cancellationToken) + public async System.Threading.Tasks.Task> GetAsync_0(string pagedQuery_queryString, int? pagedQuery_pageReturned, int? pagedQuery_returnLimit, string pagedQuery_sortField, SortAscending43? pagedQuery_sortAscending, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Certificates/Pending?"); - if (pagedQuery_queryString != null) + if (pagedQuery_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_pageReturned != null) + if (pagedQuery_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_returnLimit != null) + if (pagedQuery_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortField != null) + if (pagedQuery_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pagedQuery_sortAscending != null) + if (pagedQuery_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pagedQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pagedQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -24774,11 +24764,11 @@ public async System.Threading.Tasks.Task GetCert foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -24786,10 +24776,10 @@ public async System.Threading.Tasks.Task GetCert else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -24803,7 +24793,7 @@ public async System.Threading.Tasks.Task GetCert { } } - + /// Denies pending certificate requests associated with the provided ids /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -24812,9 +24802,9 @@ public async System.Threading.Tasks.Task GetCert /// A server side error occurred. public System.Threading.Tasks.Task DenyPendingRequestsAsync(DenialRequest body) { - return DenyPendingRequestsAsync(body, System.Threading.CancellationToken.None); + return DenyPendingRequestsAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Denies pending certificate requests associated with the provided ids /// Desired version of the api, if not provided defaults to v1 @@ -24826,28 +24816,28 @@ public async System.Threading.Tasks.Task DenyPendingRequestsA { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Certificates/Deny"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -24857,11 +24847,11 @@ public async System.Threading.Tasks.Task DenyPendingRequestsA foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -24869,10 +24859,10 @@ public async System.Threading.Tasks.Task DenyPendingRequestsA else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ApproveDenyResult); } finally @@ -24886,7 +24876,7 @@ public async System.Threading.Tasks.Task DenyPendingRequestsA { } } - + /// Approves pending certificate requests associated with the provided ids /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -24895,9 +24885,9 @@ public async System.Threading.Tasks.Task DenyPendingRequestsA /// A server side error occurred. public System.Threading.Tasks.Task ApprovePendingRequestsAsync(System.Collections.Generic.IEnumerable body) { - return ApprovePendingRequestsAsync(body, System.Threading.CancellationToken.None); + return ApprovePendingRequestsAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Approves pending certificate requests associated with the provided ids /// Desired version of the api, if not provided defaults to v1 @@ -24909,28 +24899,28 @@ public async System.Threading.Tasks.Task ApprovePendingReques { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Certificates/Approve"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -24940,11 +24930,11 @@ public async System.Threading.Tasks.Task ApprovePendingReques foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -24952,10 +24942,10 @@ public async System.Threading.Tasks.Task ApprovePendingReques else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(ApproveDenyResult); } finally @@ -24969,14 +24959,14 @@ public async System.Threading.Tasks.Task ApprovePendingReques { } } + + + + + + - - - - - - - + /// Gets the schema of a given step with the specified extension name. /// The extension name of a specific step in the step schema. /// Desired version of the api, if not provided defaults to v1 @@ -24987,7 +24977,7 @@ public System.Threading.Tasks.Task GetStepSchemaAsync(str { return GetStepSchemaAsync(extensionName, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the schema of a given step with the specified extension name. /// The extension name of a specific step in the step schema. @@ -24999,29 +24989,29 @@ public async System.Threading.Tasks.Task GetStepSchemaAsy { if (extensionName == null) throw new System.ArgumentNullException("extensionName"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Definitions/Steps/{extensionName}"); - urlBuilder_.Replace("{extensionName}", System.Uri.EscapeDataString(ConvertToString(extensionName, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{extensionName}", System.Uri.EscapeDataString(ConvertToString( extensionName, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -25031,11 +25021,11 @@ public async System.Threading.Tasks.Task GetStepSchemaAsy foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -25043,10 +25033,10 @@ public async System.Threading.Tasks.Task GetStepSchemaAsy else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(AvailableStepResponse); } finally @@ -25060,7 +25050,7 @@ public async System.Threading.Tasks.Task GetStepSchemaAsy { } } - + /// Gets a workflow definition. /// The Id of the definition to retrieve. /// The version to retrieve. If this value is not specified, the latest version will be returned. @@ -25069,11 +25059,11 @@ public async System.Threading.Tasks.Task GetStepSchemaAsy /// Type of the request [XMLHttpRequest, APIClient] /// OK /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(System.Guid definitionId, int? definitionVersion, bool? exportable) + public System.Threading.Tasks.Task GetAsync_1(System.Guid definitionId, int? definitionVersion, bool? exportable) { - return GetAsync(definitionId, definitionVersion, exportable, System.Threading.CancellationToken.None); + return GetAsync_1(definitionId, definitionVersion, exportable, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets a workflow definition. /// The Id of the definition to retrieve. @@ -25083,42 +25073,42 @@ public System.Threading.Tasks.Task GetAsync(System.Guid defi /// Type of the request [XMLHttpRequest, APIClient] /// OK /// A server side error occurred. - public async System.Threading.Tasks.Task GetAsync(System.Guid definitionId, int? definitionVersion, bool? exportable, System.Threading.CancellationToken cancellationToken) + public async System.Threading.Tasks.Task GetAsync_1(System.Guid definitionId, int? definitionVersion, bool? exportable, System.Threading.CancellationToken cancellationToken) { if (definitionId == null) throw new System.ArgumentNullException("definitionId"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Definitions/{definitionId}?"); - urlBuilder_.Replace("{definitionId}", System.Uri.EscapeDataString(ConvertToString(definitionId, System.Globalization.CultureInfo.InvariantCulture))); - if (definitionVersion != null) + urlBuilder_.Replace("{definitionId}", System.Uri.EscapeDataString(ConvertToString( definitionId, System.Globalization.CultureInfo.InvariantCulture))); + if (definitionVersion != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("definitionVersion") + "=").Append(System.Uri.EscapeDataString(ConvertToString(definitionVersion, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("definitionVersion") + "=").Append(System.Uri.EscapeDataString(ConvertToString( definitionVersion, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (exportable != null) + if (exportable != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("exportable") + "=").Append(System.Uri.EscapeDataString(ConvertToString(exportable, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("exportable") + "=").Append(System.Uri.EscapeDataString(ConvertToString( exportable, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -25128,11 +25118,11 @@ public async System.Threading.Tasks.Task GetAsync(System.Gui foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -25140,10 +25130,10 @@ public async System.Threading.Tasks.Task GetAsync(System.Gui else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(DefinitionResponse); } finally @@ -25157,7 +25147,7 @@ public async System.Threading.Tasks.Task GetAsync(System.Gui { } } - + /// Updates the existing definition's DisplayName and Description. /// The Id of the definition to update. /// Desired version of the api, if not provided defaults to v1 @@ -25169,7 +25159,7 @@ public System.Threading.Tasks.Task UpdateExistingDefinitionA { return UpdateExistingDefinitionAsync(definitionId, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Updates the existing definition's DisplayName and Description. /// The Id of the definition to update. @@ -25182,32 +25172,32 @@ public async System.Threading.Tasks.Task UpdateExistingDefin { if (definitionId == null) throw new System.ArgumentNullException("definitionId"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Definitions/{definitionId}"); - urlBuilder_.Replace("{definitionId}", System.Uri.EscapeDataString(ConvertToString(definitionId, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{definitionId}", System.Uri.EscapeDataString(ConvertToString( definitionId, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -25217,11 +25207,11 @@ public async System.Threading.Tasks.Task UpdateExistingDefin foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -25229,10 +25219,10 @@ public async System.Threading.Tasks.Task UpdateExistingDefin else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(DefinitionResponse); } finally @@ -25246,18 +25236,18 @@ public async System.Threading.Tasks.Task UpdateExistingDefin { } } - + /// Deletes the definition matching the given Id. /// The Workflow Definition Id. /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] /// No Content /// A server side error occurred. - public System.Threading.Tasks.Task DeleteAsync(System.Guid definitionId) + public System.Threading.Tasks.Task DeleteAsync_0(System.Guid definitionId) { - return DeleteAsync(definitionId, System.Threading.CancellationToken.None); + return DeleteAsync_0(definitionId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes the definition matching the given Id. /// The Workflow Definition Id. @@ -25265,32 +25255,32 @@ public System.Threading.Tasks.Task DeleteAsync(System.Guid definitionId) /// Type of the request [XMLHttpRequest, APIClient] /// No Content /// A server side error occurred. - public async System.Threading.Tasks.Task DeleteAsync(System.Guid definitionId, System.Threading.CancellationToken cancellationToken) + public async System.Threading.Tasks.Task DeleteAsync_0(System.Guid definitionId, System.Threading.CancellationToken cancellationToken) { if (definitionId == null) throw new System.ArgumentNullException("definitionId"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Definitions/{definitionId}"); - urlBuilder_.Replace("{definitionId}", System.Uri.EscapeDataString(ConvertToString(definitionId, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{definitionId}", System.Uri.EscapeDataString(ConvertToString( definitionId, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -25300,18 +25290,18 @@ public async System.Threading.Tasks.Task DeleteAsync(System.Guid definitionId, S foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -25326,7 +25316,7 @@ public async System.Threading.Tasks.Task DeleteAsync(System.Guid definitionId, S { } } - + /// Gets the Definitions matching the query specifications. /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -25339,9 +25329,9 @@ public async System.Threading.Tasks.Task DeleteAsync(System.Guid definitionId, S /// A server side error occurred. public System.Threading.Tasks.Task> QueryAsync(string query_queryString, int? query_pageReturned, int? query_returnLimit, string query_sortField, SortAscending44? query_sortAscending) { - return QueryAsync(query_queryString, query_pageReturned, query_returnLimit, query_sortField, query_sortAscending, System.Threading.CancellationToken.None); + return QueryAsync( query_queryString, query_pageReturned, query_returnLimit, query_sortField, query_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the Definitions matching the query specifications. /// Desired version of the api, if not provided defaults to v1 @@ -25357,46 +25347,46 @@ public async System.Threading.Tasks.Task DeleteAsync(System.Guid definitionId, S { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Definitions?"); - if (query_queryString != null) + if (query_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_pageReturned != null) + if (query_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_returnLimit != null) + if (query_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortField != null) + if (query_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortAscending != null) + if (query_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -25406,11 +25396,11 @@ public async System.Threading.Tasks.Task DeleteAsync(System.Guid definitionId, S foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -25418,10 +25408,10 @@ public async System.Threading.Tasks.Task DeleteAsync(System.Guid definitionId, S else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -25435,7 +25425,7 @@ public async System.Threading.Tasks.Task DeleteAsync(System.Guid definitionId, S { } } - + /// Creates a new base definition without any steps. /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] @@ -25444,9 +25434,9 @@ public async System.Threading.Tasks.Task DeleteAsync(System.Guid definitionId, S /// A server side error occurred. public System.Threading.Tasks.Task CreateNewDefinitionAsync(DefinitionCreateRequest body) { - return CreateNewDefinitionAsync(body, System.Threading.CancellationToken.None); + return CreateNewDefinitionAsync( body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Creates a new base definition without any steps. /// Desired version of the api, if not provided defaults to v1 @@ -25458,28 +25448,28 @@ public async System.Threading.Tasks.Task CreateNewDefinition { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Definitions"); - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -25489,11 +25479,11 @@ public async System.Threading.Tasks.Task CreateNewDefinition foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -25501,10 +25491,10 @@ public async System.Threading.Tasks.Task CreateNewDefinition else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(DefinitionResponse); } finally @@ -25518,7 +25508,7 @@ public async System.Threading.Tasks.Task CreateNewDefinition { } } - + /// Gets the result set of available steps for a given query. /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -25531,9 +25521,9 @@ public async System.Threading.Tasks.Task CreateNewDefinition /// A server side error occurred. public System.Threading.Tasks.Task> QueryAvailableStepsAsync(string query_queryString, int? query_pageReturned, int? query_returnLimit, string query_sortField, SortAscending45? query_sortAscending) { - return QueryAvailableStepsAsync(query_queryString, query_pageReturned, query_returnLimit, query_sortField, query_sortAscending, System.Threading.CancellationToken.None); + return QueryAvailableStepsAsync( query_queryString, query_pageReturned, query_returnLimit, query_sortField, query_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the result set of available steps for a given query. /// Desired version of the api, if not provided defaults to v1 @@ -25549,46 +25539,46 @@ public async System.Threading.Tasks.Task CreateNewDefinition { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Definitions/Steps?"); - if (query_queryString != null) + if (query_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_pageReturned != null) + if (query_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_returnLimit != null) + if (query_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortField != null) + if (query_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortAscending != null) + if (query_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -25598,11 +25588,11 @@ public async System.Threading.Tasks.Task CreateNewDefinition foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -25610,10 +25600,10 @@ public async System.Threading.Tasks.Task CreateNewDefinition else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -25627,7 +25617,7 @@ public async System.Threading.Tasks.Task CreateNewDefinition { } } - + /// Performs a query against the workflow types in the system. /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -25640,9 +25630,9 @@ public async System.Threading.Tasks.Task CreateNewDefinition /// A server side error occurred. public System.Threading.Tasks.Task> QueryWorkflowTypesAsync(string query_queryString, int? query_pageReturned, int? query_returnLimit, string query_sortField, SortAscending46? query_sortAscending) { - return QueryWorkflowTypesAsync(query_queryString, query_pageReturned, query_returnLimit, query_sortField, query_sortAscending, System.Threading.CancellationToken.None); + return QueryWorkflowTypesAsync( query_queryString, query_pageReturned, query_returnLimit, query_sortField, query_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Performs a query against the workflow types in the system. /// Desired version of the api, if not provided defaults to v1 @@ -25658,46 +25648,46 @@ public async System.Threading.Tasks.Task CreateNewDefinition { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Definitions/Types?"); - if (query_queryString != null) + if (query_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_pageReturned != null) + if (query_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_returnLimit != null) + if (query_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortField != null) + if (query_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (query_sortAscending != null) + if (query_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("query.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( query_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -25707,11 +25697,11 @@ public async System.Threading.Tasks.Task CreateNewDefinition foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -25719,10 +25709,10 @@ public async System.Threading.Tasks.Task CreateNewDefinition else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -25736,7 +25726,7 @@ public async System.Threading.Tasks.Task CreateNewDefinition { } } - + /// Sets the provided steps on the latest version of the definition. /// The Id of the definition. /// Desired version of the api, if not provided defaults to v1 @@ -25748,7 +25738,7 @@ public System.Threading.Tasks.Task ConfigureDefinitionStepsA { return ConfigureDefinitionStepsAsync(definitionId, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Sets the provided steps on the latest version of the definition. /// The Id of the definition. @@ -25761,32 +25751,32 @@ public async System.Threading.Tasks.Task ConfigureDefinition { if (definitionId == null) throw new System.ArgumentNullException("definitionId"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Definitions/{definitionId}/Steps"); - urlBuilder_.Replace("{definitionId}", System.Uri.EscapeDataString(ConvertToString(definitionId, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{definitionId}", System.Uri.EscapeDataString(ConvertToString( definitionId, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -25796,11 +25786,11 @@ public async System.Threading.Tasks.Task ConfigureDefinition foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -25808,10 +25798,10 @@ public async System.Threading.Tasks.Task ConfigureDefinition else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(DefinitionResponse); } finally @@ -25825,7 +25815,7 @@ public async System.Threading.Tasks.Task ConfigureDefinition { } } - + /// Makes the most recent version of a Workflow Definition the published version. /// The Workflow Definition Id. /// Desired version of the api, if not provided defaults to v1 @@ -25836,7 +25826,7 @@ public System.Threading.Tasks.Task PublishDefinitionAsync(Sy { return PublishDefinitionAsync(definitionId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Makes the most recent version of a Workflow Definition the published version. /// The Workflow Definition Id. @@ -25848,30 +25838,30 @@ public async System.Threading.Tasks.Task PublishDefinitionAs { if (definitionId == null) throw new System.ArgumentNullException("definitionId"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Definitions/{definitionId}/Publish"); - urlBuilder_.Replace("{definitionId}", System.Uri.EscapeDataString(ConvertToString(definitionId, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{definitionId}", System.Uri.EscapeDataString(ConvertToString( definitionId, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json"); request_.Method = new System.Net.Http.HttpMethod("POST"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -25881,11 +25871,11 @@ public async System.Threading.Tasks.Task PublishDefinitionAs foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -25893,10 +25883,10 @@ public async System.Threading.Tasks.Task PublishDefinitionAs else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(DefinitionResponse); } finally @@ -25910,25 +25900,25 @@ public async System.Threading.Tasks.Task PublishDefinitionAs { } } + + + + + + - - - - - - - + /// Get information relevant for knowing where an instance is in its workflow. /// The {System.Guid} identifying the instance. /// Desired version of the api, if not provided defaults to v1 /// Type of the request [XMLHttpRequest, APIClient] /// OK /// A server side error occurred. - public System.Threading.Tasks.Task GetAsync(System.Guid instanceId) + public System.Threading.Tasks.Task GetAsync_0(System.Guid instanceId) { - return GetAsync(instanceId, System.Threading.CancellationToken.None); + return GetAsync_0(instanceId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Get information relevant for knowing where an instance is in its workflow. /// The {System.Guid} identifying the instance. @@ -25936,33 +25926,33 @@ public System.Threading.Tasks.Task GetAsync(System.Guid instan /// Type of the request [XMLHttpRequest, APIClient] /// OK /// A server side error occurred. - public async System.Threading.Tasks.Task GetAsync(System.Guid instanceId, System.Threading.CancellationToken cancellationToken) + public async System.Threading.Tasks.Task GetAsync_0(System.Guid instanceId, System.Threading.CancellationToken cancellationToken) { if (instanceId == null) throw new System.ArgumentNullException("instanceId"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Instances/{instanceId}"); - urlBuilder_.Replace("{instanceId}", System.Uri.EscapeDataString(ConvertToString(instanceId, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{instanceId}", System.Uri.EscapeDataString(ConvertToString( instanceId, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -25972,11 +25962,11 @@ public async System.Threading.Tasks.Task GetAsync(System.Guid foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -25984,10 +25974,10 @@ public async System.Threading.Tasks.Task GetAsync(System.Guid else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(InstanceResponse); } finally @@ -26001,7 +25991,7 @@ public async System.Threading.Tasks.Task GetAsync(System.Guid { } } - + /// Deletes the specified instance. /// The Id of the instance to be deleted. /// Desired version of the api, if not provided defaults to v1 @@ -26012,7 +26002,7 @@ public System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanceId) { return DeleteInstanceAsync(instanceId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Deletes the specified instance. /// The Id of the instance to be deleted. @@ -26024,28 +26014,28 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc { if (instanceId == null) throw new System.ArgumentNullException("instanceId"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Instances/{instanceId}"); - urlBuilder_.Replace("{instanceId}", System.Uri.EscapeDataString(ConvertToString(instanceId, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{instanceId}", System.Uri.EscapeDataString(ConvertToString( instanceId, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("DELETE"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -26055,18 +26045,18 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -26081,7 +26071,7 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc { } } - + /// Gets the workflow instances matching the query specifications. /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -26094,9 +26084,9 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc /// A server side error occurred. public System.Threading.Tasks.Task> QueryAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending47? pq_sortAscending) { - return QueryAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return QueryAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the workflow instances matching the query specifications. /// Desired version of the api, if not provided defaults to v1 @@ -26112,46 +26102,46 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Instances?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -26161,11 +26151,11 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -26173,10 +26163,10 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -26190,7 +26180,7 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc { } } - + /// Gets the workflow instances started by the user. /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -26203,9 +26193,9 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc /// A server side error occurred. public System.Threading.Tasks.Task> QueryInstancesStartedByMeAsync(string instanceQuery_queryString, int? instanceQuery_pageReturned, int? instanceQuery_returnLimit, string instanceQuery_sortField, SortAscending48? instanceQuery_sortAscending) { - return QueryInstancesStartedByMeAsync(instanceQuery_queryString, instanceQuery_pageReturned, instanceQuery_returnLimit, instanceQuery_sortField, instanceQuery_sortAscending, System.Threading.CancellationToken.None); + return QueryInstancesStartedByMeAsync( instanceQuery_queryString, instanceQuery_pageReturned, instanceQuery_returnLimit, instanceQuery_sortField, instanceQuery_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the workflow instances started by the user. /// Desired version of the api, if not provided defaults to v1 @@ -26221,46 +26211,46 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Instances/My?"); - if (instanceQuery_queryString != null) + if (instanceQuery_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("instanceQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(instanceQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("instanceQuery.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( instanceQuery_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (instanceQuery_pageReturned != null) + if (instanceQuery_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("instanceQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(instanceQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("instanceQuery.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( instanceQuery_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (instanceQuery_returnLimit != null) + if (instanceQuery_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("instanceQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(instanceQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("instanceQuery.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( instanceQuery_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (instanceQuery_sortField != null) + if (instanceQuery_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("instanceQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(instanceQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("instanceQuery.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( instanceQuery_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (instanceQuery_sortAscending != null) + if (instanceQuery_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("instanceQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(instanceQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("instanceQuery.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( instanceQuery_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -26270,11 +26260,11 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -26282,10 +26272,10 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -26299,7 +26289,7 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc { } } - + /// Gets the workflow instances waiting on the user. /// Desired version of the api, if not provided defaults to v1 /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) @@ -26312,9 +26302,9 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc /// A server side error occurred. public System.Threading.Tasks.Task> QueryInstancesAssignedToMeAsync(string pq_queryString, int? pq_pageReturned, int? pq_returnLimit, string pq_sortField, SortAscending49? pq_sortAscending) { - return QueryInstancesAssignedToMeAsync(pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); + return QueryInstancesAssignedToMeAsync( pq_queryString, pq_pageReturned, pq_returnLimit, pq_sortField, pq_sortAscending, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Gets the workflow instances waiting on the user. /// Desired version of the api, if not provided defaults to v1 @@ -26330,46 +26320,46 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Instances/AssignedToMe?"); - if (pq_queryString != null) + if (pq_queryString != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.queryString") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_queryString, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_pageReturned != null) + if (pq_pageReturned != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.pageReturned") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_pageReturned, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_returnLimit != null) + if (pq_returnLimit != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.returnLimit") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_returnLimit, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortField != null) + if (pq_sortField != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortField") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortField, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } - if (pq_sortAscending != null) + if (pq_sortAscending != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString(pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("pq.sortAscending") + "=").Append(System.Uri.EscapeDataString(ConvertToString( pq_sortAscending, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Method = new System.Net.Http.HttpMethod("GET"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -26379,11 +26369,11 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "200") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "200") { var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_).ConfigureAwait(false); return objectResponse_.Object; @@ -26391,10 +26381,10 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } - + return default(System.Collections.Generic.ICollection); } finally @@ -26408,7 +26398,7 @@ public async System.Threading.Tasks.Task DeleteInstanceAsync(System.Guid instanc { } } - + /// Rejects an instance, preventing it from continuing. /// The Id of the instance to reject. /// Desired version of the api, if not provided defaults to v1 @@ -26419,7 +26409,7 @@ public System.Threading.Tasks.Task StopAsync(System.Guid instanceId) { return StopAsync(instanceId, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Rejects an instance, preventing it from continuing. /// The Id of the instance to reject. @@ -26431,29 +26421,29 @@ public async System.Threading.Tasks.Task StopAsync(System.Guid instanceId, Syste { if (instanceId == null) throw new System.ArgumentNullException("instanceId"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Instances/{instanceId}/Stop"); - urlBuilder_.Replace("{instanceId}", System.Uri.EscapeDataString(ConvertToString(instanceId, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{instanceId}", System.Uri.EscapeDataString(ConvertToString( instanceId, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json"); request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -26463,18 +26453,18 @@ public async System.Threading.Tasks.Task StopAsync(System.Guid instanceId, Syste foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -26489,7 +26479,7 @@ public async System.Threading.Tasks.Task StopAsync(System.Guid instanceId, Syste { } } - + /// Receives the given signal for the given instance. /// The instance that is receiving the signal. /// Desired version of the api, if not provided defaults to v1 @@ -26501,7 +26491,7 @@ public System.Threading.Tasks.Task SignalAsync(System.Guid instanceId, SignalReq { return SignalAsync(instanceId, body, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Receives the given signal for the given instance. /// The instance that is receiving the signal. @@ -26514,31 +26504,31 @@ public async System.Threading.Tasks.Task SignalAsync(System.Guid instanceId, Sig { if (instanceId == null) throw new System.ArgumentNullException("instanceId"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Instances/{instanceId}/Signals"); - urlBuilder_.Replace("{instanceId}", System.Uri.EscapeDataString(ConvertToString(instanceId, System.Globalization.CultureInfo.InvariantCulture))); - + urlBuilder_.Replace("{instanceId}", System.Uri.EscapeDataString(ConvertToString( instanceId, System.Globalization.CultureInfo.InvariantCulture))); + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value)); content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); request_.Content = content_; request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -26548,18 +26538,18 @@ public async System.Threading.Tasks.Task SignalAsync(System.Guid instanceId, Sig foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -26574,7 +26564,7 @@ public async System.Threading.Tasks.Task SignalAsync(System.Guid instanceId, Sig { } } - + /// Restarts a failed instance against the specified definition version or the published version if no version is specified. /// The instance Id to restart. /// The version of the definition to restart the instance against. Defaults to the published version. @@ -26586,7 +26576,7 @@ public System.Threading.Tasks.Task RestartAsync(System.Guid instanceId, int? ver { return RestartAsync(instanceId, version, System.Threading.CancellationToken.None); } - + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Restarts a failed instance against the specified definition version or the published version if no version is specified. /// The instance Id to restart. @@ -26599,34 +26589,34 @@ public async System.Threading.Tasks.Task RestartAsync(System.Guid instanceId, in { if (instanceId == null) throw new System.ArgumentNullException("instanceId"); - + var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/Workflow/Instances/{instanceId}/Restart?"); - urlBuilder_.Replace("{instanceId}", System.Uri.EscapeDataString(ConvertToString(instanceId, System.Globalization.CultureInfo.InvariantCulture))); - if (version != null) + urlBuilder_.Replace("{instanceId}", System.Uri.EscapeDataString(ConvertToString( instanceId, System.Globalization.CultureInfo.InvariantCulture))); + if (version != null) { - urlBuilder_.Append(System.Uri.EscapeDataString("version") + "=").Append(System.Uri.EscapeDataString(ConvertToString(version, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + urlBuilder_.Append(System.Uri.EscapeDataString("version") + "=").Append(System.Uri.EscapeDataString(ConvertToString( version, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); } urlBuilder_.Length--; - + var client_ = _httpClient; try { using (var request_ = new System.Net.Http.HttpRequestMessage()) { if (x_keyfactor_api_version != null) - request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString(x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-api-version", ConvertToString( x_keyfactor_api_version, System.Globalization.CultureInfo.InvariantCulture)); if (x_keyfactor_requested_with == null) throw new System.ArgumentNullException("x_keyfactor_requested_with"); - request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString(x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); + request_.Headers.TryAddWithoutValidation("x-keyfactor-requested-with", ConvertToString( x_keyfactor_requested_with, System.Globalization.CultureInfo.InvariantCulture)); request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json"); request_.Method = new System.Net.Http.HttpMethod("POST"); - + PrepareRequest(client_, request_, urlBuilder_); var url_ = urlBuilder_.ToString(); request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); PrepareRequest(client_, request_, url_); - + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); try { @@ -26636,18 +26626,18 @@ public async System.Threading.Tasks.Task RestartAsync(System.Guid instanceId, in foreach (var item_ in response_.Content.Headers) headers_[item_.Key] = item_.Value; } - + ProcessResponse(client_, response_); - - var status_ = ( (int)response_.StatusCode ).ToString(); - if (status_ == "204") + + var status_ = ((int)response_.StatusCode).ToString(); + if (status_ == "204") { return; } else if (status_ != "200" && status_ != "204") { - var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); throw new ApiException("The HTTP status code of the response was not expected (" + (int)response_.StatusCode + ").", (int)response_.StatusCode, responseData_, headers_, null); } } @@ -26662,14536 +26652,14536 @@ public async System.Threading.Tasks.Task RestartAsync(System.Guid instanceId, in { } } - - - - - - + + + + + + } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AgentResponse + public partial class AgentResponse { [Newtonsoft.Json.JsonProperty("AgentId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentId { get; set; } - + [Newtonsoft.Json.JsonProperty("ClientMachine", Required = Newtonsoft.Json.Required.AllowNull)] public string ClientMachine { get; set; } - + [Newtonsoft.Json.JsonProperty("Username", Required = Newtonsoft.Json.Required.AllowNull)] public string Username { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentPlatform", Required = Newtonsoft.Json.Required.AllowNull)] public AgentResponseAgentPlatform AgentPlatform { get; set; } - + [Newtonsoft.Json.JsonProperty("Version", Required = Newtonsoft.Json.Required.AllowNull)] public string Version { get; set; } - + [Newtonsoft.Json.JsonProperty("Status", Required = Newtonsoft.Json.Required.AllowNull)] public AgentResponseStatus Status { get; set; } - + [Newtonsoft.Json.JsonProperty("LastSeen", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset LastSeen { get; set; } - + [Newtonsoft.Json.JsonProperty("Capabilities", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Capabilities { get; set; } - + [Newtonsoft.Json.JsonProperty("Blueprint", Required = Newtonsoft.Json.Required.AllowNull)] public string Blueprint { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] public string Thumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("LegacyThumbprint", Required = Newtonsoft.Json.Required.AllowNull)] public string LegacyThumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("AuthCertificateReenrollment", Required = Newtonsoft.Json.Required.AllowNull)] public string AuthCertificateReenrollment { get; set; } - + [Newtonsoft.Json.JsonProperty("LastThumbprintUsed", Required = Newtonsoft.Json.Required.AllowNull)] public string LastThumbprintUsed { get; set; } - + [Newtonsoft.Json.JsonProperty("LastErrorCode", Required = Newtonsoft.Json.Required.AllowNull)] public long LastErrorCode { get; set; } - + [Newtonsoft.Json.JsonProperty("LastErrorMessage", Required = Newtonsoft.Json.Required.AllowNull)] public string LastErrorMessage { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// A query result set with parameters to define the format of Agent records [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedAgentQuery + public partial class PagedAgentQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedAgentQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class UpdateOrchestratorAuthCertificateReenrollmentRequest + public partial class UpdateOrchestratorAuthCertificateReenrollmentRequest { [Newtonsoft.Json.JsonProperty("OrchestratorIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection OrchestratorIds { get; set; } - + [Newtonsoft.Json.JsonProperty("Status", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Status { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class UpdateOrchestratorAuthCertificateReenrollmentResponse + public partial class UpdateOrchestratorAuthCertificateReenrollmentResponse { [Newtonsoft.Json.JsonProperty("FailedOrchestratorIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection FailedOrchestratorIds { get; set; } - + [Newtonsoft.Json.JsonProperty("Status", Required = Newtonsoft.Json.Required.AllowNull)] public UpdateOrchestratorAuthCertificateReenrollmentResponseStatus Status { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AgentBlueprintResponse + public partial class AgentBlueprintResponse { [Newtonsoft.Json.JsonProperty("AgentBlueprintId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentBlueprintId { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("RequiredCapabilities", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection RequiredCapabilities { get; set; } - + [Newtonsoft.Json.JsonProperty("LastModified", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset LastModified { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedAgentBlueprintQuery + public partial class PagedAgentBlueprintQuery { /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Number of records to be skipped before inclusion in the result set [Newtonsoft.Json.JsonProperty("SkipCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? SkipCount { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (OperationStart, OperationEnd, UserName) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedAgentBlueprintQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedAgentBlueprintJobsQuery + public partial class PagedAgentBlueprintJobsQuery { /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Number of records to be skipped before inclusion in the result set [Newtonsoft.Json.JsonProperty("SkipCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? SkipCount { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (OperationStart, OperationEnd, UserName) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedAgentBlueprintJobsQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AgentBlueprintJobsResponse + public partial class AgentBlueprintJobsResponse { [Newtonsoft.Json.JsonProperty("AgentBlueprintJobId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentBlueprintJobId { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentBlueprintStoreId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentBlueprintStoreId { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentBlueprintId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentBlueprintId { get; set; } - + [Newtonsoft.Json.JsonProperty("JobType", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid JobType { get; set; } - + [Newtonsoft.Json.JsonProperty("JobTypeName", Required = Newtonsoft.Json.Required.AllowNull)] public string JobTypeName { get; set; } - + [Newtonsoft.Json.JsonProperty("OperationType", Required = Newtonsoft.Json.Required.AllowNull)] public int? OperationType { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] public string Thumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("Contents", Required = Newtonsoft.Json.Required.AllowNull)] public string Contents { get; set; } - + [Newtonsoft.Json.JsonProperty("Alias", Required = Newtonsoft.Json.Required.AllowNull)] public string Alias { get; set; } - + [Newtonsoft.Json.JsonProperty("PrivateKeyEntry", Required = Newtonsoft.Json.Required.AllowNull)] public bool? PrivateKeyEntry { get; set; } - + [Newtonsoft.Json.JsonProperty("Overwrite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Overwrite { get; set; } - + [Newtonsoft.Json.JsonProperty("HasEntryPassword", Required = Newtonsoft.Json.Required.AllowNull)] public bool? HasEntryPassword { get; set; } - + [Newtonsoft.Json.JsonProperty("HasPfxPassword", Required = Newtonsoft.Json.Required.AllowNull)] public bool? HasPfxPassword { get; set; } - + [Newtonsoft.Json.JsonProperty("RequestTimestamp", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset RequestTimestamp { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyfactorSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule KeyfactorSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.AllowNull)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Directories", Required = Newtonsoft.Json.Required.AllowNull)] public string Directories { get; set; } - + [Newtonsoft.Json.JsonProperty("IgnoredDirectories", Required = Newtonsoft.Json.Required.AllowNull)] public string IgnoredDirectories { get; set; } - + [Newtonsoft.Json.JsonProperty("SymLinks", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SymLinks { get; set; } - + [Newtonsoft.Json.JsonProperty("Compatibility", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Compatibility { get; set; } - + [Newtonsoft.Json.JsonProperty("FileExtensions", Required = Newtonsoft.Json.Required.AllowNull)] public string FileExtensions { get; set; } - + [Newtonsoft.Json.JsonProperty("FileNamePatterns", Required = Newtonsoft.Json.Required.AllowNull)] public string FileNamePatterns { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentBlueprintStores", Required = Newtonsoft.Json.Required.AllowNull)] public AgentBlueprintStoresResponse AgentBlueprintStores { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class KeyfactorSchedule + public partial class KeyfactorSchedule { [Newtonsoft.Json.JsonProperty("Immediate", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Immediate { get; set; } - + [Newtonsoft.Json.JsonProperty("Interval", Required = Newtonsoft.Json.Required.AllowNull)] public IntervalModel Interval { get; set; } - + [Newtonsoft.Json.JsonProperty("Daily", Required = Newtonsoft.Json.Required.AllowNull)] public TimeModel Daily { get; set; } - + [Newtonsoft.Json.JsonProperty("Weekly", Required = Newtonsoft.Json.Required.AllowNull)] public WeeklyModel Weekly { get; set; } - + [Newtonsoft.Json.JsonProperty("Monthly", Required = Newtonsoft.Json.Required.AllowNull)] public MonthlyModel Monthly { get; set; } - + [Newtonsoft.Json.JsonProperty("ExactlyOnce", Required = Newtonsoft.Json.Required.AllowNull)] public TimeModel ExactlyOnce { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AgentBlueprintStoresResponse + public partial class AgentBlueprintStoresResponse { [Newtonsoft.Json.JsonProperty("AgentBlueprintStoreId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentBlueprintStoreId { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentBlueprintId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentBlueprintId { get; set; } - + [Newtonsoft.Json.JsonProperty("StorePath", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePath { get; set; } - + [Newtonsoft.Json.JsonProperty("ContainerId", Required = Newtonsoft.Json.Required.AllowNull)] public int? ContainerId { get; set; } - + [Newtonsoft.Json.JsonProperty("CertStoreType", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertStoreType { get; set; } - + [Newtonsoft.Json.JsonProperty("CertStoreTypeName", Required = Newtonsoft.Json.Required.AllowNull)] public string CertStoreTypeName { get; set; } - + [Newtonsoft.Json.JsonProperty("Approved", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Approved { get; set; } - + [Newtonsoft.Json.JsonProperty("CreateIfMissing", Required = Newtonsoft.Json.Required.AllowNull)] public bool? CreateIfMissing { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public string Properties { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class IntervalModel + public partial class IntervalModel { [Newtonsoft.Json.JsonProperty("Minutes", Required = Newtonsoft.Json.Required.AllowNull)] public int? Minutes { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TimeModel + public partial class TimeModel { [Newtonsoft.Json.JsonProperty("Time", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset Time { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class WeeklyModel + public partial class WeeklyModel { [Newtonsoft.Json.JsonProperty("Days", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Days { get; set; } - + [Newtonsoft.Json.JsonProperty("Time", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset Time { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class MonthlyModel + public partial class MonthlyModel { [Newtonsoft.Json.JsonProperty("Day", Required = Newtonsoft.Json.Required.AllowNull)] public int? Day { get; set; } - + [Newtonsoft.Json.JsonProperty("Time", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset Time { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedAgentBlueprintStoresQuery + public partial class PagedAgentBlueprintStoresQuery { /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Number of records to be skipped before inclusion in the result set [Newtonsoft.Json.JsonProperty("SkipCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? SkipCount { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (OperationStart, OperationEnd, UserName) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedAgentBlueprintStoresQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Class representing an SSL agent pool [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AgentPool + public partial class AgentPool { /// GUID identifier of the agent pool [Newtonsoft.Json.JsonProperty("AgentPoolId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentPoolId { get; set; } - + /// Name of the agent pool [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + /// Number of agents that can perform discovery jobs [Newtonsoft.Json.JsonProperty("DiscoverAgentsCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? DiscoverAgentsCount { get; set; } - + /// Number of agents that can perform monitoring jobs [Newtonsoft.Json.JsonProperty("MonitorAgentsCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? MonitorAgentsCount { get; set; } - + /// List of the agents assigned to the pool [Newtonsoft.Json.JsonProperty("Agents", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Agents { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AgentPoolAgent + public partial class AgentPoolAgent { [Newtonsoft.Json.JsonProperty("AgentId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentId { get; set; } - + [Newtonsoft.Json.JsonProperty("EnableDiscover", Required = Newtonsoft.Json.Required.AllowNull)] public bool? EnableDiscover { get; set; } - + [Newtonsoft.Json.JsonProperty("EnableMonitor", Required = Newtonsoft.Json.Required.AllowNull)] public bool? EnableMonitor { get; set; } - + [Newtonsoft.Json.JsonProperty("Version", Required = Newtonsoft.Json.Required.AllowNull)] public string Version { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowsDiscover", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AllowsDiscover { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowsMonitor", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AllowsMonitor { get; set; } - + [Newtonsoft.Json.JsonProperty("ClientMachine", Required = Newtonsoft.Json.Required.AllowNull)] public string ClientMachine { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedAgentPoolQuery + public partial class PagedAgentPoolQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedAgentPoolQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedAgentPoolAgentsQuery + public partial class PagedAgentPoolAgentsQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedAgentPoolAgentsQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedAuditLogQuery + public partial class PagedAuditLogQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedAuditLogQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AuditLogEntry + public partial class AuditLogEntry { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Timestamp", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset Timestamp { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Signature", Required = Newtonsoft.Json.Required.AllowNull)] public string Signature { get; set; } - + [Newtonsoft.Json.JsonProperty("Category", Required = Newtonsoft.Json.Required.AllowNull)] public int? Category { get; set; } - + [Newtonsoft.Json.JsonProperty("Operation", Required = Newtonsoft.Json.Required.AllowNull)] public int? Operation { get; set; } - + [Newtonsoft.Json.JsonProperty("Level", Required = Newtonsoft.Json.Required.AllowNull)] public AuditLogEntryLevel Level { get; set; } - + [Newtonsoft.Json.JsonProperty("User", Required = Newtonsoft.Json.Required.AllowNull)] public string User { get; set; } - + [Newtonsoft.Json.JsonProperty("EntityType", Required = Newtonsoft.Json.Required.AllowNull)] public string EntityType { get; set; } - + [Newtonsoft.Json.JsonProperty("AuditIdentifier", Required = Newtonsoft.Json.Required.AllowNull)] public string AuditIdentifier { get; set; } - + [Newtonsoft.Json.JsonProperty("ImmutableIdentifier", Required = Newtonsoft.Json.Required.AllowNull)] public string ImmutableIdentifier { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// A list of permissions for a given certificate and which security role(s) granted them. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificatePermissions + public partial class CertificatePermissions { [Newtonsoft.Json.JsonProperty("Roles", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Roles { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SecurityRoleResponseBase + public partial class SecurityRoleResponseBase { /// The name of the created role [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + /// The permissions included in the created security role [Newtonsoft.Json.JsonProperty("Permissions", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Permissions { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateValidationResponse + public partial class CertificateValidationResponse { /// States whether the certificate is valid or not [Newtonsoft.Json.JsonProperty("Valid", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Valid { get; set; } - + /// Lists any reasons why the certificate is not valid [Newtonsoft.Json.JsonProperty("Results", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Results { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateLocationsResponse + public partial class CertificateLocationsResponse { [Newtonsoft.Json.JsonProperty("Details", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Details { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateLocationsGroup + public partial class CertificateLocationsGroup { [Newtonsoft.Json.JsonProperty("StoreType", Required = Newtonsoft.Json.Required.AllowNull)] public string StoreType { get; set; } - + [Newtonsoft.Json.JsonProperty("StoreTypeId", Required = Newtonsoft.Json.Required.AllowNull)] public int? StoreTypeId { get; set; } - + [Newtonsoft.Json.JsonProperty("StoreCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? StoreCount { get; set; } - + [Newtonsoft.Json.JsonProperty("Locations", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Locations { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreLocationsDetail + public partial class CertificateStoreLocationsDetail { [Newtonsoft.Json.JsonProperty("StoreId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid StoreId { get; set; } - + [Newtonsoft.Json.JsonProperty("StoreTypeId", Required = Newtonsoft.Json.Required.AllowNull)] public int? StoreTypeId { get; set; } - + [Newtonsoft.Json.JsonProperty("ClientMachine", Required = Newtonsoft.Json.Required.AllowNull)] public string ClientMachine { get; set; } - + [Newtonsoft.Json.JsonProperty("StorePath", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePath { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentPool", Required = Newtonsoft.Json.Required.AllowNull)] public string AgentPool { get; set; } - + [Newtonsoft.Json.JsonProperty("Alias", Required = Newtonsoft.Json.Required.AllowNull)] public string Alias { get; set; } - + [Newtonsoft.Json.JsonProperty("IPAddress", Required = Newtonsoft.Json.Required.AllowNull)] public string IPAddress { get; set; } - + [Newtonsoft.Json.JsonProperty("Port", Required = Newtonsoft.Json.Required.AllowNull)] public int? Port { get; set; } - + [Newtonsoft.Json.JsonProperty("NetworkName", Required = Newtonsoft.Json.Required.AllowNull)] public string NetworkName { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Represents an account with a list of permission granted to it on a given certificate by either a role or collection [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateIdentityAuditResponse + public partial class CertificateIdentityAuditResponse { /// Id of the account represented by the audit response [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + /// Name of the account represented by the audit response [Newtonsoft.Json.JsonProperty("AccountName", Required = Newtonsoft.Json.Required.AllowNull)] public string AccountName { get; set; } - + /// The type of account represented by the audit response (User or Group) [Newtonsoft.Json.JsonProperty("IdentityType", Required = Newtonsoft.Json.Required.AllowNull)] public string IdentityType { get; set; } - + /// The SID of the account represented by the audit reponse [Newtonsoft.Json.JsonProperty("SID", Required = Newtonsoft.Json.Required.AllowNull)] public string SID { get; set; } - + /// Permissions granted to the account represented by the audit reponse on the specified certifcate [Newtonsoft.Json.JsonProperty("Permissions", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Permissions { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Represents a permission granted to an account for a certificate [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificatePermission + public partial class CertificatePermission { /// The name of the permission [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + /// A list of roles or collections that grant the given permission [Newtonsoft.Json.JsonProperty("GrantedBy", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection GrantedBy { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateRetrievalResponse + public partial class CertificateRetrievalResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string Thumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("SerialNumber", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string SerialNumber { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuedDN", Required = Newtonsoft.Json.Required.Default)] public string IssuedDN { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuedCN", Required = Newtonsoft.Json.Required.Default)] public string IssuedCN { get; set; } - + [Newtonsoft.Json.JsonProperty("ImportDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset ImportDate { get; set; } - + [Newtonsoft.Json.JsonProperty("NotBefore", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset NotBefore { get; set; } - + [Newtonsoft.Json.JsonProperty("NotAfter", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset NotAfter { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuerDN", Required = Newtonsoft.Json.Required.Default)] public string IssuerDN { get; set; } - + [Newtonsoft.Json.JsonProperty("PrincipalId", Required = Newtonsoft.Json.Required.Default)] public int? PrincipalId { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("CertState", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateRetrievalResponseCertState CertState { get; set; } - + [Newtonsoft.Json.JsonProperty("KeySizeInBits", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeySizeInBits { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyType", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateRetrievalResponseKeyType KeyType { get; set; } - + [Newtonsoft.Json.JsonProperty("RequesterId", Required = Newtonsoft.Json.Required.AllowNull)] public int? RequesterId { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuedOU", Required = Newtonsoft.Json.Required.Default)] public string IssuedOU { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuedEmail", Required = Newtonsoft.Json.Required.Default)] public string IssuedEmail { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyUsage", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyUsage { get; set; } - + [Newtonsoft.Json.JsonProperty("SigningAlgorithm", Required = Newtonsoft.Json.Required.AllowNull)] public string SigningAlgorithm { get; set; } - + [Newtonsoft.Json.JsonProperty("CertStateString", Required = Newtonsoft.Json.Required.AllowNull)] public string CertStateString { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyTypeString", Required = Newtonsoft.Json.Required.AllowNull)] public string KeyTypeString { get; set; } - + [Newtonsoft.Json.JsonProperty("RevocationEffDate", Required = Newtonsoft.Json.Required.Default)] public System.DateTimeOffset? RevocationEffDate { get; set; } - + [Newtonsoft.Json.JsonProperty("RevocationReason", Required = Newtonsoft.Json.Required.Default)] public CertificateRetrievalResponseRevocationReason? RevocationReason { get; set; } - + [Newtonsoft.Json.JsonProperty("RevocationComment", Required = Newtonsoft.Json.Required.Default)] public string RevocationComment { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateAuthorityId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertificateAuthorityId { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateAuthorityName", Required = Newtonsoft.Json.Required.AllowNull)] public string CertificateAuthorityName { get; set; } - + /// Full template display name. [Newtonsoft.Json.JsonProperty("TemplateName", Required = Newtonsoft.Json.Required.AllowNull)] public string TemplateName { get; set; } - + [Newtonsoft.Json.JsonProperty("ArchivedKey", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ArchivedKey { get; set; } - + [Newtonsoft.Json.JsonProperty("HasPrivateKey", Required = Newtonsoft.Json.Required.AllowNull)] public bool? HasPrivateKey { get; set; } - + [Newtonsoft.Json.JsonProperty("PrincipalName", Required = Newtonsoft.Json.Required.Default)] public string PrincipalName { get; set; } - + [Newtonsoft.Json.JsonProperty("CertRequestId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertRequestId { get; set; } - + [Newtonsoft.Json.JsonProperty("RequesterName", Required = Newtonsoft.Json.Required.AllowNull)] public string RequesterName { get; set; } - + [Newtonsoft.Json.JsonProperty("ContentBytes", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public byte[] ContentBytes { get; set; } - + [Newtonsoft.Json.JsonProperty("ExtendedKeyUsages", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ExtendedKeyUsages { get; set; } - + [Newtonsoft.Json.JsonProperty("SubjectAltNameElements", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection SubjectAltNameElements { get; set; } - + [Newtonsoft.Json.JsonProperty("CRLDistributionPoints", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection CRLDistributionPoints { get; set; } - + [Newtonsoft.Json.JsonProperty("LocationsCount", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection LocationsCount { get; set; } - + [Newtonsoft.Json.JsonProperty("SSLLocations", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection SSLLocations { get; set; } - + [Newtonsoft.Json.JsonProperty("Locations", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Locations { get; set; } - + [Newtonsoft.Json.JsonProperty("Metadata", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Metadata { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateKeyId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertificateKeyId { get; set; } - + [Newtonsoft.Json.JsonProperty("CARowIndex", Required = Newtonsoft.Json.Required.AllowNull)] public long CARowIndex { get; set; } - + [Newtonsoft.Json.JsonProperty("CARecordId", Required = Newtonsoft.Json.Required.AllowNull)] public string CARecordId { get; set; } - + [Newtonsoft.Json.JsonProperty("DetailedKeyUsage", Required = Newtonsoft.Json.Required.AllowNull)] public DetailedKeyUsageModel DetailedKeyUsage { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyRecoverable", Required = Newtonsoft.Json.Required.AllowNull)] public bool? KeyRecoverable { get; set; } - + [Newtonsoft.Json.JsonProperty("Curve", Required = Newtonsoft.Json.Required.Default)] public string Curve { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ExtendedKeyUsageModel + public partial class ExtendedKeyUsageModel { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Oid", Required = Newtonsoft.Json.Required.AllowNull)] public string Oid { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SubjectAlternativeNameModel + public partial class SubjectAlternativeNameModel { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + [Newtonsoft.Json.JsonProperty("Type", Required = Newtonsoft.Json.Required.AllowNull)] public SubjectAlternativeNameModelType Type { get; set; } - + [Newtonsoft.Json.JsonProperty("ValueHash", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string ValueHash { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CRLDistributionPointModel + public partial class CRLDistributionPointModel { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Url", Required = Newtonsoft.Json.Required.AllowNull)] public string Url { get; set; } - + [Newtonsoft.Json.JsonProperty("UrlHash", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string UrlHash { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class LocationCountModel + public partial class LocationCountModel { [Newtonsoft.Json.JsonProperty("Type", Required = Newtonsoft.Json.Required.AllowNull)] public string Type { get; set; } - + [Newtonsoft.Json.JsonProperty("Count", Required = Newtonsoft.Json.Required.AllowNull)] public int? Count { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreLocationDetailModel + public partial class CertificateStoreLocationDetailModel { [Newtonsoft.Json.JsonProperty("StorePath", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePath { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentPool", Required = Newtonsoft.Json.Required.AllowNull)] public string AgentPool { get; set; } - + [Newtonsoft.Json.JsonProperty("IPAddress", Required = Newtonsoft.Json.Required.AllowNull)] public string IPAddress { get; set; } - + [Newtonsoft.Json.JsonProperty("Port", Required = Newtonsoft.Json.Required.AllowNull)] public int? Port { get; set; } - + [Newtonsoft.Json.JsonProperty("NetworkName", Required = Newtonsoft.Json.Required.AllowNull)] public string NetworkName { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreInventoryItemModel + public partial class CertificateStoreInventoryItemModel { [Newtonsoft.Json.JsonProperty("StoreMachine", Required = Newtonsoft.Json.Required.AllowNull)] public string StoreMachine { get; set; } - + [Newtonsoft.Json.JsonProperty("StorePath", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePath { get; set; } - + [Newtonsoft.Json.JsonProperty("StoreType", Required = Newtonsoft.Json.Required.AllowNull)] public int? StoreType { get; set; } - + [Newtonsoft.Json.JsonProperty("Alias", Required = Newtonsoft.Json.Required.AllowNull)] public string Alias { get; set; } - + [Newtonsoft.Json.JsonProperty("ChainLevel", Required = Newtonsoft.Json.Required.AllowNull)] public int? ChainLevel { get; set; } - + [Newtonsoft.Json.JsonProperty("CertStoreId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid CertStoreId { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DetailedKeyUsageModel + public partial class DetailedKeyUsageModel { [Newtonsoft.Json.JsonProperty("CrlSign", Required = Newtonsoft.Json.Required.AllowNull)] public bool? CrlSign { get; set; } - + [Newtonsoft.Json.JsonProperty("DataEncipherment", Required = Newtonsoft.Json.Required.AllowNull)] public bool? DataEncipherment { get; set; } - + [Newtonsoft.Json.JsonProperty("DecipherOnly", Required = Newtonsoft.Json.Required.AllowNull)] public bool? DecipherOnly { get; set; } - + [Newtonsoft.Json.JsonProperty("DigitalSignature", Required = Newtonsoft.Json.Required.AllowNull)] public bool? DigitalSignature { get; set; } - + [Newtonsoft.Json.JsonProperty("EncipherOnly", Required = Newtonsoft.Json.Required.AllowNull)] public bool? EncipherOnly { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyAgreement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? KeyAgreement { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyCertSign", Required = Newtonsoft.Json.Required.AllowNull)] public bool? KeyCertSign { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyEncipherment", Required = Newtonsoft.Json.Required.AllowNull)] public bool? KeyEncipherment { get; set; } - + [Newtonsoft.Json.JsonProperty("NonRepudiation", Required = Newtonsoft.Json.Required.AllowNull)] public bool? NonRepudiation { get; set; } - + [Newtonsoft.Json.JsonProperty("HexCode", Required = Newtonsoft.Json.Required.AllowNull)] public string HexCode { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedCertificateHistoryQuery + public partial class PagedCertificateHistoryQuery { /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (OperationStart, OperationEnd, UserName) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedCertificateHistoryQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Details of an operation done on a certificate. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateOperation + public partial class CertificateOperation { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public long Id { get; set; } - + [Newtonsoft.Json.JsonProperty("OperationStart", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset OperationStart { get; set; } - + [Newtonsoft.Json.JsonProperty("OperationEnd", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset OperationEnd { get; set; } - + [Newtonsoft.Json.JsonProperty("Username", Required = Newtonsoft.Json.Required.AllowNull)] public string Username { get; set; } - + [Newtonsoft.Json.JsonProperty("Comment", Required = Newtonsoft.Json.Required.AllowNull)] public string Comment { get; set; } - + [Newtonsoft.Json.JsonProperty("Action", Required = Newtonsoft.Json.Required.AllowNull)] public string Action { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateQueryRequest + public partial class CertificateQueryRequest { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateQueryRequestSortAscending SortAscending { get; set; } - + /// Select 'true' to include revoked certificates in the results [Newtonsoft.Json.JsonProperty("IncludeRevoked", Required = Newtonsoft.Json.Required.AllowNull)] public bool? IncludeRevoked { get; set; } - + /// Select 'true' to include expired certificates in the results [Newtonsoft.Json.JsonProperty("IncludeExpired", Required = Newtonsoft.Json.Required.AllowNull)] public bool? IncludeExpired { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class MetadataUpdateRequest + public partial class MetadataUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Metadata", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.IDictionary Metadata { get; set; } = new System.Collections.Generic.Dictionary(); - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class MetadataAllUpdateRequest + public partial class MetadataAllUpdateRequest { [Newtonsoft.Json.JsonProperty("Query", Required = Newtonsoft.Json.Required.AllowNull)] public string Query { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection CertificateIds { get; set; } - + [Newtonsoft.Json.JsonProperty("Metadata", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Metadata { get; set; } = new System.Collections.ObjectModel.Collection(); - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class MetadataSingleUpdateRequest + public partial class MetadataSingleUpdateRequest { [Newtonsoft.Json.JsonProperty("MetadataName", Required = Newtonsoft.Json.Required.AllowNull)] public string MetadataName { get; set; } - + [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + [Newtonsoft.Json.JsonProperty("OverwriteExisting", Required = Newtonsoft.Json.Required.AllowNull)] public bool? OverwriteExisting { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Class representing a request to import a certificate into Keyfactor Command [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateImportRequestModel + public partial class CertificateImportRequestModel { /// Base64-encoded certificate contents [Newtonsoft.Json.JsonProperty("Certificate", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Certificate { get; set; } - + /// Optional password associated if required for a PFX [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.AllowNull)] public string Password { get; set; } - + /// Colleciton of metadata to be associated with the imported certificate [Newtonsoft.Json.JsonProperty("Metadata", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Metadata { get; set; } - + /// List of the Keyfactor certificate store identifiers (GUID) with which the imported certificate should be associated [Newtonsoft.Json.JsonProperty("StoreIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection StoreIds { get; set; } - + /// List of the certificate store types with with the imported certificate should be associated [Newtonsoft.Json.JsonProperty("StoreTypes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection StoreTypes { get; set; } - + /// Schedule on which the certificate should be imported [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset Schedule { get; set; } - + /// Whether or not we should validate and import the certificate's metadata. [Newtonsoft.Json.JsonProperty("ImportMetadata", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ImportMetadata { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ManagementStoreType + public partial class ManagementStoreType { [Newtonsoft.Json.JsonProperty("StoreTypeId", Required = Newtonsoft.Json.Required.AllowNull)] public int? StoreTypeId { get; set; } - + [Newtonsoft.Json.JsonProperty("Alias", Required = Newtonsoft.Json.Required.AllowNull)] public string Alias { get; set; } - + [Newtonsoft.Json.JsonProperty("Overwrite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Overwrite { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Properties { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateImportResponseModel + public partial class CertificateImportResponseModel { [Newtonsoft.Json.JsonProperty("ImportStatus", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateImportResponseModelImportStatus ImportStatus { get; set; } - + [Newtonsoft.Json.JsonProperty("JobStatus", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateImportResponseModelJobStatus JobStatus { get; set; } - + [Newtonsoft.Json.JsonProperty("InvalidKeystores", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection InvalidKeystores { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string Thumbprint { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class InvalidKeystore + public partial class InvalidKeystore { [Newtonsoft.Json.JsonProperty("KeystoreId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid KeystoreId { get; set; } - + [Newtonsoft.Json.JsonProperty("ClientMachine", Required = Newtonsoft.Json.Required.AllowNull)] public string ClientMachine { get; set; } - + [Newtonsoft.Json.JsonProperty("StorePath", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePath { get; set; } - + [Newtonsoft.Json.JsonProperty("Alias", Required = Newtonsoft.Json.Required.AllowNull)] public string Alias { get; set; } - + [Newtonsoft.Json.JsonProperty("Reason", Required = Newtonsoft.Json.Required.AllowNull)] public InvalidKeystoreReason Reason { get; set; } - + [Newtonsoft.Json.JsonProperty("Explanation", Required = Newtonsoft.Json.Required.AllowNull)] public string Explanation { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RevokeCertificateRequest + public partial class RevokeCertificateRequest { [Newtonsoft.Json.JsonProperty("CertificateIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection CertificateIds { get; set; } - + [Newtonsoft.Json.JsonProperty("Reason", Required = Newtonsoft.Json.Required.AllowNull)] public RevokeCertificateRequestReason Reason { get; set; } - + [Newtonsoft.Json.JsonProperty("Comment", Required = Newtonsoft.Json.Required.AllowNull)] public string Comment { get; set; } - + [Newtonsoft.Json.JsonProperty("EffectiveDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset EffectiveDate { get; set; } - + [Newtonsoft.Json.JsonProperty("CollectionId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CollectionId { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RevocationResponse + public partial class RevocationResponse { [Newtonsoft.Json.JsonProperty("RevokedIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection RevokedIds { get; set; } - + [Newtonsoft.Json.JsonProperty("SuspendedCerts", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection SuspendedCerts { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SuspendedRevocationResponse + public partial class SuspendedRevocationResponse { [Newtonsoft.Json.JsonProperty("CertId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertId { get; set; } - + [Newtonsoft.Json.JsonProperty("WorkflowId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid WorkflowId { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AnalyzeCertificateRequest + public partial class AnalyzeCertificateRequest { [Newtonsoft.Json.JsonProperty("Certificate", Required = Newtonsoft.Json.Required.AllowNull)] public string Certificate { get; set; } - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.AllowNull)] public string Password { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateDetails + public partial class CertificateDetails { [Newtonsoft.Json.JsonProperty("IssuedDN", Required = Newtonsoft.Json.Required.Default)] public string IssuedDN { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuerDN", Required = Newtonsoft.Json.Required.Default)] public string IssuerDN { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] public string Thumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("NotAfter", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset NotAfter { get; set; } - + [Newtonsoft.Json.JsonProperty("NotBefore", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset NotBefore { get; set; } - + [Newtonsoft.Json.JsonProperty("Metadata", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Metadata { get; set; } - + [Newtonsoft.Json.JsonProperty("IsEndEntity", Required = Newtonsoft.Json.Required.AllowNull)] public bool? IsEndEntity { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateRecoveryRequest + public partial class CertificateRecoveryRequest { [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Password { get; set; } - + [Newtonsoft.Json.JsonProperty("CertID", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertID { get; set; } - + [Newtonsoft.Json.JsonProperty("SerialNumber", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string SerialNumber { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuerDN", Required = Newtonsoft.Json.Required.Default)] public string IssuerDN { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string Thumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("IncludeChain", Required = Newtonsoft.Json.Required.AllowNull)] public bool? IncludeChain { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RecoveryResponse + public partial class RecoveryResponse { [Newtonsoft.Json.JsonProperty("PFX", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public byte[] PFX { get; set; } - + [Newtonsoft.Json.JsonProperty("FileName", Required = Newtonsoft.Json.Required.AllowNull)] public string FileName { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateDownloadRequest + public partial class CertificateDownloadRequest { [Newtonsoft.Json.JsonProperty("CertID", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertID { get; set; } - + [Newtonsoft.Json.JsonProperty("SerialNumber", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string SerialNumber { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuerDN", Required = Newtonsoft.Json.Required.Default)] public string IssuerDN { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string Thumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("IncludeChain", Required = Newtonsoft.Json.Required.AllowNull)] public bool? IncludeChain { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateDownloadResponse + public partial class CertificateDownloadResponse { [Newtonsoft.Json.JsonProperty("Content", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public byte[] Content { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Information for revoking all certifictes in a query [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RevokeAllCertificatesRequest + public partial class RevokeAllCertificatesRequest { /// The query string of the certificates to revoke [Newtonsoft.Json.JsonProperty("Query", Required = Newtonsoft.Json.Required.AllowNull)] public string Query { get; set; } - + /// The Reason for revocation [Newtonsoft.Json.JsonProperty("Reason", Required = Newtonsoft.Json.Required.Always)] public RevokeAllCertificatesRequestReason Reason { get; set; } - + /// A comment for auditing purposes [Newtonsoft.Json.JsonProperty("Comment", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Comment { get; set; } - + /// The date when the certificates are to appear on the revocation list [Newtonsoft.Json.JsonProperty("EffectiveDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset EffectiveDate { get; set; } - + /// A flag telling the query to include revoked certificates [Newtonsoft.Json.JsonProperty("IncludeRevoked", Required = Newtonsoft.Json.Required.AllowNull)] public bool? IncludeRevoked { get; set; } - + /// A flag telling the query to include expired certificates [Newtonsoft.Json.JsonProperty("IncludeExpired", Required = Newtonsoft.Json.Required.AllowNull)] public bool? IncludeExpired { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateAuthorityResponse + public partial class CertificateAuthorityResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("LogicalName", Required = Newtonsoft.Json.Required.AllowNull)] public string LogicalName { get; set; } - + [Newtonsoft.Json.JsonProperty("HostName", Required = Newtonsoft.Json.Required.AllowNull)] public string HostName { get; set; } - + [Newtonsoft.Json.JsonProperty("Delegate", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Delegate { get; set; } - + [Newtonsoft.Json.JsonProperty("DelegateEnrollment", Required = Newtonsoft.Json.Required.AllowNull)] public bool? DelegateEnrollment { get; set; } - + [Newtonsoft.Json.JsonProperty("ForestRoot", Required = Newtonsoft.Json.Required.AllowNull)] public string ForestRoot { get; set; } - + [Newtonsoft.Json.JsonProperty("ConfigurationTenant", Required = Newtonsoft.Json.Required.AllowNull)] public string ConfigurationTenant { get; set; } - + [Newtonsoft.Json.JsonProperty("Remote", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Remote { get; set; } - + [Newtonsoft.Json.JsonProperty("Agent", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Agent { get; set; } - + [Newtonsoft.Json.JsonProperty("Standalone", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Standalone { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorThresholds", Required = Newtonsoft.Json.Required.AllowNull)] public bool? MonitorThresholds { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuanceMax", Required = Newtonsoft.Json.Required.AllowNull)] public int? IssuanceMax { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuanceMin", Required = Newtonsoft.Json.Required.AllowNull)] public int? IssuanceMin { get; set; } - + [Newtonsoft.Json.JsonProperty("DenialMax", Required = Newtonsoft.Json.Required.AllowNull)] public int? DenialMax { get; set; } - + [Newtonsoft.Json.JsonProperty("FailureMax", Required = Newtonsoft.Json.Required.AllowNull)] public int? FailureMax { get; set; } - + [Newtonsoft.Json.JsonProperty("RFCEnforcement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RFCEnforcement { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public string Properties { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowedEnrollmentTypes", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateAuthorityResponseAllowedEnrollmentTypes AllowedEnrollmentTypes { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyRetention", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateAuthorityResponseKeyRetention KeyRetention { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyRetentionDays", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyRetentionDays { get; set; } - + [Newtonsoft.Json.JsonProperty("ExplicitCredentials", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ExplicitCredentials { get; set; } - + [Newtonsoft.Json.JsonProperty("SubscriberTerms", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SubscriberTerms { get; set; } - + [Newtonsoft.Json.JsonProperty("ExplicitUser", Required = Newtonsoft.Json.Required.AllowNull)] public string ExplicitUser { get; set; } - + [Newtonsoft.Json.JsonProperty("ExplicitPassword", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorAPISecret ExplicitPassword { get; set; } - + [Newtonsoft.Json.JsonProperty("UseAllowedRequesters", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UseAllowedRequesters { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowedRequesters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection AllowedRequesters { get; set; } - + [Newtonsoft.Json.JsonProperty("FullScan", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule FullScan { get; set; } - + [Newtonsoft.Json.JsonProperty("IncrementalScan", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule IncrementalScan { get; set; } - + [Newtonsoft.Json.JsonProperty("ThresholdCheck", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule ThresholdCheck { get; set; } - + [Newtonsoft.Json.JsonProperty("CAType", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateAuthorityResponseCAType CAType { get; set; } - + [Newtonsoft.Json.JsonProperty("AuthCertificate", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateAuthorityAuthCertificate AuthCertificate { get; set; } - + [Newtonsoft.Json.JsonProperty("EnforceUniqueDN", Required = Newtonsoft.Json.Required.AllowNull)] public bool? EnforceUniqueDN { get; set; } - + [Newtonsoft.Json.JsonProperty("LastScan", Required = Newtonsoft.Json.Required.AllowNull)] public string LastScan { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class KeyfactorAPISecret + public partial class KeyfactorAPISecret { [Newtonsoft.Json.JsonProperty("SecretValue", Required = Newtonsoft.Json.Required.AllowNull)] public string SecretValue { get; set; } - + [Newtonsoft.Json.JsonProperty("Parameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Parameters { get; set; } - + [Newtonsoft.Json.JsonProperty("Provider", Required = Newtonsoft.Json.Required.AllowNull)] public int? Provider { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateAuthorityAuthCertificate + public partial class CertificateAuthorityAuthCertificate { [Newtonsoft.Json.JsonProperty("IssuedDN", Required = Newtonsoft.Json.Required.Default)] public string IssuedDN { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuerDN", Required = Newtonsoft.Json.Required.Default)] public string IssuerDN { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] public string Thumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("ExpirationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset ExpirationDate { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedCertificateAuthorityQuery + public partial class PagedCertificateAuthorityQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedCertificateAuthorityQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateAuthorityRequest + public partial class CertificateAuthorityRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("LogicalName", Required = Newtonsoft.Json.Required.AllowNull)] public string LogicalName { get; set; } - + [Newtonsoft.Json.JsonProperty("HostName", Required = Newtonsoft.Json.Required.AllowNull)] public string HostName { get; set; } - + [Newtonsoft.Json.JsonProperty("Delegate", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Delegate { get; set; } - + [Newtonsoft.Json.JsonProperty("DelegateEnrollment", Required = Newtonsoft.Json.Required.AllowNull)] public bool? DelegateEnrollment { get; set; } - + [Newtonsoft.Json.JsonProperty("ForestRoot", Required = Newtonsoft.Json.Required.AllowNull)] public string ForestRoot { get; set; } - + [Newtonsoft.Json.JsonProperty("ConfigurationTenant", Required = Newtonsoft.Json.Required.AllowNull)] public string ConfigurationTenant { get; set; } - + [Newtonsoft.Json.JsonProperty("Remote", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Remote { get; set; } - + [Newtonsoft.Json.JsonProperty("Agent", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Agent { get; set; } - + [Newtonsoft.Json.JsonProperty("Standalone", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Standalone { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorThresholds", Required = Newtonsoft.Json.Required.AllowNull)] public bool? MonitorThresholds { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuanceMax", Required = Newtonsoft.Json.Required.AllowNull)] public int? IssuanceMax { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuanceMin", Required = Newtonsoft.Json.Required.AllowNull)] public int? IssuanceMin { get; set; } - + [Newtonsoft.Json.JsonProperty("FailureMax", Required = Newtonsoft.Json.Required.AllowNull)] public int? FailureMax { get; set; } - + [Newtonsoft.Json.JsonProperty("RFCEnforcement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RFCEnforcement { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public string Properties { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowedEnrollmentTypes", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateAuthorityRequestAllowedEnrollmentTypes AllowedEnrollmentTypes { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyRetention", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateAuthorityRequestKeyRetention KeyRetention { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyRetentionDays", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyRetentionDays { get; set; } - + [Newtonsoft.Json.JsonProperty("ExplicitCredentials", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ExplicitCredentials { get; set; } - + [Newtonsoft.Json.JsonProperty("SubscriberTerms", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SubscriberTerms { get; set; } - + [Newtonsoft.Json.JsonProperty("ExplicitUser", Required = Newtonsoft.Json.Required.AllowNull)] public string ExplicitUser { get; set; } - + [Newtonsoft.Json.JsonProperty("ExplicitPassword", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorAPISecret ExplicitPassword { get; set; } - + [Newtonsoft.Json.JsonProperty("UseAllowedRequesters", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UseAllowedRequesters { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowedRequesters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection AllowedRequesters { get; set; } - + [Newtonsoft.Json.JsonProperty("FullScan", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule FullScan { get; set; } - + [Newtonsoft.Json.JsonProperty("IncrementalScan", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule IncrementalScan { get; set; } - + [Newtonsoft.Json.JsonProperty("ThresholdCheck", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule ThresholdCheck { get; set; } - + [Newtonsoft.Json.JsonProperty("AuthCertificatePassword", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorAPISecret AuthCertificatePassword { get; set; } - + [Newtonsoft.Json.JsonProperty("AuthCertificate", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorAPISecret AuthCertificate { get; set; } - + [Newtonsoft.Json.JsonProperty("CAType", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateAuthorityRequestCAType CAType { get; set; } - + [Newtonsoft.Json.JsonProperty("EnforceUniqueDN", Required = Newtonsoft.Json.Required.AllowNull)] public bool? EnforceUniqueDN { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// A DTO for CA tests. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateAuthorityTestResponse + public partial class CertificateAuthorityTestResponse { /// Whether the test succeeded or failed. [Newtonsoft.Json.JsonProperty("Success", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Success { get; set; } - + /// The message returned by the test. [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CRLRequestModel + public partial class CRLRequestModel { [Newtonsoft.Json.JsonProperty("CertificateAuthorityLogicalName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string CertificateAuthorityLogicalName { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateAuthorityHostName", Required = Newtonsoft.Json.Required.AllowNull)] public string CertificateAuthorityHostName { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateQuery + public partial class CertificateQuery { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("Automated", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Automated { get; set; } - + [Newtonsoft.Json.JsonProperty("Content", Required = Newtonsoft.Json.Required.AllowNull)] public string Content { get; set; } - + [Newtonsoft.Json.JsonProperty("DuplicationField", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateQueryDuplicationField DuplicationField { get; set; } - + [Newtonsoft.Json.JsonProperty("ShowOnDashboard", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ShowOnDashboard { get; set; } - + [Newtonsoft.Json.JsonProperty("Favorite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Favorite { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// A query result set with parameters to define the format of records [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedQuery + public partial class PagedQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateCollectionUpdateRequest + public partial class CertificateCollectionUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] [System.ComponentModel.DataAnnotations.StringLength(100)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(1000)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("Query", Required = Newtonsoft.Json.Required.AllowNull)] public string Query { get; set; } - + [Newtonsoft.Json.JsonProperty("DuplicationField", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateCollectionUpdateRequestDuplicationField DuplicationField { get; set; } - + [Newtonsoft.Json.JsonProperty("ShowOnDashboard", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ShowOnDashboard { get; set; } - + [Newtonsoft.Json.JsonProperty("Favorite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Favorite { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateCollectionResponse + public partial class CertificateCollectionResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("Content", Required = Newtonsoft.Json.Required.AllowNull)] public string Content { get; set; } - + [Newtonsoft.Json.JsonProperty("Query", Required = Newtonsoft.Json.Required.AllowNull)] public string Query { get; set; } - + [Newtonsoft.Json.JsonProperty("DuplicationField", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateCollectionResponseDuplicationField DuplicationField { get; set; } - + [Newtonsoft.Json.JsonProperty("ShowOnDashboard", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ShowOnDashboard { get; set; } - + [Newtonsoft.Json.JsonProperty("Favorite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Favorite { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateCollectionCreateRequest + public partial class CertificateCollectionCreateRequest { [Newtonsoft.Json.JsonProperty("CopyFromId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CopyFromId { get; set; } - + [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] [System.ComponentModel.DataAnnotations.StringLength(100)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(1000)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("Query", Required = Newtonsoft.Json.Required.AllowNull)] public string Query { get; set; } - + [Newtonsoft.Json.JsonProperty("DuplicationField", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateCollectionCreateRequestDuplicationField DuplicationField { get; set; } - + [Newtonsoft.Json.JsonProperty("ShowOnDashboard", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ShowOnDashboard { get; set; } - + [Newtonsoft.Json.JsonProperty("Favorite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Favorite { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateCollectionCopyRequest + public partial class CertificateCollectionCopyRequest { [Newtonsoft.Json.JsonProperty("CopyFromId", Required = Newtonsoft.Json.Required.Always)] public int? CopyFromId { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] [System.ComponentModel.DataAnnotations.StringLength(100)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(1000)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("Query", Required = Newtonsoft.Json.Required.AllowNull)] public string Query { get; set; } - + [Newtonsoft.Json.JsonProperty("DuplicationField", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateCollectionCopyRequestDuplicationField DuplicationField { get; set; } - + [Newtonsoft.Json.JsonProperty("ShowOnDashboard", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ShowOnDashboard { get; set; } - + [Newtonsoft.Json.JsonProperty("Favorite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Favorite { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CollectionRolePermissions + public partial class CollectionRolePermissions { [Newtonsoft.Json.JsonProperty("RoleId", Required = Newtonsoft.Json.Required.AllowNull)] public int? RoleId { get; set; } - + [Newtonsoft.Json.JsonProperty("Permissions", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Permissions { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedCertificateStoreQuery + public partial class PagedCertificateStoreQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedCertificateStoreQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ReenrollmentStatus + public partial class ReenrollmentStatus { [Newtonsoft.Json.JsonProperty("Data", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Data { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentId { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("JobProperties", Required = Newtonsoft.Json.Required.AllowNull)] public string JobProperties { get; set; } - + [Newtonsoft.Json.JsonProperty("CustomAliasAllowed", Required = Newtonsoft.Json.Required.AllowNull)] public int? CustomAliasAllowed { get; set; } - + [Newtonsoft.Json.JsonProperty("EntryParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EntryParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreTypeEntryParameter + public partial class CertificateStoreTypeEntryParameter { [Newtonsoft.Json.JsonProperty("StoreTypeId", Required = Newtonsoft.Json.Required.AllowNull)] public int? StoreTypeId { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Type", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateStoreTypeEntryParameterType Type { get; set; } - + [Newtonsoft.Json.JsonProperty("RequiredWhen", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary RequiredWhen { get; set; } - + [Newtonsoft.Json.JsonProperty("DependsOn", Required = Newtonsoft.Json.Required.AllowNull)] public string DependsOn { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("Options", Required = Newtonsoft.Json.Required.AllowNull)] public string Options { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreUpdateRequest + public partial class CertificateStoreUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("ContainerId", Required = Newtonsoft.Json.Required.AllowNull)] public int? ContainerId { get; set; } - + [Newtonsoft.Json.JsonProperty("CreateIfMissing", Required = Newtonsoft.Json.Required.AllowNull)] public bool? CreateIfMissing { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public string Properties { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentId { get; set; } - + [Newtonsoft.Json.JsonProperty("InventorySchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule InventorySchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorAPISecret Password { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreCreateRequest + public partial class CertificateStoreCreateRequest { [Newtonsoft.Json.JsonProperty("ContainerId", Required = Newtonsoft.Json.Required.AllowNull)] public int? ContainerId { get; set; } - + [Newtonsoft.Json.JsonProperty("ClientMachine", Required = Newtonsoft.Json.Required.AllowNull)] public string ClientMachine { get; set; } - + [Newtonsoft.Json.JsonProperty("Storepath", Required = Newtonsoft.Json.Required.AllowNull)] public string Storepath { get; set; } - + [Newtonsoft.Json.JsonProperty("CertStoreType", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertStoreType { get; set; } - + [Newtonsoft.Json.JsonProperty("CreateIfMissing", Required = Newtonsoft.Json.Required.AllowNull)] public bool? CreateIfMissing { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public string Properties { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentId { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentAssigned", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AgentAssigned { get; set; } - + [Newtonsoft.Json.JsonProperty("InventorySchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule InventorySchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorAPISecret Password { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedCertificateStoreInventoryQuery + public partial class PagedCertificateStoreInventoryQuery { /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (OperationStart, OperationEnd, UserName) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedCertificateStoreInventoryQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreInventory + public partial class CertificateStoreInventory { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Certificates", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Certificates { get; set; } - + [Newtonsoft.Json.JsonProperty("Parameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Parameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreInventoryCertificates + public partial class CertificateStoreInventoryCertificates { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuedDN", Required = Newtonsoft.Json.Required.Default)] public string IssuedDN { get; set; } - + [Newtonsoft.Json.JsonProperty("SerialNumber", Required = Newtonsoft.Json.Required.AllowNull)] public string SerialNumber { get; set; } - + [Newtonsoft.Json.JsonProperty("NotBefore", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset NotBefore { get; set; } - + [Newtonsoft.Json.JsonProperty("NotAfter", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset NotAfter { get; set; } - + [Newtonsoft.Json.JsonProperty("SigningAlgorithm", Required = Newtonsoft.Json.Required.AllowNull)] public string SigningAlgorithm { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuerDN", Required = Newtonsoft.Json.Required.Default)] public string IssuerDN { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] public string Thumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("CertStoreInventoryItemId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertStoreInventoryItemId { get; set; } - + [Newtonsoft.Json.JsonProperty("Metadata", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Metadata { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedCertificateStoreServerQuery + public partial class PagedCertificateStoreServerQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedCertificateStoreServerQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreUpdateServerRequest + public partial class CertificateStoreUpdateServerRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Username", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public KeyfactorAPISecret Username { get; set; } = new KeyfactorAPISecret(); - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public KeyfactorAPISecret Password { get; set; } = new KeyfactorAPISecret(); - + [Newtonsoft.Json.JsonProperty("UseSSL", Required = Newtonsoft.Json.Required.Always)] public bool? UseSSL { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Container", Required = Newtonsoft.Json.Required.AllowNull)] public int? Container { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreServerResponse + public partial class CertificateStoreServerResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("UseSSL", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UseSSL { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerType", Required = Newtonsoft.Json.Required.AllowNull)] public int? ServerType { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreCreateServerRequest + public partial class CertificateStoreCreateServerRequest { [Newtonsoft.Json.JsonProperty("Username", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public KeyfactorAPISecret Username { get; set; } = new KeyfactorAPISecret(); - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public KeyfactorAPISecret Password { get; set; } = new KeyfactorAPISecret(); - + [Newtonsoft.Json.JsonProperty("UseSSL", Required = Newtonsoft.Json.Required.Always)] public bool? UseSSL { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerType", Required = Newtonsoft.Json.Required.Always)] public int? ServerType { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Container", Required = Newtonsoft.Json.Required.AllowNull)] public int? Container { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// NewPassword must be provided and be of type string or KeyfactorAPISecret. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertStoreNewPasswordRequest + public partial class CertStoreNewPasswordRequest { [Newtonsoft.Json.JsonProperty("CertStoreId", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid CertStoreId { get; set; } - + [Newtonsoft.Json.JsonProperty("NewPassword", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public object NewPassword { get; set; } = new object(); - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DiscoveryJobRequest + public partial class DiscoveryJobRequest { [Newtonsoft.Json.JsonProperty("ClientMachine", Required = Newtonsoft.Json.Required.AllowNull)] public string ClientMachine { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentId { get; set; } - + [Newtonsoft.Json.JsonProperty("Type", Required = Newtonsoft.Json.Required.Always)] public int? Type { get; set; } - + [Newtonsoft.Json.JsonProperty("JobExecutionTimestamp", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset JobExecutionTimestamp { get; set; } - + [Newtonsoft.Json.JsonProperty("Dirs", Required = Newtonsoft.Json.Required.AllowNull)] public string Dirs { get; set; } - + [Newtonsoft.Json.JsonProperty("IgnoredDirs", Required = Newtonsoft.Json.Required.AllowNull)] public string IgnoredDirs { get; set; } - + [Newtonsoft.Json.JsonProperty("Extensions", Required = Newtonsoft.Json.Required.AllowNull)] public string Extensions { get; set; } - + [Newtonsoft.Json.JsonProperty("NamePatterns", Required = Newtonsoft.Json.Required.AllowNull)] public string NamePatterns { get; set; } - + [Newtonsoft.Json.JsonProperty("SymLinks", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SymLinks { get; set; } - + [Newtonsoft.Json.JsonProperty("Compatibility", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Compatibility { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerUsername", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorAPISecret ServerUsername { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerPassword", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorAPISecret ServerPassword { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerUseSsl", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ServerUseSsl { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ContainerAssignment + public partial class ContainerAssignment { [Newtonsoft.Json.JsonProperty("CertStoreContainerId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertStoreContainerId { get; set; } - + [Newtonsoft.Json.JsonProperty("NewContainerName", Required = Newtonsoft.Json.Required.AllowNull)] public string NewContainerName { get; set; } - + [Newtonsoft.Json.JsonProperty("NewContainerType", Required = Newtonsoft.Json.Required.AllowNull)] public int? NewContainerType { get; set; } - + [Newtonsoft.Json.JsonProperty("KeystoreIds", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection KeystoreIds { get; set; } = new System.Collections.ObjectModel.Collection(); - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreApproveRequest + public partial class CertificateStoreApproveRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("ContainerId", Required = Newtonsoft.Json.Required.AllowNull)] public int? ContainerId { get; set; } - + [Newtonsoft.Json.JsonProperty("CertStoreType", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertStoreType { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public string Properties { get; set; } - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorAPISecret Password { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertStoresSchedule + public partial class CertStoresSchedule { [Newtonsoft.Json.JsonProperty("StoreIds", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection StoreIds { get; set; } = new System.Collections.ObjectModel.Collection(); - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule Schedule { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ReenrollmentRequest + public partial class ReenrollmentRequest { [Newtonsoft.Json.JsonProperty("KeystoreId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid KeystoreId { get; set; } - + [Newtonsoft.Json.JsonProperty("SubjectName", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectName { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentGuid", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentGuid { get; set; } - + [Newtonsoft.Json.JsonProperty("Alias", Required = Newtonsoft.Json.Required.AllowNull)] public string Alias { get; set; } - + [Newtonsoft.Json.JsonProperty("JobProperties", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary JobProperties { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateAuthority", Required = Newtonsoft.Json.Required.AllowNull)] public string CertificateAuthority { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateTemplate", Required = Newtonsoft.Json.Required.AllowNull)] public string CertificateTemplate { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AddCertificateRequest + public partial class AddCertificateRequest { [Newtonsoft.Json.JsonProperty("CertificateId", Required = Newtonsoft.Json.Required.Always)] public int? CertificateId { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateStores", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection CertificateStores { get; set; } = new System.Collections.ObjectModel.Collection(); - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public KeyfactorSchedule Schedule { get; set; } = new KeyfactorSchedule(); - + [Newtonsoft.Json.JsonProperty("CollectionId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CollectionId { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreEntry + public partial class CertificateStoreEntry { [Newtonsoft.Json.JsonProperty("CertificateStoreId", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid CertificateStoreId { get; set; } - + [Newtonsoft.Json.JsonProperty("Alias", Required = Newtonsoft.Json.Required.AllowNull)] public string Alias { get; set; } - + [Newtonsoft.Json.JsonProperty("JobFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary JobFields { get; set; } - + [Newtonsoft.Json.JsonProperty("Overwrite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Overwrite { get; set; } - + [Newtonsoft.Json.JsonProperty("EntryPassword", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorAPISecret EntryPassword { get; set; } - + /// The PFX password. [Newtonsoft.Json.JsonProperty("PfxPassword", Required = Newtonsoft.Json.Required.AllowNull)] public string PfxPassword { get; set; } - + [Newtonsoft.Json.JsonProperty("IncludePrivateKey", Required = Newtonsoft.Json.Required.AllowNull)] public bool? IncludePrivateKey { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RemoveCertificateRequest + public partial class RemoveCertificateRequest { [Newtonsoft.Json.JsonProperty("CertificateStores", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection CertificateStores { get; set; } = new System.Collections.ObjectModel.Collection(); - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public KeyfactorSchedule Schedule { get; set; } = new KeyfactorSchedule(); - + [Newtonsoft.Json.JsonProperty("CollectionId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CollectionId { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateLocationSpecifier + public partial class CertificateLocationSpecifier { [Newtonsoft.Json.JsonProperty("Alias", Required = Newtonsoft.Json.Required.AllowNull)] public string Alias { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateStoreId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid CertificateStoreId { get; set; } - + [Newtonsoft.Json.JsonProperty("JobFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary JobFields { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedCertificateStoreContainerQuery + public partial class PagedCertificateStoreContainerQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedCertificateStoreContainerQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreContainerListResponse + public partial class CertificateStoreContainerListResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("OverwriteSchedules", Required = Newtonsoft.Json.Required.AllowNull)] public bool? OverwriteSchedules { get; set; } - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public string Schedule { get; set; } - + [Newtonsoft.Json.JsonProperty("CertStoreType", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertStoreType { get; set; } - + [Newtonsoft.Json.JsonProperty("StoreCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? StoreCount { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStore + public partial class CertificateStore { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("ContainerId", Required = Newtonsoft.Json.Required.AllowNull)] public int? ContainerId { get; set; } - + [Newtonsoft.Json.JsonProperty("ClientMachine", Required = Newtonsoft.Json.Required.AllowNull)] public string ClientMachine { get; set; } - + [Newtonsoft.Json.JsonProperty("Storepath", Required = Newtonsoft.Json.Required.AllowNull)] public string Storepath { get; set; } - + [Newtonsoft.Json.JsonProperty("CertStoreInventoryJobId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid CertStoreInventoryJobId { get; set; } - + [Newtonsoft.Json.JsonProperty("CertStoreType", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertStoreType { get; set; } - + [Newtonsoft.Json.JsonProperty("Approved", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Approved { get; set; } - + [Newtonsoft.Json.JsonProperty("CreateIfMissing", Required = Newtonsoft.Json.Required.AllowNull)] public bool? CreateIfMissing { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public string Properties { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentId { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentAssigned", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AgentAssigned { get; set; } - + [Newtonsoft.Json.JsonProperty("ContainerName", Required = Newtonsoft.Json.Required.AllowNull)] public string ContainerName { get; set; } - + [Newtonsoft.Json.JsonProperty("InventorySchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule InventorySchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("ReenrollmentStatus", Required = Newtonsoft.Json.Required.AllowNull)] public ReenrollmentStatus ReenrollmentStatus { get; set; } - + [Newtonsoft.Json.JsonProperty("SetNewPasswordAllowed", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SetNewPasswordAllowed { get; set; } - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.AllowNull)] public string Password { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreTypeResponse + public partial class CertificateStoreTypeResponse { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("ShortName", Required = Newtonsoft.Json.Required.AllowNull)] public string ShortName { get; set; } - + [Newtonsoft.Json.JsonProperty("Capability", Required = Newtonsoft.Json.Required.AllowNull)] public string Capability { get; set; } - + [Newtonsoft.Json.JsonProperty("StoreType", Required = Newtonsoft.Json.Required.AllowNull)] public int? StoreType { get; set; } - + [Newtonsoft.Json.JsonProperty("ImportType", Required = Newtonsoft.Json.Required.AllowNull)] public int? ImportType { get; set; } - + [Newtonsoft.Json.JsonProperty("LocalStore", Required = Newtonsoft.Json.Required.AllowNull)] public bool? LocalStore { get; set; } - + [Newtonsoft.Json.JsonProperty("SupportedOperations", Required = Newtonsoft.Json.Required.AllowNull)] public CertStoreTypeSupportedOperations SupportedOperations { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Properties { get; set; } - + [Newtonsoft.Json.JsonProperty("EntryParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EntryParameters { get; set; } - + [Newtonsoft.Json.JsonProperty("PasswordOptions", Required = Newtonsoft.Json.Required.AllowNull)] public CertStoreTypePasswordOptions PasswordOptions { get; set; } - + [Newtonsoft.Json.JsonProperty("StorePathType", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePathType { get; set; } - + [Newtonsoft.Json.JsonProperty("StorePathValue", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePathValue { get; set; } - + [Newtonsoft.Json.JsonProperty("PrivateKeyAllowed", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateStoreTypeResponsePrivateKeyAllowed PrivateKeyAllowed { get; set; } - + [Newtonsoft.Json.JsonProperty("JobProperties", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection JobProperties { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerRequired", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ServerRequired { get; set; } - + [Newtonsoft.Json.JsonProperty("PowerShell", Required = Newtonsoft.Json.Required.AllowNull)] public bool? PowerShell { get; set; } - + [Newtonsoft.Json.JsonProperty("BlueprintAllowed", Required = Newtonsoft.Json.Required.AllowNull)] public bool? BlueprintAllowed { get; set; } - + [Newtonsoft.Json.JsonProperty("CustomAliasAllowed", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateStoreTypeResponseCustomAliasAllowed CustomAliasAllowed { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerRegistration", Required = Newtonsoft.Json.Required.AllowNull)] public int? ServerRegistration { get; set; } - + [Newtonsoft.Json.JsonProperty("InventoryEndpoint", Required = Newtonsoft.Json.Required.AllowNull)] public string InventoryEndpoint { get; set; } - + [Newtonsoft.Json.JsonProperty("InventoryJobType", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid InventoryJobType { get; set; } - + [Newtonsoft.Json.JsonProperty("ManagementJobType", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid ManagementJobType { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoveryJobType", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid DiscoveryJobType { get; set; } - + [Newtonsoft.Json.JsonProperty("EnrollmentJobType", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid EnrollmentJobType { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertStoreTypeSupportedOperations + public partial class CertStoreTypeSupportedOperations { [Newtonsoft.Json.JsonProperty("Add", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Add { get; set; } - + [Newtonsoft.Json.JsonProperty("Create", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Create { get; set; } - + [Newtonsoft.Json.JsonProperty("Discovery", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Discovery { get; set; } - + [Newtonsoft.Json.JsonProperty("Enrollment", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Enrollment { get; set; } - + [Newtonsoft.Json.JsonProperty("Remove", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Remove { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreTypeProperty + public partial class CertificateStoreTypeProperty { [Newtonsoft.Json.JsonProperty("StoreTypeId", Required = Newtonsoft.Json.Required.AllowNull)] public int? StoreTypeId { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Type", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateStoreTypePropertyType Type { get; set; } - + [Newtonsoft.Json.JsonProperty("DependsOn", Required = Newtonsoft.Json.Required.AllowNull)] public string DependsOn { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("Required", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Required { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertStoreTypePasswordOptions + public partial class CertStoreTypePasswordOptions { [Newtonsoft.Json.JsonProperty("EntrySupported", Required = Newtonsoft.Json.Required.AllowNull)] public bool? EntrySupported { get; set; } - + [Newtonsoft.Json.JsonProperty("StoreRequired", Required = Newtonsoft.Json.Required.AllowNull)] public bool? StoreRequired { get; set; } - + [Newtonsoft.Json.JsonProperty("Style", Required = Newtonsoft.Json.Required.AllowNull)] public CertStoreTypePasswordOptionsStyle Style { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreTypeUpdateRequest + public partial class CertificateStoreTypeUpdateRequest { [Newtonsoft.Json.JsonProperty("StoreType", Required = Newtonsoft.Json.Required.Always)] public int? StoreType { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("ShortName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] [System.ComponentModel.DataAnnotations.StringLength(10)] public string ShortName { get; set; } - + [Newtonsoft.Json.JsonProperty("Capability", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(220)] public string Capability { get; set; } - + [Newtonsoft.Json.JsonProperty("LocalStore", Required = Newtonsoft.Json.Required.AllowNull)] public bool? LocalStore { get; set; } - + [Newtonsoft.Json.JsonProperty("SupportedOperations", Required = Newtonsoft.Json.Required.AllowNull)] public CertStoreTypeSupportedOperations SupportedOperations { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Properties { get; set; } - + [Newtonsoft.Json.JsonProperty("PasswordOptions", Required = Newtonsoft.Json.Required.AllowNull)] public CertStoreTypePasswordOptions PasswordOptions { get; set; } - + [Newtonsoft.Json.JsonProperty("StorePathType", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePathType { get; set; } - + [Newtonsoft.Json.JsonProperty("StorePathValue", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePathValue { get; set; } - + [Newtonsoft.Json.JsonProperty("PrivateKeyAllowed", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateStoreTypeUpdateRequestPrivateKeyAllowed PrivateKeyAllowed { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerRequired", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ServerRequired { get; set; } - + [Newtonsoft.Json.JsonProperty("PowerShell", Required = Newtonsoft.Json.Required.AllowNull)] public bool? PowerShell { get; set; } - + [Newtonsoft.Json.JsonProperty("BlueprintAllowed", Required = Newtonsoft.Json.Required.AllowNull)] public bool? BlueprintAllowed { get; set; } - + [Newtonsoft.Json.JsonProperty("CustomAliasAllowed", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateStoreTypeUpdateRequestCustomAliasAllowed CustomAliasAllowed { get; set; } - + [Newtonsoft.Json.JsonProperty("EntryParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EntryParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateStoreTypeCreationRequest + public partial class CertificateStoreTypeCreationRequest { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("ShortName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] [System.ComponentModel.DataAnnotations.StringLength(10)] public string ShortName { get; set; } - + [Newtonsoft.Json.JsonProperty("Capability", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(220)] public string Capability { get; set; } - + [Newtonsoft.Json.JsonProperty("LocalStore", Required = Newtonsoft.Json.Required.AllowNull)] public bool? LocalStore { get; set; } - + [Newtonsoft.Json.JsonProperty("SupportedOperations", Required = Newtonsoft.Json.Required.AllowNull)] public CertStoreTypeSupportedOperations SupportedOperations { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Properties { get; set; } - + [Newtonsoft.Json.JsonProperty("PasswordOptions", Required = Newtonsoft.Json.Required.AllowNull)] public CertStoreTypePasswordOptions PasswordOptions { get; set; } - + [Newtonsoft.Json.JsonProperty("StorePathType", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePathType { get; set; } - + [Newtonsoft.Json.JsonProperty("StorePathValue", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePathValue { get; set; } - + [Newtonsoft.Json.JsonProperty("PrivateKeyAllowed", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateStoreTypeCreationRequestPrivateKeyAllowed PrivateKeyAllowed { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerRequired", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ServerRequired { get; set; } - + [Newtonsoft.Json.JsonProperty("PowerShell", Required = Newtonsoft.Json.Required.AllowNull)] public bool? PowerShell { get; set; } - + [Newtonsoft.Json.JsonProperty("BlueprintAllowed", Required = Newtonsoft.Json.Required.AllowNull)] public bool? BlueprintAllowed { get; set; } - + [Newtonsoft.Json.JsonProperty("CustomAliasAllowed", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateStoreTypeCreationRequestCustomAliasAllowed CustomAliasAllowed { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerRegistration", Required = Newtonsoft.Json.Required.AllowNull)] public int? ServerRegistration { get; set; } - + [Newtonsoft.Json.JsonProperty("InventoryEndpoint", Required = Newtonsoft.Json.Required.AllowNull)] public string InventoryEndpoint { get; set; } - + [Newtonsoft.Json.JsonProperty("InventoryJobTypeId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid InventoryJobTypeId { get; set; } - + [Newtonsoft.Json.JsonProperty("ManagementJobTypeId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid ManagementJobTypeId { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoveryJobTypeId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid DiscoveryJobTypeId { get; set; } - + [Newtonsoft.Json.JsonProperty("EnrollmentJobTypeId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid EnrollmentJobTypeId { get; set; } - + [Newtonsoft.Json.JsonProperty("EntryParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EntryParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CSRGenerationResponseModel + public partial class CSRGenerationResponseModel { [Newtonsoft.Json.JsonProperty("CSRFilePath", Required = Newtonsoft.Json.Required.AllowNull)] public string CSRFilePath { get; set; } - + [Newtonsoft.Json.JsonProperty("CSRText", Required = Newtonsoft.Json.Required.AllowNull)] public string CSRText { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedPendingCSRQuery + public partial class PagedPendingCSRQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedPendingCSRQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PendingCSRResponse + public partial class PendingCSRResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("CSR", Required = Newtonsoft.Json.Required.AllowNull)] public string CSR { get; set; } - + [Newtonsoft.Json.JsonProperty("RequestTime", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset RequestTime { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Subject { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CSRGenerationRequest + public partial class CSRGenerationRequest { /// Subject for the requested certificate [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Subject { get; set; } - + /// Certificate key type [RSA, ECC] [Newtonsoft.Json.JsonProperty("KeyType", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string KeyType { get; set; } - + /// Size of the certificate key (ex: RSA 1024, 2048, 4096/ECC 256, 384, 521) [Newtonsoft.Json.JsonProperty("KeyLength", Required = Newtonsoft.Json.Required.Always)] public int? KeyLength { get; set; } - + [Newtonsoft.Json.JsonProperty("Template", Required = Newtonsoft.Json.Required.AllowNull)] public string Template { get; set; } - + [Newtonsoft.Json.JsonProperty("SANs", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary> SANs { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CSRContents + public partial class CSRContents { [Newtonsoft.Json.JsonProperty("CSR", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string CSR { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class JobTypeResponse + public partial class JobTypeResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("JobTypeName", Required = Newtonsoft.Json.Required.AllowNull)] public string JobTypeName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("JobTypeFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection JobTypeFields { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class JobTypeFieldResponse + public partial class JobTypeFieldResponse { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Type", Required = Newtonsoft.Json.Required.AllowNull)] public JobTypeFieldResponseType Type { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("Required", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Required { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class JobTypeUpdateRequest + public partial class JobTypeUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("JobTypeName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string JobTypeName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("JobTypeFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection JobTypeFields { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class JobTypeFieldRequest + public partial class JobTypeFieldRequest { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Type", Required = Newtonsoft.Json.Required.Always)] public JobTypeFieldRequestType Type { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("Required", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Required { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class JobTypeCreateRequest + public partial class JobTypeCreateRequest { [Newtonsoft.Json.JsonProperty("JobTypeName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string JobTypeName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("JobTypeFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection JobTypeFields { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DeniedAlertDefinitionResponse + public partial class DeniedAlertDefinitionResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.AllowNull)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("Template", Required = Newtonsoft.Json.Required.AllowNull)] public AlertTemplateResponse Template { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerResponse RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AlertTemplateResponse + public partial class AlertTemplateResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("ForestRoot", Required = Newtonsoft.Json.Required.AllowNull)] public string ForestRoot { get; set; } - + [Newtonsoft.Json.JsonProperty("ConfigurationTenant", Required = Newtonsoft.Json.Required.AllowNull)] public string ConfigurationTenant { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RegisteredEventHandlerResponse + public partial class RegisteredEventHandlerResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("UseHandler", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UseHandler { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class EventHandlerParameterResponse + public partial class EventHandlerParameterResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Key", Required = Newtonsoft.Json.Required.AllowNull)] public string Key { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("ParameterType", Required = Newtonsoft.Json.Required.AllowNull)] public string ParameterType { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedDeniedAlertQuery + public partial class PagedDeniedAlertQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedDeniedAlertQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DeniedAlertUpdateRequest + public partial class DeniedAlertUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.Range(1, 2147483647)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerRequest RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RegisteredEventHandlerRequest + public partial class RegisteredEventHandlerRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("UseHandler", Required = Newtonsoft.Json.Required.Always)] public bool? UseHandler { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class EventHandlerParameterRequest + public partial class EventHandlerParameterRequest { [Newtonsoft.Json.JsonProperty("Key", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Key { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("ParameterType", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string ParameterType { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DeniedAlertCreationRequest + public partial class DeniedAlertCreationRequest { [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerRequest RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateEnrollmentSettingsResponse + public partial class TemplateEnrollmentSettingsResponse { /// The regular expressions to use for validation during enrollment. [Newtonsoft.Json.JsonProperty("TemplateRegexes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection TemplateRegexes { get; set; } - + /// The default values to use during enrollment. [Newtonsoft.Json.JsonProperty("TemplateDefaults", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection TemplateDefaults { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplatePolicy", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateEnrollmentPolicyResponse TemplatePolicy { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateEnrollmentRegexResponse + public partial class TemplateEnrollmentRegexResponse { /// The subject part to apply the regular expression to. [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectPart { get; set; } - + /// The regular expression to apply to the subject part. [Newtonsoft.Json.JsonProperty("Regex", Required = Newtonsoft.Json.Required.AllowNull)] public string Regex { get; set; } - + /// The error message to show when the regex validation fails. [Newtonsoft.Json.JsonProperty("Error", Required = Newtonsoft.Json.Required.AllowNull)] public string Error { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateEnrollmentDefaultResponse + public partial class TemplateEnrollmentDefaultResponse { /// The subject part to apply the default to. [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectPart { get; set; } - + /// The value to apply by default. [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateEnrollmentPolicyResponse + public partial class TemplateEnrollmentPolicyResponse { /// The allowed RSA key sizes. [Newtonsoft.Json.JsonProperty("RSAValidKeySizes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection RSAValidKeySizes { get; set; } - + /// The allowed ECC curves. [Newtonsoft.Json.JsonProperty("ECCValidCurves", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ECCValidCurves { get; set; } - + /// Whether or not keys can be reused. [Newtonsoft.Json.JsonProperty("AllowKeyReuse", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AllowKeyReuse { get; set; } - + /// Whether or not wildcards can be used. [Newtonsoft.Json.JsonProperty("AllowWildcards", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AllowWildcards { get; set; } - + /// Whether or not RFC 2818 compliance should be enforced. [Newtonsoft.Json.JsonProperty("RFCEnforcement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RFCEnforcement { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class EnrollmentTemplateCAResponse + public partial class EnrollmentTemplateCAResponse { [Newtonsoft.Json.JsonProperty("Templates", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Templates { get; set; } - + [Newtonsoft.Json.JsonProperty("StandaloneCAs", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection StandaloneCAs { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class EnrollmentTemplate + public partial class EnrollmentTemplate { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Forest", Required = Newtonsoft.Json.Required.AllowNull)] public string Forest { get; set; } - + [Newtonsoft.Json.JsonProperty("KeySize", Required = Newtonsoft.Json.Required.AllowNull)] public string KeySize { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyType", Required = Newtonsoft.Json.Required.AllowNull)] public string KeyType { get; set; } - + [Newtonsoft.Json.JsonProperty("RequiresApproval", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RequiresApproval { get; set; } - + [Newtonsoft.Json.JsonProperty("RFCEnforcement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RFCEnforcement { get; set; } - + [Newtonsoft.Json.JsonProperty("CAs", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection CAs { get; set; } - + [Newtonsoft.Json.JsonProperty("EnrollmentFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EnrollmentFields { get; set; } - + [Newtonsoft.Json.JsonProperty("MetadataFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection MetadataFields { get; set; } - + [Newtonsoft.Json.JsonProperty("Regexes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Regexes { get; set; } - + [Newtonsoft.Json.JsonProperty("ExtendedKeyUsages", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ExtendedKeyUsages { get; set; } - + [Newtonsoft.Json.JsonProperty("Curve", Required = Newtonsoft.Json.Required.Default)] public string Curve { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class EnrollmentCA + public partial class EnrollmentCA { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("RFCEnforcement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RFCEnforcement { get; set; } - + [Newtonsoft.Json.JsonProperty("SubscriberTerms", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SubscriberTerms { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateEnrollmentField + public partial class TemplateEnrollmentField { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Options", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Options { get; set; } - + [Newtonsoft.Json.JsonProperty("DataType", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateEnrollmentFieldDataType DataType { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateMetadataField + public partial class TemplateMetadataField { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("MetadataId", Required = Newtonsoft.Json.Required.AllowNull)] public int? MetadataId { get; set; } - + [Newtonsoft.Json.JsonProperty("Validation", Required = Newtonsoft.Json.Required.AllowNull)] public string Validation { get; set; } - + [Newtonsoft.Json.JsonProperty("Enrollment", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateMetadataFieldEnrollment Enrollment { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateRegex + public partial class TemplateRegex { [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectPart { get; set; } - + [Newtonsoft.Json.JsonProperty("Regex", Required = Newtonsoft.Json.Required.AllowNull)] public string Regex { get; set; } - + [Newtonsoft.Json.JsonProperty("Error", Required = Newtonsoft.Json.Required.AllowNull)] public string Error { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ExtendedKeyUsage + public partial class ExtendedKeyUsage { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Oid", Required = Newtonsoft.Json.Required.AllowNull)] public string Oid { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AvailableRenewal + public partial class AvailableRenewal { [Newtonsoft.Json.JsonProperty("AvailableRenewalType", Required = Newtonsoft.Json.Required.AllowNull)] public AvailableRenewalType AvailableRenewalType { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CSREnrollmentRequest + public partial class CSREnrollmentRequest { [Newtonsoft.Json.JsonProperty("CSR", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string CSR { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateAuthority", Required = Newtonsoft.Json.Required.AllowNull)] public string CertificateAuthority { get; set; } - + [Newtonsoft.Json.JsonProperty("IncludeChain", Required = Newtonsoft.Json.Required.AllowNull)] public bool? IncludeChain { get; set; } - + [Newtonsoft.Json.JsonProperty("Metadata", Required = Newtonsoft.Json.Required.AllowNull)] public object Metadata { get; set; } - + [Newtonsoft.Json.JsonProperty("AdditionalEnrollmentFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary AdditionalEnrollmentFields { get; set; } - + [Newtonsoft.Json.JsonProperty("Timestamp", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset Timestamp { get; set; } - + [Newtonsoft.Json.JsonProperty("Template", Required = Newtonsoft.Json.Required.AllowNull)] public string Template { get; set; } - + [Newtonsoft.Json.JsonProperty("SANs", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary> SANs { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CSREnrollmentResponse + public partial class CSREnrollmentResponse { [Newtonsoft.Json.JsonProperty("CertificateInformation", Required = Newtonsoft.Json.Required.AllowNull)] public Pkcs10CertificateResponse CertificateInformation { get; set; } - + [Newtonsoft.Json.JsonProperty("Metadata", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Metadata { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class Pkcs10CertificateResponse + public partial class Pkcs10CertificateResponse { [Newtonsoft.Json.JsonProperty("SerialNumber", Required = Newtonsoft.Json.Required.AllowNull)] public string SerialNumber { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuerDN", Required = Newtonsoft.Json.Required.Default)] public string IssuerDN { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] public string Thumbprint { get; set; } - + /// The integer ID of the certificate in the keyfactor database, if Issued [Newtonsoft.Json.JsonProperty("KeyfactorID", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyfactorID { get; set; } - + [Newtonsoft.Json.JsonProperty("Certificates", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Certificates { get; set; } - + /// The integer id of the certificate request in the Keyfactor database, if one exists. [Newtonsoft.Json.JsonProperty("KeyfactorRequestId", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyfactorRequestId { get; set; } - + [Newtonsoft.Json.JsonProperty("RequestDisposition", Required = Newtonsoft.Json.Required.AllowNull)] public string RequestDisposition { get; set; } - + [Newtonsoft.Json.JsonProperty("DispositionMessage", Required = Newtonsoft.Json.Required.AllowNull)] public string DispositionMessage { get; set; } - + [Newtonsoft.Json.JsonProperty("EnrollmentContext", Required = Newtonsoft.Json.Required.Default)] public System.Collections.Generic.IDictionary EnrollmentContext { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PFXEnrollmentRequest + public partial class PFXEnrollmentRequest { [Newtonsoft.Json.JsonProperty("CustomFriendlyName", Required = Newtonsoft.Json.Required.AllowNull)] public string CustomFriendlyName { get; set; } - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.AllowNull)] public string Password { get; set; } - + [Newtonsoft.Json.JsonProperty("PopulateMissingValuesFromAD", Required = Newtonsoft.Json.Required.AllowNull)] public bool? PopulateMissingValuesFromAD { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.AllowNull)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("IncludeChain", Required = Newtonsoft.Json.Required.AllowNull)] public bool? IncludeChain { get; set; } - + [Newtonsoft.Json.JsonProperty("RenewalCertificateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? RenewalCertificateId { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateAuthority", Required = Newtonsoft.Json.Required.AllowNull)] public string CertificateAuthority { get; set; } - + [Newtonsoft.Json.JsonProperty("Metadata", Required = Newtonsoft.Json.Required.AllowNull)] public object Metadata { get; set; } - + [Newtonsoft.Json.JsonProperty("AdditionalEnrollmentFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary AdditionalEnrollmentFields { get; set; } - + [Newtonsoft.Json.JsonProperty("Timestamp", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset Timestamp { get; set; } - + [Newtonsoft.Json.JsonProperty("Template", Required = Newtonsoft.Json.Required.AllowNull)] public string Template { get; set; } - + [Newtonsoft.Json.JsonProperty("SANs", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary> SANs { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PFXEnrollmentResponse + public partial class PFXEnrollmentResponse { [Newtonsoft.Json.JsonProperty("CertificateInformation", Required = Newtonsoft.Json.Required.AllowNull)] public Pkcs12CertificateResponse CertificateInformation { get; set; } - + [Newtonsoft.Json.JsonProperty("Metadata", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Metadata { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class Pkcs12CertificateResponse + public partial class Pkcs12CertificateResponse { [Newtonsoft.Json.JsonProperty("SerialNumber", Required = Newtonsoft.Json.Required.AllowNull)] public string SerialNumber { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuerDN", Required = Newtonsoft.Json.Required.Default)] public string IssuerDN { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] public string Thumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyfactorId", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyfactorId { get; set; } - + [Newtonsoft.Json.JsonProperty("Pkcs12Blob", Required = Newtonsoft.Json.Required.AllowNull)] public string Pkcs12Blob { get; set; } - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.AllowNull)] public string Password { get; set; } - + /// The integer id of the certificate request in the Keyfactor database, if one exists. [Newtonsoft.Json.JsonProperty("KeyfactorRequestId", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyfactorRequestId { get; set; } - + [Newtonsoft.Json.JsonProperty("RequestDisposition", Required = Newtonsoft.Json.Required.AllowNull)] public string RequestDisposition { get; set; } - + [Newtonsoft.Json.JsonProperty("DispositionMessage", Required = Newtonsoft.Json.Required.AllowNull)] public string DispositionMessage { get; set; } - + [Newtonsoft.Json.JsonProperty("EnrollmentContext", Required = Newtonsoft.Json.Required.Default)] public System.Collections.Generic.IDictionary EnrollmentContext { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class EnrollmentManagementRequest + public partial class EnrollmentManagementRequest { /// The stores to add the certificate to. Values in this collection will take precedence over values in {Models.Enrollment.SpecificEnrollmentManagementRequest.StoreTypes}. [Newtonsoft.Json.JsonProperty("Stores", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Stores { get; set; } - + [Newtonsoft.Json.JsonProperty("StoreIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection StoreIds { get; set; } - + [Newtonsoft.Json.JsonProperty("StoreTypes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection StoreTypes { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertificateId { get; set; } - + [Newtonsoft.Json.JsonProperty("RequestId", Required = Newtonsoft.Json.Required.AllowNull)] public int? RequestId { get; set; } - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Password { get; set; } - + [Newtonsoft.Json.JsonProperty("JobTime", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset JobTime { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ManagementStoreRequest + public partial class ManagementStoreRequest { [Newtonsoft.Json.JsonProperty("StoreId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid StoreId { get; set; } - + [Newtonsoft.Json.JsonProperty("Alias", Required = Newtonsoft.Json.Required.AllowNull)] public string Alias { get; set; } - + [Newtonsoft.Json.JsonProperty("Overwrite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Overwrite { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Properties { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ManagementStoreTypeRequest + public partial class ManagementStoreTypeRequest { [Newtonsoft.Json.JsonProperty("StoreTypeId", Required = Newtonsoft.Json.Required.AllowNull)] public int? StoreTypeId { get; set; } - + [Newtonsoft.Json.JsonProperty("Alias", Required = Newtonsoft.Json.Required.AllowNull)] public string Alias { get; set; } - + [Newtonsoft.Json.JsonProperty("Overwrite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Overwrite { get; set; } - + [Newtonsoft.Json.JsonProperty("Properties", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Properties { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class EnrollmentManagementResponse + public partial class EnrollmentManagementResponse { [Newtonsoft.Json.JsonProperty("SuccessfulStores", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection SuccessfulStores { get; set; } - + [Newtonsoft.Json.JsonProperty("FailedStores", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection FailedStores { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ExistingEnrollmentManagementRequest + public partial class ExistingEnrollmentManagementRequest { [Newtonsoft.Json.JsonProperty("ExistingCertificateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? ExistingCertificateId { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertificateId { get; set; } - + [Newtonsoft.Json.JsonProperty("RequestId", Required = Newtonsoft.Json.Required.AllowNull)] public int? RequestId { get; set; } - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.AllowNull)] public string Password { get; set; } - + [Newtonsoft.Json.JsonProperty("JobTime", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset JobTime { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RenewalRequest + public partial class RenewalRequest { [Newtonsoft.Json.JsonProperty("CertificateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertificateId { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] public string Thumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateAuthority", Required = Newtonsoft.Json.Required.AllowNull)] public string CertificateAuthority { get; set; } - + [Newtonsoft.Json.JsonProperty("Template", Required = Newtonsoft.Json.Required.AllowNull)] public string Template { get; set; } - + [Newtonsoft.Json.JsonProperty("Timestamp", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset Timestamp { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RenewalResponse + public partial class RenewalResponse { [Newtonsoft.Json.JsonProperty("KeyfactorId", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyfactorId { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyfactorRequestId", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyfactorRequestId { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] public string Thumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("SerialNumber", Required = Newtonsoft.Json.Required.AllowNull)] public string SerialNumber { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuerDN", Required = Newtonsoft.Json.Required.Default)] public string IssuerDN { get; set; } - + [Newtonsoft.Json.JsonProperty("RequestDisposition", Required = Newtonsoft.Json.Required.AllowNull)] public string RequestDisposition { get; set; } - + [Newtonsoft.Json.JsonProperty("DispositionMessage", Required = Newtonsoft.Json.Required.AllowNull)] public string DispositionMessage { get; set; } - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.AllowNull)] public string Password { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ExpirationAlertDefinitionResponse + public partial class ExpirationAlertDefinitionResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.AllowNull)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("ExpirationWarningDays", Required = Newtonsoft.Json.Required.AllowNull)] public int? ExpirationWarningDays { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateQuery", Required = Newtonsoft.Json.Required.AllowNull)] public AlertCertificateQueryResponse CertificateQuery { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerResponse RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AlertCertificateQueryResponse + public partial class AlertCertificateQueryResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AlertScheduleResponse + public partial class AlertScheduleResponse { [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule Schedule { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AlertScheduleRequest + public partial class AlertScheduleRequest { [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule Schedule { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedExpirationAlertQuery + public partial class PagedExpirationAlertQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedExpirationAlertQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ExpirationAlertUpdateRequest + public partial class ExpirationAlertUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.Range(1, 2147483647)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("ExpirationWarningDays", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Range(1, 2147483647)] public int? ExpirationWarningDays { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateQueryId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertificateQueryId { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerRequest RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ExpirationAlertCreationRequest + public partial class ExpirationAlertCreationRequest { [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("ExpirationWarningDays", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Range(1, 2147483647)] public int? ExpirationWarningDays { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateQueryId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertificateQueryId { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerRequest RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ExpirationAlertTestRequest + public partial class ExpirationAlertTestRequest { [Newtonsoft.Json.JsonProperty("AlertId", Required = Newtonsoft.Json.Required.AllowNull)] public int? AlertId { get; set; } - + [Newtonsoft.Json.JsonProperty("EvaluationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset EvaluationDate { get; set; } - + [Newtonsoft.Json.JsonProperty("PreviousEvaluationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset PreviousEvaluationDate { get; set; } - + [Newtonsoft.Json.JsonProperty("SendAlerts", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SendAlerts { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ExpirationAlertTestResponse + public partial class ExpirationAlertTestResponse { [Newtonsoft.Json.JsonProperty("ExpirationAlerts", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ExpirationAlerts { get; set; } - + [Newtonsoft.Json.JsonProperty("AlertBuildResult", Required = Newtonsoft.Json.Required.AllowNull)] public ExpirationAlertTestResponseAlertBuildResult AlertBuildResult { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ExpirationAlertResponse + public partial class ExpirationAlertResponse { [Newtonsoft.Json.JsonProperty("CAName", Required = Newtonsoft.Json.Required.AllowNull)] public string CAName { get; set; } - + [Newtonsoft.Json.JsonProperty("CARow", Required = Newtonsoft.Json.Required.AllowNull)] public long CARow { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuedCN", Required = Newtonsoft.Json.Required.Default)] public string IssuedCN { get; set; } - + [Newtonsoft.Json.JsonProperty("Expiry", Required = Newtonsoft.Json.Required.AllowNull)] public string Expiry { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.AllowNull)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("SendDate", Required = Newtonsoft.Json.Required.AllowNull)] public string SendDate { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ExpirationAlertTestAllRequest + public partial class ExpirationAlertTestAllRequest { [Newtonsoft.Json.JsonProperty("EvaluationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset EvaluationDate { get; set; } - + [Newtonsoft.Json.JsonProperty("PreviousEvaluationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset PreviousEvaluationDate { get; set; } - + [Newtonsoft.Json.JsonProperty("SendAlerts", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SendAlerts { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class IssuedAlertDefinitionResponse + public partial class IssuedAlertDefinitionResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.AllowNull)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("Template", Required = Newtonsoft.Json.Required.AllowNull)] public AlertTemplateResponse Template { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerResponse RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedIssuedAlertQuery + public partial class PagedIssuedAlertQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedIssuedAlertQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class IssuedAlertUpdateRequest + public partial class IssuedAlertUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.Range(1, 2147483647)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerRequest RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class IssuedAlertCreationRequest + public partial class IssuedAlertCreationRequest { [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerRequest RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class UnmanagedKeyResponse + public partial class UnmanagedKeyResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Fingerprint", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string Fingerprint { get; set; } - + [Newtonsoft.Json.JsonProperty("PublicKey", Required = Newtonsoft.Json.Required.AllowNull)] public string PublicKey { get; set; } - + [Newtonsoft.Json.JsonProperty("PrivateKey", Required = Newtonsoft.Json.Required.AllowNull)] public string PrivateKey { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyType", Required = Newtonsoft.Json.Required.AllowNull)] public string KeyType { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyLength", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyLength { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoveredDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset DiscoveredDate { get; set; } - + [Newtonsoft.Json.JsonProperty("Email", Required = Newtonsoft.Json.Required.AllowNull)] public string Email { get; set; } - + [Newtonsoft.Json.JsonProperty("Comments", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Comments { get; set; } - + [Newtonsoft.Json.JsonProperty("Username", Required = Newtonsoft.Json.Required.AllowNull)] public string Username { get; set; } - + [Newtonsoft.Json.JsonProperty("LogonCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? LogonCount { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class KeyResponse + public partial class KeyResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Fingerprint", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string Fingerprint { get; set; } - + [Newtonsoft.Json.JsonProperty("PublicKey", Required = Newtonsoft.Json.Required.AllowNull)] public string PublicKey { get; set; } - + [Newtonsoft.Json.JsonProperty("PrivateKey", Required = Newtonsoft.Json.Required.AllowNull)] public string PrivateKey { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyType", Required = Newtonsoft.Json.Required.AllowNull)] public string KeyType { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyLength", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyLength { get; set; } - + [Newtonsoft.Json.JsonProperty("CreationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset CreationDate { get; set; } - + [Newtonsoft.Json.JsonProperty("StaleDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset StaleDate { get; set; } - + [Newtonsoft.Json.JsonProperty("Email", Required = Newtonsoft.Json.Required.AllowNull)] public string Email { get; set; } - + [Newtonsoft.Json.JsonProperty("Comments", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Comments { get; set; } - + [Newtonsoft.Json.JsonProperty("LogonCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? LogonCount { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class KeyUpdateRequest + public partial class KeyUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Email", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Email { get; set; } - + [Newtonsoft.Json.JsonProperty("Comment", Required = Newtonsoft.Json.Required.AllowNull)] public string Comment { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class KeyGenerationRequest + public partial class KeyGenerationRequest { [Newtonsoft.Json.JsonProperty("KeyType", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string KeyType { get; set; } - + [Newtonsoft.Json.JsonProperty("PrivateKeyFormat", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string PrivateKeyFormat { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyLength", Required = Newtonsoft.Json.Required.Always)] public int? KeyLength { get; set; } - + [Newtonsoft.Json.JsonProperty("Email", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Email { get; set; } - + [Newtonsoft.Json.JsonProperty("Password", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Password { get; set; } - + [Newtonsoft.Json.JsonProperty("Comment", Required = Newtonsoft.Json.Required.AllowNull)] public string Comment { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedSSHUnmanagedKeyQuery + public partial class PagedSSHUnmanagedKeyQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedSSHUnmanagedKeyQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class KeyRotationAlertDefinitionResponse + public partial class KeyRotationAlertDefinitionResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.AllowNull)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipient", Required = Newtonsoft.Json.Required.AllowNull)] public string Recipient { get; set; } - + [Newtonsoft.Json.JsonProperty("RotationWarningDays", Required = Newtonsoft.Json.Required.AllowNull)] public int? RotationWarningDays { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerResponse RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedKeyRotationAlertQuery + public partial class PagedKeyRotationAlertQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedKeyRotationAlertQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class KeyRotationAlertUpdateRequest + public partial class KeyRotationAlertUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.Range(1, 2147483647)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("RotationWarningDays", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Range(0, 2147483647)] public int? RotationWarningDays { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerRequest RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class KeyRotationAlertCreationRequest + public partial class KeyRotationAlertCreationRequest { [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("RotationWarningDays", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Range(0, 2147483647)] public int? RotationWarningDays { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerRequest RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class KeyRotationAlertTestRequest + public partial class KeyRotationAlertTestRequest { [Newtonsoft.Json.JsonProperty("AlertId", Required = Newtonsoft.Json.Required.AllowNull)] public int? AlertId { get; set; } - + [Newtonsoft.Json.JsonProperty("EvaluationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset EvaluationDate { get; set; } - + [Newtonsoft.Json.JsonProperty("PreviousEvaluationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset PreviousEvaluationDate { get; set; } - + [Newtonsoft.Json.JsonProperty("SendAlerts", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SendAlerts { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class KeyRotationAlertTestResponse + public partial class KeyRotationAlertTestResponse { [Newtonsoft.Json.JsonProperty("KeyRotationAlerts", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection KeyRotationAlerts { get; set; } - + [Newtonsoft.Json.JsonProperty("AlertBuildResult", Required = Newtonsoft.Json.Required.AllowNull)] public KeyRotationAlertTestResponseAlertBuildResult AlertBuildResult { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class KeyRotationAlertResponse + public partial class KeyRotationAlertResponse { [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.AllowNull)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipient", Required = Newtonsoft.Json.Required.AllowNull)] public string Recipient { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class KeyRotationAlertTestAllRequest + public partial class KeyRotationAlertTestAllRequest { [Newtonsoft.Json.JsonProperty("EvaluationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset EvaluationDate { get; set; } - + [Newtonsoft.Json.JsonProperty("PreviousEvaluationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset PreviousEvaluationDate { get; set; } - + [Newtonsoft.Json.JsonProperty("SendAlerts", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SendAlerts { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class LicenseResponse + public partial class LicenseResponse { [Newtonsoft.Json.JsonProperty("KeyfactorVersion", Required = Newtonsoft.Json.Required.AllowNull)] public string KeyfactorVersion { get; set; } - + [Newtonsoft.Json.JsonProperty("LicenseData", Required = Newtonsoft.Json.Required.AllowNull)] public License LicenseData { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class License + public partial class License { [Newtonsoft.Json.JsonProperty("LicenseId", Required = Newtonsoft.Json.Required.AllowNull)] public string LicenseId { get; set; } - + [Newtonsoft.Json.JsonProperty("Customer", Required = Newtonsoft.Json.Required.AllowNull)] public LicensedCustomer Customer { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuedDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset IssuedDate { get; set; } - + [Newtonsoft.Json.JsonProperty("ExpirationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset ExpirationDate { get; set; } - + [Newtonsoft.Json.JsonProperty("LicensedProducts", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection LicensedProducts { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class LicensedCustomer + public partial class LicensedCustomer { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public string Id { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class LicensedProduct + public partial class LicensedProduct { [Newtonsoft.Json.JsonProperty("ProductId", Required = Newtonsoft.Json.Required.AllowNull)] public string ProductId { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("MajorRev", Required = Newtonsoft.Json.Required.AllowNull)] public string MajorRev { get; set; } - + [Newtonsoft.Json.JsonProperty("MinorRev", Required = Newtonsoft.Json.Required.AllowNull)] public string MinorRev { get; set; } - + [Newtonsoft.Json.JsonProperty("LicensedFeatures", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection LicensedFeatures { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class LicensedFeature + public partial class LicensedFeature { [Newtonsoft.Json.JsonProperty("FeatureID", Required = Newtonsoft.Json.Required.AllowNull)] public string FeatureID { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Enabled", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Enabled { get; set; } - + [Newtonsoft.Json.JsonProperty("Quantity", Required = Newtonsoft.Json.Required.AllowNull)] public int? Quantity { get; set; } - + [Newtonsoft.Json.JsonProperty("ExpirationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset ExpirationDate { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class LogonResponse + public partial class LogonResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Username", Required = Newtonsoft.Json.Required.AllowNull)] public string Username { get; set; } - + [Newtonsoft.Json.JsonProperty("LastLogon", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset LastLogon { get; set; } - + [Newtonsoft.Json.JsonProperty("Server", Required = Newtonsoft.Json.Required.AllowNull)] public ServerResponse Server { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyCount { get; set; } - + [Newtonsoft.Json.JsonProperty("Access", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Access { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServerResponse + public partial class ServerResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentId { get; set; } - + [Newtonsoft.Json.JsonProperty("Hostname", Required = Newtonsoft.Json.Required.AllowNull)] public string Hostname { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerGroupId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid ServerGroupId { get; set; } - + [Newtonsoft.Json.JsonProperty("SyncSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule SyncSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("UnderManagement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UnderManagement { get; set; } - + [Newtonsoft.Json.JsonProperty("Owner", Required = Newtonsoft.Json.Required.AllowNull)] public SshUserResponse Owner { get; set; } - + [Newtonsoft.Json.JsonProperty("GroupName", Required = Newtonsoft.Json.Required.AllowNull)] public string GroupName { get; set; } - + [Newtonsoft.Json.JsonProperty("Orchestrator", Required = Newtonsoft.Json.Required.AllowNull)] public string Orchestrator { get; set; } - + [Newtonsoft.Json.JsonProperty("Port", Required = Newtonsoft.Json.Required.AllowNull)] public int? Port { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SshUserResponse + public partial class SshUserResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Key", Required = Newtonsoft.Json.Required.AllowNull)] public KeyResponse Key { get; set; } - + [Newtonsoft.Json.JsonProperty("Username", Required = Newtonsoft.Json.Required.AllowNull)] public string Username { get; set; } - + [Newtonsoft.Json.JsonProperty("LogonIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection LogonIds { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedSSHLogonQuery + public partial class PagedSSHLogonQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedSSHLogonQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class LogonQueryResponse + public partial class LogonQueryResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Username", Required = Newtonsoft.Json.Required.AllowNull)] public string Username { get; set; } - + [Newtonsoft.Json.JsonProperty("LastLogon", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset LastLogon { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerId", Required = Newtonsoft.Json.Required.AllowNull)] public int? ServerId { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerName", Required = Newtonsoft.Json.Required.AllowNull)] public string ServerName { get; set; } - + [Newtonsoft.Json.JsonProperty("GroupName", Required = Newtonsoft.Json.Required.AllowNull)] public string GroupName { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyCount { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerUnderManagement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? ServerUnderManagement { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class LogonCreationRequest + public partial class LogonCreationRequest { [Newtonsoft.Json.JsonProperty("Username", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Username { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerId", Required = Newtonsoft.Json.Required.Always)] public int? ServerId { get; set; } - + [Newtonsoft.Json.JsonProperty("UserIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection UserIds { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class LogonAccessRequest + public partial class LogonAccessRequest { [Newtonsoft.Json.JsonProperty("LogonId", Required = Newtonsoft.Json.Required.Always)] public int? LogonId { get; set; } - + [Newtonsoft.Json.JsonProperty("UserIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection UserIds { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class LogonUserAccessResponse + public partial class LogonUserAccessResponse { [Newtonsoft.Json.JsonProperty("LogonId", Required = Newtonsoft.Json.Required.AllowNull)] public int? LogonId { get; set; } - + [Newtonsoft.Json.JsonProperty("LogonName", Required = Newtonsoft.Json.Required.AllowNull)] public string LogonName { get; set; } - + [Newtonsoft.Json.JsonProperty("Users", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Users { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class MacEnrollmentAPIModel + public partial class MacEnrollmentAPIModel { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Enabled", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Enabled { get; set; } - + [Newtonsoft.Json.JsonProperty("Interval", Required = Newtonsoft.Json.Required.AllowNull)] public int? Interval { get; set; } - + [Newtonsoft.Json.JsonProperty("UseMetadata", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UseMetadata { get; set; } - + [Newtonsoft.Json.JsonProperty("MetadataField", Required = Newtonsoft.Json.Required.AllowNull)] public string MetadataField { get; set; } - + [Newtonsoft.Json.JsonProperty("MetadataValue", Required = Newtonsoft.Json.Required.AllowNull)] public string MetadataValue { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class MetadataFieldTypeModel + public partial class MetadataFieldTypeModel { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("DataType", Required = Newtonsoft.Json.Required.AllowNull)] public MetadataFieldTypeModelDataType DataType { get; set; } - + [Newtonsoft.Json.JsonProperty("Hint", Required = Newtonsoft.Json.Required.AllowNull)] public string Hint { get; set; } - + [Newtonsoft.Json.JsonProperty("Validation", Required = Newtonsoft.Json.Required.AllowNull)] public string Validation { get; set; } - + [Newtonsoft.Json.JsonProperty("Enrollment", Required = Newtonsoft.Json.Required.AllowNull)] public MetadataFieldTypeModelEnrollment Enrollment { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Options", Required = Newtonsoft.Json.Required.AllowNull)] public string Options { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayOrder", Required = Newtonsoft.Json.Required.AllowNull)] public int? DisplayOrder { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedMetadataFieldQuery + public partial class PagedMetadataFieldQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedMetadataFieldQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class MetadataFieldUpdateRequest + public partial class MetadataFieldUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Range(0, 2147483647)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] [System.ComponentModel.DataAnnotations.StringLength(256)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] [System.ComponentModel.DataAnnotations.StringLength(1024)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("DataType", Required = Newtonsoft.Json.Required.Always)] public MetadataFieldUpdateRequestDataType DataType { get; set; } - + [Newtonsoft.Json.JsonProperty("Hint", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(128)] public string Hint { get; set; } - + [Newtonsoft.Json.JsonProperty("Validation", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(4000)] public string Validation { get; set; } - + [Newtonsoft.Json.JsonProperty("Enrollment", Required = Newtonsoft.Json.Required.AllowNull)] public MetadataFieldUpdateRequestEnrollment Enrollment { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(1024)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Options", Required = Newtonsoft.Json.Required.AllowNull)] public string Options { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(100)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayOrder", Required = Newtonsoft.Json.Required.AllowNull)] public int? DisplayOrder { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class MetadataFieldResponse + public partial class MetadataFieldResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("DataType", Required = Newtonsoft.Json.Required.AllowNull)] public MetadataFieldResponseDataType DataType { get; set; } - + [Newtonsoft.Json.JsonProperty("Hint", Required = Newtonsoft.Json.Required.AllowNull)] public string Hint { get; set; } - + [Newtonsoft.Json.JsonProperty("Validation", Required = Newtonsoft.Json.Required.AllowNull)] public string Validation { get; set; } - + [Newtonsoft.Json.JsonProperty("Enrollment", Required = Newtonsoft.Json.Required.AllowNull)] public MetadataFieldResponseEnrollment Enrollment { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Options", Required = Newtonsoft.Json.Required.AllowNull)] public string Options { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayOrder", Required = Newtonsoft.Json.Required.AllowNull)] public int? DisplayOrder { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class MetadataFieldCreateRequest + public partial class MetadataFieldCreateRequest { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] [System.ComponentModel.DataAnnotations.StringLength(256)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] [System.ComponentModel.DataAnnotations.StringLength(1024)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("DataType", Required = Newtonsoft.Json.Required.Always)] public MetadataFieldCreateRequestDataType DataType { get; set; } - + [Newtonsoft.Json.JsonProperty("Hint", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(128)] public string Hint { get; set; } - + [Newtonsoft.Json.JsonProperty("Validation", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(4000)] public string Validation { get; set; } - + [Newtonsoft.Json.JsonProperty("Enrollment", Required = Newtonsoft.Json.Required.AllowNull)] public MetadataFieldCreateRequestEnrollment Enrollment { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(1024)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Options", Required = Newtonsoft.Json.Required.AllowNull)] public string Options { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.StringLength(100)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayOrder", Required = Newtonsoft.Json.Required.AllowNull)] public int? DisplayOrder { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RevocationMonitoringDefinitionResponse + public partial class RevocationMonitoringDefinitionResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("EndpointType", Required = Newtonsoft.Json.Required.AllowNull)] public string EndpointType { get; set; } - + [Newtonsoft.Json.JsonProperty("Location", Required = Newtonsoft.Json.Required.AllowNull)] public string Location { get; set; } - + [Newtonsoft.Json.JsonProperty("Email", Required = Newtonsoft.Json.Required.AllowNull)] public EmailResponse Email { get; set; } - + [Newtonsoft.Json.JsonProperty("Dashboard", Required = Newtonsoft.Json.Required.AllowNull)] public DashboardResponse Dashboard { get; set; } - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule Schedule { get; set; } - + [Newtonsoft.Json.JsonProperty("OCSPParameters", Required = Newtonsoft.Json.Required.AllowNull)] public OCSPParametersResponse OCSPParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class EmailResponse + public partial class EmailResponse { [Newtonsoft.Json.JsonProperty("EnableReminder", Required = Newtonsoft.Json.Required.AllowNull)] public bool? EnableReminder { get; set; } - + [Newtonsoft.Json.JsonProperty("WarningDays", Required = Newtonsoft.Json.Required.AllowNull)] public int? WarningDays { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DashboardResponse + public partial class DashboardResponse { [Newtonsoft.Json.JsonProperty("Show", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Show { get; set; } - + [Newtonsoft.Json.JsonProperty("WarningHours", Required = Newtonsoft.Json.Required.AllowNull)] public int? WarningHours { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class OCSPParametersResponse + public partial class OCSPParametersResponse { [Newtonsoft.Json.JsonProperty("CertificateAuthorityId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertificateAuthorityId { get; set; } - + [Newtonsoft.Json.JsonProperty("AuthorityName", Required = Newtonsoft.Json.Required.AllowNull)] public string AuthorityName { get; set; } - + [Newtonsoft.Json.JsonProperty("AuthorityNameId", Required = Newtonsoft.Json.Required.AllowNull)] public string AuthorityNameId { get; set; } - + [Newtonsoft.Json.JsonProperty("AuthorityKeyId", Required = Newtonsoft.Json.Required.AllowNull)] public string AuthorityKeyId { get; set; } - + [Newtonsoft.Json.JsonProperty("SampleSerialNumber", Required = Newtonsoft.Json.Required.AllowNull)] public string SampleSerialNumber { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedRevocationMonitoringQuery + public partial class PagedRevocationMonitoringQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedRevocationMonitoringQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RevocationMonitoringUpdateRequest + public partial class RevocationMonitoringUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.Range(1, 2147483647)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("EndpointType", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string EndpointType { get; set; } - + [Newtonsoft.Json.JsonProperty("Location", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Location { get; set; } - + [Newtonsoft.Json.JsonProperty("Email", Required = Newtonsoft.Json.Required.AllowNull)] public EmailRequest Email { get; set; } - + [Newtonsoft.Json.JsonProperty("Dashboard", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public DashboardRequest Dashboard { get; set; } = new DashboardRequest(); - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule Schedule { get; set; } - + [Newtonsoft.Json.JsonProperty("OCSPParameters", Required = Newtonsoft.Json.Required.AllowNull)] public OCSPParametersRequest OCSPParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class EmailRequest + public partial class EmailRequest { [Newtonsoft.Json.JsonProperty("EnableReminder", Required = Newtonsoft.Json.Required.AllowNull)] public bool? EnableReminder { get; set; } - + [Newtonsoft.Json.JsonProperty("WarningDays", Required = Newtonsoft.Json.Required.AllowNull)] public int? WarningDays { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DashboardRequest + public partial class DashboardRequest { [Newtonsoft.Json.JsonProperty("Show", Required = Newtonsoft.Json.Required.Always)] public bool? Show { get; set; } - + [Newtonsoft.Json.JsonProperty("WarningHours", Required = Newtonsoft.Json.Required.AllowNull)] public int? WarningHours { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class OCSPParametersRequest + public partial class OCSPParametersRequest { [Newtonsoft.Json.JsonProperty("CertificateContents", Required = Newtonsoft.Json.Required.AllowNull)] public string CertificateContents { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateAuthorityId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertificateAuthorityId { get; set; } - + [Newtonsoft.Json.JsonProperty("AuthorityName", Required = Newtonsoft.Json.Required.AllowNull)] public string AuthorityName { get; set; } - + [Newtonsoft.Json.JsonProperty("AuthorityNameId", Required = Newtonsoft.Json.Required.AllowNull)] public string AuthorityNameId { get; set; } - + [Newtonsoft.Json.JsonProperty("AuthorityKeyId", Required = Newtonsoft.Json.Required.AllowNull)] public string AuthorityKeyId { get; set; } - + [Newtonsoft.Json.JsonProperty("SampleSerialNumber", Required = Newtonsoft.Json.Required.AllowNull)] public string SampleSerialNumber { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RevocationMonitoringCreationRequest + public partial class RevocationMonitoringCreationRequest { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("EndpointType", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string EndpointType { get; set; } - + [Newtonsoft.Json.JsonProperty("Location", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Location { get; set; } - + [Newtonsoft.Json.JsonProperty("Email", Required = Newtonsoft.Json.Required.AllowNull)] public EmailRequest Email { get; set; } - + [Newtonsoft.Json.JsonProperty("Dashboard", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public DashboardRequest Dashboard { get; set; } = new DashboardRequest(); - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule Schedule { get; set; } - + [Newtonsoft.Json.JsonProperty("OCSPParameters", Required = Newtonsoft.Json.Required.AllowNull)] public OCSPParametersRequest OCSPParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RevocationMonitoringAlertTestRequest + public partial class RevocationMonitoringAlertTestRequest { [Newtonsoft.Json.JsonProperty("AlertId", Required = Newtonsoft.Json.Required.AllowNull)] public int? AlertId { get; set; } - + [Newtonsoft.Json.JsonProperty("EvaluationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset EvaluationDate { get; set; } - + [Newtonsoft.Json.JsonProperty("SendAlerts", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SendAlerts { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RevocationMonitoringAlertTestResponse + public partial class RevocationMonitoringAlertTestResponse { [Newtonsoft.Json.JsonProperty("RevocationMonitoringAlerts", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection RevocationMonitoringAlerts { get; set; } - + [Newtonsoft.Json.JsonProperty("AlertBuildResult", Required = Newtonsoft.Json.Required.AllowNull)] public RevocationMonitoringAlertTestResponseAlertBuildResult AlertBuildResult { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RevocationMonitoringAlertResponse + public partial class RevocationMonitoringAlertResponse { [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.AllowNull)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RevocationMonitoringAlertTestAllRequest + public partial class RevocationMonitoringAlertTestAllRequest { [Newtonsoft.Json.JsonProperty("EvaluationDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset EvaluationDate { get; set; } - + [Newtonsoft.Json.JsonProperty("SendAlerts", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SendAlerts { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CustomJobResultDataResponse + public partial class CustomJobResultDataResponse { [Newtonsoft.Json.JsonProperty("JobHistoryId", Required = Newtonsoft.Json.Required.AllowNull)] public long JobHistoryId { get; set; } - + [Newtonsoft.Json.JsonProperty("Data", Required = Newtonsoft.Json.Required.AllowNull)] public string Data { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedAgentJobHistoryQuery + public partial class PagedAgentJobHistoryQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedAgentJobHistoryQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class JobHistoryResponse + public partial class JobHistoryResponse { [Newtonsoft.Json.JsonProperty("JobHistoryId", Required = Newtonsoft.Json.Required.AllowNull)] public long JobHistoryId { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentMachine", Required = Newtonsoft.Json.Required.AllowNull)] public string AgentMachine { get; set; } - + [Newtonsoft.Json.JsonProperty("JobId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid JobId { get; set; } - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule Schedule { get; set; } - + [Newtonsoft.Json.JsonProperty("JobType", Required = Newtonsoft.Json.Required.AllowNull)] public string JobType { get; set; } - + [Newtonsoft.Json.JsonProperty("OperationStart", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset OperationStart { get; set; } - + [Newtonsoft.Json.JsonProperty("OperationEnd", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset OperationEnd { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Result", Required = Newtonsoft.Json.Required.AllowNull)] public JobHistoryResponseResult Result { get; set; } - + [Newtonsoft.Json.JsonProperty("Status", Required = Newtonsoft.Json.Required.AllowNull)] public JobHistoryResponseStatus Status { get; set; } - + [Newtonsoft.Json.JsonProperty("StorePath", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePath { get; set; } - + [Newtonsoft.Json.JsonProperty("ClientMachine", Required = Newtonsoft.Json.Required.AllowNull)] public string ClientMachine { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedAgentJobQuery + public partial class PagedAgentJobQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedAgentJobQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class Job + public partial class Job { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("ClientMachine", Required = Newtonsoft.Json.Required.AllowNull)] public string ClientMachine { get; set; } - + [Newtonsoft.Json.JsonProperty("Target", Required = Newtonsoft.Json.Required.AllowNull)] public string Target { get; set; } - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule Schedule { get; set; } - + [Newtonsoft.Json.JsonProperty("Requested", Required = Newtonsoft.Json.Required.AllowNull)] public string Requested { get; set; } - + [Newtonsoft.Json.JsonProperty("JobType", Required = Newtonsoft.Json.Required.AllowNull)] public string JobType { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ScheduleJobRequest + public partial class ScheduleJobRequest { [Newtonsoft.Json.JsonProperty("AgentId", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid AgentId { get; set; } - + [Newtonsoft.Json.JsonProperty("JobTypeName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string JobTypeName { get; set; } - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule Schedule { get; set; } - + [Newtonsoft.Json.JsonProperty("JobFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary JobFields { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class JobResponse + public partial class JobResponse { [Newtonsoft.Json.JsonProperty("JobId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid JobId { get; set; } - + [Newtonsoft.Json.JsonProperty("OrchestratorId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid OrchestratorId { get; set; } - + [Newtonsoft.Json.JsonProperty("JobTypeName", Required = Newtonsoft.Json.Required.AllowNull)] public string JobTypeName { get; set; } - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule Schedule { get; set; } - + [Newtonsoft.Json.JsonProperty("JobFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection JobFields { get; set; } - + [Newtonsoft.Json.JsonProperty("RequestTimestamp", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset RequestTimestamp { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class JobFieldResponse + public partial class JobFieldResponse { [Newtonsoft.Json.JsonProperty("JobTypeField", Required = Newtonsoft.Json.Required.AllowNull)] public string JobTypeField { get; set; } - + [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Class representing orchestrator jobs to be rescheduled [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RescheduleJobRequest + public partial class RescheduleJobRequest { /// List of orchestrator job audit ids to be rescheduled [Newtonsoft.Json.JsonProperty("JobAuditIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection JobAuditIds { get; set; } - + /// Query identifying orchestrator jobs to be rescheduled [Newtonsoft.Json.JsonProperty("Query", Required = Newtonsoft.Json.Required.AllowNull)] public string Query { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Class representing orchestrator jobs to be unscheduled [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class UnscheduleJobRequest + public partial class UnscheduleJobRequest { /// List of orchestrator job ids to be unscheduled [Newtonsoft.Json.JsonProperty("JobIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection JobIds { get; set; } - + /// Query identifying orchestrator jobs to be unscheduled [Newtonsoft.Json.JsonProperty("Query", Required = Newtonsoft.Json.Required.AllowNull)] public string Query { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AcknowledgeJobRequest + public partial class AcknowledgeJobRequest { /// List of orchestrator job audit ids to be acknowledged [Newtonsoft.Json.JsonProperty("JobAuditIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection JobAuditIds { get; set; } - + /// Query identifying orchestrator jobs to be acknowledged [Newtonsoft.Json.JsonProperty("Query", Required = Newtonsoft.Json.Required.AllowNull)] public string Query { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ScheduleBulkJobRequest + public partial class ScheduleBulkJobRequest { [Newtonsoft.Json.JsonProperty("OrchestratorIds", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection OrchestratorIds { get; set; } = new System.Collections.ObjectModel.Collection(); - + [Newtonsoft.Json.JsonProperty("JobTypeName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string JobTypeName { get; set; } - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule Schedule { get; set; } - + [Newtonsoft.Json.JsonProperty("JobFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary JobFields { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class BulkJobResponse + public partial class BulkJobResponse { [Newtonsoft.Json.JsonProperty("OrchestratorJobPairs", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection OrchestratorJobPairs { get; set; } - + [Newtonsoft.Json.JsonProperty("FailedOrchestratorIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection FailedOrchestratorIds { get; set; } - + [Newtonsoft.Json.JsonProperty("JobTypeName", Required = Newtonsoft.Json.Required.AllowNull)] public string JobTypeName { get; set; } - + [Newtonsoft.Json.JsonProperty("Schedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule Schedule { get; set; } - + [Newtonsoft.Json.JsonProperty("JobFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection JobFields { get; set; } - + [Newtonsoft.Json.JsonProperty("RequestTimestamp", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset RequestTimestamp { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class BulkOrchestratorJobPair + public partial class BulkOrchestratorJobPair { [Newtonsoft.Json.JsonProperty("JobId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid JobId { get; set; } - + [Newtonsoft.Json.JsonProperty("OrchestratorId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid OrchestratorId { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ProviderTypeCreateRequest + public partial class ProviderTypeCreateRequest { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Parameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Parameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ProviderTypeParameterCreateRequest + public partial class ProviderTypeParameterCreateRequest { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("DataType", Required = Newtonsoft.Json.Required.AllowNull)] public ProviderTypeParameterCreateRequestDataType DataType { get; set; } - + [Newtonsoft.Json.JsonProperty("InstanceLevel", Required = Newtonsoft.Json.Required.AllowNull)] public bool? InstanceLevel { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ProviderTypeResponse + public partial class ProviderTypeResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Parameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Parameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ProviderTypeParameterResponse + public partial class ProviderTypeParameterResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("DataType", Required = Newtonsoft.Json.Required.AllowNull)] public ProviderTypeParameterResponseDataType DataType { get; set; } - + [Newtonsoft.Json.JsonProperty("InstanceLevel", Required = Newtonsoft.Json.Required.AllowNull)] public bool? InstanceLevel { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PendingAlertDefinitionResponse + public partial class PendingAlertDefinitionResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.AllowNull)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("Template", Required = Newtonsoft.Json.Required.AllowNull)] public AlertTemplateResponse Template { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerResponse RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedPendingAlertQuery + public partial class PagedPendingAlertQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedPendingAlertQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PendingAlertUpdateRequest + public partial class PendingAlertUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.Range(1, 2147483647)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerRequest RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PendingAlertCreationRequest + public partial class PendingAlertCreationRequest { [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("RegisteredEventHandler", Required = Newtonsoft.Json.Required.AllowNull)] public RegisteredEventHandlerRequest RegisteredEventHandler { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("EventHandlerParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EventHandlerParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PendingAlertTestRequest + public partial class PendingAlertTestRequest { [Newtonsoft.Json.JsonProperty("AlertId", Required = Newtonsoft.Json.Required.AllowNull)] public int? AlertId { get; set; } - + [Newtonsoft.Json.JsonProperty("SendAlerts", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SendAlerts { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PendingAlertTestResponse + public partial class PendingAlertTestResponse { [Newtonsoft.Json.JsonProperty("PendingAlerts", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection PendingAlerts { get; set; } - + [Newtonsoft.Json.JsonProperty("AlertBuildResult", Required = Newtonsoft.Json.Required.AllowNull)] public PendingAlertTestResponseAlertBuildResult AlertBuildResult { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PendingAlertResponse + public partial class PendingAlertResponse { [Newtonsoft.Json.JsonProperty("Subject", Required = Newtonsoft.Json.Required.AllowNull)] public string Subject { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + [Newtonsoft.Json.JsonProperty("Recipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Recipients { get; set; } - + [Newtonsoft.Json.JsonProperty("CARequestId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CARequestId { get; set; } - + [Newtonsoft.Json.JsonProperty("CommonName", Required = Newtonsoft.Json.Required.AllowNull)] public string CommonName { get; set; } - + [Newtonsoft.Json.JsonProperty("LogicalName", Required = Newtonsoft.Json.Required.AllowNull)] public string LogicalName { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PendingAlertTestAllRequest + public partial class PendingAlertTestAllRequest { [Newtonsoft.Json.JsonProperty("SendAlerts", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SendAlerts { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class Report + public partial class Report { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Scheduled", Required = Newtonsoft.Json.Required.AllowNull)] public int? Scheduled { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("ReportPath", Required = Newtonsoft.Json.Required.AllowNull)] public string ReportPath { get; set; } - + [Newtonsoft.Json.JsonProperty("VersionNumber", Required = Newtonsoft.Json.Required.AllowNull)] public string VersionNumber { get; set; } - + [Newtonsoft.Json.JsonProperty("Categories", Required = Newtonsoft.Json.Required.AllowNull)] public string Categories { get; set; } - + [Newtonsoft.Json.JsonProperty("ShortName", Required = Newtonsoft.Json.Required.AllowNull)] public string ShortName { get; set; } - + [Newtonsoft.Json.JsonProperty("InNavigator", Required = Newtonsoft.Json.Required.AllowNull)] public bool? InNavigator { get; set; } - + [Newtonsoft.Json.JsonProperty("Favorite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Favorite { get; set; } - + [Newtonsoft.Json.JsonProperty("RemoveDuplicates", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RemoveDuplicates { get; set; } - + [Newtonsoft.Json.JsonProperty("UsesCollection", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UsesCollection { get; set; } - + [Newtonsoft.Json.JsonProperty("ReportParameter", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ReportParameter { get; set; } - + [Newtonsoft.Json.JsonProperty("Schedules", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Schedules { get; set; } - + [Newtonsoft.Json.JsonProperty("AcceptedScheduleFormats", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection AcceptedScheduleFormats { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ReportParameters + public partial class ReportParameters { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("ParameterName", Required = Newtonsoft.Json.Required.AllowNull)] public string ParameterName { get; set; } - + [Newtonsoft.Json.JsonProperty("ParameterType", Required = Newtonsoft.Json.Required.AllowNull)] public ReportParametersParameterType ParameterType { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayOrder", Required = Newtonsoft.Json.Required.AllowNull)] public int? DisplayOrder { get; set; } - + [Newtonsoft.Json.JsonProperty("ParameterVisibility", Required = Newtonsoft.Json.Required.AllowNull)] public ReportParametersParameterVisibility ParameterVisibility { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ReportSchedule + public partial class ReportSchedule { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("SendReport", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SendReport { get; set; } - + [Newtonsoft.Json.JsonProperty("SaveReport", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SaveReport { get; set; } - + [Newtonsoft.Json.JsonProperty("SaveReportPath", Required = Newtonsoft.Json.Required.AllowNull)] public string SaveReportPath { get; set; } - + [Newtonsoft.Json.JsonProperty("ReportFormat", Required = Newtonsoft.Json.Required.AllowNull)] public string ReportFormat { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyfactorSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule KeyfactorSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateCollectionId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CertificateCollectionId { get; set; } - + [Newtonsoft.Json.JsonProperty("EmailRecipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EmailRecipients { get; set; } - + [Newtonsoft.Json.JsonProperty("RuntimeParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary RuntimeParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// The CustomReport can be used to create and update a custom report. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CustomReport + public partial class CustomReport { [Newtonsoft.Json.JsonProperty("CustomURL", Required = Newtonsoft.Json.Required.AllowNull)] public string CustomURL { get; set; } - + [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("InNavigator", Required = Newtonsoft.Json.Required.AllowNull)] public bool? InNavigator { get; set; } - + [Newtonsoft.Json.JsonProperty("Favorite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Favorite { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ReportParametersRequest + public partial class ReportParametersRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedReportQuery + public partial class PagedReportQuery { [Newtonsoft.Json.JsonProperty("AmmendedQuery", Required = Newtonsoft.Json.Required.AllowNull)] public string AmmendedQuery { get; set; } - + /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedReportQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// The ReportRequestModel can be used to update a report. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ReportRequestModel + public partial class ReportRequestModel { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("InNavigator", Required = Newtonsoft.Json.Required.AllowNull)] public bool? InNavigator { get; set; } - + [Newtonsoft.Json.JsonProperty("Favorite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Favorite { get; set; } - + [Newtonsoft.Json.JsonProperty("RemoveDuplicates", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RemoveDuplicates { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedCustomReportQuery + public partial class PagedCustomReportQuery { [Newtonsoft.Json.JsonProperty("AmmendedQuery", Required = Newtonsoft.Json.Required.AllowNull)] public string AmmendedQuery { get; set; } - + /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedCustomReportQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// The CustomReport can be used to create and update a custom report. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CustomReportUpdateRequest + public partial class CustomReportUpdateRequest { [Newtonsoft.Json.JsonProperty("CustomURL", Required = Newtonsoft.Json.Required.AllowNull)] public string CustomURL { get; set; } - + [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("InNavigator", Required = Newtonsoft.Json.Required.AllowNull)] public bool? InNavigator { get; set; } - + [Newtonsoft.Json.JsonProperty("Favorite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Favorite { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// The CustomReport can be used to create and update a custom report. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CustomReportCreationRequest + public partial class CustomReportCreationRequest { [Newtonsoft.Json.JsonProperty("CustomURL", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string CustomURL { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("InNavigator", Required = Newtonsoft.Json.Required.AllowNull)] public bool? InNavigator { get; set; } - + [Newtonsoft.Json.JsonProperty("Favorite", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Favorite { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedReportScheduleQuery + public partial class PagedReportScheduleQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedReportScheduleQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SecurityIdentityPermissionsResponse + public partial class SecurityIdentityPermissionsResponse { [Newtonsoft.Json.JsonProperty("Identity", Required = Newtonsoft.Json.Required.AllowNull)] public string Identity { get; set; } - + [Newtonsoft.Json.JsonProperty("SecuredAreaPermissions", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection SecuredAreaPermissions { get; set; } - + [Newtonsoft.Json.JsonProperty("CollectionPermissions", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection CollectionPermissions { get; set; } - + [Newtonsoft.Json.JsonProperty("ContainerPermissions", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ContainerPermissions { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PermissionRolesPairResponse + public partial class PermissionRolesPairResponse { [Newtonsoft.Json.JsonProperty("Permission", Required = Newtonsoft.Json.Required.AllowNull)] public string Permission { get; set; } - + [Newtonsoft.Json.JsonProperty("GrantedByRoles", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection GrantedByRoles { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// A public DTO representing the result of a security identity lookup. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SecurityIdentityLookupResponse + public partial class SecurityIdentityLookupResponse { /// Whether or not the identity is valid. [Newtonsoft.Json.JsonProperty("Valid", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Valid { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Paged query for security identities. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedSecurityIdentityQuery + public partial class PagedSecurityIdentityQuery { /// Whether to audit the signed xml for every identity requested by the query [Newtonsoft.Json.JsonProperty("Validate", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Validate { get; set; } - + /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedSecurityIdentityQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Model for requesting a security identity. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SecurityIdentityRequest + public partial class SecurityIdentityRequest { /// The username of the security identity. [Newtonsoft.Json.JsonProperty("AccountName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string AccountName { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AreaPermissionResponse + public partial class AreaPermissionResponse { [Newtonsoft.Json.JsonProperty("Type", Required = Newtonsoft.Json.Required.AllowNull)] public string Type { get; set; } - + [Newtonsoft.Json.JsonProperty("Area", Required = Newtonsoft.Json.Required.AllowNull)] public string Area { get; set; } - + [Newtonsoft.Json.JsonProperty("Permission", Required = Newtonsoft.Json.Required.AllowNull)] public string Permission { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class GlobalPermissionResponse + public partial class GlobalPermissionResponse { [Newtonsoft.Json.JsonProperty("Area", Required = Newtonsoft.Json.Required.AllowNull)] public string Area { get; set; } - + [Newtonsoft.Json.JsonProperty("Permission", Required = Newtonsoft.Json.Required.AllowNull)] public string Permission { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class GlobalPermissionRequest + public partial class GlobalPermissionRequest { [Newtonsoft.Json.JsonProperty("Area", Required = Newtonsoft.Json.Required.AllowNull)] public string Area { get; set; } - + [Newtonsoft.Json.JsonProperty("Permission", Required = Newtonsoft.Json.Required.AllowNull)] public string Permission { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ContainerPermissionResponse + public partial class ContainerPermissionResponse { [Newtonsoft.Json.JsonProperty("ContainerId", Required = Newtonsoft.Json.Required.AllowNull)] public int? ContainerId { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Permission", Required = Newtonsoft.Json.Required.AllowNull)] public string Permission { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ContainerPermissionRequest + public partial class ContainerPermissionRequest { [Newtonsoft.Json.JsonProperty("ContainerId", Required = Newtonsoft.Json.Required.AllowNull)] public int? ContainerId { get; set; } - + [Newtonsoft.Json.JsonProperty("Permission", Required = Newtonsoft.Json.Required.AllowNull)] public string Permission { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CollectionPermissionResponse + public partial class CollectionPermissionResponse { [Newtonsoft.Json.JsonProperty("CollectionId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CollectionId { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Permission", Required = Newtonsoft.Json.Required.AllowNull)] public string Permission { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CollectionPermissionRequest + public partial class CollectionPermissionRequest { [Newtonsoft.Json.JsonProperty("CollectionId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CollectionId { get; set; } - + [Newtonsoft.Json.JsonProperty("Permission", Required = Newtonsoft.Json.Required.AllowNull)] public string Permission { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RoleIdentitiesResponse + public partial class RoleIdentitiesResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class RoleIdentitiesRequest + public partial class RoleIdentitiesRequest { [Newtonsoft.Json.JsonProperty("Ids", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Ids { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Paged query for security identities. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedSecurityRoleQuery + public partial class PagedSecurityRoleQuery { /// Whether to audit the signed xml for every role requested by the query [Newtonsoft.Json.JsonProperty("Validate", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Validate { get; set; } - + /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedSecurityRoleQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SecurityRoleUpdateRequest + public partial class SecurityRoleUpdateRequest { /// The Id of the security role to update [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] public int? Id { get; set; } - + /// The name of the security role to update [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + /// The description to be used on the updated security role [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Description { get; set; } - + /// Whether or not the security role should be enabled [Newtonsoft.Json.JsonProperty("Enabled", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Enabled { get; set; } - + /// Whether or not the security role should be private [Newtonsoft.Json.JsonProperty("Private", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Private { get; set; } - + /// The permissions to include in the role. These must be supplied in the format "Area:Permission" [Newtonsoft.Json.JsonProperty("Permissions", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Permissions { get; set; } - + /// The Keyfactor identities to assign to the updated role [Newtonsoft.Json.JsonProperty("Identities", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Identities { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Model for looking up a security identity [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SecurityIdentityIdentifier + public partial class SecurityIdentityIdentifier { /// The username of the security identity. [Newtonsoft.Json.JsonProperty("AccountName", Required = Newtonsoft.Json.Required.AllowNull)] public string AccountName { get; set; } - + /// The SID of the security identity. [Newtonsoft.Json.JsonProperty("SID", Required = Newtonsoft.Json.Required.AllowNull)] public string SID { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SecurityRoleCreationRequest + public partial class SecurityRoleCreationRequest { /// The name of the security role to create [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + /// The description to be used on the created security role [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Description { get; set; } - + /// Whether or not the security role should be enabled [Newtonsoft.Json.JsonProperty("Enabled", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Enabled { get; set; } - + /// Whether or not the security role should be private [Newtonsoft.Json.JsonProperty("Private", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Private { get; set; } - + /// The permissions to include in the role. These must be supplied in the format "Area:Permission" [Newtonsoft.Json.JsonProperty("Permissions", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Permissions { get; set; } - + /// The Keyfactor identities to assign to the created role [Newtonsoft.Json.JsonProperty("Identities", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Identities { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SecurityRoleCopyRequest + public partial class SecurityRoleCopyRequest { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServerAccessResponse + public partial class ServerAccessResponse { [Newtonsoft.Json.JsonProperty("ServerId", Required = Newtonsoft.Json.Required.AllowNull)] public int? ServerId { get; set; } - + [Newtonsoft.Json.JsonProperty("LogonUsers", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection LogonUsers { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedSSHServerQuery + public partial class PagedSSHServerQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedSSHServerQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServerUpdateRequest + public partial class ServerUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("UnderManagement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UnderManagement { get; set; } - + [Newtonsoft.Json.JsonProperty("Port", Required = Newtonsoft.Json.Required.AllowNull)] public int? Port { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServerCreationRequest + public partial class ServerCreationRequest { [Newtonsoft.Json.JsonProperty("AgentId", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid AgentId { get; set; } - + [Newtonsoft.Json.JsonProperty("Hostname", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Hostname { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerGroupId", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid ServerGroupId { get; set; } - + [Newtonsoft.Json.JsonProperty("UnderManagement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UnderManagement { get; set; } - + [Newtonsoft.Json.JsonProperty("Port", Required = Newtonsoft.Json.Required.AllowNull)] public int? Port { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServerAccessRequest + public partial class ServerAccessRequest { [Newtonsoft.Json.JsonProperty("ServerId", Required = Newtonsoft.Json.Required.Always)] public int? ServerId { get; set; } - + [Newtonsoft.Json.JsonProperty("LogonUsers", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection LogonUsers { get; set; } = new System.Collections.ObjectModel.Collection(); - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class LogonUserAccessRequest + public partial class LogonUserAccessRequest { [Newtonsoft.Json.JsonProperty("LogonName", Required = Newtonsoft.Json.Required.AllowNull)] public string LogonName { get; set; } - + [Newtonsoft.Json.JsonProperty("Users", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Users { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServerGroupResponse + public partial class ServerGroupResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Owner", Required = Newtonsoft.Json.Required.AllowNull)] public SshUserResponse Owner { get; set; } - + [Newtonsoft.Json.JsonProperty("GroupName", Required = Newtonsoft.Json.Required.AllowNull)] public string GroupName { get; set; } - + [Newtonsoft.Json.JsonProperty("SyncSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule SyncSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("UnderManagement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UnderManagement { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? ServerCount { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServerGroupAccessResponse + public partial class ServerGroupAccessResponse { [Newtonsoft.Json.JsonProperty("ServerGroupId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid ServerGroupId { get; set; } - + [Newtonsoft.Json.JsonProperty("LogonUsers", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection LogonUsers { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedSSHServerGroupQuery + public partial class PagedSSHServerGroupQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedSSHServerGroupQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServerGroupUpdateRequest + public partial class ServerGroupUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("OwnerName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string OwnerName { get; set; } - + [Newtonsoft.Json.JsonProperty("GroupName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string GroupName { get; set; } - + [Newtonsoft.Json.JsonProperty("SyncSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule SyncSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("UnderManagement", Required = Newtonsoft.Json.Required.Always)] public bool? UnderManagement { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServerGroupCreationRequest + public partial class ServerGroupCreationRequest { [Newtonsoft.Json.JsonProperty("OwnerName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string OwnerName { get; set; } - + [Newtonsoft.Json.JsonProperty("GroupName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string GroupName { get; set; } - + [Newtonsoft.Json.JsonProperty("SyncSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule SyncSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("UnderManagement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UnderManagement { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServerGroupAccessRequest + public partial class ServerGroupAccessRequest { [Newtonsoft.Json.JsonProperty("ServerGroupId", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid ServerGroupId { get; set; } - + [Newtonsoft.Json.JsonProperty("LogonUsers", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection LogonUsers { get; set; } = new System.Collections.ObjectModel.Collection(); - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServiceAccountResponse + public partial class ServiceAccountResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("ClientHostname", Required = Newtonsoft.Json.Required.AllowNull)] public string ClientHostname { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerGroup", Required = Newtonsoft.Json.Required.AllowNull)] public ServerGroupResponse ServerGroup { get; set; } - + [Newtonsoft.Json.JsonProperty("User", Required = Newtonsoft.Json.Required.AllowNull)] public SshUserResponse User { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedSSHServiceAccountQuery + public partial class PagedSSHServiceAccountQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedSSHServiceAccountQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServiceAccountUpdateRequest + public partial class ServiceAccountUpdateRequest { [Newtonsoft.Json.JsonProperty("KeyUpdateRequest", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public KeyUpdateRequest KeyUpdateRequest { get; set; } = new KeyUpdateRequest(); - + [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] public int? Id { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServiceAccountCreationRequest + public partial class ServiceAccountCreationRequest { [Newtonsoft.Json.JsonProperty("KeyGenerationRequest", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public KeyGenerationRequest KeyGenerationRequest { get; set; } = new KeyGenerationRequest(); - + [Newtonsoft.Json.JsonProperty("User", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public ServiceAccountUserCreationRequest User { get; set; } = new ServiceAccountUserCreationRequest(); - + [Newtonsoft.Json.JsonProperty("ClientHostname", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string ClientHostname { get; set; } - + [Newtonsoft.Json.JsonProperty("ServerGroupId", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid ServerGroupId { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ServiceAccountUserCreationRequest + public partial class ServiceAccountUserCreationRequest { [Newtonsoft.Json.JsonProperty("Username", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Username { get; set; } - + [Newtonsoft.Json.JsonProperty("LogonIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection LogonIds { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SMTPResponse + public partial class SMTPResponse { [Newtonsoft.Json.JsonProperty("Host", Required = Newtonsoft.Json.Required.AllowNull)] public string Host { get; set; } - + [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Port", Required = Newtonsoft.Json.Required.AllowNull)] public int? Port { get; set; } - + [Newtonsoft.Json.JsonProperty("RelayAuthenticationType", Required = Newtonsoft.Json.Required.AllowNull)] public int? RelayAuthenticationType { get; set; } - + [Newtonsoft.Json.JsonProperty("RelayUsername", Required = Newtonsoft.Json.Required.AllowNull)] public string RelayUsername { get; set; } - + [Newtonsoft.Json.JsonProperty("SenderAccount", Required = Newtonsoft.Json.Required.AllowNull)] public string SenderAccount { get; set; } - + [Newtonsoft.Json.JsonProperty("SenderName", Required = Newtonsoft.Json.Required.AllowNull)] public string SenderName { get; set; } - + [Newtonsoft.Json.JsonProperty("UseSSL", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UseSSL { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SMTPRequest + public partial class SMTPRequest { [Newtonsoft.Json.JsonProperty("Host", Required = Newtonsoft.Json.Required.AllowNull)] public string Host { get; set; } - + [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Port", Required = Newtonsoft.Json.Required.AllowNull)] public int? Port { get; set; } - + [Newtonsoft.Json.JsonProperty("RelayAuthenticationType", Required = Newtonsoft.Json.Required.AllowNull)] public int? RelayAuthenticationType { get; set; } - + [Newtonsoft.Json.JsonProperty("RelayPassword", Required = Newtonsoft.Json.Required.AllowNull)] public string RelayPassword { get; set; } - + [Newtonsoft.Json.JsonProperty("RelayUsername", Required = Newtonsoft.Json.Required.AllowNull)] public string RelayUsername { get; set; } - + [Newtonsoft.Json.JsonProperty("SenderAccount", Required = Newtonsoft.Json.Required.AllowNull)] public string SenderAccount { get; set; } - + [Newtonsoft.Json.JsonProperty("SenderName", Required = Newtonsoft.Json.Required.AllowNull)] public string SenderName { get; set; } - + [Newtonsoft.Json.JsonProperty("UseSSL", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UseSSL { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SMTPTestRequest + public partial class SMTPTestRequest { [Newtonsoft.Json.JsonProperty("Host", Required = Newtonsoft.Json.Required.AllowNull)] public string Host { get; set; } - + [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Port", Required = Newtonsoft.Json.Required.AllowNull)] public int? Port { get; set; } - + [Newtonsoft.Json.JsonProperty("RelayAuthenticationType", Required = Newtonsoft.Json.Required.AllowNull)] public int? RelayAuthenticationType { get; set; } - + [Newtonsoft.Json.JsonProperty("RelayPassword", Required = Newtonsoft.Json.Required.AllowNull)] public string RelayPassword { get; set; } - + [Newtonsoft.Json.JsonProperty("RelayUsername", Required = Newtonsoft.Json.Required.AllowNull)] public string RelayUsername { get; set; } - + [Newtonsoft.Json.JsonProperty("SenderAccount", Required = Newtonsoft.Json.Required.AllowNull)] public string SenderAccount { get; set; } - + [Newtonsoft.Json.JsonProperty("SenderName", Required = Newtonsoft.Json.Required.AllowNull)] public string SenderName { get; set; } - + [Newtonsoft.Json.JsonProperty("TestRecipient", Required = Newtonsoft.Json.Required.AllowNull)] public string TestRecipient { get; set; } - + [Newtonsoft.Json.JsonProperty("UseSSL", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UseSSL { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SMTPTestResponse + public partial class SMTPTestResponse { [Newtonsoft.Json.JsonProperty("Host", Required = Newtonsoft.Json.Required.AllowNull)] public string Host { get; set; } - + [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Port", Required = Newtonsoft.Json.Required.AllowNull)] public int? Port { get; set; } - + [Newtonsoft.Json.JsonProperty("RelayAuthenticationType", Required = Newtonsoft.Json.Required.AllowNull)] public int? RelayAuthenticationType { get; set; } - + [Newtonsoft.Json.JsonProperty("RelayUsername", Required = Newtonsoft.Json.Required.AllowNull)] public string RelayUsername { get; set; } - + [Newtonsoft.Json.JsonProperty("SenderAccount", Required = Newtonsoft.Json.Required.AllowNull)] public string SenderAccount { get; set; } - + [Newtonsoft.Json.JsonProperty("SenderName", Required = Newtonsoft.Json.Required.AllowNull)] public string SenderName { get; set; } - + [Newtonsoft.Json.JsonProperty("TestRecipient", Required = Newtonsoft.Json.Required.AllowNull)] public string TestRecipient { get; set; } - + [Newtonsoft.Json.JsonProperty("UseSSL", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UseSSL { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ScanJobPart + public partial class ScanJobPart { [Newtonsoft.Json.JsonProperty("ScanJobPartId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid ScanJobPartId { get; set; } - + [Newtonsoft.Json.JsonProperty("LogicalScanJobId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid LogicalScanJobId { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentJobId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentJobId { get; set; } - + [Newtonsoft.Json.JsonProperty("EstimatedEndpointCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? EstimatedEndpointCount { get; set; } - + [Newtonsoft.Json.JsonProperty("Status", Required = Newtonsoft.Json.Required.AllowNull)] public ScanJobPartStatus Status { get; set; } - + [Newtonsoft.Json.JsonProperty("StatTotalEndpointCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? StatTotalEndpointCount { get; set; } - + [Newtonsoft.Json.JsonProperty("StatTimedOutConnectingCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? StatTimedOutConnectingCount { get; set; } - + [Newtonsoft.Json.JsonProperty("StatConnectionRefusedCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? StatConnectionRefusedCount { get; set; } - + [Newtonsoft.Json.JsonProperty("StatTimedOutDownloadingCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? StatTimedOutDownloadingCount { get; set; } - + [Newtonsoft.Json.JsonProperty("StatExceptionDownloadingCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? StatExceptionDownloadingCount { get; set; } - + [Newtonsoft.Json.JsonProperty("StatNotSslCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? StatNotSslCount { get; set; } - + [Newtonsoft.Json.JsonProperty("StatBadSslHandshakeCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? StatBadSslHandshakeCount { get; set; } - + [Newtonsoft.Json.JsonProperty("StatCertificateFoundCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? StatCertificateFoundCount { get; set; } - + [Newtonsoft.Json.JsonProperty("StatNoCertificateCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? StatNoCertificateCount { get; set; } - + [Newtonsoft.Json.JsonProperty("ScanJobPartDefinitions", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ScanJobPartDefinitions { get; set; } - + [Newtonsoft.Json.JsonProperty("StartTime", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset StartTime { get; set; } - + [Newtonsoft.Json.JsonProperty("EndTime", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset EndTime { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ScanJobPartDefinition + public partial class ScanJobPartDefinition { [Newtonsoft.Json.JsonProperty("ItemType", Required = Newtonsoft.Json.Required.AllowNull)] public int? ItemType { get; set; } - + [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class Endpoint + public partial class Endpoint { [Newtonsoft.Json.JsonProperty("EndpointId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid EndpointId { get; set; } - + [Newtonsoft.Json.JsonProperty("NetworkId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid NetworkId { get; set; } - + [Newtonsoft.Json.JsonProperty("LastHistoryId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid LastHistoryId { get; set; } - + [Newtonsoft.Json.JsonProperty("IpAddressBytes", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public byte[] IpAddressBytes { get; set; } - + [Newtonsoft.Json.JsonProperty("Port", Required = Newtonsoft.Json.Required.AllowNull)] public int? Port { get; set; } - + [Newtonsoft.Json.JsonProperty("SNIName", Required = Newtonsoft.Json.Required.AllowNull)] public string SNIName { get; set; } - + [Newtonsoft.Json.JsonProperty("EnableMonitor", Required = Newtonsoft.Json.Required.AllowNull)] public bool? EnableMonitor { get; set; } - + [Newtonsoft.Json.JsonProperty("Reviewed", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Reviewed { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class NetworkDefinition + public partial class NetworkDefinition { [Newtonsoft.Json.JsonProperty("ItemType", Required = Newtonsoft.Json.Required.AllowNull)] public NetworkDefinitionItemType ItemType { get; set; } - + [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class NetworkResponse + public partial class NetworkResponse { [Newtonsoft.Json.JsonProperty("NetworkId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid NetworkId { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentPoolName", Required = Newtonsoft.Json.Required.AllowNull)] public string AgentPoolName { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentPoolId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentPoolId { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("Enabled", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Enabled { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule DiscoverSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule MonitorSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverPercentComplete", Required = Newtonsoft.Json.Required.AllowNull)] public double DiscoverPercentComplete { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorPercentComplete", Required = Newtonsoft.Json.Required.AllowNull)] public double MonitorPercentComplete { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverStatus", Required = Newtonsoft.Json.Required.AllowNull)] public NetworkResponseDiscoverStatus DiscoverStatus { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorStatus", Required = Newtonsoft.Json.Required.AllowNull)] public NetworkResponseMonitorStatus MonitorStatus { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverLastScanned", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset DiscoverLastScanned { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorLastScanned", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset MonitorLastScanned { get; set; } - + [Newtonsoft.Json.JsonProperty("SslAlertRecipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection SslAlertRecipients { get; set; } - + [Newtonsoft.Json.JsonProperty("AutoMonitor", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AutoMonitor { get; set; } - + [Newtonsoft.Json.JsonProperty("GetRobots", Required = Newtonsoft.Json.Required.AllowNull)] public bool? GetRobots { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverTimeoutMs", Required = Newtonsoft.Json.Required.AllowNull)] public double DiscoverTimeoutMs { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorTimeoutMs", Required = Newtonsoft.Json.Required.AllowNull)] public double MonitorTimeoutMs { get; set; } - + [Newtonsoft.Json.JsonProperty("ExpirationAlertDays", Required = Newtonsoft.Json.Required.AllowNull)] public double ExpirationAlertDays { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverJobParts", Required = Newtonsoft.Json.Required.AllowNull)] public int? DiscoverJobParts { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorJobParts", Required = Newtonsoft.Json.Required.AllowNull)] public int? MonitorJobParts { get; set; } - + [Newtonsoft.Json.JsonProperty("QuietHours", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection QuietHours { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class QuietHourResponse + public partial class QuietHourResponse { [Newtonsoft.Json.JsonProperty("StartDay", Required = Newtonsoft.Json.Required.AllowNull)] public QuietHourResponseStartDay StartDay { get; set; } - + [Newtonsoft.Json.JsonProperty("StartTime", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset StartTime { get; set; } - + [Newtonsoft.Json.JsonProperty("EndDay", Required = Newtonsoft.Json.Required.AllowNull)] public QuietHourResponseEndDay EndDay { get; set; } - + [Newtonsoft.Json.JsonProperty("EndTime", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset EndTime { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedSslResultQuery + public partial class PagedSslResultQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedSslResultQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SslScanResult + public partial class SslScanResult { [Newtonsoft.Json.JsonProperty("EndpointId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid EndpointId { get; set; } - + [Newtonsoft.Json.JsonProperty("ReverseDNS", Required = Newtonsoft.Json.Required.AllowNull)] public string ReverseDNS { get; set; } - + [Newtonsoft.Json.JsonProperty("SNIName", Required = Newtonsoft.Json.Required.AllowNull)] public string SNIName { get; set; } - + [Newtonsoft.Json.JsonProperty("IpAddress", Required = Newtonsoft.Json.Required.AllowNull)] public string IpAddress { get; set; } - + [Newtonsoft.Json.JsonProperty("Port", Required = Newtonsoft.Json.Required.AllowNull)] public int? Port { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateFound", Required = Newtonsoft.Json.Required.AllowNull)] public bool? CertificateFound { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentPoolName", Required = Newtonsoft.Json.Required.AllowNull)] public string AgentPoolName { get; set; } - + [Newtonsoft.Json.JsonProperty("NetworkName", Required = Newtonsoft.Json.Required.AllowNull)] public string NetworkName { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorStatus", Required = Newtonsoft.Json.Required.AllowNull)] public bool? MonitorStatus { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateCN", Required = Newtonsoft.Json.Required.AllowNull)] public string CertificateCN { get; set; } - + [Newtonsoft.Json.JsonProperty("Reviewed", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Reviewed { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class NetworkQueryResponse + public partial class NetworkQueryResponse { [Newtonsoft.Json.JsonProperty("NetworkId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid NetworkId { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentPoolName", Required = Newtonsoft.Json.Required.AllowNull)] public string AgentPoolName { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentPoolId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid AgentPoolId { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("Enabled", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Enabled { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule DiscoverSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule MonitorSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverPercentComplete", Required = Newtonsoft.Json.Required.AllowNull)] public double DiscoverPercentComplete { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorPercentComplete", Required = Newtonsoft.Json.Required.AllowNull)] public double MonitorPercentComplete { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverStatus", Required = Newtonsoft.Json.Required.AllowNull)] public NetworkQueryResponseDiscoverStatus DiscoverStatus { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorStatus", Required = Newtonsoft.Json.Required.AllowNull)] public NetworkQueryResponseMonitorStatus MonitorStatus { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverLastScanned", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset DiscoverLastScanned { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorLastScanned", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset MonitorLastScanned { get; set; } - + [Newtonsoft.Json.JsonProperty("SslAlertRecipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection SslAlertRecipients { get; set; } - + [Newtonsoft.Json.JsonProperty("AutoMonitor", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AutoMonitor { get; set; } - + [Newtonsoft.Json.JsonProperty("GetRobots", Required = Newtonsoft.Json.Required.AllowNull)] public bool? GetRobots { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverTimeoutMs", Required = Newtonsoft.Json.Required.AllowNull)] public double DiscoverTimeoutMs { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorTimeoutMs", Required = Newtonsoft.Json.Required.AllowNull)] public double MonitorTimeoutMs { get; set; } - + [Newtonsoft.Json.JsonProperty("ExpirationAlertDays", Required = Newtonsoft.Json.Required.AllowNull)] public double ExpirationAlertDays { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverJobParts", Required = Newtonsoft.Json.Required.AllowNull)] public int? DiscoverJobParts { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorJobParts", Required = Newtonsoft.Json.Required.AllowNull)] public int? MonitorJobParts { get; set; } - + [Newtonsoft.Json.JsonProperty("QuietHours", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection QuietHours { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class UpdateNetworkRequest + public partial class UpdateNetworkRequest { [Newtonsoft.Json.JsonProperty("NetworkId", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid NetworkId { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentPoolName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string AgentPoolName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("Enabled", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Enabled { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule DiscoverSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule MonitorSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("SslAlertRecipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection SslAlertRecipients { get; set; } - + [Newtonsoft.Json.JsonProperty("AutoMonitor", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AutoMonitor { get; set; } - + [Newtonsoft.Json.JsonProperty("GetRobots", Required = Newtonsoft.Json.Required.AllowNull)] public bool? GetRobots { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverTimeoutMs", Required = Newtonsoft.Json.Required.AllowNull)] public double DiscoverTimeoutMs { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorTimeoutMs", Required = Newtonsoft.Json.Required.AllowNull)] public double MonitorTimeoutMs { get; set; } - + [Newtonsoft.Json.JsonProperty("ExpirationAlertDays", Required = Newtonsoft.Json.Required.AllowNull)] public double ExpirationAlertDays { get; set; } - + [Newtonsoft.Json.JsonProperty("QuietHours", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection QuietHours { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class QuietHourRequest + public partial class QuietHourRequest { [Newtonsoft.Json.JsonProperty("StartDay", Required = Newtonsoft.Json.Required.AllowNull)] public QuietHourRequestStartDay StartDay { get; set; } - + [Newtonsoft.Json.JsonProperty("StartTime", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset StartTime { get; set; } - + [Newtonsoft.Json.JsonProperty("EndDay", Required = Newtonsoft.Json.Required.AllowNull)] public QuietHourRequestEndDay EndDay { get; set; } - + [Newtonsoft.Json.JsonProperty("EndTime", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset EndTime { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CreateNetworkRequest + public partial class CreateNetworkRequest { [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("AgentPoolName", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string AgentPoolName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("Enabled", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Enabled { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule DiscoverSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorSchedule", Required = Newtonsoft.Json.Required.AllowNull)] public KeyfactorSchedule MonitorSchedule { get; set; } - + [Newtonsoft.Json.JsonProperty("SslAlertRecipients", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection SslAlertRecipients { get; set; } - + [Newtonsoft.Json.JsonProperty("AutoMonitor", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AutoMonitor { get; set; } - + [Newtonsoft.Json.JsonProperty("GetRobots", Required = Newtonsoft.Json.Required.AllowNull)] public bool? GetRobots { get; set; } - + [Newtonsoft.Json.JsonProperty("DiscoverTimeoutMs", Required = Newtonsoft.Json.Required.AllowNull)] public double DiscoverTimeoutMs { get; set; } - + [Newtonsoft.Json.JsonProperty("MonitorTimeoutMs", Required = Newtonsoft.Json.Required.AllowNull)] public double MonitorTimeoutMs { get; set; } - + [Newtonsoft.Json.JsonProperty("ExpirationAlertDays", Required = Newtonsoft.Json.Required.AllowNull)] public double ExpirationAlertDays { get; set; } - + [Newtonsoft.Json.JsonProperty("QuietHours", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection QuietHours { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class EndpointHistoryResponse + public partial class EndpointHistoryResponse { [Newtonsoft.Json.JsonProperty("HistoryId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid HistoryId { get; set; } - + [Newtonsoft.Json.JsonProperty("EndpointId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid EndpointId { get; set; } - + [Newtonsoft.Json.JsonProperty("AuditId", Required = Newtonsoft.Json.Required.AllowNull)] public long AuditId { get; set; } - + [Newtonsoft.Json.JsonProperty("Timestamp", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset Timestamp { get; set; } - + [Newtonsoft.Json.JsonProperty("Status", Required = Newtonsoft.Json.Required.AllowNull)] public EndpointHistoryResponseStatus Status { get; set; } - + [Newtonsoft.Json.JsonProperty("JobType", Required = Newtonsoft.Json.Required.AllowNull)] public EndpointHistoryResponseJobType JobType { get; set; } - + [Newtonsoft.Json.JsonProperty("ProbeType", Required = Newtonsoft.Json.Required.AllowNull)] public EndpointHistoryResponseProbeType ProbeType { get; set; } - + [Newtonsoft.Json.JsonProperty("ReverseDNS", Required = Newtonsoft.Json.Required.AllowNull)] public string ReverseDNS { get; set; } - + [Newtonsoft.Json.JsonProperty("HistoryCertificates", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection HistoryCertificates { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateModel + public partial class CertificateModel { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuedDN", Required = Newtonsoft.Json.Required.Default)] public string IssuedDN { get; set; } - + [Newtonsoft.Json.JsonProperty("SerialNumber", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string SerialNumber { get; set; } - + [Newtonsoft.Json.JsonProperty("NotBefore", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset NotBefore { get; set; } - + [Newtonsoft.Json.JsonProperty("NotAfter", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset NotAfter { get; set; } - + [Newtonsoft.Json.JsonProperty("SigningAlgorithm", Required = Newtonsoft.Json.Required.AllowNull)] public string SigningAlgorithm { get; set; } - + [Newtonsoft.Json.JsonProperty("Thumbprint", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string Thumbprint { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuerDN", Required = Newtonsoft.Json.Required.Default)] public string IssuerDN { get; set; } - + [Newtonsoft.Json.JsonProperty("IssuedCN", Required = Newtonsoft.Json.Required.Default)] public string IssuedCN { get; set; } - + [Newtonsoft.Json.JsonProperty("SubjectAltNameElements", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection SubjectAltNameElements { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SubjectAlternativeName + public partial class SubjectAlternativeName { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + [Newtonsoft.Json.JsonProperty("Type", Required = Newtonsoft.Json.Required.AllowNull)] public SubjectAlternativeNameType Type { get; set; } - + [Newtonsoft.Json.JsonProperty("ValueHash", Required = Newtonsoft.Json.Required.AllowNull)] [System.ComponentModel.DataAnnotations.RegularExpression(@"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")] public string ValueHash { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedScanJobPartsQuery + public partial class PagedScanJobPartsQuery { [Newtonsoft.Json.JsonProperty("JobType", Required = Newtonsoft.Json.Required.AllowNull)] public PagedScanJobPartsQueryJobType JobType { get; set; } - + /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedScanJobPartsQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DisplayScanJobPart + public partial class DisplayScanJobPart { [Newtonsoft.Json.JsonProperty("ScanJobPartId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid ScanJobPartId { get; set; } - + [Newtonsoft.Json.JsonProperty("Agent", Required = Newtonsoft.Json.Required.AllowNull)] public string Agent { get; set; } - + [Newtonsoft.Json.JsonProperty("Status", Required = Newtonsoft.Json.Required.AllowNull)] public DisplayScanJobPartStatus Status { get; set; } - + [Newtonsoft.Json.JsonProperty("StartTime", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset StartTime { get; set; } - + [Newtonsoft.Json.JsonProperty("EndTime", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset EndTime { get; set; } - + [Newtonsoft.Json.JsonProperty("EndpointCount", Required = Newtonsoft.Json.Required.AllowNull)] public int? EndpointCount { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class NetworkRangesRequest + public partial class NetworkRangesRequest { [Newtonsoft.Json.JsonProperty("NetworkId", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid NetworkId { get; set; } - + [Newtonsoft.Json.JsonProperty("Ranges", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Ranges { get; set; } = new System.Collections.ObjectModel.Collection(); - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class EndpointStatusRequest + public partial class EndpointStatusRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Status", Required = Newtonsoft.Json.Required.Always)] public bool? Status { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ImmediateSslScanRequest + public partial class ImmediateSslScanRequest { [Newtonsoft.Json.JsonProperty("Discovery", Required = Newtonsoft.Json.Required.Always)] public bool? Discovery { get; set; } - + [Newtonsoft.Json.JsonProperty("Monitoring", Required = Newtonsoft.Json.Required.Always)] public bool? Monitoring { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateRetrievalResponse + public partial class TemplateRetrievalResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("CommonName", Required = Newtonsoft.Json.Required.AllowNull)] public string CommonName { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateName", Required = Newtonsoft.Json.Required.AllowNull)] public string TemplateName { get; set; } - + [Newtonsoft.Json.JsonProperty("Oid", Required = Newtonsoft.Json.Required.AllowNull)] public string Oid { get; set; } - + [Newtonsoft.Json.JsonProperty("KeySize", Required = Newtonsoft.Json.Required.AllowNull)] public string KeySize { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyType", Required = Newtonsoft.Json.Required.AllowNull)] public string KeyType { get; set; } - + [Newtonsoft.Json.JsonProperty("ForestRoot", Required = Newtonsoft.Json.Required.AllowNull)] public string ForestRoot { get; set; } - + [Newtonsoft.Json.JsonProperty("ConfigurationTenant", Required = Newtonsoft.Json.Required.AllowNull)] public string ConfigurationTenant { get; set; } - + [Newtonsoft.Json.JsonProperty("FriendlyName", Required = Newtonsoft.Json.Required.AllowNull)] public string FriendlyName { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyRetention", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateRetrievalResponseKeyRetention KeyRetention { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyRetentionDays", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyRetentionDays { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyArchival", Required = Newtonsoft.Json.Required.AllowNull)] public bool? KeyArchival { get; set; } - + [Newtonsoft.Json.JsonProperty("EnrollmentFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EnrollmentFields { get; set; } - + [Newtonsoft.Json.JsonProperty("MetadataFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection MetadataFields { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowedEnrollmentTypes", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateRetrievalResponseAllowedEnrollmentTypes AllowedEnrollmentTypes { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateRegexes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection TemplateRegexes { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateDefaults", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection TemplateDefaults { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplatePolicy", Required = Newtonsoft.Json.Required.AllowNull)] public TemplatePolicyModel TemplatePolicy { get; set; } - + [Newtonsoft.Json.JsonProperty("UseAllowedRequesters", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UseAllowedRequesters { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowedRequesters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection AllowedRequesters { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("RFCEnforcement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RFCEnforcement { get; set; } - + [Newtonsoft.Json.JsonProperty("RequiresApproval", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RequiresApproval { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyUsage", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyUsage { get; set; } - + [Newtonsoft.Json.JsonProperty("ExtendedKeyUsages", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ExtendedKeyUsages { get; set; } - + [Newtonsoft.Json.JsonProperty("Curve", Required = Newtonsoft.Json.Required.Default)] public string Curve { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateEnrollmentFieldModel + public partial class TemplateEnrollmentFieldModel { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Options", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Options { get; set; } - + [Newtonsoft.Json.JsonProperty("DataType", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateEnrollmentFieldModelDataType DataType { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateMetadataFieldModel + public partial class TemplateMetadataFieldModel { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("MetadataId", Required = Newtonsoft.Json.Required.AllowNull)] public int? MetadataId { get; set; } - + [Newtonsoft.Json.JsonProperty("Validation", Required = Newtonsoft.Json.Required.AllowNull)] public string Validation { get; set; } - + [Newtonsoft.Json.JsonProperty("Enrollment", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateMetadataFieldModelEnrollment Enrollment { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateRegexModel + public partial class TemplateRegexModel { [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectPart { get; set; } - + [Newtonsoft.Json.JsonProperty("Regex", Required = Newtonsoft.Json.Required.AllowNull)] public string Regex { get; set; } - + [Newtonsoft.Json.JsonProperty("Error", Required = Newtonsoft.Json.Required.AllowNull)] public string Error { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateDefaultModel + public partial class TemplateDefaultModel { [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectPart { get; set; } - + [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplatePolicyModel + public partial class TemplatePolicyModel { [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("RSAValidKeySizes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection RSAValidKeySizes { get; set; } - + [Newtonsoft.Json.JsonProperty("ECCValidCurves", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ECCValidCurves { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowKeyReuse", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AllowKeyReuse { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowWildcards", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AllowWildcards { get; set; } - + [Newtonsoft.Json.JsonProperty("RFCEnforcement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RFCEnforcement { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ExtendedKeyUsageModel2 + public partial class ExtendedKeyUsageModel2 { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Oid", Required = Newtonsoft.Json.Required.AllowNull)] public string Oid { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class GlobalTemplateSettingsResponse + public partial class GlobalTemplateSettingsResponse { /// The regular expressions to use for validation during enrollment. [Newtonsoft.Json.JsonProperty("TemplateRegexes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection TemplateRegexes { get; set; } - + /// The default values to use during enrollment. [Newtonsoft.Json.JsonProperty("TemplateDefaults", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection TemplateDefaults { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplatePolicy", Required = Newtonsoft.Json.Required.AllowNull)] public GlobalTemplatePolicyResponse TemplatePolicy { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class GlobalTemplateRegexResponse + public partial class GlobalTemplateRegexResponse { /// The subject part to apply the regular expression to. [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectPart { get; set; } - + /// The regular expression to apply to the subject part. [Newtonsoft.Json.JsonProperty("Regex", Required = Newtonsoft.Json.Required.AllowNull)] public string Regex { get; set; } - + /// The error message to show when the regex validation fails. [Newtonsoft.Json.JsonProperty("Error", Required = Newtonsoft.Json.Required.AllowNull)] public string Error { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class GlobalTemplateDefaultResponse + public partial class GlobalTemplateDefaultResponse { /// The subject part to apply the default to. [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectPart { get; set; } - + /// The value to apply by default. [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class GlobalTemplatePolicyResponse + public partial class GlobalTemplatePolicyResponse { /// The allowed RSA key sizes. [Newtonsoft.Json.JsonProperty("RSAValidKeySizes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection RSAValidKeySizes { get; set; } - + /// The allowed ECC curves. [Newtonsoft.Json.JsonProperty("ECCValidCurves", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ECCValidCurves { get; set; } - + /// Whether or not keys can be reused. [Newtonsoft.Json.JsonProperty("AllowKeyReuse", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AllowKeyReuse { get; set; } - + /// Whether or not wildcards can be used. [Newtonsoft.Json.JsonProperty("AllowWildcards", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AllowWildcards { get; set; } - + /// Whether or not RFC 2818 compliance should be enforced. [Newtonsoft.Json.JsonProperty("RFCEnforcement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RFCEnforcement { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class GlobalTemplateSettingsRequest + public partial class GlobalTemplateSettingsRequest { /// The regular expressions to use for validation during enrollment. [Newtonsoft.Json.JsonProperty("TemplateRegexes", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection TemplateRegexes { get; set; } = new System.Collections.ObjectModel.Collection(); - + /// The default values to use during enrollment. [Newtonsoft.Json.JsonProperty("TemplateDefaults", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection TemplateDefaults { get; set; } = new System.Collections.ObjectModel.Collection(); - + [Newtonsoft.Json.JsonProperty("TemplatePolicy", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public GlobalTemplatePolicyRequest TemplatePolicy { get; set; } = new GlobalTemplatePolicyRequest(); - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class GlobalTemplateRegexRequest + public partial class GlobalTemplateRegexRequest { /// The subject part to apply the regular expression to. [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string SubjectPart { get; set; } - + /// The regular expression to apply to the subject part. [Newtonsoft.Json.JsonProperty("Regex", Required = Newtonsoft.Json.Required.AllowNull)] public string Regex { get; set; } - + /// The error message to show when the regex validation fails. [Newtonsoft.Json.JsonProperty("Error", Required = Newtonsoft.Json.Required.AllowNull)] public string Error { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class GlobalTemplateDefaultRequest + public partial class GlobalTemplateDefaultRequest { /// The subject part to apply the default to. [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string SubjectPart { get; set; } - + /// The value to apply by default. [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class GlobalTemplatePolicyRequest + public partial class GlobalTemplatePolicyRequest { /// The allowed RSA key sizes. [Newtonsoft.Json.JsonProperty("RSAValidKeySizes", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection RSAValidKeySizes { get; set; } = new System.Collections.ObjectModel.Collection(); - + /// The allowed ECC curves. [Newtonsoft.Json.JsonProperty("ECCValidCurves", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection ECCValidCurves { get; set; } = new System.Collections.ObjectModel.Collection(); - + /// Whether or not keys can be reused. [Newtonsoft.Json.JsonProperty("AllowKeyReuse", Required = Newtonsoft.Json.Required.Always)] public bool? AllowKeyReuse { get; set; } - + /// Whether or not wildcards can be used. [Newtonsoft.Json.JsonProperty("AllowWildcards", Required = Newtonsoft.Json.Required.Always)] public bool? AllowWildcards { get; set; } - + /// Whether or not RFC 2818 compliance should be enforced. [Newtonsoft.Json.JsonProperty("RFCEnforcement", Required = Newtonsoft.Json.Required.Always)] public bool? RFCEnforcement { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ValidSubjectPartResponse + public partial class ValidSubjectPartResponse { [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectPart { get; set; } - + [Newtonsoft.Json.JsonProperty("SubjectPartName", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectPartName { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedTemplateQuery + public partial class PagedTemplateQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedTemplateQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateCollectionRetrievalResponse + public partial class TemplateCollectionRetrievalResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("CommonName", Required = Newtonsoft.Json.Required.AllowNull)] public string CommonName { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateName", Required = Newtonsoft.Json.Required.AllowNull)] public string TemplateName { get; set; } - + [Newtonsoft.Json.JsonProperty("Oid", Required = Newtonsoft.Json.Required.AllowNull)] public string Oid { get; set; } - + [Newtonsoft.Json.JsonProperty("KeySize", Required = Newtonsoft.Json.Required.AllowNull)] public string KeySize { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyType", Required = Newtonsoft.Json.Required.AllowNull)] public string KeyType { get; set; } - + [Newtonsoft.Json.JsonProperty("ForestRoot", Required = Newtonsoft.Json.Required.AllowNull)] public string ForestRoot { get; set; } - + [Newtonsoft.Json.JsonProperty("ConfigurationTenant", Required = Newtonsoft.Json.Required.AllowNull)] public string ConfigurationTenant { get; set; } - + [Newtonsoft.Json.JsonProperty("FriendlyName", Required = Newtonsoft.Json.Required.AllowNull)] public string FriendlyName { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyRetention", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateCollectionRetrievalResponseKeyRetention KeyRetention { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyRetentionDays", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyRetentionDays { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyArchival", Required = Newtonsoft.Json.Required.AllowNull)] public bool? KeyArchival { get; set; } - + [Newtonsoft.Json.JsonProperty("EnrollmentFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EnrollmentFields { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowedEnrollmentTypes", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateCollectionRetrievalResponseAllowedEnrollmentTypes AllowedEnrollmentTypes { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateRegexes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection TemplateRegexes { get; set; } - + [Newtonsoft.Json.JsonProperty("UseAllowedRequesters", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UseAllowedRequesters { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowedRequesters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection AllowedRequesters { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("RequiresApproval", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RequiresApproval { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyUsage", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyUsage { get; set; } - + [Newtonsoft.Json.JsonProperty("ExtendedKeyUsages", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ExtendedKeyUsages { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateEnrollmentFieldModel2 + public partial class TemplateEnrollmentFieldModel2 { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Options", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Options { get; set; } - + [Newtonsoft.Json.JsonProperty("DataType", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateEnrollmentFieldModel2DataType DataType { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateRegexModel2 + public partial class TemplateRegexModel2 { [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectPart { get; set; } - + [Newtonsoft.Json.JsonProperty("Regex", Required = Newtonsoft.Json.Required.AllowNull)] public string Regex { get; set; } - + [Newtonsoft.Json.JsonProperty("Error", Required = Newtonsoft.Json.Required.AllowNull)] public string Error { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ExtendedKeyUsageModel3 + public partial class ExtendedKeyUsageModel3 { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Oid", Required = Newtonsoft.Json.Required.AllowNull)] public string Oid { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateUpdateRequest + public partial class TemplateUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("KeySize", Required = Newtonsoft.Json.Required.AllowNull)] public string KeySize { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyType", Required = Newtonsoft.Json.Required.AllowNull)] public string KeyType { get; set; } - + [Newtonsoft.Json.JsonProperty("FriendlyName", Required = Newtonsoft.Json.Required.AllowNull)] public string FriendlyName { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyRetention", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateUpdateRequestKeyRetention KeyRetention { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyRetentionDays", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyRetentionDays { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyArchival", Required = Newtonsoft.Json.Required.AllowNull)] public bool? KeyArchival { get; set; } - + [Newtonsoft.Json.JsonProperty("EnrollmentFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection EnrollmentFields { get; set; } - + [Newtonsoft.Json.JsonProperty("MetadataFields", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection MetadataFields { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowedEnrollmentTypes", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateUpdateRequestAllowedEnrollmentTypes AllowedEnrollmentTypes { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateRegexes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection TemplateRegexes { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplateDefaults", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection TemplateDefaults { get; set; } - + [Newtonsoft.Json.JsonProperty("TemplatePolicy", Required = Newtonsoft.Json.Required.AllowNull)] public TemplatePolicyModel2 TemplatePolicy { get; set; } - + [Newtonsoft.Json.JsonProperty("UseAllowedRequesters", Required = Newtonsoft.Json.Required.AllowNull)] public bool? UseAllowedRequesters { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowedRequesters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection AllowedRequesters { get; set; } - + [Newtonsoft.Json.JsonProperty("RequiresApproval", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RequiresApproval { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyUsage", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyUsage { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateEnrollmentFieldModel3 + public partial class TemplateEnrollmentFieldModel3 { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Name", Required = Newtonsoft.Json.Required.AllowNull)] public string Name { get; set; } - + [Newtonsoft.Json.JsonProperty("Options", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Options { get; set; } - + [Newtonsoft.Json.JsonProperty("DataType", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateEnrollmentFieldModel3DataType DataType { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateMetadataFieldModel2 + public partial class TemplateMetadataFieldModel2 { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("MetadataId", Required = Newtonsoft.Json.Required.AllowNull)] public int? MetadataId { get; set; } - + [Newtonsoft.Json.JsonProperty("Validation", Required = Newtonsoft.Json.Required.AllowNull)] public string Validation { get; set; } - + [Newtonsoft.Json.JsonProperty("Enrollment", Required = Newtonsoft.Json.Required.AllowNull)] public TemplateMetadataFieldModel2Enrollment Enrollment { get; set; } - + [Newtonsoft.Json.JsonProperty("Message", Required = Newtonsoft.Json.Required.AllowNull)] public string Message { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateRegexModel3 + public partial class TemplateRegexModel3 { [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectPart { get; set; } - + [Newtonsoft.Json.JsonProperty("Regex", Required = Newtonsoft.Json.Required.AllowNull)] public string Regex { get; set; } - + [Newtonsoft.Json.JsonProperty("Error", Required = Newtonsoft.Json.Required.AllowNull)] public string Error { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplateDefaultModel2 + public partial class TemplateDefaultModel2 { [Newtonsoft.Json.JsonProperty("SubjectPart", Required = Newtonsoft.Json.Required.AllowNull)] public string SubjectPart { get; set; } - + [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class TemplatePolicyModel2 + public partial class TemplatePolicyModel2 { [Newtonsoft.Json.JsonProperty("TemplateId", Required = Newtonsoft.Json.Required.AllowNull)] public int? TemplateId { get; set; } - + [Newtonsoft.Json.JsonProperty("RSAValidKeySizes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection RSAValidKeySizes { get; set; } - + [Newtonsoft.Json.JsonProperty("ECCValidCurves", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ECCValidCurves { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowKeyReuse", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AllowKeyReuse { get; set; } - + [Newtonsoft.Json.JsonProperty("AllowWildcards", Required = Newtonsoft.Json.Required.AllowNull)] public bool? AllowWildcards { get; set; } - + [Newtonsoft.Json.JsonProperty("RFCEnforcement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? RFCEnforcement { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ConfigurationTenantRequest + public partial class ConfigurationTenantRequest { [Newtonsoft.Json.JsonProperty("ConfigurationTenant", Required = Newtonsoft.Json.Required.AllowNull)] public string ConfigurationTenant { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedSSHUserQuery + public partial class PagedSSHUserQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedSSHUserQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SshUserUpdateRequest + public partial class SshUserUpdateRequest { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("LogonIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection LogonIds { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SshUserCreationRequest + public partial class SshUserCreationRequest { [Newtonsoft.Json.JsonProperty("Username", Required = Newtonsoft.Json.Required.Always)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Username { get; set; } - + [Newtonsoft.Json.JsonProperty("LogonIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection LogonIds { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SshUserAccessResponse + public partial class SshUserAccessResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Key", Required = Newtonsoft.Json.Required.AllowNull)] public KeyResponse Key { get; set; } - + [Newtonsoft.Json.JsonProperty("Username", Required = Newtonsoft.Json.Required.AllowNull)] public string Username { get; set; } - + [Newtonsoft.Json.JsonProperty("Access", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Access { get; set; } - + [Newtonsoft.Json.JsonProperty("IsGroup", Required = Newtonsoft.Json.Required.AllowNull)] public bool? IsGroup { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateRequestDetailsModel + public partial class CertificateRequestDetailsModel { [Newtonsoft.Json.JsonProperty("DenialComment", Required = Newtonsoft.Json.Required.AllowNull)] public string DenialComment { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyLength", Required = Newtonsoft.Json.Required.AllowNull)] public string KeyLength { get; set; } - + [Newtonsoft.Json.JsonProperty("SANs", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection SANs { get; set; } - + [Newtonsoft.Json.JsonProperty("CertStores", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection CertStores { get; set; } - + [Newtonsoft.Json.JsonProperty("Curve", Required = Newtonsoft.Json.Required.Default)] public string Curve { get; set; } - + [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("CARequestId", Required = Newtonsoft.Json.Required.AllowNull)] public string CARequestId { get; set; } - + [Newtonsoft.Json.JsonProperty("CommonName", Required = Newtonsoft.Json.Required.AllowNull)] public string CommonName { get; set; } - + [Newtonsoft.Json.JsonProperty("DistinguishedName", Required = Newtonsoft.Json.Required.AllowNull)] public string DistinguishedName { get; set; } - + [Newtonsoft.Json.JsonProperty("SubmissionDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset SubmissionDate { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateAuthority", Required = Newtonsoft.Json.Required.AllowNull)] public string CertificateAuthority { get; set; } - + [Newtonsoft.Json.JsonProperty("Template", Required = Newtonsoft.Json.Required.AllowNull)] public string Template { get; set; } - + [Newtonsoft.Json.JsonProperty("Requester", Required = Newtonsoft.Json.Required.AllowNull)] public string Requester { get; set; } - + [Newtonsoft.Json.JsonProperty("State", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateRequestDetailsModelState State { get; set; } - + [Newtonsoft.Json.JsonProperty("StateString", Required = Newtonsoft.Json.Required.AllowNull)] public string StateString { get; set; } - + [Newtonsoft.Json.JsonProperty("Metadata", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Metadata { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateRequestCertStoreModel + public partial class CertificateRequestCertStoreModel { [Newtonsoft.Json.JsonProperty("EntryName", Required = Newtonsoft.Json.Required.AllowNull)] public string EntryName { get; set; } - + [Newtonsoft.Json.JsonProperty("ClientMachine", Required = Newtonsoft.Json.Required.AllowNull)] public string ClientMachine { get; set; } - + [Newtonsoft.Json.JsonProperty("StorePath", Required = Newtonsoft.Json.Required.AllowNull)] public string StorePath { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedLegacyDeniedRequestQuery + public partial class PagedLegacyDeniedRequestQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedLegacyDeniedRequestQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class CertificateRequestModel + public partial class CertificateRequestModel { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public int? Id { get; set; } - + [Newtonsoft.Json.JsonProperty("CARequestId", Required = Newtonsoft.Json.Required.AllowNull)] public string CARequestId { get; set; } - + [Newtonsoft.Json.JsonProperty("CommonName", Required = Newtonsoft.Json.Required.AllowNull)] public string CommonName { get; set; } - + [Newtonsoft.Json.JsonProperty("DistinguishedName", Required = Newtonsoft.Json.Required.AllowNull)] public string DistinguishedName { get; set; } - + [Newtonsoft.Json.JsonProperty("SubmissionDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset SubmissionDate { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateAuthority", Required = Newtonsoft.Json.Required.AllowNull)] public string CertificateAuthority { get; set; } - + [Newtonsoft.Json.JsonProperty("Template", Required = Newtonsoft.Json.Required.AllowNull)] public string Template { get; set; } - + [Newtonsoft.Json.JsonProperty("Requester", Required = Newtonsoft.Json.Required.AllowNull)] public string Requester { get; set; } - + [Newtonsoft.Json.JsonProperty("State", Required = Newtonsoft.Json.Required.AllowNull)] public CertificateRequestModelState State { get; set; } - + [Newtonsoft.Json.JsonProperty("StateString", Required = Newtonsoft.Json.Required.AllowNull)] public string StateString { get; set; } - + [Newtonsoft.Json.JsonProperty("Metadata", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Metadata { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class PagedCertificateRequestQuery + public partial class PagedCertificateRequestQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public PagedCertificateRequestQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DenialRequest + public partial class DenialRequest { [Newtonsoft.Json.JsonProperty("Comment", Required = Newtonsoft.Json.Required.AllowNull)] public string Comment { get; set; } - + [Newtonsoft.Json.JsonProperty("CertificateRequestIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection CertificateRequestIds { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ApproveDenyResult + public partial class ApproveDenyResult { [Newtonsoft.Json.JsonProperty("Failures", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Failures { get; set; } - + [Newtonsoft.Json.JsonProperty("Denials", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Denials { get; set; } - + [Newtonsoft.Json.JsonProperty("Successes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Successes { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ProcessedCertificateRequest + public partial class ProcessedCertificateRequest { [Newtonsoft.Json.JsonProperty("CARowId", Required = Newtonsoft.Json.Required.AllowNull)] public int? CARowId { get; set; } - + [Newtonsoft.Json.JsonProperty("CARequestId", Required = Newtonsoft.Json.Required.AllowNull)] public string CARequestId { get; set; } - + [Newtonsoft.Json.JsonProperty("CAHost", Required = Newtonsoft.Json.Required.AllowNull)] public string CAHost { get; set; } - + [Newtonsoft.Json.JsonProperty("CALogicalName", Required = Newtonsoft.Json.Required.AllowNull)] public string CALogicalName { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyfactorRequestId", Required = Newtonsoft.Json.Required.AllowNull)] public int? KeyfactorRequestId { get; set; } - + [Newtonsoft.Json.JsonProperty("Comment", Required = Newtonsoft.Json.Required.AllowNull)] public string Comment { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AvailableStepResponse + public partial class AvailableStepResponse { /// The display name of the step. [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + /// The name of the extension. [Newtonsoft.Json.JsonProperty("ExtensionName", Required = Newtonsoft.Json.Required.AllowNull)] public string ExtensionName { get; set; } - + /// The possible outputs of the step. [Newtonsoft.Json.JsonProperty("Outputs", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Outputs { get; set; } - + [Newtonsoft.Json.JsonProperty("ConfigurationParametersDefinition", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary ConfigurationParametersDefinition { get; set; } - + [Newtonsoft.Json.JsonProperty("SignalsDefinition", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary SignalsDefinition { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ParameterDefinitionResponse + public partial class ParameterDefinitionResponse { [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("ParameterType", Required = Newtonsoft.Json.Required.AllowNull)] public ParameterDefinitionResponseParameterType ParameterType { get; set; } - + [Newtonsoft.Json.JsonProperty("Required", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Required { get; set; } - + [Newtonsoft.Json.JsonProperty("DefaultValue", Required = Newtonsoft.Json.Required.AllowNull)] public string DefaultValue { get; set; } - + [Newtonsoft.Json.JsonProperty("ControlType", Required = Newtonsoft.Json.Required.AllowNull)] public ParameterDefinitionResponseControlType ControlType { get; set; } - + [Newtonsoft.Json.JsonProperty("PotentialValues", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary PotentialValues { get; set; } - + [Newtonsoft.Json.JsonProperty("SupportTokenReplacement", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SupportTokenReplacement { get; set; } - + [Newtonsoft.Json.JsonProperty("DependsOn", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary DependsOn { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SignalDefinitionResponse + public partial class SignalDefinitionResponse { [Newtonsoft.Json.JsonProperty("InputParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary InputParameters { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DefinitionResponse + public partial class DefinitionResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + [Newtonsoft.Json.JsonProperty("Key", Required = Newtonsoft.Json.Required.AllowNull)] public string Key { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyDisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string KeyDisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("IsPublished", Required = Newtonsoft.Json.Required.AllowNull)] public bool? IsPublished { get; set; } - + [Newtonsoft.Json.JsonProperty("WorkflowType", Required = Newtonsoft.Json.Required.AllowNull)] public string WorkflowType { get; set; } - + [Newtonsoft.Json.JsonProperty("Steps", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Steps { get; set; } - + [Newtonsoft.Json.JsonProperty("DraftVersion", Required = Newtonsoft.Json.Required.AllowNull)] public int? DraftVersion { get; set; } - + [Newtonsoft.Json.JsonProperty("PublishedVersion", Required = Newtonsoft.Json.Required.AllowNull)] public int? PublishedVersion { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DefinitionStepResponse + public partial class DefinitionStepResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("UniqueName", Required = Newtonsoft.Json.Required.AllowNull)] public string UniqueName { get; set; } - + [Newtonsoft.Json.JsonProperty("ExtensionName", Required = Newtonsoft.Json.Required.AllowNull)] public string ExtensionName { get; set; } - + [Newtonsoft.Json.JsonProperty("Enabled", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Enabled { get; set; } - + [Newtonsoft.Json.JsonProperty("ConfigurationParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary ConfigurationParameters { get; set; } - + [Newtonsoft.Json.JsonProperty("Signals", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Signals { get; set; } - + [Newtonsoft.Json.JsonProperty("Conditions", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Conditions { get; set; } - + [Newtonsoft.Json.JsonProperty("Outputs", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Outputs { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DefinitionStepSignalResponse + public partial class DefinitionStepSignalResponse { /// The roles that are allowed to send this signal. [Newtonsoft.Json.JsonProperty("RoleIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection RoleIds { get; set; } - + [Newtonsoft.Json.JsonProperty("SignalName", Required = Newtonsoft.Json.Required.AllowNull)] public string SignalName { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Information about the configuration of a workflow condition. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ConditionConfigurationResponse + public partial class ConditionConfigurationResponse { /// The Id of the condition. [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + /// The value to compare to. This value will be compared to a true value. [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DefinitionUpdateRequest + public partial class DefinitionUpdateRequest { [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class WorkflowDefinitionQuery + public partial class WorkflowDefinitionQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public WorkflowDefinitionQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DefinitionQueryResponse + public partial class DefinitionQueryResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Key", Required = Newtonsoft.Json.Required.AllowNull)] public string Key { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyDisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string KeyDisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("WorkflowType", Required = Newtonsoft.Json.Required.AllowNull)] public string WorkflowType { get; set; } - + [Newtonsoft.Json.JsonProperty("DraftVersion", Required = Newtonsoft.Json.Required.AllowNull)] public int? DraftVersion { get; set; } - + [Newtonsoft.Json.JsonProperty("PublishedVersion", Required = Newtonsoft.Json.Required.AllowNull)] public int? PublishedVersion { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DefinitionCreateRequest + public partial class DefinitionCreateRequest { /// Display name of the Definition [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + /// Description of the Definition [Newtonsoft.Json.JsonProperty("Description", Required = Newtonsoft.Json.Required.AllowNull)] public string Description { get; set; } - + /// Key to be used to look up definition when starting a new workflow. /// For enrollment workflowTypes, this should be a template [Newtonsoft.Json.JsonProperty("Key", Required = Newtonsoft.Json.Required.AllowNull)] public string Key { get; set; } - + /// The Type of Workflow [Newtonsoft.Json.JsonProperty("WorkflowType", Required = Newtonsoft.Json.Required.AllowNull)] public string WorkflowType { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class WorkflowStepSchemaQuery + public partial class WorkflowStepSchemaQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public WorkflowStepSchemaQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AvailableStepQueryResponse + public partial class AvailableStepQueryResponse { /// The display name of the step. [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + /// The extension name of the step. [Newtonsoft.Json.JsonProperty("ExtensionName", Required = Newtonsoft.Json.Required.AllowNull)] public string ExtensionName { get; set; } - + /// The workflow types which this step can be a part of. [Newtonsoft.Json.JsonProperty("SupportedWorkflowTypes", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection SupportedWorkflowTypes { get; set; } - + [Newtonsoft.Json.JsonProperty("ConfigurationParametersDefinition", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary ConfigurationParametersDefinition { get; set; } - + [Newtonsoft.Json.JsonProperty("SignalsDefinition", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary SignalsDefinition { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class WorkflowTypeQuery + public partial class WorkflowTypeQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public WorkflowTypeQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class WorkflowTypeQueryResponse + public partial class WorkflowTypeQueryResponse { [Newtonsoft.Json.JsonProperty("WorkflowType", Required = Newtonsoft.Json.Required.AllowNull)] public string WorkflowType { get; set; } - + [Newtonsoft.Json.JsonProperty("KeyType", Required = Newtonsoft.Json.Required.AllowNull)] public string KeyType { get; set; } - + [Newtonsoft.Json.JsonProperty("ContextParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection ContextParameters { get; set; } - + [Newtonsoft.Json.JsonProperty("BuiltInSteps", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection BuiltInSteps { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class DefinitionStepRequest + public partial class DefinitionStepRequest { [Newtonsoft.Json.JsonProperty("ExtensionName", Required = Newtonsoft.Json.Required.AllowNull)] public string ExtensionName { get; set; } - + [Newtonsoft.Json.JsonProperty("UniqueName", Required = Newtonsoft.Json.Required.AllowNull)] public string UniqueName { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Enabled", Required = Newtonsoft.Json.Required.AllowNull)] public bool? Enabled { get; set; } - + [Newtonsoft.Json.JsonProperty("ConfigurationParameters", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary ConfigurationParameters { get; set; } - + [Newtonsoft.Json.JsonProperty("Signals", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Signals { get; set; } - + [Newtonsoft.Json.JsonProperty("Conditions", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Conditions { get; set; } - + [Newtonsoft.Json.JsonProperty("Outputs", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Outputs { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SignalConfigurationRequest + public partial class SignalConfigurationRequest { /// The name of the signal. [Newtonsoft.Json.JsonProperty("SignalName", Required = Newtonsoft.Json.Required.AllowNull)] public string SignalName { get; set; } - + /// The roles that are allowed to send the signal. [Newtonsoft.Json.JsonProperty("RoleIds", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection RoleIds { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + /// Information about the configuration of a workflow condition. [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class ConditionConfigurationRequest + public partial class ConditionConfigurationRequest { /// The value to compare to true when evaluating conditions. [Newtonsoft.Json.JsonProperty("Value", Required = Newtonsoft.Json.Required.AllowNull)] public string Value { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class InstanceResponse + public partial class InstanceResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Status", Required = Newtonsoft.Json.Required.AllowNull)] public InstanceResponseStatus Status { get; set; } - + [Newtonsoft.Json.JsonProperty("CurrentStepId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid CurrentStepId { get; set; } - + [Newtonsoft.Json.JsonProperty("StatusMessage", Required = Newtonsoft.Json.Required.AllowNull)] public string StatusMessage { get; set; } - + [Newtonsoft.Json.JsonProperty("Signals", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.ICollection Signals { get; set; } - + [Newtonsoft.Json.JsonProperty("Definition", Required = Newtonsoft.Json.Required.AllowNull)] public InstanceDefinitionResponse Definition { get; set; } - + [Newtonsoft.Json.JsonProperty("CurrentStepDisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string CurrentStepDisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("CurrentStepUniqueName", Required = Newtonsoft.Json.Required.AllowNull)] public string CurrentStepUniqueName { get; set; } - + [Newtonsoft.Json.JsonProperty("Title", Required = Newtonsoft.Json.Required.AllowNull)] public string Title { get; set; } - + [Newtonsoft.Json.JsonProperty("LastModified", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset LastModified { get; set; } - + [Newtonsoft.Json.JsonProperty("StartDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset StartDate { get; set; } - + [Newtonsoft.Json.JsonProperty("InitialData", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary InitialData { get; set; } - + [Newtonsoft.Json.JsonProperty("CurrentStateData", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary CurrentStateData { get; set; } - + [Newtonsoft.Json.JsonProperty("ReferenceId", Required = Newtonsoft.Json.Required.AllowNull)] public long ReferenceId { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class AvailableSignalResponse + public partial class AvailableSignalResponse { /// The name of the signal. [Newtonsoft.Json.JsonProperty("SignalName", Required = Newtonsoft.Json.Required.AllowNull)] public string SignalName { get; set; } - + /// The signal Id. [Newtonsoft.Json.JsonProperty("StepSignalId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid StepSignalId { get; set; } - + /// Whether or not the signal has been received. [Newtonsoft.Json.JsonProperty("SignalReceived", Required = Newtonsoft.Json.Required.AllowNull)] public bool? SignalReceived { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class InstanceDefinitionResponse + public partial class InstanceDefinitionResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("DisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string DisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("Version", Required = Newtonsoft.Json.Required.AllowNull)] public int? Version { get; set; } - + [Newtonsoft.Json.JsonProperty("WorkflowType", Required = Newtonsoft.Json.Required.AllowNull)] public string WorkflowType { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class WorkflowInstanceQuery + public partial class WorkflowInstanceQuery { /// Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) [Newtonsoft.Json.JsonProperty("QueryString", Required = Newtonsoft.Json.Required.AllowNull)] public string QueryString { get; set; } - + /// The current page within the result set to be returned [Newtonsoft.Json.JsonProperty("PageReturned", Required = Newtonsoft.Json.Required.AllowNull)] public int? PageReturned { get; set; } - + /// Maximum number of records to be returned in a single call [Newtonsoft.Json.JsonProperty("ReturnLimit", Required = Newtonsoft.Json.Required.AllowNull)] public int? ReturnLimit { get; set; } - + /// Field by which the results should be sorted (view results via Management Portal for sortable columns) [Newtonsoft.Json.JsonProperty("SortField", Required = Newtonsoft.Json.Required.AllowNull)] public string SortField { get; set; } - + /// Field sort direction [0=ascending, 1=descending] [Newtonsoft.Json.JsonProperty("SortAscending", Required = Newtonsoft.Json.Required.AllowNull)] public WorkflowInstanceQuerySortAscending SortAscending { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class InstanceQueryResponse + public partial class InstanceQueryResponse { [Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid Id { get; set; } - + [Newtonsoft.Json.JsonProperty("Status", Required = Newtonsoft.Json.Required.AllowNull)] public InstanceQueryResponseStatus Status { get; set; } - + [Newtonsoft.Json.JsonProperty("CurrentStepId", Required = Newtonsoft.Json.Required.AllowNull)] public System.Guid CurrentStepId { get; set; } - + [Newtonsoft.Json.JsonProperty("StatusMessage", Required = Newtonsoft.Json.Required.AllowNull)] public string StatusMessage { get; set; } - + [Newtonsoft.Json.JsonProperty("Definition", Required = Newtonsoft.Json.Required.AllowNull)] public InstanceDefinitionResponse Definition { get; set; } - + [Newtonsoft.Json.JsonProperty("CurrentStepDisplayName", Required = Newtonsoft.Json.Required.AllowNull)] public string CurrentStepDisplayName { get; set; } - + [Newtonsoft.Json.JsonProperty("CurrentStepUniqueName", Required = Newtonsoft.Json.Required.AllowNull)] public string CurrentStepUniqueName { get; set; } - + [Newtonsoft.Json.JsonProperty("Title", Required = Newtonsoft.Json.Required.AllowNull)] public string Title { get; set; } - + [Newtonsoft.Json.JsonProperty("LastModified", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset LastModified { get; set; } - + [Newtonsoft.Json.JsonProperty("StartDate", Required = Newtonsoft.Json.Required.AllowNull)] public System.DateTimeOffset StartDate { get; set; } - + [Newtonsoft.Json.JsonProperty("ReferenceId", Required = Newtonsoft.Json.Required.AllowNull)] public long ReferenceId { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] - public partial class SignalRequest + public partial class SignalRequest { /// The signal key. This is expected to be in a format like "STEP_NAME.SIGNAL_NAME" [Newtonsoft.Json.JsonProperty("SignalKey", Required = Newtonsoft.Json.Required.AllowNull)] public string SignalKey { get; set; } - + /// Arbitrary data to associate with the signal. [Newtonsoft.Json.JsonProperty("Data", Required = Newtonsoft.Json.Required.AllowNull)] public System.Collections.Generic.IDictionary Data { get; set; } - + private System.Collections.Generic.IDictionary _additionalProperties = new System.Collections.Generic.Dictionary(); - + [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } - - + + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending2 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending3 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending4 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending5 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending6 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending7 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending8 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending9 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending10 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending11 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending12 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending13 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending14 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending15 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending16 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending17 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending18 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending19 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending20 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending21 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending22 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending23 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending24 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending25 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending26 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending27 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending28 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending29 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending30 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending31 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending32 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending33 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending34 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending35 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending36 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending37 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending38 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum JobType { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending39 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending40 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending41 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending42 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending43 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending44 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending45 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending46 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending47 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending48 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SortAscending49 { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum AgentResponseAgentPlatform { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum AgentResponseStatus { _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedAgentQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum UpdateOrchestratorAuthCertificateReenrollmentResponseStatus { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedAgentBlueprintQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedAgentBlueprintJobsQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum Days { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedAgentBlueprintStoresQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedAgentPoolQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedAgentPoolAgentsQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedAuditLogQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum AuditLogEntryLevel { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateRetrievalResponseCertState { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + _8 = 8, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateRetrievalResponseKeyType { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateRetrievalResponseRevocationReason { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _8 = 8, - + _999 = 999, - + __1 = -1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SubjectAlternativeNameModelType { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + _8 = 8, - + _100 = 100, - + _101 = 101, - + _999 = 999, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedCertificateHistoryQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateQueryRequestSortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateImportResponseModelImportStatus { _0 = 0, - + _1 = 1, - + _2 = 2, - + _4 = 4, - + _8 = 8, - + _16 = 16, - + _32 = 32, - + _64 = 64, - + _128 = 128, - + _256 = 256, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateImportResponseModelJobStatus { _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum InvalidKeystoreReason { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum RevokeCertificateRequestReason { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _8 = 8, - + _999 = 999, - + __1 = -1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum RevokeAllCertificatesRequestReason { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _8 = 8, - + _999 = 999, - + __1 = -1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateAuthorityResponseAllowedEnrollmentTypes { _0 = 0, - + _1 = 1, - + _2 = 2, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateAuthorityResponseKeyRetention { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateAuthorityResponseCAType { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedCertificateAuthorityQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateAuthorityRequestAllowedEnrollmentTypes { _0 = 0, - + _1 = 1, - + _2 = 2, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateAuthorityRequestKeyRetention { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateAuthorityRequestCAType { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateQueryDuplicationField { _0 = 0, - + _1 = 1, - + _2 = 2, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateCollectionUpdateRequestDuplicationField { _0 = 0, - + _1 = 1, - + _2 = 2, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateCollectionResponseDuplicationField { _0 = 0, - + _1 = 1, - + _2 = 2, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateCollectionCreateRequestDuplicationField { _0 = 0, - + _1 = 1, - + _2 = 2, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateCollectionCopyRequestDuplicationField { _0 = 0, - + _1 = 1, - + _2 = 2, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedCertificateStoreQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateStoreTypeEntryParameterType { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedCertificateStoreInventoryQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedCertificateStoreServerQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedCertificateStoreContainerQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateStoreTypeResponsePrivateKeyAllowed { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateStoreTypeResponseCustomAliasAllowed { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateStoreTypePropertyType { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertStoreTypePasswordOptionsStyle { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateStoreTypeUpdateRequestPrivateKeyAllowed { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateStoreTypeUpdateRequestCustomAliasAllowed { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateStoreTypeCreationRequestPrivateKeyAllowed { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateStoreTypeCreationRequestCustomAliasAllowed { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedPendingCSRQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum JobTypeFieldResponseType { _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum JobTypeFieldRequestType { _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedDeniedAlertQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateEnrollmentFieldDataType { _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateMetadataFieldEnrollment { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum AvailableRenewalType { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedExpirationAlertQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum ExpirationAlertTestResponseAlertBuildResult { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedIssuedAlertQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedSSHUnmanagedKeyQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedKeyRotationAlertQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum KeyRotationAlertTestResponseAlertBuildResult { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedSSHLogonQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum MetadataFieldTypeModelDataType { _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + _8 = 8, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum MetadataFieldTypeModelEnrollment { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedMetadataFieldQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum MetadataFieldUpdateRequestDataType { _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + _8 = 8, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum MetadataFieldUpdateRequestEnrollment { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum MetadataFieldResponseDataType { _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + _8 = 8, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum MetadataFieldResponseEnrollment { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum MetadataFieldCreateRequestDataType { _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + _8 = 8, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum MetadataFieldCreateRequestEnrollment { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedRevocationMonitoringQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum RevocationMonitoringAlertTestResponseAlertBuildResult { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedAgentJobHistoryQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum JobHistoryResponseResult { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum JobHistoryResponseStatus { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedAgentJobQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum ProviderTypeParameterCreateRequestDataType { _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum ProviderTypeParameterResponseDataType { _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedPendingAlertQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PendingAlertTestResponseAlertBuildResult { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum ReportParametersParameterType { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _10 = 10, - + _11 = 11, - + _12 = 12, - + _13 = 13, - + _14 = 14, - + _15 = 15, - + _16 = 16, - + _17 = 17, - + _18 = 18, - + _19 = 19, - + _20 = 20, - + _21 = 21, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum ReportParametersParameterVisibility { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedReportQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedCustomReportQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedReportScheduleQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedSecurityIdentityQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedSecurityRoleQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedSSHServerQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedSSHServerGroupQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedSSHServiceAccountQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum ScanJobPartStatus { _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum NetworkDefinitionItemType { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum NetworkResponseDiscoverStatus { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum NetworkResponseMonitorStatus { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum QuietHourResponseStartDay { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum QuietHourResponseEndDay { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedSslResultQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum NetworkQueryResponseDiscoverStatus { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum NetworkQueryResponseMonitorStatus { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum QuietHourRequestStartDay { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum QuietHourRequestEndDay { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum EndpointHistoryResponseStatus { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + _8 = 8, - + _9 = 9, - + _10 = 10, - + _11 = 11, - + _12 = 12, - + _13 = 13, - + _14 = 14, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum EndpointHistoryResponseJobType { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum EndpointHistoryResponseProbeType { _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum SubjectAlternativeNameType { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + _8 = 8, - + _100 = 100, - + _101 = 101, - + _999 = 999, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedScanJobPartsQueryJobType { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedScanJobPartsQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum DisplayScanJobPartStatus { _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateRetrievalResponseKeyRetention { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateRetrievalResponseAllowedEnrollmentTypes { _0 = 0, - + _1 = 1, - + _2 = 2, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateEnrollmentFieldModelDataType { _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateMetadataFieldModelEnrollment { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedTemplateQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateCollectionRetrievalResponseKeyRetention { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateCollectionRetrievalResponseAllowedEnrollmentTypes { _0 = 0, - + _1 = 1, - + _2 = 2, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateEnrollmentFieldModel2DataType { _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateUpdateRequestKeyRetention { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateUpdateRequestAllowedEnrollmentTypes { _0 = 0, - + _1 = 1, - + _2 = 2, - + _4 = 4, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateEnrollmentFieldModel3DataType { _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum TemplateMetadataFieldModel2Enrollment { _0 = 0, - + _1 = 1, - + _2 = 2, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedSSHUserQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateRequestDetailsModelState { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + _8 = 8, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedLegacyDeniedRequestQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum CertificateRequestModelState { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + _8 = 8, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum PagedCertificateRequestQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum ParameterDefinitionResponseParameterType { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum ParameterDefinitionResponseControlType { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + _7 = 7, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum WorkflowDefinitionQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum WorkflowStepSchemaQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum WorkflowTypeQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum InstanceResponseStatus { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum WorkflowInstanceQuerySortAscending { _0 = 0, - + _1 = 1, - + } - + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.22.0 (Newtonsoft.Json v11.0.0.0)")] public enum InstanceQueryResponseStatus { _0 = 0, - + _1 = 1, - + _2 = 2, - + _3 = 3, - + _4 = 4, - + _5 = 5, - + _6 = 6, - + } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.5.0 (NJsonSchema v10.0.22.0 (Newtonsoft.Json v11.0.0.0))")] @@ -41203,11 +41193,11 @@ public partial class ApiException : System.Exception public System.Collections.Generic.IReadOnlyDictionary> Headers { get; private set; } - public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Exception innerException) + public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + response.Substring(0, response.Length >= 512 ? 512 : response.Length), innerException) { StatusCode = statusCode; - Response = response; + Response = response; Headers = headers; } @@ -41222,7 +41212,7 @@ public partial class ApiException : ApiException { public TResult Result { get; private set; } - public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, TResult result, System.Exception innerException) + public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; @@ -41233,6 +41223,6 @@ public ApiException(string message, int statusCode, string response, System.Coll #pragma warning restore 1591 #pragma warning restore 1573 -#pragma warning restore 472 -#pragma warning restore 114 -#pragma warning restore 108 +#pragma warning restore 472 +#pragma warning restore 114 +#pragma warning restore 108 \ No newline at end of file