From 1263cc8f42d241616c4c3b11ad8b6512888783f2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 20 Nov 2024 18:23:16 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ent.ListCreditConsumptionChartRecords.g.cs | 3 +- ...lient.ListPipelineTriggerChartRecords.g.cs | 16 +- ...ricsClient.ListPipelineTriggerRecords.g.cs | 23 -- ...ent.ListCreditConsumptionChartRecords.g.cs | 5 +- ...lient.ListPipelineTriggerChartRecords.g.cs | 44 ++-- ...ricsClient.ListPipelineTriggerRecords.g.cs | 223 ---------------- ...stPipelineTriggerChartRecordsResponse.g.cs | 10 +- ...stPipelineTriggerRecordsResponse.Json.g.cs | 92 ------- ...ls.ListPipelineTriggerRecordsResponse.g.cs | 65 ----- ...tPipelineTriggerRecordsResponse2.Json.g.cs | 92 ------- ...s.ListPipelineTriggerRecordsResponse2.g.cs | 27 -- .../Generated/Instill.Models.Mode.g.cs | 53 ---- ...ill.Models.PipelineTriggerChartRecord.g.cs | 85 +----- ...ill.Models.PipelineTriggerRecord.Json.g.cs | 92 ------- .../Instill.Models.PipelineTriggerRecord.g.cs | 141 ---------- .../Generated/Instill.Models.Status.g.cs | 53 ---- .../Generated/JsonConverters.Mode.g.cs | 49 ---- .../JsonConverters.ModeNullable.g.cs | 56 ---- .../Generated/JsonConverters.Status.g.cs | 49 ---- .../JsonConverters.StatusNullable.g.cs | 56 ---- .../Generated/JsonSerializerContext.g.cs | 4 - .../Generated/JsonSerializerContextTypes.g.cs | 242 ++++++++---------- src/libs/Instill/openapi.yaml | 166 ++---------- 23 files changed, 199 insertions(+), 1447 deletions(-) delete mode 100644 src/libs/Instill/Generated/Instill.IMetricsClient.ListPipelineTriggerRecords.g.cs delete mode 100644 src/libs/Instill/Generated/Instill.MetricsClient.ListPipelineTriggerRecords.g.cs delete mode 100644 src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse.Json.g.cs delete mode 100644 src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse.g.cs delete mode 100644 src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse2.Json.g.cs delete mode 100644 src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse2.g.cs delete mode 100644 src/libs/Instill/Generated/Instill.Models.Mode.g.cs delete mode 100644 src/libs/Instill/Generated/Instill.Models.PipelineTriggerRecord.Json.g.cs delete mode 100644 src/libs/Instill/Generated/Instill.Models.PipelineTriggerRecord.g.cs delete mode 100644 src/libs/Instill/Generated/Instill.Models.Status.g.cs delete mode 100644 src/libs/Instill/Generated/JsonConverters.Mode.g.cs delete mode 100644 src/libs/Instill/Generated/JsonConverters.ModeNullable.g.cs delete mode 100644 src/libs/Instill/Generated/JsonConverters.Status.g.cs delete mode 100644 src/libs/Instill/Generated/JsonConverters.StatusNullable.g.cs diff --git a/src/libs/Instill/Generated/Instill.IMetricsClient.ListCreditConsumptionChartRecords.g.cs b/src/libs/Instill/Generated/Instill.IMetricsClient.ListCreditConsumptionChartRecords.g.cs index 1cf2855..6b44899 100644 --- a/src/libs/Instill/Generated/Instill.IMetricsClient.ListCreditConsumptionChartRecords.g.cs +++ b/src/libs/Instill/Generated/Instill.IMetricsClient.ListCreditConsumptionChartRecords.g.cs @@ -9,7 +9,8 @@ public partial interface IMetricsClient /// Returns a timeline of Instill Credit consumption for a given owner. The
/// response will contain one set of records (datapoints) per consumption
/// source (e.g. "pipeline", "model"). Each datapoint represents the amount
- /// consumed in a time bucket. + /// consumed in a time bucket.
+ /// This endpoint is only exposed on Instill Cloud. /// /// /// diff --git a/src/libs/Instill/Generated/Instill.IMetricsClient.ListPipelineTriggerChartRecords.g.cs b/src/libs/Instill/Generated/Instill.IMetricsClient.ListPipelineTriggerChartRecords.g.cs index 8614951..a2d1eb9 100644 --- a/src/libs/Instill/Generated/Instill.IMetricsClient.ListPipelineTriggerChartRecords.g.cs +++ b/src/libs/Instill/Generated/Instill.IMetricsClient.ListPipelineTriggerChartRecords.g.cs @@ -6,18 +6,22 @@ public partial interface IMetricsClient { /// /// List pipeline trigger time charts
- /// Returns a timeline of pipline trigger counts for the pipelines of a given
- /// owner.
- /// NOTE: This method will soon return the trigger counts of a given requester. + /// Returns a timeline of pipline trigger counts for a given requester. The
+ /// response will contain one set of records (datapoints), representing the
+ /// amount of triggers in a time bucket. ///
+ /// /// - /// + /// + /// /// The token to cancel the operation with /// [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_BETA_001")] global::System.Threading.Tasks.Task ListPipelineTriggerChartRecordsAsync( - int? aggregationWindow = default, - string? filter = default, + string requesterId, + string? aggregationWindow = 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.IMetricsClient.ListPipelineTriggerRecords.g.cs b/src/libs/Instill/Generated/Instill.IMetricsClient.ListPipelineTriggerRecords.g.cs deleted file mode 100644 index cd50e98..0000000 --- a/src/libs/Instill/Generated/Instill.IMetricsClient.ListPipelineTriggerRecords.g.cs +++ /dev/null @@ -1,23 +0,0 @@ -#nullable enable - -namespace Instill -{ - public partial interface IMetricsClient - { - /// - /// List pipeline triggers
- /// Returns a paginated list of pipeline executions. - ///
- /// - /// - /// - /// The token to cancel the operation with - /// - [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_BETA_001")] - global::System.Threading.Tasks.Task ListPipelineTriggerRecordsAsync( - int? pageSize = default, - string? pageToken = default, - string? filter = default, - global::System.Threading.CancellationToken cancellationToken = default); - } -} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.MetricsClient.ListCreditConsumptionChartRecords.g.cs b/src/libs/Instill/Generated/Instill.MetricsClient.ListCreditConsumptionChartRecords.g.cs index 47509db..1ffefef 100644 --- a/src/libs/Instill/Generated/Instill.MetricsClient.ListCreditConsumptionChartRecords.g.cs +++ b/src/libs/Instill/Generated/Instill.MetricsClient.ListCreditConsumptionChartRecords.g.cs @@ -32,7 +32,8 @@ partial void ProcessListCreditConsumptionChartRecordsResponseContent( /// Returns a timeline of Instill Credit consumption for a given owner. The
/// response will contain one set of records (datapoints) per consumption
/// source (e.g. "pipeline", "model"). Each datapoint represents the amount
- /// consumed in a time bucket. + /// consumed in a time bucket.
+ /// This endpoint is only exposed on Instill Cloud. /// /// /// @@ -58,7 +59,7 @@ partial void ProcessListCreditConsumptionChartRecordsResponseContent( stop: ref stop); var __pathBuilder = new PathBuilder( - path: "/v1beta/metrics/credit/charts", + path: "/v1beta/credit/query-charts", baseUri: HttpClient.BaseAddress); __pathBuilder .AddRequiredParameter("namespaceId", namespaceId) diff --git a/src/libs/Instill/Generated/Instill.MetricsClient.ListPipelineTriggerChartRecords.g.cs b/src/libs/Instill/Generated/Instill.MetricsClient.ListPipelineTriggerChartRecords.g.cs index 7539de4..9c31d75 100644 --- a/src/libs/Instill/Generated/Instill.MetricsClient.ListPipelineTriggerChartRecords.g.cs +++ b/src/libs/Instill/Generated/Instill.MetricsClient.ListPipelineTriggerChartRecords.g.cs @@ -7,13 +7,17 @@ public partial class MetricsClient { partial void PrepareListPipelineTriggerChartRecordsArguments( global::System.Net.Http.HttpClient httpClient, - ref int? aggregationWindow, - ref string? filter); + ref string requesterId, + ref string? aggregationWindow, + ref global::System.DateTime? start, + ref global::System.DateTime? stop); partial void PrepareListPipelineTriggerChartRecordsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? aggregationWindow, - string? filter); + string requesterId, + string? aggregationWindow, + global::System.DateTime? start, + global::System.DateTime? stop); partial void ProcessListPipelineTriggerChartRecordsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -25,33 +29,41 @@ partial void ProcessListPipelineTriggerChartRecordsResponseContent( /// /// List pipeline trigger time charts
- /// Returns a timeline of pipline trigger counts for the pipelines of a given
- /// owner.
- /// NOTE: This method will soon return the trigger counts of a given requester. + /// Returns a timeline of pipline trigger counts for a given requester. The
+ /// response will contain one set of records (datapoints), representing the
+ /// amount of triggers in a time bucket. ///
+ /// /// - /// + /// + /// /// The token to cancel the operation with /// [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_BETA_001")] public async global::System.Threading.Tasks.Task ListPipelineTriggerChartRecordsAsync( - int? aggregationWindow = default, - string? filter = default, + string requesterId, + string? aggregationWindow = default, + global::System.DateTime? start = default, + global::System.DateTime? stop = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: HttpClient); PrepareListPipelineTriggerChartRecordsArguments( httpClient: HttpClient, + requesterId: ref requesterId, aggregationWindow: ref aggregationWindow, - filter: ref filter); + start: ref start, + stop: ref stop); var __pathBuilder = new PathBuilder( - path: "/v1beta/metrics/vdp/pipeline/charts", + path: "/v1beta/pipeline-runs/query-charts", baseUri: HttpClient.BaseAddress); __pathBuilder - .AddOptionalParameter("aggregationWindow", aggregationWindow?.ToString()) - .AddOptionalParameter("filter", filter) + .AddRequiredParameter("requesterId", requesterId) + .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( @@ -80,8 +92,10 @@ partial void ProcessListPipelineTriggerChartRecordsResponseContent( PrepareListPipelineTriggerChartRecordsRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, + requesterId: requesterId, aggregationWindow: aggregationWindow, - filter: filter); + start: start, + stop: stop); using var __response = await HttpClient.SendAsync( request: __httpRequest, diff --git a/src/libs/Instill/Generated/Instill.MetricsClient.ListPipelineTriggerRecords.g.cs b/src/libs/Instill/Generated/Instill.MetricsClient.ListPipelineTriggerRecords.g.cs deleted file mode 100644 index d211bc6..0000000 --- a/src/libs/Instill/Generated/Instill.MetricsClient.ListPipelineTriggerRecords.g.cs +++ /dev/null @@ -1,223 +0,0 @@ - -#nullable enable - -namespace Instill -{ - public partial class MetricsClient - { - partial void PrepareListPipelineTriggerRecordsArguments( - global::System.Net.Http.HttpClient httpClient, - ref int? pageSize, - ref string? pageToken, - ref string? filter); - partial void PrepareListPipelineTriggerRecordsRequest( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpRequestMessage httpRequestMessage, - int? pageSize, - string? pageToken, - string? filter); - partial void ProcessListPipelineTriggerRecordsResponse( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage); - - partial void ProcessListPipelineTriggerRecordsResponseContent( - global::System.Net.Http.HttpClient httpClient, - global::System.Net.Http.HttpResponseMessage httpResponseMessage, - ref string content); - - /// - /// List pipeline triggers
- /// Returns a paginated list of pipeline executions. - ///
- /// - /// - /// - /// The token to cancel the operation with - /// - [global::System.Diagnostics.CodeAnalysis.Experimental(diagnosticId: "INSTILL_BETA_001")] - public async global::System.Threading.Tasks.Task ListPipelineTriggerRecordsAsync( - int? pageSize = default, - string? pageToken = default, - string? filter = default, - global::System.Threading.CancellationToken cancellationToken = default) - { - PrepareArguments( - client: HttpClient); - PrepareListPipelineTriggerRecordsArguments( - httpClient: HttpClient, - pageSize: ref pageSize, - pageToken: ref pageToken, - filter: ref filter); - - var __pathBuilder = new PathBuilder( - path: "/v1beta/metrics/vdp/pipeline/triggers", - 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(__path, global::System.UriKind.RelativeOrAbsolute)); - - foreach (var __authorization in Authorizations) - { - if (__authorization.Type == "Http" || - __authorization.Type == "OAuth2") - { - __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( - scheme: __authorization.Name, - parameter: __authorization.Value); - } - else if (__authorization.Type == "ApiKey" && - __authorization.Location == "Header") - { - __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); - } - } - - PrepareRequest( - client: HttpClient, - request: __httpRequest); - PrepareListPipelineTriggerRecordsRequest( - httpClient: HttpClient, - httpRequestMessage: __httpRequest, - pageSize: pageSize, - pageToken: pageToken, - filter: filter); - - using var __response = await HttpClient.SendAsync( - request: __httpRequest, - completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, - cancellationToken: cancellationToken).ConfigureAwait(false); - - ProcessResponse( - client: HttpClient, - response: __response); - ProcessListPipelineTriggerRecordsResponse( - httpClient: HttpClient, - httpResponseMessage: __response); - // Returned when the client credentials are not valid. - if ((int)__response.StatusCode == 401) - { - string? __content_401 = null; - string? __value_401 = null; - if (ReadResponseAsString) - { - __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::System.Text.Json.JsonSerializer.Deserialize(__content_401, typeof(string), JsonSerializerContext) as string; - } - else - { - var __contentStream_401 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_401 = await global::System.Text.Json.JsonSerializer.DeserializeAsync(__contentStream_401, typeof(string), JsonSerializerContext).ConfigureAwait(false) as string; - } - - throw new global::Instill.ApiException( - message: __response.ReasonPhrase ?? string.Empty, - statusCode: __response.StatusCode) - { - ResponseBody = __content_401, - ResponseObject = __value_401, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - // An unexpected error response. - if (!__response.IsSuccessStatusCode) - { - string? __content_default = null; - global::Instill.RpcStatus? __value_default = null; - if (ReadResponseAsString) - { - __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Instill.RpcStatus.FromJson(__content_default, JsonSerializerContext); - } - else - { - var __contentStream_default = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - __value_default = await global::Instill.RpcStatus.FromJsonStreamAsync(__contentStream_default, JsonSerializerContext).ConfigureAwait(false); - } - - throw new global::Instill.ApiException( - message: __response.ReasonPhrase ?? string.Empty, - statusCode: __response.StatusCode) - { - ResponseBody = __content_default, - ResponseObject = __value_default, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - - if (ReadResponseAsString) - { - var __content = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - - ProcessResponseContent( - client: HttpClient, - response: __response, - content: ref __content); - ProcessListPipelineTriggerRecordsResponseContent( - httpClient: HttpClient, - httpResponseMessage: __response, - content: ref __content); - - try - { - __response.EnsureSuccessStatusCode(); - } - catch (global::System.Net.Http.HttpRequestException __ex) - { - throw new global::Instill.ApiException( - message: __content ?? __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseBody = __content, - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - - return - global::Instill.ListPipelineTriggerRecordsResponse.FromJson(__content, JsonSerializerContext) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); - } - else - { - try - { - __response.EnsureSuccessStatusCode(); - } - catch (global::System.Net.Http.HttpRequestException __ex) - { - throw new global::Instill.ApiException( - message: __response.ReasonPhrase ?? string.Empty, - innerException: __ex, - statusCode: __response.StatusCode) - { - ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( - __response.Headers, - h => h.Key, - h => h.Value), - }; - } - - using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false); - - return - await global::Instill.ListPipelineTriggerRecordsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? - throw new global::System.InvalidOperationException("Response deserialization failed."); - } - } - } -} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerChartRecordsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerChartRecordsResponse.g.cs index e6305a5..9178ddb 100644 --- a/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerChartRecordsResponse.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerChartRecordsResponse.g.cs @@ -10,7 +10,10 @@ namespace Instill public sealed partial class ListPipelineTriggerChartRecordsResponse { /// - /// A list of pipeline trigger records. + /// Pipeline trigger counts. Until we allow filtering or grouping by fields
+ /// like pipeline ID, this list will contain only one element with the
+ /// timeline of trigger counts for a given requester, regardless the pipeline
+ /// ID, trigger mode, final status or other fields. ///
[global::System.Text.Json.Serialization.JsonPropertyName("pipelineTriggerChartRecords")] public global::System.Collections.Generic.IList? PipelineTriggerChartRecords { get; set; } @@ -25,7 +28,10 @@ public sealed partial class ListPipelineTriggerChartRecordsResponse /// Initializes a new instance of the class. /// /// - /// A list of pipeline trigger records. + /// Pipeline trigger counts. Until we allow filtering or grouping by fields
+ /// like pipeline ID, this list will contain only one element with the
+ /// timeline of trigger counts for a given requester, regardless the pipeline
+ /// ID, trigger mode, final status or other fields. /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public ListPipelineTriggerChartRecordsResponse( diff --git a/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse.Json.g.cs deleted file mode 100644 index 7b59a95..0000000 --- a/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Instill -{ - public sealed partial class ListPipelineTriggerRecordsResponse - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Instill.ListPipelineTriggerRecordsResponse? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Instill.ListPipelineTriggerRecordsResponse), - jsonSerializerContext) as global::Instill.ListPipelineTriggerRecordsResponse; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Instill.ListPipelineTriggerRecordsResponse? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Instill.ListPipelineTriggerRecordsResponse), - jsonSerializerContext).ConfigureAwait(false)) as global::Instill.ListPipelineTriggerRecordsResponse; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse.g.cs b/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse.g.cs deleted file mode 100644 index 0ff468b..0000000 --- a/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse.g.cs +++ /dev/null @@ -1,65 +0,0 @@ - -#nullable enable - -namespace Instill -{ - /// - /// ListPipelineTriggerRecordsResponse contains a list of pipeline triggers. - /// - public sealed partial class ListPipelineTriggerRecordsResponse - { - /// - /// A list of pipeline triggers. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pipelineTriggerRecords")] - public global::System.Collections.Generic.IList? PipelineTriggerRecords { get; set; } - - /// - /// Next page token. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] - public string? NextPageToken { get; set; } - - /// - /// Total number of pipeline triggers. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("totalSize")] - public int? TotalSize { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// A list of pipeline triggers. - /// - /// - /// Next page token. - /// - /// - /// Total number of pipeline triggers. - /// - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public ListPipelineTriggerRecordsResponse( - global::System.Collections.Generic.IList? pipelineTriggerRecords, - string? nextPageToken, - int? totalSize) - { - this.PipelineTriggerRecords = pipelineTriggerRecords; - this.NextPageToken = nextPageToken; - this.TotalSize = totalSize; - } - - /// - /// Initializes a new instance of the class. - /// - public ListPipelineTriggerRecordsResponse() - { - } - } -} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse2.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse2.Json.g.cs deleted file mode 100644 index 0ded8cb..0000000 --- a/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse2.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Instill -{ - public sealed partial class ListPipelineTriggerRecordsResponse2 - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Instill.ListPipelineTriggerRecordsResponse2? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Instill.ListPipelineTriggerRecordsResponse2), - jsonSerializerContext) as global::Instill.ListPipelineTriggerRecordsResponse2; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Instill.ListPipelineTriggerRecordsResponse2? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Instill.ListPipelineTriggerRecordsResponse2), - jsonSerializerContext).ConfigureAwait(false)) as global::Instill.ListPipelineTriggerRecordsResponse2; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse2.g.cs b/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse2.g.cs deleted file mode 100644 index 48b2fd9..0000000 --- a/src/libs/Instill/Generated/Instill.Models.ListPipelineTriggerRecordsResponse2.g.cs +++ /dev/null @@ -1,27 +0,0 @@ - -#nullable enable - -namespace Instill -{ - /// - /// - /// - public sealed partial class ListPipelineTriggerRecordsResponse2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public ListPipelineTriggerRecordsResponse2( - ) - { - } - } -} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.Mode.g.cs b/src/libs/Instill/Generated/Instill.Models.Mode.g.cs deleted file mode 100644 index b4e8be6..0000000 --- a/src/libs/Instill/Generated/Instill.Models.Mode.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Instill -{ - /// - /// Mode describes the execution mode of the pipeline (sync or async).
- /// - MODE_SYNC: Synchronous (result is returned in the response).
- /// - MODE_ASYNC: Asynchronous (response only contains acknowledgement). - ///
- public enum Mode - { - /// - /// Synchronous (result is returned in the response). - /// - SYNC, - /// - /// Asynchronous (response only contains acknowledgement). - /// - ASYNC, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ModeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this Mode value) - { - return value switch - { - Mode.SYNC => "MODE_SYNC", - Mode.ASYNC => "MODE_ASYNC", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static Mode? ToEnum(string value) - { - return value switch - { - "MODE_SYNC" => Mode.SYNC, - "MODE_ASYNC" => Mode.ASYNC, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.PipelineTriggerChartRecord.g.cs b/src/libs/Instill/Generated/Instill.Models.PipelineTriggerChartRecord.g.cs index 0a24b01..0b07ad1 100644 --- a/src/libs/Instill/Generated/Instill.Models.PipelineTriggerChartRecord.g.cs +++ b/src/libs/Instill/Generated/Instill.Models.PipelineTriggerChartRecord.g.cs @@ -4,38 +4,20 @@ namespace Instill { /// - /// PipelineTriggerChartRecord contains pipeline trigger metrics, aggregated by
+ /// PipelineTriggerChartRecord represents a timeline of pipeline triggers. It
+ /// contains a collection of (timestamp, count) pairs that represent the total
+ /// pipeline triggers in a given time bucket.
/// pipeline ID and time frame. ///
public sealed partial class PipelineTriggerChartRecord { /// - /// Pipeline ID. + /// This field will be present present when the information is grouped by pipeline.
+ /// Included only in responses ///
[global::System.Text.Json.Serialization.JsonPropertyName("pipelineId")] public string? PipelineId { get; set; } - /// - /// Pipeline UUID. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pipelineUid")] - public string? PipelineUid { get; set; } - - /// - /// Trigger mode. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("triggerMode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Instill.JsonConverters.ModeJsonConverter))] - public global::Instill.Mode? TriggerMode { get; set; } - - /// - /// Final status.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Instill.JsonConverters.StatusJsonConverter))] - public global::Instill.Status? Status { get; set; } - /// /// Time buckets.
/// Included only in responses @@ -51,25 +33,11 @@ public sealed partial class PipelineTriggerChartRecord public global::System.Collections.Generic.IList? TriggerCounts { get; set; } /// - /// Total computation time duration in each time bucket.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("computeTimeDuration")] - public global::System.Collections.Generic.IList? ComputeTimeDuration { get; set; } - - /// - /// Version for the triggered pipeline if it is a release pipeline.
+ /// The ID of the namespace that requested the pipeline triggers.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("pipelineReleaseId")] - public string? PipelineReleaseId { get; set; } - - /// - /// Release UUID for the triggered pipeline if it is a release pipeline.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("pipelineReleaseUid")] - public string? PipelineReleaseUid { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("requesterId")] + public string? RequesterId { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -81,16 +49,7 @@ public sealed partial class PipelineTriggerChartRecord /// Initializes a new instance of the class. /// /// - /// Pipeline ID. - /// - /// - /// Pipeline UUID. - /// - /// - /// Trigger mode. - /// - /// - /// Final status.
+ /// This field will be present present when the information is grouped by pipeline.
/// Included only in responses /// /// @@ -101,39 +60,21 @@ public sealed partial class PipelineTriggerChartRecord /// Aggregated trigger count in each time bucket.
/// Included only in responses /// - /// - /// Total computation time duration in each time bucket.
- /// Included only in responses - /// - /// - /// Version for the triggered pipeline if it is a release pipeline.
- /// Included only in responses - /// - /// - /// Release UUID for the triggered pipeline if it is a release pipeline.
+ /// + /// The ID of the namespace that requested the pipeline triggers.
/// Included only in responses /// [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] public PipelineTriggerChartRecord( string? pipelineId, - string? pipelineUid, - global::Instill.Mode? triggerMode, - global::Instill.Status? status, global::System.Collections.Generic.IList? timeBuckets, global::System.Collections.Generic.IList? triggerCounts, - global::System.Collections.Generic.IList? computeTimeDuration, - string? pipelineReleaseId, - string? pipelineReleaseUid) + string? requesterId) { this.PipelineId = pipelineId; - this.PipelineUid = pipelineUid; - this.TriggerMode = triggerMode; - this.Status = status; this.TimeBuckets = timeBuckets; this.TriggerCounts = triggerCounts; - this.ComputeTimeDuration = computeTimeDuration; - this.PipelineReleaseId = pipelineReleaseId; - this.PipelineReleaseUid = pipelineReleaseUid; + this.RequesterId = requesterId; } /// diff --git a/src/libs/Instill/Generated/Instill.Models.PipelineTriggerRecord.Json.g.cs b/src/libs/Instill/Generated/Instill.Models.PipelineTriggerRecord.Json.g.cs deleted file mode 100644 index 7cff2da..0000000 --- a/src/libs/Instill/Generated/Instill.Models.PipelineTriggerRecord.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Instill -{ - public sealed partial class PipelineTriggerRecord - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Instill.PipelineTriggerRecord? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Instill.PipelineTriggerRecord), - jsonSerializerContext) as global::Instill.PipelineTriggerRecord; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Instill.PipelineTriggerRecord? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Instill.PipelineTriggerRecord), - jsonSerializerContext).ConfigureAwait(false)) as global::Instill.PipelineTriggerRecord; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Instill/Generated/Instill.Models.PipelineTriggerRecord.g.cs b/src/libs/Instill/Generated/Instill.Models.PipelineTriggerRecord.g.cs deleted file mode 100644 index 6660c93..0000000 --- a/src/libs/Instill/Generated/Instill.Models.PipelineTriggerRecord.g.cs +++ /dev/null @@ -1,141 +0,0 @@ - -#nullable enable - -namespace Instill -{ - /// - /// PipelineTriggerRecord represents a pipeline execution event. - /// - public sealed partial class PipelineTriggerRecord - { - /// - /// The moment when the pipeline was triggered. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("triggerTime")] - public global::System.DateTime? TriggerTime { get; set; } - - /// - /// UUID of the trigger. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pipelineTriggerId")] - public string? PipelineTriggerId { get; set; } - - /// - /// Pipeline ID. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pipelineId")] - public string? PipelineId { get; set; } - - /// - /// Pipeline UUID. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pipelineUid")] - public string? PipelineUid { get; set; } - - /// - /// Trigger mode. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("triggerMode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Instill.JsonConverters.ModeJsonConverter))] - public global::Instill.Mode? TriggerMode { get; set; } - - /// - /// Total execution duration.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("computeTimeDuration")] - public float? ComputeTimeDuration { get; set; } - - /// - /// Final status.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("status")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Instill.JsonConverters.StatusJsonConverter))] - public global::Instill.Status? Status { get; set; } - - /// - /// If a release of the pipeline was triggered, pipeline version.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("pipelineReleaseId")] - public string? PipelineReleaseId { get; set; } - - /// - /// If a release of the pipeline was triggered, release UUID.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("pipelineReleaseUid")] - public string? PipelineReleaseUid { get; set; } - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - /// - /// Initializes a new instance of the class. - /// - /// - /// The moment when the pipeline was triggered. - /// - /// - /// UUID of the trigger. - /// - /// - /// Pipeline ID. - /// - /// - /// Pipeline UUID. - /// - /// - /// Trigger mode. - /// - /// - /// Total execution duration.
- /// Included only in responses - /// - /// - /// Final status.
- /// Included only in responses - /// - /// - /// If a release of the pipeline was triggered, pipeline version.
- /// Included only in responses - /// - /// - /// If a release of the pipeline was triggered, release UUID.
- /// Included only in responses - /// - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public PipelineTriggerRecord( - global::System.DateTime? triggerTime, - string? pipelineTriggerId, - string? pipelineId, - string? pipelineUid, - global::Instill.Mode? triggerMode, - float? computeTimeDuration, - global::Instill.Status? status, - string? pipelineReleaseId, - string? pipelineReleaseUid) - { - this.TriggerTime = triggerTime; - this.PipelineTriggerId = pipelineTriggerId; - this.PipelineId = pipelineId; - this.PipelineUid = pipelineUid; - this.TriggerMode = triggerMode; - this.ComputeTimeDuration = computeTimeDuration; - this.Status = status; - this.PipelineReleaseId = pipelineReleaseId; - this.PipelineReleaseUid = pipelineReleaseUid; - } - - /// - /// Initializes a new instance of the class. - /// - public PipelineTriggerRecord() - { - } - } -} \ No newline at end of file diff --git a/src/libs/Instill/Generated/Instill.Models.Status.g.cs b/src/libs/Instill/Generated/Instill.Models.Status.g.cs deleted file mode 100644 index 96c8f3d..0000000 --- a/src/libs/Instill/Generated/Instill.Models.Status.g.cs +++ /dev/null @@ -1,53 +0,0 @@ - -#nullable enable - -namespace Instill -{ - /// - /// Status describes the output of an execution.
- /// - STATUS_COMPLETED: Successfully completed.
- /// - STATUS_ERRORED: Finished with error. - ///
- public enum Status - { - /// - /// Successfully completed. - /// - COMPLETED, - /// - /// Finished with error. - /// - ERRORED, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class StatusExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this Status value) - { - return value switch - { - Status.COMPLETED => "STATUS_COMPLETED", - Status.ERRORED => "STATUS_ERRORED", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static Status? ToEnum(string value) - { - return value switch - { - "STATUS_COMPLETED" => Status.COMPLETED, - "STATUS_ERRORED" => Status.ERRORED, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/Instill/Generated/JsonConverters.Mode.g.cs b/src/libs/Instill/Generated/JsonConverters.Mode.g.cs deleted file mode 100644 index 7f5c266..0000000 --- a/src/libs/Instill/Generated/JsonConverters.Mode.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -#nullable enable - -namespace Instill.JsonConverters -{ - /// - public sealed class ModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Instill.Mode Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Instill.ModeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Instill.Mode)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Instill.Mode value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Instill.ModeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Instill/Generated/JsonConverters.ModeNullable.g.cs b/src/libs/Instill/Generated/JsonConverters.ModeNullable.g.cs deleted file mode 100644 index e3fc87b..0000000 --- a/src/libs/Instill/Generated/JsonConverters.ModeNullable.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace Instill.JsonConverters -{ - /// - public sealed class ModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Instill.Mode? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Instill.ModeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Instill.Mode)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Instill.Mode? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Instill.ModeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Instill/Generated/JsonConverters.Status.g.cs b/src/libs/Instill/Generated/JsonConverters.Status.g.cs deleted file mode 100644 index 2ba799d..0000000 --- a/src/libs/Instill/Generated/JsonConverters.Status.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -#nullable enable - -namespace Instill.JsonConverters -{ - /// - public sealed class StatusJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Instill.Status Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Instill.StatusExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Instill.Status)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Instill.Status value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::Instill.StatusExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/Instill/Generated/JsonConverters.StatusNullable.g.cs b/src/libs/Instill/Generated/JsonConverters.StatusNullable.g.cs deleted file mode 100644 index 756c906..0000000 --- a/src/libs/Instill/Generated/JsonConverters.StatusNullable.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace Instill.JsonConverters -{ - /// - public sealed class StatusNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::Instill.Status? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::Instill.StatusExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::Instill.Status)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::Instill.Status? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::Instill.StatusExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/Instill/Generated/JsonSerializerContext.g.cs b/src/libs/Instill/Generated/JsonSerializerContext.g.cs index 4d8c7e4..72795e5 100644 --- a/src/libs/Instill/Generated/JsonSerializerContext.g.cs +++ b/src/libs/Instill/Generated/JsonSerializerContext.g.cs @@ -69,10 +69,6 @@ namespace Instill typeof(global::Instill.JsonConverters.OrganizationSubscriptionPlanNullableJsonConverter), typeof(global::Instill.JsonConverters.StateJsonConverter), typeof(global::Instill.JsonConverters.StateNullableJsonConverter), - typeof(global::Instill.JsonConverters.ModeJsonConverter), - typeof(global::Instill.JsonConverters.ModeNullableJsonConverter), - typeof(global::Instill.JsonConverters.StatusJsonConverter), - typeof(global::Instill.JsonConverters.StatusNullableJsonConverter), typeof(global::Instill.JsonConverters.PipelineViewJsonConverter), typeof(global::Instill.JsonConverters.PipelineViewNullableJsonConverter), typeof(global::Instill.JsonConverters.TraceStatusJsonConverter), diff --git a/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs b/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs index 87782de..2c8ec92 100644 --- a/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/Instill/Generated/JsonSerializerContextTypes.g.cs @@ -970,466 +970,446 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Instill.Mode? Type238 { get; set; } + public global::Instill.ListPipelinesAdminResponse? Type238 { get; set; } /// /// /// - public global::Instill.Status? Type239 { get; set; } + public global::Instill.ListPipelinesResponse? Type239 { get; set; } /// /// /// - public global::Instill.ListPipelineTriggerRecordsResponse? Type240 { get; set; } + public global::Instill.ListRepositoryTagsResponse? Type240 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type241 { get; set; } + public global::System.Collections.Generic.IList? Type241 { get; set; } /// /// /// - public global::Instill.PipelineTriggerRecord? Type242 { get; set; } + public global::Instill.ListTokensResponse? Type242 { get; set; } /// /// /// - public global::Instill.ListPipelinesAdminResponse? Type243 { get; set; } + public global::System.Collections.Generic.IList? Type243 { get; set; } /// /// /// - public global::Instill.ListPipelinesResponse? Type244 { get; set; } + public global::Instill.ListUserMembershipsResponse? Type244 { get; set; } /// /// /// - public global::Instill.ListRepositoryTagsResponse? Type245 { get; set; } + public global::System.Collections.Generic.IList? Type245 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type246 { get; set; } + public global::Instill.ListUsersAdminResponse? Type246 { get; set; } /// /// /// - public global::Instill.ListTokensResponse? Type247 { get; set; } + public global::System.Collections.Generic.IList? Type247 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type248 { get; set; } + public global::Instill.ListUsersResponse? Type248 { get; set; } /// /// /// - public global::Instill.ListUserMembershipsResponse? Type249 { get; set; } + public global::Instill.LookUpModelAdminResponse? Type249 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type250 { get; set; } + public global::Instill.LookUpOrganizationAdminResponse? Type250 { get; set; } /// /// /// - public global::Instill.ListUsersAdminResponse? Type251 { get; set; } + public global::Instill.LookUpPipelineAdminResponse? Type251 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type252 { get; set; } + public global::Instill.LookUpUserAdminResponse? Type252 { get; set; } /// /// /// - public global::Instill.ListUsersResponse? Type253 { get; set; } + public global::Instill.PatchAuthenticatedUserResponse? Type253 { get; set; } /// /// /// - public global::Instill.LookUpModelAdminResponse? Type254 { get; set; } + public global::Instill.PipelineView? Type254 { get; set; } /// /// /// - public global::Instill.LookUpOrganizationAdminResponse? Type255 { get; set; } + public global::Instill.ProcessCatalogFilesRequest? Type255 { get; set; } /// /// /// - public global::Instill.LookUpPipelineAdminResponse? Type256 { get; set; } + public global::Instill.ProcessCatalogFilesResponse? Type256 { get; set; } /// /// /// - public global::Instill.LookUpUserAdminResponse? Type257 { get; set; } + public global::Instill.QuestionAnsweringBody? Type257 { get; set; } /// /// /// - public global::Instill.PatchAuthenticatedUserResponse? Type258 { get; set; } + public global::Instill.QuestionAnsweringResponse? Type258 { get; set; } /// /// /// - public global::Instill.PipelineView? Type259 { get; set; } + public global::Instill.RenameNamespaceModelBody? Type259 { get; set; } /// /// /// - public global::Instill.ProcessCatalogFilesRequest? Type260 { get; set; } + public global::Instill.RenameNamespaceModelResponse? Type260 { get; set; } /// /// /// - public global::Instill.ProcessCatalogFilesResponse? Type261 { get; set; } + public global::Instill.RenameNamespacePipelineBody? Type261 { get; set; } /// /// /// - public global::Instill.QuestionAnsweringBody? Type262 { get; set; } + public global::Instill.RenameNamespacePipelineResponse? Type262 { get; set; } /// /// /// - public global::Instill.QuestionAnsweringResponse? Type263 { get; set; } + public global::Instill.RestartPlaygroundConversationResponse? Type263 { get; set; } /// /// /// - public global::Instill.RenameNamespaceModelBody? Type264 { get; set; } + public global::Instill.SimilarityChunksSearchBody? Type264 { get; set; } /// /// /// - public global::Instill.RenameNamespaceModelResponse? Type265 { get; set; } + public global::Instill.SimilarityChunksSearchResponse? Type265 { get; set; } /// /// /// - public global::Instill.RenameNamespacePipelineBody? Type266 { get; set; } + public global::Instill.SubtractCreditAdminResponse? Type266 { get; set; } /// /// /// - public global::Instill.RenameNamespacePipelineResponse? Type267 { get; set; } + public global::Instill.Trace? Type267 { get; set; } /// /// /// - public global::Instill.RestartPlaygroundConversationResponse? Type268 { get; set; } + public global::System.Collections.Generic.IList? Type268 { get; set; } /// /// /// - public global::Instill.SimilarityChunksSearchBody? Type269 { get; set; } + public global::Instill.TraceStatus? Type269 { get; set; } /// /// /// - public global::Instill.SimilarityChunksSearchResponse? Type270 { get; set; } + public global::Instill.TriggerAsyncNamespaceLatestModelBody? Type270 { get; set; } /// /// /// - public global::Instill.SubtractCreditAdminResponse? Type271 { get; set; } + public global::Instill.TriggerAsyncNamespaceLatestModelResponse? Type271 { get; set; } /// /// /// - public global::Instill.Trace? Type272 { get; set; } + public global::Instill.TriggerAsyncNamespaceModelBody? Type272 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type273 { get; set; } + public global::Instill.TriggerAsyncNamespaceModelResponse? Type273 { get; set; } /// /// /// - public global::Instill.TraceStatus? Type274 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineBody? Type274 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceLatestModelBody? Type275 { get; set; } + public global::System.Collections.Generic.IList? Type275 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceLatestModelResponse? Type276 { get; set; } + public global::Instill.TriggerData? Type276 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceModelBody? Type277 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineReleaseBody? Type277 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespaceModelResponse? Type278 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineReleaseResponse? Type278 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineBody? Type279 { get; set; } + public global::Instill.TriggerAsyncNamespacePipelineResponse? Type279 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type280 { get; set; } + public global::Instill.TriggerMetadata? Type280 { get; set; } /// /// /// - public global::Instill.TriggerData? Type281 { get; set; } + public global::System.Collections.Generic.Dictionary? Type281 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineReleaseBody? Type282 { get; set; } + public global::Instill.TriggerNamespaceLatestModelBinaryFileUploadResponse? Type282 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineReleaseResponse? Type283 { get; set; } + public global::Instill.TriggerNamespaceLatestModelBody? Type283 { get; set; } /// /// /// - public global::Instill.TriggerAsyncNamespacePipelineResponse? Type284 { get; set; } + public global::Instill.TriggerNamespaceLatestModelResponse? Type284 { get; set; } /// /// /// - public global::Instill.TriggerMetadata? Type285 { get; set; } + public global::Instill.TriggerNamespaceModelBinaryFileUploadResponse? Type285 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type286 { get; set; } + public global::Instill.TriggerNamespaceModelBody? Type286 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceLatestModelBinaryFileUploadResponse? Type287 { get; set; } + public global::Instill.TriggerNamespaceModelResponse? Type287 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceLatestModelBody? Type288 { get; set; } + public global::Instill.TriggerNamespacePipelineBody? Type288 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceLatestModelResponse? Type289 { get; set; } + public global::Instill.TriggerNamespacePipelineReleaseBody? Type289 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceModelBinaryFileUploadResponse? Type290 { get; set; } + public global::Instill.TriggerNamespacePipelineReleaseResponse? Type290 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceModelBody? Type291 { get; set; } + public global::Instill.TriggerNamespacePipelineResponse? Type291 { get; set; } /// /// /// - public global::Instill.TriggerNamespaceModelResponse? Type292 { get; set; } + public global::Instill.TriggerNamespacePipelineWithStreamBody? Type292 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineBody? Type293 { get; set; } + public global::Instill.TriggerNamespacePipelineWithStreamResponse? Type293 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineReleaseBody? Type294 { get; set; } + public global::Instill.UpdateAppBody? Type294 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineReleaseResponse? Type295 { get; set; } + public global::Instill.UpdateAppResponse? Type295 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineResponse? Type296 { get; set; } + public global::Instill.UpdateCatalogBody? Type296 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineWithStreamBody? Type297 { get; set; } + public global::Instill.UpdateCatalogResponse? Type297 { get; set; } /// /// /// - public global::Instill.TriggerNamespacePipelineWithStreamResponse? Type298 { get; set; } + public global::Instill.UpdateChunkBody? Type298 { get; set; } /// /// /// - public global::Instill.UpdateAppBody? Type299 { get; set; } + public global::Instill.UpdateChunkResponse? Type299 { get; set; } /// /// /// - public global::Instill.UpdateAppResponse? Type300 { get; set; } + public global::Instill.UpdateConversationBody? Type300 { get; set; } /// /// /// - public global::Instill.UpdateCatalogBody? Type301 { get; set; } + public global::Instill.UpdateConversationResponse? Type301 { get; set; } /// /// /// - public global::Instill.UpdateCatalogResponse? Type302 { get; set; } + public global::Instill.UpdateMessageBody? Type302 { get; set; } /// /// /// - public global::Instill.UpdateChunkBody? Type303 { get; set; } + public global::Instill.UpdateMessageResponse? Type303 { get; set; } /// /// /// - public global::Instill.UpdateChunkResponse? Type304 { get; set; } + public global::Instill.UpdateNamespaceConnectionResponse? Type304 { get; set; } /// /// /// - public global::Instill.UpdateConversationBody? Type305 { get; set; } + public global::Instill.UpdateNamespaceModelResponse? Type305 { get; set; } /// /// /// - public global::Instill.UpdateConversationResponse? Type306 { get; set; } + public global::Instill.UpdateNamespacePipelineReleaseResponse? Type306 { get; set; } /// /// /// - public global::Instill.UpdateMessageBody? Type307 { get; set; } + public global::Instill.UpdateNamespacePipelineResponse? Type307 { get; set; } /// /// /// - public global::Instill.UpdateMessageResponse? Type308 { get; set; } + public global::Instill.UpdateNamespaceSecretResponse? Type308 { get; set; } /// /// /// - public global::Instill.UpdateNamespaceConnectionResponse? Type309 { get; set; } + public global::Instill.UpdateObjectResponse? Type309 { get; set; } /// /// /// - public global::Instill.UpdateNamespaceModelResponse? Type310 { get; set; } + public global::Instill.UpdateOrganizationMembershipResponse? Type310 { get; set; } /// /// /// - public global::Instill.UpdateNamespacePipelineReleaseResponse? Type311 { get; set; } + public global::Instill.UpdateOrganizationResponse? Type311 { get; set; } /// /// /// - public global::Instill.UpdateNamespacePipelineResponse? Type312 { get; set; } + public global::Instill.UpdateUserMembershipResponse? Type312 { get; set; } /// /// /// - public global::Instill.UpdateNamespaceSecretResponse? Type313 { get; set; } + public global::Instill.UploadCatalogFileResponse? Type313 { get; set; } /// /// /// - public global::Instill.UpdateObjectResponse? Type314 { get; set; } + public global::Instill.ValidateNamespacePipelineResponse? Type314 { get; set; } /// /// /// - public global::Instill.UpdateOrganizationMembershipResponse? Type315 { get; set; } + public global::System.Collections.Generic.IList? Type315 { get; set; } /// /// /// - public global::Instill.UpdateOrganizationResponse? Type316 { get; set; } + public global::Instill.ValidateTokenResponse? Type316 { get; set; } /// /// /// - public global::Instill.UpdateUserMembershipResponse? Type317 { get; set; } + public global::Instill.WatchNamespaceLatestModelResponse? Type317 { get; set; } /// /// /// - public global::Instill.UploadCatalogFileResponse? Type318 { get; set; } + public global::Instill.WatchNamespaceModelResponse? Type318 { get; set; } /// /// /// - public global::Instill.ValidateNamespacePipelineResponse? Type319 { get; set; } + public global::Instill.MgmtV1betaView? Type319 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type320 { get; set; } + public global::Instill.View? Type320 { get; set; } /// /// /// - public global::Instill.ValidateTokenResponse? Type321 { get; set; } + public global::Instill.ListUsersView? Type321 { get; set; } /// /// /// - public global::Instill.WatchNamespaceLatestModelResponse? Type322 { get; set; } + public global::Instill.GetUserView? Type322 { get; set; } /// /// /// - public global::Instill.WatchNamespaceModelResponse? Type323 { get; set; } + public global::Instill.ListOrganizationsView? Type323 { get; set; } /// /// /// - public global::Instill.MgmtV1betaView? Type324 { get; set; } + public global::Instill.GetOrganizationView? Type324 { get; set; } /// /// /// - public global::Instill.View? Type325 { get; set; } + public global::Instill.GetUserMembershipView? Type325 { get; set; } /// /// /// - public global::Instill.ListUsersView? Type326 { get; set; } + public global::Instill.GetOrganizationMembershipView? Type326 { get; set; } /// /// /// - public global::Instill.GetUserView? Type327 { get; set; } + public global::Instill.ModelPublicServiceListModelDefinitionsView? Type327 { get; set; } /// /// /// - public global::Instill.ListOrganizationsView? Type328 { get; set; } + public global::Instill.ModelPublicServiceGetModelDefinitionView? Type328 { get; set; } /// /// /// - public global::Instill.GetOrganizationView? Type329 { get; set; } + public global::Instill.ModelPublicServiceListModelsView? Type329 { get; set; } /// /// /// - public global::Instill.GetUserMembershipView? Type330 { get; set; } + public global::Instill.ModelPublicServiceListModelsVisibility? Type330 { get; set; } /// /// /// - public global::Instill.GetOrganizationMembershipView? Type331 { get; set; } + public global::Instill.ModelPublicServiceListNamespaceModelsView? Type331 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListModelDefinitionsView? Type332 { get; set; } + public global::Instill.ModelPublicServiceListNamespaceModelsVisibility? Type332 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetModelDefinitionView? Type333 { get; set; } + public global::Instill.ModelPublicServiceGetNamespaceModelView? Type333 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListModelsView? Type334 { get; set; } + public global::Instill.ModelPublicServiceGetNamespaceModelOperationView? Type334 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListModelsVisibility? Type335 { get; set; } + public global::Instill.ModelPublicServiceGetNamespaceLatestModelOperationView? Type335 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListNamespaceModelsView? Type336 { get; set; } + public global::Instill.ModelPublicServiceGetModelOperationView? Type336 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceListNamespaceModelsVisibility? Type337 { get; set; } + public global::Instill.PipelinePublicServiceListPipelinesView? Type337 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetNamespaceModelView? Type338 { get; set; } + public global::Instill.PipelinePublicServiceListPipelinesVisibility? Type338 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetNamespaceModelOperationView? Type339 { get; set; } + public global::Instill.PipelinePublicServiceListNamespacePipelinesView? Type339 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetNamespaceLatestModelOperationView? Type340 { get; set; } + public global::Instill.PipelinePublicServiceListNamespacePipelinesVisibility? Type340 { get; set; } /// /// /// - public global::Instill.ModelPublicServiceGetModelOperationView? Type341 { get; set; } + public global::Instill.PipelinePublicServiceGetNamespacePipelineView? Type341 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListPipelinesView? Type342 { get; set; } + public global::Instill.PipelinePublicServiceListNamespacePipelineReleasesView? Type342 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListPipelinesVisibility? Type343 { get; set; } + public global::Instill.PipelinePublicServiceGetNamespacePipelineReleaseView? Type343 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListNamespacePipelinesView? Type344 { get; set; } + public global::Instill.PipelinePublicServiceListComponentDefinitionsView? Type344 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListNamespacePipelinesVisibility? Type345 { get; set; } + public global::Instill.PipelinePublicServiceListComponentRunsView? Type345 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetNamespacePipelineView? Type346 { get; set; } + public global::Instill.PipelinePublicServiceGetNamespaceConnectionView? Type346 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceListNamespacePipelineReleasesView? Type347 { get; set; } + public global::Instill.PipelinePublicServiceGetIntegrationView? Type347 { get; set; } /// /// /// - public global::Instill.PipelinePublicServiceGetNamespacePipelineReleaseView? Type348 { get; set; } - /// - /// - /// - public global::Instill.PipelinePublicServiceListComponentDefinitionsView? Type349 { get; set; } - /// - /// - /// - public global::Instill.PipelinePublicServiceListComponentRunsView? Type350 { get; set; } - /// - /// - /// - public global::Instill.PipelinePublicServiceGetNamespaceConnectionView? Type351 { get; set; } - /// - /// - /// - public global::Instill.PipelinePublicServiceGetIntegrationView? Type352 { get; set; } - /// - /// - /// - public global::Instill.PipelinePublicServiceTriggerNamespacePipelineWithStreamResponse? Type353 { get; set; } + public global::Instill.PipelinePublicServiceTriggerNamespacePipelineWithStreamResponse? Type348 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Instill/openapi.yaml b/src/libs/Instill/openapi.yaml index ce3207f..25d321a 100644 --- a/src/libs/Instill/openapi.yaml +++ b/src/libs/Instill/openapi.yaml @@ -2491,68 +2491,37 @@ paths: schema: $ref: '#/components/schemas/rpc.Status' x-stage: beta - /v1beta/metrics/vdp/pipeline/triggers: + /v1beta/pipeline-runs/query-charts: get: tags: - 📊 Metrics - summary: List pipeline triggers - description: Returns a paginated list of pipeline executions. - operationId: ListPipelineTriggerRecords + summary: List pipeline trigger time charts + description: "Returns a timeline of pipline trigger counts for a given requester. The\nresponse will contain one set of records (datapoints), representing the\namount of triggers in a time bucket." + operationId: ListPipelineTriggerChartRecords parameters: - - name: pageSize - in: query - description: "The maximum number of triggers to return. If this parameter is unspecified,\nat most 100 pipelines will be returned. The cap value for this parameter is\n1000 (i.e. any value above that will be coerced to 100)." - schema: - type: integer - format: int32 - - name: pageToken + - name: requesterId in: query - description: Page token. + description: The ID of the namespace that requested the pipeline triggers. + required: true schema: type: string - - name: filter + - name: aggregationWindow in: query - description: "Filter can hold an [AIP-160](https://google.aip.dev/160)-compliant filter\nexpression.\n- Example: `create_time>timestamp(\"2000-06-19T23:31:08.657Z\")`." + description: "Aggregation window. The value is a positive duration string, i.e. a\nsequence of decimal numbers, each with optional fraction and a unit\nsuffix, such as \"300ms\", \"1.5h\" or \"2h45m\".\nThe minimum (and default) window is 1h." schema: type: string - responses: - '200': - description: A successful response. - content: - application/json: - schema: - $ref: '#/components/schemas/ListPipelineTriggerRecordsResponse' - '401': - description: Returned when the client credentials are not valid. - content: - application/json: - schema: { } - default: - description: An unexpected error response. - content: - application/json: - schema: - $ref: '#/components/schemas/rpc.Status' - x-stage: beta - /v1beta/metrics/vdp/pipeline/charts: - get: - tags: - - 📊 Metrics - summary: List pipeline trigger time charts - description: "Returns a timeline of pipline trigger counts for the pipelines of a given\nowner.\nNOTE: This method will soon return the trigger counts of a given requester." - operationId: ListPipelineTriggerChartRecords - parameters: - - name: aggregationWindow + - name: start in: query - description: Aggregation window in nanoseconds. + description: "Beginning of the time range from which the records will be fetched.\nThe default value is the beginning of the current day, in UTC." schema: - type: integer - format: int32 - - name: filter + type: string + format: date-time + - name: stop in: query - description: "Filter can hold an [AIP-160](https://google.aip.dev/160)-compliant filter\nexpression.\n- Example: `create_time>timestamp(\"2000-06-19T23:31:08.657Z\")`." + description: "End of the time range from which the records will be fetched.\nThe default value is the current timestamp." schema: type: string + format: date-time responses: '200': description: A successful response. @@ -2622,12 +2591,12 @@ paths: schema: $ref: '#/components/schemas/rpc.Status' x-stage: beta - /v1beta/metrics/credit/charts: + /v1beta/credit/query-charts: get: tags: - 📊 Metrics summary: List Instill Credit consumption time charts - description: "Returns a timeline of Instill Credit consumption for a given owner. The\nresponse will contain one set of records (datapoints) per consumption\nsource (e.g. \"pipeline\", \"model\"). Each datapoint represents the amount\nconsumed in a time bucket." + description: "Returns a timeline of Instill Credit consumption for a given owner. The\nresponse will contain one set of records (datapoints) per consumption\nsource (e.g. \"pipeline\", \"model\"). Each datapoint represents the amount\nconsumed in a time bucket.\n\nThis endpoint is only exposed on Instill Cloud." operationId: ListCreditConsumptionChartRecords parameters: - name: namespaceId @@ -8024,24 +7993,8 @@ components: type: array items: $ref: '#/components/schemas/PipelineTriggerChartRecord' - description: A list of pipeline trigger records. + description: "Pipeline trigger counts. Until we allow filtering or grouping by fields\nlike pipeline ID, this list will contain only one element with the\ntimeline of trigger counts for a given requester, regardless the pipeline\nID, trigger mode, final status or other fields." description: "ListPipelineTriggerChartRecordsResponse contains a list of pipeline trigger\nchart records." - ListPipelineTriggerRecordsResponse: - type: object - properties: - pipelineTriggerRecords: - type: array - items: - $ref: '#/components/schemas/PipelineTriggerRecord' - description: A list of pipeline triggers. - nextPageToken: - type: string - description: Next page token. - totalSize: - type: integer - description: Total number of pipeline triggers. - format: int32 - description: ListPipelineTriggerRecordsResponse contains a list of pipeline triggers. ListPipelinesAdminResponse: type: object properties: @@ -8255,12 +8208,6 @@ components: - METHOD_OAUTH type: string description: "Method defines how the connection is set up.\n\n - METHOD_DICTIONARY: Key-value collection. The user is responsible of fetching the connection\ndetails from the 3rd party service.\n - METHOD_OAUTH: Access token created via OAuth 2.0 authorization." - Mode: - enum: - - MODE_SYNC - - MODE_ASYNC - type: string - description: "Mode describes the execution mode of the pipeline (sync or async).\n\n - MODE_SYNC: Synchronous (result is returned in the response).\n - MODE_ASYNC: Asynchronous (response only contains acknowledgement)." Model: title: "Model represents an AI model, i.e. a program that performs tasks as decision\nmaking or or pattern recognition based on its training data" required: @@ -9116,18 +9063,7 @@ components: properties: pipelineId: type: string - description: Pipeline ID. - pipelineUid: - type: string - description: Pipeline UUID. - triggerMode: - allOf: - - $ref: '#/components/schemas/Mode' - description: Trigger mode. - status: - allOf: - - $ref: '#/components/schemas/.Status' - description: Final status. + description: This field will be present present when the information is grouped by pipeline. readOnly: true timeBuckets: type: array @@ -9143,61 +9079,11 @@ components: format: int32 description: Aggregated trigger count in each time bucket. readOnly: true - computeTimeDuration: - type: array - items: - type: number - format: float - description: Total computation time duration in each time bucket. - readOnly: true - pipelineReleaseId: - type: string - description: Version for the triggered pipeline if it is a release pipeline. - readOnly: true - pipelineReleaseUid: - type: string - description: Release UUID for the triggered pipeline if it is a release pipeline. - readOnly: true - description: "PipelineTriggerChartRecord contains pipeline trigger metrics, aggregated by\npipeline ID and time frame." - PipelineTriggerRecord: - type: object - properties: - triggerTime: - type: string - description: The moment when the pipeline was triggered. - format: date-time - pipelineTriggerId: - type: string - description: UUID of the trigger. - pipelineId: - type: string - description: Pipeline ID. - pipelineUid: - type: string - description: Pipeline UUID. - triggerMode: - allOf: - - $ref: '#/components/schemas/Mode' - description: Trigger mode. - computeTimeDuration: - type: number - description: Total execution duration. - format: float - readOnly: true - status: - allOf: - - $ref: '#/components/schemas/.Status' - description: Final status. - readOnly: true - pipelineReleaseId: - type: string - description: 'If a release of the pipeline was triggered, pipeline version.' - readOnly: true - pipelineReleaseUid: + requesterId: type: string - description: 'If a release of the pipeline was triggered, release UUID.' + description: The ID of the namespace that requested the pipeline triggers. readOnly: true - description: PipelineTriggerRecord represents a pipeline execution event. + description: "PipelineTriggerChartRecord represents a timeline of pipeline triggers. It\ncontains a collection of (timestamp, count) pairs that represent the total\npipeline triggers in a given time bucket.\npipeline ID and time frame." ProcessCatalogFilesRequest: title: Process Catalog File Request required: @@ -10445,12 +10331,6 @@ components: - VIEW_FULL type: string description: "View defines how a model definition is presented.\n\n - VIEW_BASIC: Default view, only includes basic information (omits `model_spec`).\n - VIEW_FULL: Full representation." - .Status: - enum: - - STATUS_COMPLETED - - STATUS_ERRORED - type: string - description: "Status describes the output of an execution.\n\n - STATUS_COMPLETED: Successfully completed.\n - STATUS_ERRORED: Finished with error." .User: type: object properties: