Skip to content

Commit

Permalink
Merge pull request #5 from tryAGI/bot/update-openapi_202409231231
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 23, 2024
2 parents d646e7f + 16aa0d1 commit 6ccb5d5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ public partial class CatalogClient
{
partial void PrepareProcessCatalogFilesArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? instillRequesterUid,
global::Instill.ProcessCatalogFilesRequest request);
partial void PrepareProcessCatalogFilesRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string? instillRequesterUid,
global::Instill.ProcessCatalogFilesRequest request);
partial void ProcessProcessCatalogFilesResponse(
global::System.Net.Http.HttpClient httpClient,
Expand All @@ -24,11 +26,13 @@ partial void ProcessProcessCatalogFilesResponseContent(
/// <summary>
/// Process catalog files
/// </summary>
/// <param name="instillRequesterUid"></param>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Instill.ProcessCatalogFilesResponse> ProcessCatalogFilesAsync(
global::Instill.ProcessCatalogFilesRequest request,
string? instillRequesterUid = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
Expand All @@ -37,8 +41,14 @@ partial void ProcessProcessCatalogFilesResponseContent(
client: _httpClient);
PrepareProcessCatalogFilesArguments(
httpClient: _httpClient,
instillRequesterUid: ref instillRequesterUid,
request: request);

if (instillRequesterUid != default)
{
_httpClient.DefaultRequestHeaders.TryAddWithoutValidation("Instill-Requester-Uid", instillRequesterUid);
}

var __pathBuilder = new PathBuilder(
path: "/v1alpha/catalogs/files/processAsync",
baseUri: _httpClient.BaseAddress);
Expand All @@ -59,6 +69,7 @@ partial void ProcessProcessCatalogFilesResponseContent(
PrepareProcessCatalogFilesRequest(
httpClient: _httpClient,
httpRequestMessage: httpRequest,
instillRequesterUid: instillRequesterUid,
request: request);

using var response = await _httpClient.SendAsync(
Expand Down Expand Up @@ -101,13 +112,15 @@ partial void ProcessProcessCatalogFilesResponseContent(
/// <summary>
/// Process catalog files
/// </summary>
/// <param name="instillRequesterUid"></param>
/// <param name="fileUids">
/// The file uid.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Instill.ProcessCatalogFilesResponse> ProcessCatalogFilesAsync(
global::System.Collections.Generic.IList<string> fileUids,
string? instillRequesterUid = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::Instill.ProcessCatalogFilesRequest
Expand All @@ -116,6 +129,7 @@ partial void ProcessProcessCatalogFilesResponseContent(
};

return await ProcessCatalogFilesAsync(
instillRequesterUid: instillRequesterUid,
request: request,
cancellationToken: cancellationToken).ConfigureAwait(false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,27 @@ public partial interface ICatalogClient
/// <summary>
/// Process catalog files
/// </summary>
/// <param name="instillRequesterUid"></param>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Instill.ProcessCatalogFilesResponse> ProcessCatalogFilesAsync(
global::Instill.ProcessCatalogFilesRequest request,
string? instillRequesterUid = default,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Process catalog files
/// </summary>
/// <param name="instillRequesterUid"></param>
/// <param name="fileUids">
/// The file uid.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Instill.ProcessCatalogFilesResponse> ProcessCatalogFilesAsync(
global::System.Collections.Generic.IList<string> fileUids,
string? instillRequesterUid = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
6 changes: 6 additions & 0 deletions src/libs/Instill/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,12 @@ paths:
- Catalog
summary: Process catalog files
operationId: ProcessCatalogFiles
parameters:
- name: Instill-Requester-Uid
in: header
description: 'Indicates the authenticated namespace is making the request on behalf of another entity, typically an organization they belong to'
schema:
type: string
requestBody:
content:
application/json:
Expand Down

0 comments on commit 6ccb5d5

Please sign in to comment.