Skip to content

Commit

Permalink
Update API
Browse files Browse the repository at this point in the history
  • Loading branch information
webprofusion-chrisc committed Nov 8, 2024
1 parent 3a02273 commit 720a8ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3262,15 +3262,15 @@ public virtual async System.Threading.Tasks.Task<ManagedCertificateSummaryResult

/// <returns>OK</returns>
/// <exception cref="ApiException">A server side error occurred.</exception>
public virtual System.Threading.Tasks.Task<System.Collections.Generic.ICollection<ManagedInstanceInfo>> FlushHubManagedInstancesAsync()
public virtual System.Threading.Tasks.Task FlushHubManagedInstancesAsync()
{
return FlushHubManagedInstancesAsync(System.Threading.CancellationToken.None);
}

/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
/// <returns>OK</returns>
/// <exception cref="ApiException">A server side error occurred.</exception>
public virtual async System.Threading.Tasks.Task<System.Collections.Generic.ICollection<ManagedInstanceInfo>> FlushHubManagedInstancesAsync(System.Threading.CancellationToken cancellationToken)
public virtual async System.Threading.Tasks.Task FlushHubManagedInstancesAsync(System.Threading.CancellationToken cancellationToken)
{
var client_ = _httpClient;
var disposeClient_ = false;
Expand All @@ -3279,7 +3279,6 @@ public virtual async System.Threading.Tasks.Task<ManagedCertificateSummaryResult
using (var request_ = new System.Net.Http.HttpRequestMessage())
{
request_.Method = new System.Net.Http.HttpMethod("GET");
request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain"));

var urlBuilder_ = new System.Text.StringBuilder();
if (!string.IsNullOrEmpty(_baseUrl)) urlBuilder_.Append(_baseUrl);
Expand Down Expand Up @@ -3311,12 +3310,7 @@ public virtual async System.Threading.Tasks.Task<ManagedCertificateSummaryResult
var status_ = (int)response_.StatusCode;
if (status_ == 200)
{
var objectResponse_ = await ReadObjectResponseAsync<System.Collections.Generic.ICollection<ManagedInstanceInfo>>(response_, headers_, cancellationToken).ConfigureAwait(false);
if (objectResponse_.Object == null)
{
throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
}
return objectResponse_.Object;
return;
}
else
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public async Task<IActionResult> GetHubManagedInstances()
[HttpGet]
[Route("flush")]
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(List<ManagedInstanceInfo>))]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<IActionResult> FlushHubManagedInstances()
{
_mgmtStateProvider.Clear();
Expand Down

0 comments on commit 720a8ec

Please sign in to comment.