diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.CreateCatalog.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.CreateCatalog.g.cs index 5e1ad1d..1e539e0 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.CreateCatalog.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.CreateCatalog.g.cs @@ -44,9 +44,13 @@ partial void ProcessCreateCatalogResponseContent( namespaceId: ref namespaceId, request: request); + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/catalogs", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/namespaces/{namespaceId}/catalogs", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.DeleteCatalog.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.DeleteCatalog.g.cs index 9edb7d4..4be7ad4 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.DeleteCatalog.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.DeleteCatalog.g.cs @@ -42,9 +42,13 @@ partial void ProcessDeleteCatalogResponseContent( namespaceId: ref namespaceId, catalogId: ref catalogId); + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.DeleteCatalogFile.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.DeleteCatalogFile.g.cs index 9e9f402..d6d151a 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.DeleteCatalogFile.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.DeleteCatalogFile.g.cs @@ -37,9 +37,16 @@ partial void ProcessDeleteCatalogFileResponseContent( httpClient: _httpClient, fileUid: ref fileUid); + var __pathBuilder = new PathBuilder( + path: "/v1alpha/catalogs/files", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddRequiredParameter("fileUid", fileUid) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/catalogs/files?fileUid={fileUid}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.GetFileCatalog.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.GetFileCatalog.g.cs index ad682a7..9d2827c 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.GetFileCatalog.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.GetFileCatalog.g.cs @@ -52,9 +52,17 @@ partial void ProcessGetFileCatalogResponseContent( fileId: ref fileId, fileUid: ref fileUid); + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("fileId", fileId) + .AddOptionalParameter("fileUid", fileUid) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}?fileId={fileId}&fileUid={fileUid}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.GetSourceFile.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.GetSourceFile.g.cs index ca8a72c..638d85f 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.GetSourceFile.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.GetSourceFile.g.cs @@ -47,9 +47,13 @@ partial void ProcessGetSourceFileResponseContent( catalogId: ref catalogId, fileUid: ref fileUid); + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/files/{fileUid}/source", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/files/{fileUid}/source", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.ListCatalogFiles.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.ListCatalogFiles.g.cs index bb0853e..73a5f9d 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.ListCatalogFiles.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.ListCatalogFiles.g.cs @@ -1,4 +1,3 @@ -using System.Linq; #nullable enable @@ -10,7 +9,7 @@ partial void PrepareListCatalogFilesArguments( global::System.Net.Http.HttpClient httpClient, ref string namespaceId, ref string catalogId, - ref int pageSize, + ref int? pageSize, ref string? pageToken, global::System.Collections.Generic.IList? filterFileUids); partial void PrepareListCatalogFilesRequest( @@ -18,7 +17,7 @@ partial void PrepareListCatalogFilesRequest( global::System.Net.Http.HttpRequestMessage httpRequestMessage, string namespaceId, string catalogId, - int pageSize, + int? pageSize, string? pageToken, global::System.Collections.Generic.IList? filterFileUids); partial void ProcessListCatalogFilesResponse( @@ -43,7 +42,7 @@ partial void ProcessListCatalogFilesResponseContent( public async global::System.Threading.Tasks.Task ListCatalogFilesAsync( string namespaceId, string catalogId, - int pageSize = default, + int? pageSize = default, string? pageToken = default, global::System.Collections.Generic.IList? filterFileUids = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -58,9 +57,18 @@ partial void ProcessListCatalogFilesResponseContent( pageToken: ref pageToken, filterFileUids: filterFileUids); + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/files", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("pageSize", pageSize?.ToString()) + .AddOptionalParameter("pageToken", pageToken) + .AddOptionalParameter("filter.fileUids", filterFileUids, delimiter: ",", explode: true) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/files?pageSize={pageSize}&pageToken={pageToken}&{string.Join("&", filterFileUids?.Select(static x => $"filterFileUids={x}") ?? global::System.Array.Empty())}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.ListCatalogs.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.ListCatalogs.g.cs index f124b55..9b5fe89 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.ListCatalogs.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.ListCatalogs.g.cs @@ -37,9 +37,13 @@ partial void ProcessListCatalogsResponseContent( httpClient: _httpClient, namespaceId: ref namespaceId); + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/catalogs", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/namespaces/{namespaceId}/catalogs", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.ListChunks.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.ListChunks.g.cs index 71587ae..335c594 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.ListChunks.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.ListChunks.g.cs @@ -47,9 +47,16 @@ partial void ProcessListChunksResponseContent( catalogId: ref catalogId, fileUid: ref fileUid); + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/chunks", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("fileUid", fileUid) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/chunks?fileUid={fileUid}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.ProcessCatalogFiles.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.ProcessCatalogFiles.g.cs index f2ed85c..385909f 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.ProcessCatalogFiles.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.ProcessCatalogFiles.g.cs @@ -39,9 +39,13 @@ partial void ProcessProcessCatalogFilesResponseContent( httpClient: _httpClient, request: request); + var __pathBuilder = new PathBuilder( + path: "/v1alpha/catalogs/files/processAsync", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1alpha/catalogs/files/processAsync", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.QuestionAnswering.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.QuestionAnswering.g.cs index ed675a0..15da0a7 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.QuestionAnswering.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.QuestionAnswering.g.cs @@ -49,9 +49,13 @@ partial void ProcessQuestionAnsweringResponseContent( catalogId: ref catalogId, request: request); + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/ask", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/ask", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, @@ -119,7 +123,7 @@ partial void ProcessQuestionAnsweringResponseContent( string namespaceId, string catalogId, string? question = default, - int topK = default, + int? topK = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::Instill.QuestionAnsweringBody diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.SimilarityChunksSearch.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.SimilarityChunksSearch.g.cs index bb3e13f..32e6710 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.SimilarityChunksSearch.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.SimilarityChunksSearch.g.cs @@ -49,9 +49,13 @@ partial void ProcessSimilarityChunksSearchResponseContent( catalogId: ref catalogId, request: request); + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/chunks/retrieve", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/chunks/retrieve", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, @@ -119,7 +123,7 @@ partial void ProcessSimilarityChunksSearchResponseContent( string namespaceId, string catalogId, string? textPrompt = default, - long topK = default, + long? topK = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::Instill.SimilarityChunksSearchBody diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.UpdateCatalog.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.UpdateCatalog.g.cs index 4801dfa..4228e70 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.UpdateCatalog.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.UpdateCatalog.g.cs @@ -49,9 +49,13 @@ partial void ProcessUpdateCatalogResponseContent( catalogId: ref catalogId, request: request); + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.UpdateChunk.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.UpdateChunk.g.cs index 8199073..8fa1980 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.UpdateChunk.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.UpdateChunk.g.cs @@ -44,9 +44,13 @@ partial void ProcessUpdateChunkResponseContent( chunkUid: ref chunkUid, request: request); + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/chunks/{chunkUid}", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/chunks/{chunkUid}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, @@ -109,7 +113,7 @@ partial void ProcessUpdateChunkResponseContent( /// public async global::System.Threading.Tasks.Task UpdateChunkAsync( string chunkUid, - bool retrievable = default, + bool? retrievable = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::Instill.UpdateChunkBody diff --git a/src/libs/Instill/Generated/Instill.CatalogClient.UploadCatalogFile.g.cs b/src/libs/Instill/Generated/Instill.CatalogClient.UploadCatalogFile.g.cs index 3565912..07a0935 100644 --- a/src/libs/Instill/Generated/Instill.CatalogClient.UploadCatalogFile.g.cs +++ b/src/libs/Instill/Generated/Instill.CatalogClient.UploadCatalogFile.g.cs @@ -49,9 +49,13 @@ partial void ProcessUploadCatalogFileResponseContent( catalogId: ref catalogId, request: request); + var __pathBuilder = new PathBuilder( + path: $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/files", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1alpha/namespaces/{namespaceId}/catalogs/{catalogId}/files", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, @@ -137,7 +141,7 @@ partial void ProcessUploadCatalogFileResponseContent( string? fileUid = default, global::Instill.AllOf? processStatus = default, string? processOutcome = default, - bool retrievable = default, + bool? retrievable = default, string? content = default, string? ownerUid = default, string? creatorUid = default, @@ -146,8 +150,8 @@ partial void ProcessUploadCatalogFileResponseContent( global::System.DateTime? updateTime = default, global::System.DateTime? deleteTime = default, string? size = default, - int totalChunks = default, - int totalTokens = default, + int? totalChunks = default, + int? totalTokens = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::Instill.File diff --git a/src/libs/Instill/Generated/Instill.CreditClient.GetRemainingCredit.g.cs b/src/libs/Instill/Generated/Instill.CreditClient.GetRemainingCredit.g.cs index b8b506c..d012a89 100644 --- a/src/libs/Instill/Generated/Instill.CreditClient.GetRemainingCredit.g.cs +++ b/src/libs/Instill/Generated/Instill.CreditClient.GetRemainingCredit.g.cs @@ -41,9 +41,13 @@ partial void ProcessGetRemainingCreditResponseContent( httpClient: _httpClient, namespaceId: ref namespaceId); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/namespaces/{namespaceId}/credit", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/namespaces/{namespaceId}/credit", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.ICatalogClient.ListCatalogFiles.g.cs b/src/libs/Instill/Generated/Instill.ICatalogClient.ListCatalogFiles.g.cs index f664bac..72bde45 100644 --- a/src/libs/Instill/Generated/Instill.ICatalogClient.ListCatalogFiles.g.cs +++ b/src/libs/Instill/Generated/Instill.ICatalogClient.ListCatalogFiles.g.cs @@ -17,7 +17,7 @@ public partial interface ICatalogClient global::System.Threading.Tasks.Task ListCatalogFilesAsync( string namespaceId, string catalogId, - int pageSize = default, + int? pageSize = default, string? pageToken = default, global::System.Collections.Generic.IList? filterFileUids = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Instill/Generated/Instill.ICatalogClient.QuestionAnswering.g.cs b/src/libs/Instill/Generated/Instill.ICatalogClient.QuestionAnswering.g.cs index 21ebe73..1641e79 100644 --- a/src/libs/Instill/Generated/Instill.ICatalogClient.QuestionAnswering.g.cs +++ b/src/libs/Instill/Generated/Instill.ICatalogClient.QuestionAnswering.g.cs @@ -31,7 +31,7 @@ public partial interface ICatalogClient string namespaceId, string catalogId, string? question = default, - int topK = default, + int? topK = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.ICatalogClient.SimilarityChunksSearch.g.cs b/src/libs/Instill/Generated/Instill.ICatalogClient.SimilarityChunksSearch.g.cs index 290dd6e..f0b1431 100644 --- a/src/libs/Instill/Generated/Instill.ICatalogClient.SimilarityChunksSearch.g.cs +++ b/src/libs/Instill/Generated/Instill.ICatalogClient.SimilarityChunksSearch.g.cs @@ -31,7 +31,7 @@ public partial interface ICatalogClient string namespaceId, string catalogId, string? textPrompt = default, - long topK = default, + long? topK = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.ICatalogClient.UpdateChunk.g.cs b/src/libs/Instill/Generated/Instill.ICatalogClient.UpdateChunk.g.cs index dde3efd..8939a8c 100644 --- a/src/libs/Instill/Generated/Instill.ICatalogClient.UpdateChunk.g.cs +++ b/src/libs/Instill/Generated/Instill.ICatalogClient.UpdateChunk.g.cs @@ -25,7 +25,7 @@ public partial interface ICatalogClient /// global::System.Threading.Tasks.Task UpdateChunkAsync( string chunkUid, - bool retrievable = default, + bool? retrievable = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.ICatalogClient.UploadCatalogFile.g.cs b/src/libs/Instill/Generated/Instill.ICatalogClient.UploadCatalogFile.g.cs index f815d66..e1db3bd 100644 --- a/src/libs/Instill/Generated/Instill.ICatalogClient.UploadCatalogFile.g.cs +++ b/src/libs/Instill/Generated/Instill.ICatalogClient.UploadCatalogFile.g.cs @@ -49,7 +49,7 @@ public partial interface ICatalogClient string? fileUid = default, global::Instill.AllOf? processStatus = default, string? processOutcome = default, - bool retrievable = default, + bool? retrievable = default, string? content = default, string? ownerUid = default, string? creatorUid = default, @@ -58,8 +58,8 @@ public partial interface ICatalogClient global::System.DateTime? updateTime = default, global::System.DateTime? deleteTime = default, string? size = default, - int totalChunks = default, - int totalTokens = default, + int? totalChunks = default, + int? totalTokens = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IMetricClient.ListCreditConsumptionChartRecords.g.cs b/src/libs/Instill/Generated/Instill.IMetricClient.ListCreditConsumptionChartRecords.g.cs index 7ff4139..86f367a 100644 --- a/src/libs/Instill/Generated/Instill.IMetricClient.ListCreditConsumptionChartRecords.g.cs +++ b/src/libs/Instill/Generated/Instill.IMetricClient.ListCreditConsumptionChartRecords.g.cs @@ -20,8 +20,8 @@ public partial interface IMetricClient global::System.Threading.Tasks.Task ListCreditConsumptionChartRecordsAsync( string namespaceId, string? aggregationWindow = default, - global::System.DateTime start = default, - global::System.DateTime stop = default, + global::System.DateTime? start = default, + global::System.DateTime? stop = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.IMetricClient.ListPipelineTriggerChartRecords.g.cs b/src/libs/Instill/Generated/Instill.IMetricClient.ListPipelineTriggerChartRecords.g.cs index b63ce76..4505414 100644 --- a/src/libs/Instill/Generated/Instill.IMetricClient.ListPipelineTriggerChartRecords.g.cs +++ b/src/libs/Instill/Generated/Instill.IMetricClient.ListPipelineTriggerChartRecords.g.cs @@ -15,7 +15,7 @@ public partial interface IMetricClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ListPipelineTriggerChartRecordsAsync( - int aggregationWindow = default, + int? aggregationWindow = default, string? filter = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Instill/Generated/Instill.IMetricClient.ListPipelineTriggerTableRecords.g.cs b/src/libs/Instill/Generated/Instill.IMetricClient.ListPipelineTriggerTableRecords.g.cs index 50a76aa..f3d24c0 100644 --- a/src/libs/Instill/Generated/Instill.IMetricClient.ListPipelineTriggerTableRecords.g.cs +++ b/src/libs/Instill/Generated/Instill.IMetricClient.ListPipelineTriggerTableRecords.g.cs @@ -15,7 +15,7 @@ public partial interface IMetricClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ListPipelineTriggerTableRecordsAsync( - int pageSize = default, + int? pageSize = default, string? pageToken = default, string? filter = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Instill/Generated/Instill.IOrganizationClient.CreateOrganization.g.cs b/src/libs/Instill/Generated/Instill.IOrganizationClient.CreateOrganization.g.cs index 3c2e4b2..54f0a9b 100644 --- a/src/libs/Instill/Generated/Instill.IOrganizationClient.CreateOrganization.g.cs +++ b/src/libs/Instill/Generated/Instill.IOrganizationClient.CreateOrganization.g.cs @@ -53,8 +53,8 @@ public partial interface IOrganizationClient string? name = default, string? uid = default, string? id = default, - global::System.DateTime createTime = default, - global::System.DateTime updateTime = default, + global::System.DateTime? createTime = default, + global::System.DateTime? updateTime = default, global::Instill.AllOf? owner = default, global::Instill.AllOf? permission = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Instill/Generated/Instill.IOrganizationClient.ListOrganizations.g.cs b/src/libs/Instill/Generated/Instill.IOrganizationClient.ListOrganizations.g.cs index f081866..2ac5e64 100644 --- a/src/libs/Instill/Generated/Instill.IOrganizationClient.ListOrganizations.g.cs +++ b/src/libs/Instill/Generated/Instill.IOrganizationClient.ListOrganizations.g.cs @@ -15,7 +15,7 @@ public partial interface IOrganizationClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ListOrganizationsAsync( - int pageSize = default, + int? pageSize = default, string? pageToken = default, global::Instill.ListOrganizationsView? view = default, string? filter = default, diff --git a/src/libs/Instill/Generated/Instill.IOrganizationClient.UpdateOrganization.g.cs b/src/libs/Instill/Generated/Instill.IOrganizationClient.UpdateOrganization.g.cs index a6ea69f..62200d9 100644 --- a/src/libs/Instill/Generated/Instill.IOrganizationClient.UpdateOrganization.g.cs +++ b/src/libs/Instill/Generated/Instill.IOrganizationClient.UpdateOrganization.g.cs @@ -61,8 +61,8 @@ public partial interface IOrganizationClient string? name = default, string? uid = default, string? id = default, - global::System.DateTime createTime = default, - global::System.DateTime updateTime = default, + global::System.DateTime? createTime = default, + global::System.DateTime? updateTime = default, global::Instill.AllOf? owner = default, global::Instill.AllOf? permission = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Instill/Generated/Instill.ITokenClient.CreateToken.g.cs b/src/libs/Instill/Generated/Instill.ITokenClient.CreateToken.g.cs index e21650e..812eb53 100644 --- a/src/libs/Instill/Generated/Instill.ITokenClient.CreateToken.g.cs +++ b/src/libs/Instill/Generated/Instill.ITokenClient.CreateToken.g.cs @@ -64,17 +64,17 @@ public partial interface ITokenClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CreateTokenAsync( - global::System.DateTime lastUseTime = default, + global::System.DateTime? lastUseTime = default, string? name = default, string? uid = default, string? id = default, - global::System.DateTime createTime = default, - global::System.DateTime updateTime = default, + global::System.DateTime? createTime = default, + global::System.DateTime? updateTime = default, string? accessToken = default, global::Instill.AllOf? state = default, string? tokenType = default, - int ttl = default, - global::System.DateTime expireTime = default, + int? ttl = default, + global::System.DateTime? expireTime = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.ITokenClient.ListTokens.g.cs b/src/libs/Instill/Generated/Instill.ITokenClient.ListTokens.g.cs index 241c910..8ad2f7c 100644 --- a/src/libs/Instill/Generated/Instill.ITokenClient.ListTokens.g.cs +++ b/src/libs/Instill/Generated/Instill.ITokenClient.ListTokens.g.cs @@ -13,7 +13,7 @@ public partial interface ITokenClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ListTokensAsync( - int pageSize = default, + int? pageSize = default, string? pageToken = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Instill/Generated/Instill.IUserClient.ListUsers.g.cs b/src/libs/Instill/Generated/Instill.IUserClient.ListUsers.g.cs index 14fbf13..6a690f5 100644 --- a/src/libs/Instill/Generated/Instill.IUserClient.ListUsers.g.cs +++ b/src/libs/Instill/Generated/Instill.IUserClient.ListUsers.g.cs @@ -15,7 +15,7 @@ public partial interface IUserClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ListUsersAsync( - int pageSize = default, + int? pageSize = default, string? pageToken = default, global::Instill.ListUsersView? view = default, string? filter = default, diff --git a/src/libs/Instill/Generated/Instill.IUserClient.PatchAuthenticatedUser.g.cs b/src/libs/Instill/Generated/Instill.IUserClient.PatchAuthenticatedUser.g.cs index 92caf67..b9f37c5 100644 --- a/src/libs/Instill/Generated/Instill.IUserClient.PatchAuthenticatedUser.g.cs +++ b/src/libs/Instill/Generated/Instill.IUserClient.PatchAuthenticatedUser.g.cs @@ -81,8 +81,8 @@ public partial interface IUserClient bool newsletterSubscription, string? name = default, string? uid = default, - global::System.DateTime createTime = default, - global::System.DateTime updateTime = default, + global::System.DateTime? createTime = default, + global::System.DateTime? updateTime = default, string? customerId = default, string? role = default, string? cookieToken = default, diff --git a/src/libs/Instill/Generated/Instill.MembershipClient.DeleteOrganizationMembership.g.cs b/src/libs/Instill/Generated/Instill.MembershipClient.DeleteOrganizationMembership.g.cs index acee439..8dd8f83 100644 --- a/src/libs/Instill/Generated/Instill.MembershipClient.DeleteOrganizationMembership.g.cs +++ b/src/libs/Instill/Generated/Instill.MembershipClient.DeleteOrganizationMembership.g.cs @@ -43,9 +43,13 @@ partial void ProcessDeleteOrganizationMembershipResponseContent( organizationId: ref organizationId, userId: ref userId); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/organizations/{organizationId}/memberships/{userId}", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/organizations/{organizationId}/memberships/{userId}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.MembershipClient.DeleteUserMembership.g.cs b/src/libs/Instill/Generated/Instill.MembershipClient.DeleteUserMembership.g.cs index a4d73b3..ee9efc5 100644 --- a/src/libs/Instill/Generated/Instill.MembershipClient.DeleteUserMembership.g.cs +++ b/src/libs/Instill/Generated/Instill.MembershipClient.DeleteUserMembership.g.cs @@ -43,9 +43,13 @@ partial void ProcessDeleteUserMembershipResponseContent( userId: ref userId, organizationId: ref organizationId); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/users/{userId}/memberships/{organizationId}", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/users/{userId}/memberships/{organizationId}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.MembershipClient.GetOrganizationMembership.g.cs b/src/libs/Instill/Generated/Instill.MembershipClient.GetOrganizationMembership.g.cs index ddfaafb..a1d938a 100644 --- a/src/libs/Instill/Generated/Instill.MembershipClient.GetOrganizationMembership.g.cs +++ b/src/libs/Instill/Generated/Instill.MembershipClient.GetOrganizationMembership.g.cs @@ -48,9 +48,16 @@ partial void ProcessGetOrganizationMembershipResponseContent( userId: ref userId, view: ref view); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/organizations/{organizationId}/memberships/{userId}", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("view", view?.ToValueString()) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/organizations/{organizationId}/memberships/{userId}?view={(global::System.Uri.EscapeDataString(view?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.MembershipClient.GetUserMembership.g.cs b/src/libs/Instill/Generated/Instill.MembershipClient.GetUserMembership.g.cs index ab9514c..2e884c9 100644 --- a/src/libs/Instill/Generated/Instill.MembershipClient.GetUserMembership.g.cs +++ b/src/libs/Instill/Generated/Instill.MembershipClient.GetUserMembership.g.cs @@ -49,9 +49,16 @@ partial void ProcessGetUserMembershipResponseContent( organizationId: ref organizationId, view: ref view); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/users/{userId}/memberships/{organizationId}", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("view", view?.ToValueString()) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/users/{userId}/memberships/{organizationId}?view={(global::System.Uri.EscapeDataString(view?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.MembershipClient.ListOrganizationMemberships.g.cs b/src/libs/Instill/Generated/Instill.MembershipClient.ListOrganizationMemberships.g.cs index 8159d2d..52052b9 100644 --- a/src/libs/Instill/Generated/Instill.MembershipClient.ListOrganizationMemberships.g.cs +++ b/src/libs/Instill/Generated/Instill.MembershipClient.ListOrganizationMemberships.g.cs @@ -38,9 +38,13 @@ partial void ProcessListOrganizationMembershipsResponseContent( httpClient: _httpClient, organizationId: ref organizationId); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/organizations/{organizationId}/memberships", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/organizations/{organizationId}/memberships", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.MembershipClient.ListUserMemberships.g.cs b/src/libs/Instill/Generated/Instill.MembershipClient.ListUserMemberships.g.cs index 6b988f3..4269fa7 100644 --- a/src/libs/Instill/Generated/Instill.MembershipClient.ListUserMemberships.g.cs +++ b/src/libs/Instill/Generated/Instill.MembershipClient.ListUserMemberships.g.cs @@ -38,9 +38,13 @@ partial void ProcessListUserMembershipsResponseContent( httpClient: _httpClient, userId: ref userId); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/users/{userId}/memberships", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/users/{userId}/memberships", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.MembershipClient.UpdateOrganizationMembership.g.cs b/src/libs/Instill/Generated/Instill.MembershipClient.UpdateOrganizationMembership.g.cs index d1f3557..82ac6f7 100644 --- a/src/libs/Instill/Generated/Instill.MembershipClient.UpdateOrganizationMembership.g.cs +++ b/src/libs/Instill/Generated/Instill.MembershipClient.UpdateOrganizationMembership.g.cs @@ -55,9 +55,16 @@ partial void ProcessUpdateOrganizationMembershipResponseContent( updateMask: ref updateMask, request: request); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/organizations/{organizationId}/memberships/{userId}", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddRequiredParameter("updateMask", updateMask) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/organizations/{organizationId}/memberships/{userId}?updateMask={updateMask}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, diff --git a/src/libs/Instill/Generated/Instill.MembershipClient.UpdateUserMembership.g.cs b/src/libs/Instill/Generated/Instill.MembershipClient.UpdateUserMembership.g.cs index 812d128..2d74c66 100644 --- a/src/libs/Instill/Generated/Instill.MembershipClient.UpdateUserMembership.g.cs +++ b/src/libs/Instill/Generated/Instill.MembershipClient.UpdateUserMembership.g.cs @@ -55,9 +55,16 @@ partial void ProcessUpdateUserMembershipResponseContent( updateMask: ref updateMask, request: request); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/users/{userId}/memberships/{organizationId}", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddRequiredParameter("updateMask", updateMask) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/users/{userId}/memberships/{organizationId}?updateMask={updateMask}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, diff --git a/src/libs/Instill/Generated/Instill.MetricClient.ListCreditConsumptionChartRecords.g.cs b/src/libs/Instill/Generated/Instill.MetricClient.ListCreditConsumptionChartRecords.g.cs index 32909f3..0827e53 100644 --- a/src/libs/Instill/Generated/Instill.MetricClient.ListCreditConsumptionChartRecords.g.cs +++ b/src/libs/Instill/Generated/Instill.MetricClient.ListCreditConsumptionChartRecords.g.cs @@ -9,15 +9,15 @@ partial void PrepareListCreditConsumptionChartRecordsArguments( global::System.Net.Http.HttpClient httpClient, ref string namespaceId, ref string? aggregationWindow, - ref global::System.DateTime start, - ref global::System.DateTime stop); + ref global::System.DateTime? start, + ref global::System.DateTime? stop); partial void PrepareListCreditConsumptionChartRecordsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string namespaceId, string? aggregationWindow, - global::System.DateTime start, - global::System.DateTime stop); + global::System.DateTime? start, + global::System.DateTime? stop); partial void ProcessListCreditConsumptionChartRecordsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -43,8 +43,8 @@ partial void ProcessListCreditConsumptionChartRecordsResponseContent( public async global::System.Threading.Tasks.Task ListCreditConsumptionChartRecordsAsync( string namespaceId, string? aggregationWindow = default, - global::System.DateTime start = default, - global::System.DateTime stop = default, + global::System.DateTime? start = default, + global::System.DateTime? stop = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -56,9 +56,19 @@ partial void ProcessListCreditConsumptionChartRecordsResponseContent( start: ref start, stop: ref stop); + var __pathBuilder = new PathBuilder( + path: "/v1beta/metrics/credit/charts", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddRequiredParameter("namespaceId", namespaceId) + .AddOptionalParameter("aggregationWindow", aggregationWindow) + .AddOptionalParameter("start", start?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + .AddOptionalParameter("stop", stop?.ToString("yyyy-MM-ddTHH:mm:ssZ")) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/metrics/credit/charts?namespaceId={namespaceId}&aggregationWindow={aggregationWindow}&start={start:yyyy-MM-ddTHH:mm:ssZ}&stop={stop:yyyy-MM-ddTHH:mm:ssZ}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.MetricClient.ListPipelineTriggerChartRecords.g.cs b/src/libs/Instill/Generated/Instill.MetricClient.ListPipelineTriggerChartRecords.g.cs index 9665959..ea1d580 100644 --- a/src/libs/Instill/Generated/Instill.MetricClient.ListPipelineTriggerChartRecords.g.cs +++ b/src/libs/Instill/Generated/Instill.MetricClient.ListPipelineTriggerChartRecords.g.cs @@ -7,12 +7,12 @@ public partial class MetricClient { partial void PrepareListPipelineTriggerChartRecordsArguments( global::System.Net.Http.HttpClient httpClient, - ref int aggregationWindow, + ref int? aggregationWindow, ref string? filter); partial void PrepareListPipelineTriggerChartRecordsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int aggregationWindow, + int? aggregationWindow, string? filter); partial void ProcessListPipelineTriggerChartRecordsResponse( global::System.Net.Http.HttpClient httpClient, @@ -34,7 +34,7 @@ partial void ProcessListPipelineTriggerChartRecordsResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ListPipelineTriggerChartRecordsAsync( - int aggregationWindow = default, + int? aggregationWindow = default, string? filter = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -45,9 +45,17 @@ partial void ProcessListPipelineTriggerChartRecordsResponseContent( aggregationWindow: ref aggregationWindow, filter: ref filter); + var __pathBuilder = new PathBuilder( + path: "/v1beta/metrics/vdp/pipeline/charts", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("aggregationWindow", aggregationWindow?.ToString()) + .AddOptionalParameter("filter", filter) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/metrics/vdp/pipeline/charts?aggregationWindow={aggregationWindow}&filter={filter}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.MetricClient.ListPipelineTriggerTableRecords.g.cs b/src/libs/Instill/Generated/Instill.MetricClient.ListPipelineTriggerTableRecords.g.cs index 320e156..cb0315a 100644 --- a/src/libs/Instill/Generated/Instill.MetricClient.ListPipelineTriggerTableRecords.g.cs +++ b/src/libs/Instill/Generated/Instill.MetricClient.ListPipelineTriggerTableRecords.g.cs @@ -7,13 +7,13 @@ public partial class MetricClient { partial void PrepareListPipelineTriggerTableRecordsArguments( global::System.Net.Http.HttpClient httpClient, - ref int pageSize, + ref int? pageSize, ref string? pageToken, ref string? filter); partial void PrepareListPipelineTriggerTableRecordsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int pageSize, + int? pageSize, string? pageToken, string? filter); partial void ProcessListPipelineTriggerTableRecordsResponse( @@ -36,7 +36,7 @@ partial void ProcessListPipelineTriggerTableRecordsResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ListPipelineTriggerTableRecordsAsync( - int pageSize = default, + int? pageSize = default, string? pageToken = default, string? filter = default, global::System.Threading.CancellationToken cancellationToken = default) @@ -49,9 +49,18 @@ partial void ProcessListPipelineTriggerTableRecordsResponseContent( pageToken: ref pageToken, filter: ref filter); + var __pathBuilder = new PathBuilder( + path: "/v1beta/metrics/vdp/pipeline/tables", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("pageSize", pageSize?.ToString()) + .AddOptionalParameter("pageToken", pageToken) + .AddOptionalParameter("filter", filter) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/metrics/vdp/pipeline/tables?pageSize={pageSize}&pageToken={pageToken}&filter={filter}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.Models.ApiToken.g.cs b/src/libs/Instill/Generated/Instill.Models.ApiToken.g.cs index dc10ff9..6b1da78 100644 --- a/src/libs/Instill/Generated/Instill.Models.ApiToken.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.ApiToken.g.cs @@ -16,7 +16,7 @@ public sealed partial class ApiToken /// the token was used. /// [global::System.Text.Json.Serialization.JsonPropertyName("lastUseTime")] - public global::System.DateTime LastUseTime { get; set; } + public global::System.DateTime? LastUseTime { get; set; } /// /// The name of the token, define by its ID.
@@ -45,13 +45,13 @@ public sealed partial class ApiToken /// Creation time. ///
[global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public global::System.DateTime CreateTime { get; set; } + public global::System.DateTime? CreateTime { get; set; } /// /// Update time. /// [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public global::System.DateTime UpdateTime { get; set; } + public global::System.DateTime? UpdateTime { get; set; } /// /// An opaque access token representing the API token string.
@@ -78,13 +78,13 @@ public sealed partial class ApiToken /// The time-to-live in seconds for this resource. ///
[global::System.Text.Json.Serialization.JsonPropertyName("ttl")] - public int Ttl { get; set; } + public int? Ttl { get; set; } /// /// Expiration time. /// [global::System.Text.Json.Serialization.JsonPropertyName("expireTime")] - public global::System.DateTime ExpireTime { get; set; } + public global::System.DateTime? ExpireTime { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.Artifactv1alphaChunk.g.cs b/src/libs/Instill/Generated/Instill.Models.Artifactv1alphaChunk.g.cs index 055aa1b..19012d0 100644 --- a/src/libs/Instill/Generated/Instill.Models.Artifactv1alphaChunk.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.Artifactv1alphaChunk.g.cs @@ -18,31 +18,31 @@ public sealed partial class Artifactv1alphaChunk /// /// [global::System.Text.Json.Serialization.JsonPropertyName("retrievable")] - public bool Retrievable { get; set; } + public bool? Retrievable { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("startPos")] - public long StartPos { get; set; } + public long? StartPos { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("endPos")] - public long EndPos { get; set; } + public long? EndPos { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("tokens")] - public long Tokens { get; set; } + public long? Tokens { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public global::System.DateTime CreateTime { get; set; } + public global::System.DateTime? CreateTime { get; set; } /// /// diff --git a/src/libs/Instill/Generated/Instill.Models.AuthenticatedUser.g.cs b/src/libs/Instill/Generated/Instill.Models.AuthenticatedUser.g.cs index f5f1767..4d12a43 100644 --- a/src/libs/Instill/Generated/Instill.Models.AuthenticatedUser.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.AuthenticatedUser.g.cs @@ -41,13 +41,13 @@ public sealed partial class AuthenticatedUser /// Creation time. /// [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public global::System.DateTime CreateTime { get; set; } + public global::System.DateTime? CreateTime { get; set; } /// /// Update time. /// [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public global::System.DateTime UpdateTime { get; set; } + public global::System.DateTime? UpdateTime { get; set; } /// /// Email. diff --git a/src/libs/Instill/Generated/Instill.Models.Catalog.g.cs b/src/libs/Instill/Generated/Instill.Models.Catalog.g.cs index 5b1017c..9ba2998 100644 --- a/src/libs/Instill/Generated/Instill.Models.Catalog.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.Catalog.g.cs @@ -78,13 +78,13 @@ public sealed partial class Catalog /// The total files in catalog. /// [global::System.Text.Json.Serialization.JsonPropertyName("totalFiles")] - public long TotalFiles { get; set; } + public long? TotalFiles { get; set; } /// /// The total tokens in catalog. /// [global::System.Text.Json.Serialization.JsonPropertyName("totalTokens")] - public long TotalTokens { get; set; } + public long? TotalTokens { get; set; } /// /// The current used storage in catalog. diff --git a/src/libs/Instill/Generated/Instill.Models.File.g.cs b/src/libs/Instill/Generated/Instill.Models.File.g.cs index 8111919..ffe8f5f 100644 --- a/src/libs/Instill/Generated/Instill.Models.File.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.File.g.cs @@ -48,7 +48,7 @@ public sealed partial class File /// /// [global::System.Text.Json.Serialization.JsonPropertyName("retrievable")] - public bool Retrievable { get; set; } + public bool? Retrievable { get; set; } /// /// @@ -102,13 +102,13 @@ public sealed partial class File /// /// [global::System.Text.Json.Serialization.JsonPropertyName("totalChunks")] - public int TotalChunks { get; set; } + public int? TotalChunks { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("totalTokens")] - public int TotalTokens { get; set; } + public int? TotalTokens { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.GetFileCatalogResponseChunk.g.cs b/src/libs/Instill/Generated/Instill.Models.GetFileCatalogResponseChunk.g.cs index f632a04..9435bc8 100644 --- a/src/libs/Instill/Generated/Instill.Models.GetFileCatalogResponseChunk.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.GetFileCatalogResponseChunk.g.cs @@ -27,13 +27,13 @@ public sealed partial class GetFileCatalogResponseChunk /// /// [global::System.Text.Json.Serialization.JsonPropertyName("startPos")] - public int StartPos { get; set; } + public int? StartPos { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("endPos")] - public int EndPos { get; set; } + public int? EndPos { get; set; } /// /// @@ -45,7 +45,7 @@ public sealed partial class GetFileCatalogResponseChunk /// /// [global::System.Text.Json.Serialization.JsonPropertyName("tokensNum")] - public int TokensNum { get; set; } + public int? TokensNum { get; set; } /// /// @@ -57,13 +57,13 @@ public sealed partial class GetFileCatalogResponseChunk /// /// [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public global::System.DateTime CreateTime { get; set; } + public global::System.DateTime? CreateTime { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("retrievable")] - public bool Retrievable { get; set; } + public bool? Retrievable { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.GetFileCatalogResponseMetadata.g.cs b/src/libs/Instill/Generated/Instill.Models.GetFileCatalogResponseMetadata.g.cs index dd3e2d5..da07d33 100644 --- a/src/libs/Instill/Generated/Instill.Models.GetFileCatalogResponseMetadata.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.GetFileCatalogResponseMetadata.g.cs @@ -39,7 +39,7 @@ public sealed partial class GetFileCatalogResponseMetadata /// /// [global::System.Text.Json.Serialization.JsonPropertyName("fileUploadTime")] - public global::System.DateTime FileUploadTime { get; set; } + public global::System.DateTime? FileUploadTime { get; set; } /// /// diff --git a/src/libs/Instill/Generated/Instill.Models.GetFileCatalogResponseText.g.cs b/src/libs/Instill/Generated/Instill.Models.GetFileCatalogResponseText.g.cs index 9f68d0b..2d5b301 100644 --- a/src/libs/Instill/Generated/Instill.Models.GetFileCatalogResponseText.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.GetFileCatalogResponseText.g.cs @@ -24,19 +24,19 @@ public sealed partial class GetFileCatalogResponseText /// /// [global::System.Text.Json.Serialization.JsonPropertyName("transformedContentChunkNum")] - public int TransformedContentChunkNum { get; set; } + public int? TransformedContentChunkNum { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("transformedContentTokenNum")] - public int TransformedContentTokenNum { get; set; } + public int? TransformedContentTokenNum { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("transformedContentUpdateTime")] - public global::System.DateTime TransformedContentUpdateTime { get; set; } + public global::System.DateTime? TransformedContentUpdateTime { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.GetRemainingCreditAdminResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.GetRemainingCreditAdminResponse.g.cs index fe8fd8f..db41902 100644 --- a/src/libs/Instill/Generated/Instill.Models.GetRemainingCreditAdminResponse.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.GetRemainingCreditAdminResponse.g.cs @@ -13,7 +13,7 @@ public sealed partial class GetRemainingCreditAdminResponse /// The requested credit. /// [global::System.Text.Json.Serialization.JsonPropertyName("amount")] - public float Amount { get; set; } + public float? Amount { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.GetRemainingCreditResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.GetRemainingCreditResponse.g.cs index b6da071..72a6600 100644 --- a/src/libs/Instill/Generated/Instill.Models.GetRemainingCreditResponse.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.GetRemainingCreditResponse.g.cs @@ -13,20 +13,20 @@ public sealed partial class GetRemainingCreditResponse /// Amount of perishable credit, i.e. credit with an expiration date. /// [global::System.Text.Json.Serialization.JsonPropertyName("perishable")] - public float Perishable { get; set; } + public float? Perishable { get; set; } /// /// Amount of imperishable credit, e.g. purchased credit, which doesn't
/// expire. ///
[global::System.Text.Json.Serialization.JsonPropertyName("imperishable")] - public float Imperishable { get; set; } + public float? Imperishable { get; set; } /// /// Total remaining credit. /// [global::System.Text.Json.Serialization.JsonPropertyName("total")] - public float Total { get; set; } + public float? Total { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.GooglerpcStatus.g.cs b/src/libs/Instill/Generated/Instill.Models.GooglerpcStatus.g.cs index 967b4cd..981b64b 100644 --- a/src/libs/Instill/Generated/Instill.Models.GooglerpcStatus.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.GooglerpcStatus.g.cs @@ -12,7 +12,7 @@ public sealed partial class GooglerpcStatus /// /// [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public int Code { get; set; } + public int? Code { get; set; } /// /// diff --git a/src/libs/Instill/Generated/Instill.Models.ListCatalogFilesResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListCatalogFilesResponse.g.cs index fbb513f..23f9684 100644 --- a/src/libs/Instill/Generated/Instill.Models.ListCatalogFilesResponse.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.ListCatalogFilesResponse.g.cs @@ -20,13 +20,13 @@ public sealed partial class ListCatalogFilesResponse /// The total number of files. /// [global::System.Text.Json.Serialization.JsonPropertyName("totalSize")] - public int TotalSize { get; set; } + public int? TotalSize { get; set; } /// /// The requested page size. /// [global::System.Text.Json.Serialization.JsonPropertyName("pageSize")] - public int PageSize { get; set; } + public int? PageSize { get; set; } /// /// diff --git a/src/libs/Instill/Generated/Instill.Models.ListOrganizationsAdminResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListOrganizationsAdminResponse.g.cs index 86be152..bd7ac92 100644 --- a/src/libs/Instill/Generated/Instill.Models.ListOrganizationsAdminResponse.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.ListOrganizationsAdminResponse.g.cs @@ -24,7 +24,7 @@ public sealed partial class ListOrganizationsAdminResponse /// Total number of organizations. /// [global::System.Text.Json.Serialization.JsonPropertyName("totalSize")] - public int TotalSize { get; set; } + public int? TotalSize { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.ListOrganizationsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListOrganizationsResponse.g.cs index ac61d64..9b1979b 100644 --- a/src/libs/Instill/Generated/Instill.Models.ListOrganizationsResponse.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.ListOrganizationsResponse.g.cs @@ -24,7 +24,7 @@ public sealed partial class ListOrganizationsResponse /// Total number of organizations. /// [global::System.Text.Json.Serialization.JsonPropertyName("totalSize")] - public int TotalSize { get; set; } + public int? TotalSize { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerTableRecordsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerTableRecordsResponse.g.cs index 63d9a76..90f7485 100644 --- a/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerTableRecordsResponse.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerTableRecordsResponse.g.cs @@ -24,7 +24,7 @@ public sealed partial class ListPipelineTriggerTableRecordsResponse /// /// [global::System.Text.Json.Serialization.JsonPropertyName("totalSize")] - public int TotalSize { get; set; } + public int? TotalSize { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.ListRepositoryTagsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListRepositoryTagsResponse.g.cs index 4843e0f..9c87e5a 100644 --- a/src/libs/Instill/Generated/Instill.Models.ListRepositoryTagsResponse.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.ListRepositoryTagsResponse.g.cs @@ -18,19 +18,19 @@ public sealed partial class ListRepositoryTagsResponse /// Total number of tags. /// [global::System.Text.Json.Serialization.JsonPropertyName("totalSize")] - public int TotalSize { get; set; } + public int? TotalSize { get; set; } /// /// The requested page size. /// [global::System.Text.Json.Serialization.JsonPropertyName("pageSize")] - public int PageSize { get; set; } + public int? PageSize { get; set; } /// /// The requested page offset. /// [global::System.Text.Json.Serialization.JsonPropertyName("page")] - public int Page { get; set; } + public int? Page { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.ListTokensResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListTokensResponse.g.cs index 8cb0961..bce62b8 100644 --- a/src/libs/Instill/Generated/Instill.Models.ListTokensResponse.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.ListTokensResponse.g.cs @@ -24,7 +24,7 @@ public sealed partial class ListTokensResponse /// Total number of API token resources. /// [global::System.Text.Json.Serialization.JsonPropertyName("totalSize")] - public int TotalSize { get; set; } + public int? TotalSize { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.ListUsersAdminResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListUsersAdminResponse.g.cs index bf6485c..8c8169f 100644 --- a/src/libs/Instill/Generated/Instill.Models.ListUsersAdminResponse.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.ListUsersAdminResponse.g.cs @@ -24,7 +24,7 @@ public sealed partial class ListUsersAdminResponse /// Total number of users. /// [global::System.Text.Json.Serialization.JsonPropertyName("totalSize")] - public int TotalSize { get; set; } + public int? TotalSize { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.ListUsersResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListUsersResponse.g.cs index 4227d68..d76c8a1 100644 --- a/src/libs/Instill/Generated/Instill.Models.ListUsersResponse.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.ListUsersResponse.g.cs @@ -24,7 +24,7 @@ public sealed partial class ListUsersResponse /// Total number of users. /// [global::System.Text.Json.Serialization.JsonPropertyName("totalSize")] - public int TotalSize { get; set; } + public int? TotalSize { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.Organization7.g.cs b/src/libs/Instill/Generated/Instill.Models.Organization7.g.cs index d0b5f02..0156cb7 100644 --- a/src/libs/Instill/Generated/Instill.Models.Organization7.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.Organization7.g.cs @@ -38,13 +38,13 @@ public sealed partial class Organization7 /// Creation time. /// [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public global::System.DateTime CreateTime { get; set; } + public global::System.DateTime? CreateTime { get; set; } /// /// Update time. /// [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public global::System.DateTime UpdateTime { get; set; } + public global::System.DateTime? UpdateTime { get; set; } /// /// The user that owns the organization. diff --git a/src/libs/Instill/Generated/Instill.Models.OrganizationSubscription.g.cs b/src/libs/Instill/Generated/Instill.Models.OrganizationSubscription.g.cs index d8337ea..4029228 100644 --- a/src/libs/Instill/Generated/Instill.Models.OrganizationSubscription.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.OrganizationSubscription.g.cs @@ -28,7 +28,7 @@ public sealed partial class OrganizationSubscription /// Number of used seats within the organization subscription. /// [global::System.Text.Json.Serialization.JsonPropertyName("usedSeats")] - public int UsedSeats { get; set; } + public int? UsedSeats { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.Permission2.g.cs b/src/libs/Instill/Generated/Instill.Models.Permission2.g.cs index 684b606..31bd881 100644 --- a/src/libs/Instill/Generated/Instill.Models.Permission2.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.Permission2.g.cs @@ -12,7 +12,7 @@ public sealed partial class Permission2 /// Defines whether the resource can be modified. /// [global::System.Text.Json.Serialization.JsonPropertyName("canEdit")] - public bool CanEdit { get; set; } + public bool? CanEdit { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.PipelineTriggerTableRecord.g.cs b/src/libs/Instill/Generated/Instill.Models.PipelineTriggerTableRecord.g.cs index faf4471..f655ed8 100644 --- a/src/libs/Instill/Generated/Instill.Models.PipelineTriggerTableRecord.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.PipelineTriggerTableRecord.g.cs @@ -25,13 +25,13 @@ public sealed partial class PipelineTriggerTableRecord /// Number of triggers with `STATUS_COMPLETED`. /// [global::System.Text.Json.Serialization.JsonPropertyName("triggerCountCompleted")] - public int TriggerCountCompleted { get; set; } + public int? TriggerCountCompleted { get; set; } /// /// Number of triggers with `STATUS_ERRORED`. /// [global::System.Text.Json.Serialization.JsonPropertyName("triggerCountErrored")] - public int TriggerCountErrored { get; set; } + public int? TriggerCountErrored { get; set; } /// /// Version for the triggered pipeline if it is a release pipeline. diff --git a/src/libs/Instill/Generated/Instill.Models.QuestionAnsweringBody.g.cs b/src/libs/Instill/Generated/Instill.Models.QuestionAnsweringBody.g.cs index 77002c8..aed565d 100644 --- a/src/libs/Instill/Generated/Instill.Models.QuestionAnsweringBody.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.QuestionAnsweringBody.g.cs @@ -18,7 +18,7 @@ public sealed partial class QuestionAnsweringBody /// /// [global::System.Text.Json.Serialization.JsonPropertyName("topK")] - public int TopK { get; set; } + public int? TopK { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.RepositoryTag.g.cs b/src/libs/Instill/Generated/Instill.Models.RepositoryTag.g.cs index ddda124..81aa576 100644 --- a/src/libs/Instill/Generated/Instill.Models.RepositoryTag.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.RepositoryTag.g.cs @@ -32,7 +32,7 @@ public sealed partial class RepositoryTag /// Tag update time, i.e. timestamp of the last push. /// [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public global::System.DateTime UpdateTime { get; set; } + public global::System.DateTime? UpdateTime { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.RpcStatus.g.cs b/src/libs/Instill/Generated/Instill.Models.RpcStatus.g.cs index b3f0591..7fa3c2c 100644 --- a/src/libs/Instill/Generated/Instill.Models.RpcStatus.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.RpcStatus.g.cs @@ -12,7 +12,7 @@ public sealed partial class RpcStatus /// /// [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public int Code { get; set; } + public int? Code { get; set; } /// /// diff --git a/src/libs/Instill/Generated/Instill.Models.SimilarityChunk.g.cs b/src/libs/Instill/Generated/Instill.Models.SimilarityChunk.g.cs index b9013e8..1a934ca 100644 --- a/src/libs/Instill/Generated/Instill.Models.SimilarityChunk.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.SimilarityChunk.g.cs @@ -18,7 +18,7 @@ public sealed partial class SimilarityChunk /// /// [global::System.Text.Json.Serialization.JsonPropertyName("similarityScore")] - public float SimilarityScore { get; set; } + public float? SimilarityScore { get; set; } /// /// diff --git a/src/libs/Instill/Generated/Instill.Models.SimilarityChunksSearchBody.g.cs b/src/libs/Instill/Generated/Instill.Models.SimilarityChunksSearchBody.g.cs index 39bbc3c..4b5d1fa 100644 --- a/src/libs/Instill/Generated/Instill.Models.SimilarityChunksSearchBody.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.SimilarityChunksSearchBody.g.cs @@ -18,7 +18,7 @@ public sealed partial class SimilarityChunksSearchBody /// /// [global::System.Text.Json.Serialization.JsonPropertyName("topK")] - public long TopK { get; set; } + public long? TopK { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.SourceFile2.g.cs b/src/libs/Instill/Generated/Instill.Models.SourceFile2.g.cs index 0b65952..c9589d9 100644 --- a/src/libs/Instill/Generated/Instill.Models.SourceFile2.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.SourceFile2.g.cs @@ -24,13 +24,13 @@ public sealed partial class SourceFile2 /// /// [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public global::System.DateTime CreateTime { get; set; } + public global::System.DateTime? CreateTime { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public global::System.DateTime UpdateTime { get; set; } + public global::System.DateTime? UpdateTime { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.StripeSubscriptionDetail.g.cs b/src/libs/Instill/Generated/Instill.Models.StripeSubscriptionDetail.g.cs index 697b269..539ee4b 100644 --- a/src/libs/Instill/Generated/Instill.Models.StripeSubscriptionDetail.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.StripeSubscriptionDetail.g.cs @@ -32,19 +32,19 @@ public sealed partial class StripeSubscriptionDetail /// Price of the subscription. /// [global::System.Text.Json.Serialization.JsonPropertyName("price")] - public float Price { get; set; } + public float? Price { get; set; } /// /// Optional timestamp indicating when the subscription was canceled, if applicable. /// [global::System.Text.Json.Serialization.JsonPropertyName("canceledAt")] - public int CanceledAt { get; set; } + public int? CanceledAt { get; set; } /// /// Optional timestamp indicating when the trial ended, if applicable. /// [global::System.Text.Json.Serialization.JsonPropertyName("trialEnd")] - public int TrialEnd { get; set; } + public int? TrialEnd { get; set; } /// /// Status of the subscription. diff --git a/src/libs/Instill/Generated/Instill.Models.SubtractCreditAdminResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.SubtractCreditAdminResponse.g.cs index 31c3fc2..4ca05f5 100644 --- a/src/libs/Instill/Generated/Instill.Models.SubtractCreditAdminResponse.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.SubtractCreditAdminResponse.g.cs @@ -13,7 +13,7 @@ public sealed partial class SubtractCreditAdminResponse /// The remaining credit. /// [global::System.Text.Json.Serialization.JsonPropertyName("amount")] - public float Amount { get; set; } + public float? Amount { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.UpdateChunkBody.g.cs b/src/libs/Instill/Generated/Instill.Models.UpdateChunkBody.g.cs index 27745d7..1363ff3 100644 --- a/src/libs/Instill/Generated/Instill.Models.UpdateChunkBody.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.UpdateChunkBody.g.cs @@ -12,7 +12,7 @@ public sealed partial class UpdateChunkBody /// /// [global::System.Text.Json.Serialization.JsonPropertyName("retrievable")] - public bool Retrievable { get; set; } + public bool? Retrievable { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/Instill/Generated/Instill.Models.User9.g.cs b/src/libs/Instill/Generated/Instill.Models.User9.g.cs index 02bd161..740799a 100644 --- a/src/libs/Instill/Generated/Instill.Models.User9.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.User9.g.cs @@ -39,13 +39,13 @@ public sealed partial class User9 /// Creation time. /// [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public global::System.DateTime CreateTime { get; set; } + public global::System.DateTime? CreateTime { get; set; } /// /// Update time. /// [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public global::System.DateTime UpdateTime { get; set; } + public global::System.DateTime? UpdateTime { get; set; } /// /// Profile. diff --git a/src/libs/Instill/Generated/Instill.OrganizationClient.CreateOrganization.g.cs b/src/libs/Instill/Generated/Instill.OrganizationClient.CreateOrganization.g.cs index df217a3..bb2a3d6 100644 --- a/src/libs/Instill/Generated/Instill.OrganizationClient.CreateOrganization.g.cs +++ b/src/libs/Instill/Generated/Instill.OrganizationClient.CreateOrganization.g.cs @@ -40,9 +40,13 @@ partial void ProcessCreateOrganizationResponseContent( httpClient: _httpClient, request: request); + var __pathBuilder = new PathBuilder( + path: "/v1beta/organizations", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1beta/organizations", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, @@ -133,8 +137,8 @@ partial void ProcessCreateOrganizationResponseContent( string? name = default, string? uid = default, string? id = default, - global::System.DateTime createTime = default, - global::System.DateTime updateTime = default, + global::System.DateTime? createTime = default, + global::System.DateTime? updateTime = default, global::Instill.AllOf? owner = default, global::Instill.AllOf? permission = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/Instill/Generated/Instill.OrganizationClient.DeleteOrganization.g.cs b/src/libs/Instill/Generated/Instill.OrganizationClient.DeleteOrganization.g.cs index 805855b..6a41942 100644 --- a/src/libs/Instill/Generated/Instill.OrganizationClient.DeleteOrganization.g.cs +++ b/src/libs/Instill/Generated/Instill.OrganizationClient.DeleteOrganization.g.cs @@ -38,9 +38,13 @@ partial void ProcessDeleteOrganizationResponseContent( httpClient: _httpClient, organizationId: ref organizationId); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/organizations/{organizationId}", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/organizations/{organizationId}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.OrganizationClient.GetOrganization.g.cs b/src/libs/Instill/Generated/Instill.OrganizationClient.GetOrganization.g.cs index cf22cf0..b9e772e 100644 --- a/src/libs/Instill/Generated/Instill.OrganizationClient.GetOrganization.g.cs +++ b/src/libs/Instill/Generated/Instill.OrganizationClient.GetOrganization.g.cs @@ -43,9 +43,16 @@ partial void ProcessGetOrganizationResponseContent( organizationId: ref organizationId, view: ref view); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/organizations/{organizationId}", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("view", view?.ToValueString()) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/organizations/{organizationId}?view={(global::System.Uri.EscapeDataString(view?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.OrganizationClient.ListOrganizations.g.cs b/src/libs/Instill/Generated/Instill.OrganizationClient.ListOrganizations.g.cs index 83bfd70..daf45a0 100644 --- a/src/libs/Instill/Generated/Instill.OrganizationClient.ListOrganizations.g.cs +++ b/src/libs/Instill/Generated/Instill.OrganizationClient.ListOrganizations.g.cs @@ -7,14 +7,14 @@ public partial class OrganizationClient { partial void PrepareListOrganizationsArguments( global::System.Net.Http.HttpClient httpClient, - ref int pageSize, + ref int? pageSize, ref string? pageToken, ref global::Instill.ListOrganizationsView? view, ref string? filter); partial void PrepareListOrganizationsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int pageSize, + int? pageSize, string? pageToken, global::Instill.ListOrganizationsView? view, string? filter); @@ -38,7 +38,7 @@ partial void ProcessListOrganizationsResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ListOrganizationsAsync( - int pageSize = default, + int? pageSize = default, string? pageToken = default, global::Instill.ListOrganizationsView? view = default, string? filter = default, @@ -53,9 +53,19 @@ partial void ProcessListOrganizationsResponseContent( view: ref view, filter: ref filter); + var __pathBuilder = new PathBuilder( + path: "/v1beta/organizations", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("pageSize", pageSize?.ToString()) + .AddOptionalParameter("pageToken", pageToken) + .AddOptionalParameter("view", view?.ToValueString()) + .AddOptionalParameter("filter", filter) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/organizations?pageSize={pageSize}&pageToken={pageToken}&view={(global::System.Uri.EscapeDataString(view?.ToValueString() ?? string.Empty))}&filter={filter}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.OrganizationClient.UpdateOrganization.g.cs b/src/libs/Instill/Generated/Instill.OrganizationClient.UpdateOrganization.g.cs index 5a38cc1..2e76e74 100644 --- a/src/libs/Instill/Generated/Instill.OrganizationClient.UpdateOrganization.g.cs +++ b/src/libs/Instill/Generated/Instill.OrganizationClient.UpdateOrganization.g.cs @@ -47,9 +47,13 @@ partial void ProcessUpdateOrganizationResponseContent( organizationId: ref organizationId, request: request); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/organizations/{organizationId}", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/organizations/{organizationId}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, @@ -145,8 +149,8 @@ partial void ProcessUpdateOrganizationResponseContent( string? name = default, string? uid = default, string? id = default, - global::System.DateTime createTime = default, - global::System.DateTime updateTime = default, + global::System.DateTime? createTime = default, + global::System.DateTime? updateTime = default, global::Instill.AllOf? owner = default, global::Instill.AllOf? permission = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/Instill/Generated/Instill.PathBuilder.g.cs b/src/libs/Instill/Generated/Instill.PathBuilder.g.cs new file mode 100644 index 0000000..331b338 --- /dev/null +++ b/src/libs/Instill/Generated/Instill.PathBuilder.g.cs @@ -0,0 +1,227 @@ +using System.Linq; + +#nullable enable + +namespace Instill +{ + /// + /// A helper class to build URL paths with optional and required parameters. + /// + public class PathBuilder + { + private readonly global::System.Text.StringBuilder _stringBuilder = + new global::System.Text.StringBuilder(capacity: 256); + private bool _firstParameter = true; + + /// + /// Initializes a new instance of the class. + /// + /// The base path for the URL. + /// The base URI to prepend to the path, if any. + public PathBuilder( + string path, + global::System.Uri? baseUri = null) + { + if (baseUri is not null) + { + _stringBuilder.Append(baseUri.AbsoluteUri.TrimEnd('/')); + } + + _stringBuilder.Append(path); + } + + /// + /// Adds a required parameter to the URL. + /// + /// The name of the parameter. + /// The value of the parameter. + /// The current instance. + public PathBuilder AddRequiredParameter( + string name, + string value) + { + if (_firstParameter) + { + _stringBuilder.Append('?'); + _firstParameter = false; + } + else + { + _stringBuilder.Append('&'); + } + + _stringBuilder.Append(global::System.Uri.EscapeDataString(name)); + _stringBuilder.Append('='); + _stringBuilder.Append(global::System.Uri.EscapeDataString(value)); + + return this; + } + + /// + /// Adds a required parameter with multiple values to the URL. + /// + /// The name of the parameter. + /// The values of the parameter. + /// The delimiter to use between values. + /// Whether to explode the values into separate parameters. + /// The current instance. + public PathBuilder AddRequiredParameter( + string name, + global::System.Collections.Generic.IEnumerable value, + string delimiter = ",", + bool explode = false) + { + if (explode) + { + foreach (var item in value) + { + AddRequiredParameter($"{name}", item); + } + + return this; + } + + AddRequiredParameter(name, string.Join(delimiter, value)); + + return this; + } + + /// + /// Adds a required parameter with multiple values to the URL, using a selector function. + /// + /// The type of the values. + /// The name of the parameter. + /// The values of the parameter. + /// The function to select the string representation of each value. + /// The delimiter to use between values. + /// Whether to explode the values into separate parameters. + /// The current instance. + public PathBuilder AddRequiredParameter( + string name, + global::System.Collections.Generic.IEnumerable value, + global::System.Func selector, + string delimiter = ",", + bool explode = false) + { + AddRequiredParameter(name, value.Select(selector).ToArray(), delimiter, explode); + + return this; + } + + /// + /// Adds an optional parameter to the URL. + /// + /// The name of the parameter. + /// The value of the parameter, or null if not present. + /// The current instance. + public PathBuilder AddOptionalParameter( + string name, + string? value) + { + if (value is not null) + { + AddRequiredParameter(name, value); + } + + return this; + } + + /// + /// Adds an optional parameter with multiple values to the URL. + /// + /// The name of the parameter. + /// The values of the parameter, or null if not present. + /// The delimiter to use between values. + /// Whether to explode the values into separate parameters. + /// The current instance. + public PathBuilder AddOptionalParameter( + string name, + global::System.Collections.Generic.IEnumerable? value, + string delimiter = ",", + bool explode = false) + { + if (value is not null) + { + AddRequiredParameter(name, value, delimiter, explode); + } + + return this; + } + + /// + /// Adds an optional parameter with multiple values to the URL, using a selector function. + /// + /// The type of the values. + /// The name of the parameter. + /// The values of the parameter, or null if not present. + /// The function to select the string representation of each value. + /// The delimiter to use between values. + /// Whether to explode the values into separate parameters. + /// The current instance. + public PathBuilder AddOptionalParameter( + string name, + global::System.Collections.Generic.IEnumerable? value, + global::System.Func selector, + string delimiter = ",", + bool explode = false) + { + if (value is not null) + { + AddRequiredParameter(name, value.Select(selector).ToArray(), delimiter, explode); + } + + return this; + } + + /// + /// Adds a required parameter to the URL, using a formattable value. + /// + /// The type of the value. + /// The name of the parameter. + /// The value of the parameter. + /// The format string. + /// The format provider. + /// The current instance. + public PathBuilder AddRequiredParameter( + string name, + T value, + string? format = null, + global::System.IFormatProvider? formatProvider = null) + where T : global::System.IFormattable + { + AddRequiredParameter(name, value.ToString(format, formatProvider)); + + return this; + } + + /// + /// Adds an optional parameter to the URL, using a formattable value. + /// + /// The type of the value. + /// The name of the parameter. + /// The value of the parameter, or null if not present. + /// The format string. + /// The format provider. + /// The current instance. + public PathBuilder AddOptionalParameter( + string name, + T? value, + string? format = null, + global::System.IFormatProvider? formatProvider = null) + where T : global::System.IFormattable + { + if (value is not null) + { + AddOptionalParameter(name, value.ToString(format, formatProvider)); + } + + return this; + } + + /// + /// Returns the constructed URL as a string. + /// + /// The constructed URL. + public override string ToString() => _stringBuilder.ToString(); + } +} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.SubscriptionClient.GetAuthenticatedUserSubscription.g.cs b/src/libs/Instill/Generated/Instill.SubscriptionClient.GetAuthenticatedUserSubscription.g.cs index 612bdf3..807d987 100644 --- a/src/libs/Instill/Generated/Instill.SubscriptionClient.GetAuthenticatedUserSubscription.g.cs +++ b/src/libs/Instill/Generated/Instill.SubscriptionClient.GetAuthenticatedUserSubscription.g.cs @@ -33,9 +33,13 @@ partial void ProcessGetAuthenticatedUserSubscriptionResponseContent( PrepareGetAuthenticatedUserSubscriptionArguments( httpClient: _httpClient); + var __pathBuilder = new PathBuilder( + path: "/v1beta/user/subscription", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1beta/user/subscription", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.SubscriptionClient.GetOrganizationSubscription.g.cs b/src/libs/Instill/Generated/Instill.SubscriptionClient.GetOrganizationSubscription.g.cs index f2e6f65..ebd7854 100644 --- a/src/libs/Instill/Generated/Instill.SubscriptionClient.GetOrganizationSubscription.g.cs +++ b/src/libs/Instill/Generated/Instill.SubscriptionClient.GetOrganizationSubscription.g.cs @@ -38,9 +38,13 @@ partial void ProcessGetOrganizationSubscriptionResponseContent( httpClient: _httpClient, organizationId: ref organizationId); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/organizations/{organizationId}/subscription", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/organizations/{organizationId}/subscription", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.TokenClient.CreateToken.g.cs b/src/libs/Instill/Generated/Instill.TokenClient.CreateToken.g.cs index 185eab4..e355c6c 100644 --- a/src/libs/Instill/Generated/Instill.TokenClient.CreateToken.g.cs +++ b/src/libs/Instill/Generated/Instill.TokenClient.CreateToken.g.cs @@ -40,9 +40,13 @@ partial void ProcessCreateTokenResponseContent( httpClient: _httpClient, request: request); + var __pathBuilder = new PathBuilder( + path: "/v1beta/tokens", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1beta/tokens", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, @@ -144,17 +148,17 @@ partial void ProcessCreateTokenResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CreateTokenAsync( - global::System.DateTime lastUseTime = default, + global::System.DateTime? lastUseTime = default, string? name = default, string? uid = default, string? id = default, - global::System.DateTime createTime = default, - global::System.DateTime updateTime = default, + global::System.DateTime? createTime = default, + global::System.DateTime? updateTime = default, string? accessToken = default, global::Instill.AllOf? state = default, string? tokenType = default, - int ttl = default, - global::System.DateTime expireTime = default, + int? ttl = default, + global::System.DateTime? expireTime = default, global::System.Threading.CancellationToken cancellationToken = default) { var request = new global::Instill.ApiToken diff --git a/src/libs/Instill/Generated/Instill.TokenClient.DeleteToken.g.cs b/src/libs/Instill/Generated/Instill.TokenClient.DeleteToken.g.cs index a5c7a47..ec6e588 100644 --- a/src/libs/Instill/Generated/Instill.TokenClient.DeleteToken.g.cs +++ b/src/libs/Instill/Generated/Instill.TokenClient.DeleteToken.g.cs @@ -38,9 +38,13 @@ partial void ProcessDeleteTokenResponseContent( httpClient: _httpClient, tokenId: ref tokenId); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/tokens/{tokenId}", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/tokens/{tokenId}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.TokenClient.GetToken.g.cs b/src/libs/Instill/Generated/Instill.TokenClient.GetToken.g.cs index 39571cc..ce63df6 100644 --- a/src/libs/Instill/Generated/Instill.TokenClient.GetToken.g.cs +++ b/src/libs/Instill/Generated/Instill.TokenClient.GetToken.g.cs @@ -38,9 +38,13 @@ partial void ProcessGetTokenResponseContent( httpClient: _httpClient, tokenId: ref tokenId); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/tokens/{tokenId}", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/tokens/{tokenId}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.TokenClient.ListTokens.g.cs b/src/libs/Instill/Generated/Instill.TokenClient.ListTokens.g.cs index a66c01c..8eb4181 100644 --- a/src/libs/Instill/Generated/Instill.TokenClient.ListTokens.g.cs +++ b/src/libs/Instill/Generated/Instill.TokenClient.ListTokens.g.cs @@ -7,12 +7,12 @@ public partial class TokenClient { partial void PrepareListTokensArguments( global::System.Net.Http.HttpClient httpClient, - ref int pageSize, + ref int? pageSize, ref string? pageToken); partial void PrepareListTokensRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int pageSize, + int? pageSize, string? pageToken); partial void ProcessListTokensResponse( global::System.Net.Http.HttpClient httpClient, @@ -32,7 +32,7 @@ partial void ProcessListTokensResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ListTokensAsync( - int pageSize = default, + int? pageSize = default, string? pageToken = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -43,9 +43,17 @@ partial void ProcessListTokensResponseContent( pageSize: ref pageSize, pageToken: ref pageToken); + var __pathBuilder = new PathBuilder( + path: "/v1beta/tokens", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("pageSize", pageSize?.ToString()) + .AddOptionalParameter("pageToken", pageToken) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/tokens?pageSize={pageSize}&pageToken={pageToken}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.TokenClient.ValidateToken.g.cs b/src/libs/Instill/Generated/Instill.TokenClient.ValidateToken.g.cs index 523e8f4..e0287f9 100644 --- a/src/libs/Instill/Generated/Instill.TokenClient.ValidateToken.g.cs +++ b/src/libs/Instill/Generated/Instill.TokenClient.ValidateToken.g.cs @@ -33,9 +33,13 @@ partial void ProcessValidateTokenResponseContent( PrepareValidateTokenArguments( httpClient: _httpClient); + var __pathBuilder = new PathBuilder( + path: "/v1beta/validate_token", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1beta/validate_token", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.UserClient.GetAuthenticatedUser.g.cs b/src/libs/Instill/Generated/Instill.UserClient.GetAuthenticatedUser.g.cs index dfdc3cc..c76f6ce 100644 --- a/src/libs/Instill/Generated/Instill.UserClient.GetAuthenticatedUser.g.cs +++ b/src/libs/Instill/Generated/Instill.UserClient.GetAuthenticatedUser.g.cs @@ -33,9 +33,13 @@ partial void ProcessGetAuthenticatedUserResponseContent( PrepareGetAuthenticatedUserArguments( httpClient: _httpClient); + var __pathBuilder = new PathBuilder( + path: "/v1beta/user", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1beta/user", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.UserClient.GetUser.g.cs b/src/libs/Instill/Generated/Instill.UserClient.GetUser.g.cs index 8458bd7..8bddce9 100644 --- a/src/libs/Instill/Generated/Instill.UserClient.GetUser.g.cs +++ b/src/libs/Instill/Generated/Instill.UserClient.GetUser.g.cs @@ -43,9 +43,16 @@ partial void ProcessGetUserResponseContent( userId: ref userId, view: ref view); + var __pathBuilder = new PathBuilder( + path: $"/v1beta/users/{userId}", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("view", view?.ToValueString()) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/users/{userId}?view={(global::System.Uri.EscapeDataString(view?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.UserClient.ListUsers.g.cs b/src/libs/Instill/Generated/Instill.UserClient.ListUsers.g.cs index 2c0c500..c128e1b 100644 --- a/src/libs/Instill/Generated/Instill.UserClient.ListUsers.g.cs +++ b/src/libs/Instill/Generated/Instill.UserClient.ListUsers.g.cs @@ -7,14 +7,14 @@ public partial class UserClient { partial void PrepareListUsersArguments( global::System.Net.Http.HttpClient httpClient, - ref int pageSize, + ref int? pageSize, ref string? pageToken, ref global::Instill.ListUsersView? view, ref string? filter); partial void PrepareListUsersRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int pageSize, + int? pageSize, string? pageToken, global::Instill.ListUsersView? view, string? filter); @@ -38,7 +38,7 @@ partial void ProcessListUsersResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ListUsersAsync( - int pageSize = default, + int? pageSize = default, string? pageToken = default, global::Instill.ListUsersView? view = default, string? filter = default, @@ -53,9 +53,19 @@ partial void ProcessListUsersResponseContent( view: ref view, filter: ref filter); + var __pathBuilder = new PathBuilder( + path: "/v1beta/users", + baseUri: _httpClient.BaseAddress); + __pathBuilder + .AddOptionalParameter("pageSize", pageSize?.ToString()) + .AddOptionalParameter("pageToken", pageToken) + .AddOptionalParameter("view", view?.ToValueString()) + .AddOptionalParameter("filter", filter) + ; + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1beta/users?pageSize={pageSize}&pageToken={pageToken}&view={(global::System.Uri.EscapeDataString(view?.ToValueString() ?? string.Empty))}&filter={filter}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/Instill/Generated/Instill.UserClient.PatchAuthenticatedUser.g.cs b/src/libs/Instill/Generated/Instill.UserClient.PatchAuthenticatedUser.g.cs index 9487631..8f53012 100644 --- a/src/libs/Instill/Generated/Instill.UserClient.PatchAuthenticatedUser.g.cs +++ b/src/libs/Instill/Generated/Instill.UserClient.PatchAuthenticatedUser.g.cs @@ -42,9 +42,13 @@ partial void ProcessPatchAuthenticatedUserResponseContent( httpClient: _httpClient, request: request); + var __pathBuilder = new PathBuilder( + path: "/v1beta/user", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: new global::System.Net.Http.HttpMethod("PATCH"), - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1beta/user", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, @@ -161,8 +165,8 @@ partial void ProcessPatchAuthenticatedUserResponseContent( bool newsletterSubscription, string? name = default, string? uid = default, - global::System.DateTime createTime = default, - global::System.DateTime updateTime = default, + global::System.DateTime? createTime = default, + global::System.DateTime? updateTime = default, string? customerId = default, string? role = default, string? cookieToken = default, diff --git a/src/libs/Instill/Generated/Instill.UtilsClient.CheckNamespace.g.cs b/src/libs/Instill/Generated/Instill.UtilsClient.CheckNamespace.g.cs index 301f6c7..f6e6d5c 100644 --- a/src/libs/Instill/Generated/Instill.UtilsClient.CheckNamespace.g.cs +++ b/src/libs/Instill/Generated/Instill.UtilsClient.CheckNamespace.g.cs @@ -41,9 +41,13 @@ partial void ProcessCheckNamespaceResponseContent( httpClient: _httpClient, request: request); + var __pathBuilder = new PathBuilder( + path: "/v1beta/check-namespace", + baseUri: _httpClient.BaseAddress); + var __path = __pathBuilder.ToString(); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1beta/check-namespace", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, diff --git a/src/tests/IntegrationTests/Tests.QuickstartData.cs b/src/tests/IntegrationTests/Tests.QuickstartData.cs index 8095426..4a1743e 100644 --- a/src/tests/IntegrationTests/Tests.QuickstartData.cs +++ b/src/tests/IntegrationTests/Tests.QuickstartData.cs @@ -31,9 +31,6 @@ public async Task QuickstartData() name: "midsummer-nights-dream.pdf", type: FileType2.FILETYPEPDF, content: Convert.ToBase64String(H.Resources.midsummer_nights_dream_pdf.AsBytes()), - // createTime: DateTime.UtcNow, - // updateTime: DateTime.UtcNow, - // deleteTime: DateTime.UtcNow, cancellationToken: cancellationToken); var file = uploadFileResponse.File?.Value1;