From 0ca6f09275f336214ed3e98532bdcdac4cf41264 Mon Sep 17 00:00:00 2001 From: rig-bot Date: Mon, 29 Jan 2024 14:06:27 +0000 Subject: [PATCH] push latest version of APIs --- api/v1/capsule/log_pb.ts | 40 ++++++++++++++++++++++++++++++++++++ api/v1/capsule/service_pb.ts | 8 ++++++++ 2 files changed, 48 insertions(+) diff --git a/api/v1/capsule/log_pb.ts b/api/v1/capsule/log_pb.ts index 9a15800..28bf7ab 100644 --- a/api/v1/capsule/log_pb.ts +++ b/api/v1/capsule/log_pb.ts @@ -88,6 +88,14 @@ export class LogMessage extends Message { */ value: Uint8Array; case: "stderr"; + } | { + /** + * Represents a termination event + * + * @generated from field: api.v1.capsule.LogMessage.ContainerTermination container_termination = 3; + */ + value: LogMessage_ContainerTermination; + case: "containerTermination"; } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { @@ -100,6 +108,7 @@ export class LogMessage extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "stdout", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "message" }, { no: 2, name: "stderr", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "message" }, + { no: 3, name: "container_termination", kind: "message", T: LogMessage_ContainerTermination, oneof: "message" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LogMessage { @@ -119,3 +128,34 @@ export class LogMessage extends Message { } } +/** + * @generated from message api.v1.capsule.LogMessage.ContainerTermination + */ +export class LogMessage_ContainerTermination extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.capsule.LogMessage.ContainerTermination"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LogMessage_ContainerTermination { + return new LogMessage_ContainerTermination().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LogMessage_ContainerTermination { + return new LogMessage_ContainerTermination().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LogMessage_ContainerTermination { + return new LogMessage_ContainerTermination().fromJsonString(jsonString, options); + } + + static equals(a: LogMessage_ContainerTermination | PlainMessage | undefined, b: LogMessage_ContainerTermination | PlainMessage | undefined): boolean { + return proto3.util.equals(LogMessage_ContainerTermination, a, b); + } +} + diff --git a/api/v1/capsule/service_pb.ts b/api/v1/capsule/service_pb.ts index b1a580a..adb774f 100644 --- a/api/v1/capsule/service_pb.ts +++ b/api/v1/capsule/service_pb.ts @@ -661,6 +661,13 @@ export class LogsRequest extends Message { */ environmentId = ""; + /** + * If true, include logs from previously terminated containers + * + * @generated from field: bool previous_containers = 7; + */ + previousContainers = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -675,6 +682,7 @@ export class LogsRequest extends Message { { no: 4, name: "since", kind: "message", T: Duration }, { no: 5, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "previous_containers", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): LogsRequest {