From 734efadc999424f7a04483bfde641cc289243d26 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 26 Sep 2024 09:17:30 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Instill.CatalogClient.ListChunks.g.cs | 15 +++++++++++---- .../Instill.ICatalogClient.ListChunks.g.cs | 2 ++ src/libs/Instill/openapi.yaml | 8 ++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.ListChunks.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.ListChunks.g.cs index 335c594..c219fdb 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.ListChunks.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.ListChunks.g.cs @@ -9,13 +9,15 @@ partial void PrepareListChunksArguments( global::System.Net.Http.HttpClient httpClient, ref string namespaceId, ref string catalogId, - ref string? fileUid); + ref string? fileUid, + global::System.Collections.Generic.IList? chunkUids); partial void PrepareListChunksRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string namespaceId, string catalogId, - string? fileUid); + string? fileUid, + global::System.Collections.Generic.IList? chunkUids); partial void ProcessListChunksResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -31,12 +33,14 @@ partial void ProcessListChunksResponseContent( /// /// /// + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ListChunksAsync( string namespaceId, string catalogId, string? fileUid = default, + global::System.Collections.Generic.IList? chunkUids = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -45,13 +49,15 @@ partial void ProcessListChunksResponseContent( httpClient: _httpClient, namespaceId: ref namespaceId, catalogId: ref catalogId, - fileUid: ref fileUid); + fileUid: ref fileUid, + chunkUids: chunkUids); var __pathBuilder = new PathBuilder( path: $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/chunks", baseUri: _httpClient.BaseAddress); __pathBuilder .AddOptionalParameter("fileUid", fileUid) + .AddOptionalParameter("chunkUids", chunkUids, delimiter: ",", explode: true) ; var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( @@ -66,7 +72,8 @@ partial void ProcessListChunksResponseContent( httpRequestMessage: httpRequest, namespaceId: namespaceId, catalogId: catalogId, - fileUid: fileUid); + fileUid: fileUid, + chunkUids: chunkUids); using var response = await _httpClient.SendAsync( request: httpRequest, diff --git a/src/libs/Instill/Generated/Instill.ICatalogClient.ListChunks.g.cs b/src/libs/Instill/Generated/Instill.ICatalogClient.ListChunks.g.cs index d3933a1..5390093 100644 --- a/src/libs/Instill/Generated/Instill.ICatalogClient.ListChunks.g.cs +++ b/src/libs/Instill/Generated/Instill.ICatalogClient.ListChunks.g.cs @@ -10,12 +10,14 @@ public partial interface ICatalogClient /// /// /// + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ListChunksAsync( string namespaceId, string catalogId, string? fileUid = default, + global::System.Collections.Generic.IList? chunkUids = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Instill/openapi.yaml b/src/libs/Instill/openapi.yaml index b20a84b..074e918 100644 --- a/src/libs/Instill/openapi.yaml +++ b/src/libs/Instill/openapi.yaml @@ -1436,6 +1436,14 @@ paths: description: unique identifier of the file schema: type: string + - name: chunkUids + in: query + description: repeated chunk uid + style: form + schema: + type: array + items: + type: string responses: '200': description: A successful response.