diff --git a/api/v1/project/service_connect.ts b/api/v1/project/service_connect.ts index cd2b66a..3c0ec1c 100644 --- a/api/v1/project/service_connect.ts +++ b/api/v1/project/service_connect.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { CreateRequest, CreateResponse, DeleteRequest, DeleteResponse, GetCustomMetricsRequest, GetCustomMetricsResponse, GetLicenseInfoRequest, GetLicenseInfoResponse, GetRequest, GetResponse, ListRequest, ListResponse, PublicKeyRequest, PublicKeyResponse, UpdateRequest, UpdateResponse, UseRequest, UseResponse } from "./service_pb.js"; +import { CreateRequest, CreateResponse, DeleteRequest, DeleteResponse, GetCustomObjectMetricsRequest, GetCustomObjectMetricsResponse, GetLicenseInfoRequest, GetLicenseInfoResponse, GetObjectsByKindRequest, GetObjectsByKindResponse, GetRequest, GetResponse, ListRequest, ListResponse, PublicKeyRequest, PublicKeyResponse, UpdateRequest, UpdateResponse, UseRequest, UseResponse } from "./service_pb.js"; import { MethodKind } from "@bufbuild/protobuf"; /** @@ -104,12 +104,21 @@ export const Service = { kind: MethodKind.Unary, }, /** - * @generated from rpc api.v1.project.Service.GetCustomMetrics + * @generated from rpc api.v1.project.Service.GetObjectsByKind */ - getCustomMetrics: { - name: "GetCustomMetrics", - I: GetCustomMetricsRequest, - O: GetCustomMetricsResponse, + getObjectsByKind: { + name: "GetObjectsByKind", + I: GetObjectsByKindRequest, + O: GetObjectsByKindResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc api.v1.project.Service.GetCustomObjectMetrics + */ + getCustomObjectMetrics: { + name: "GetCustomObjectMetrics", + I: GetCustomObjectMetricsRequest, + O: GetCustomObjectMetricsResponse, kind: MethodKind.Unary, }, } diff --git a/api/v1/project/service_pb.ts b/api/v1/project/service_pb.ts index 1cabc25..08f5691 100644 --- a/api/v1/project/service_pb.ts +++ b/api/v1/project/service_pb.ts @@ -8,6 +8,7 @@ import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { Plan, Project, Update } from "./project_pb.js"; import { Pagination } from "../../../model/common_pb.js"; import { ObjectReference } from "../capsule/rollout_pb.js"; +import { Metric } from "../capsule/service_pb.js"; /** * The request of a Namespace.Create RPC @@ -608,125 +609,199 @@ export class GetLicenseInfoResponse extends Message { } /** - * @generated from message api.v1.project.GetCustomMetricsRequest + * @generated from message api.v1.project.GetCustomObjectMetricsRequest */ -export class GetCustomMetricsRequest extends Message { - constructor(data?: PartialMessage) { +export class GetCustomObjectMetricsRequest extends Message { + /** + * @generated from field: api.v1.capsule.ObjectReference object_reference = 1; + */ + objectReference?: ObjectReference; + + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.project.GetCustomMetricsRequest"; + static readonly typeName = "api.v1.project.GetCustomObjectMetricsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "object_reference", kind: "message", T: ObjectReference }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): GetCustomMetricsRequest { - return new GetCustomMetricsRequest().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): GetCustomObjectMetricsRequest { + return new GetCustomObjectMetricsRequest().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): GetCustomMetricsRequest { - return new GetCustomMetricsRequest().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): GetCustomObjectMetricsRequest { + return new GetCustomObjectMetricsRequest().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): GetCustomMetricsRequest { - return new GetCustomMetricsRequest().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): GetCustomObjectMetricsRequest { + return new GetCustomObjectMetricsRequest().fromJsonString(jsonString, options); } - static equals(a: GetCustomMetricsRequest | PlainMessage | undefined, b: GetCustomMetricsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetCustomMetricsRequest, a, b); + static equals(a: GetCustomObjectMetricsRequest | PlainMessage | undefined, b: GetCustomObjectMetricsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetCustomObjectMetricsRequest, a, b); } } /** - * @generated from message api.v1.project.GetCustomMetricsResponse + * @generated from message api.v1.project.GetCustomObjectMetricsResponse */ -export class GetCustomMetricsResponse extends Message { +export class GetCustomObjectMetricsResponse extends Message { /** - * @generated from field: repeated api.v1.project.Metric metrics = 1; + * @generated from field: repeated api.v1.capsule.Metric metrics = 1; */ metrics: Metric[] = []; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.project.GetCustomMetricsResponse"; + static readonly typeName = "api.v1.project.GetCustomObjectMetricsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "metrics", kind: "message", T: Metric, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): GetCustomMetricsResponse { - return new GetCustomMetricsResponse().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): GetCustomObjectMetricsResponse { + return new GetCustomObjectMetricsResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): GetCustomMetricsResponse { - return new GetCustomMetricsResponse().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): GetCustomObjectMetricsResponse { + return new GetCustomObjectMetricsResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): GetCustomMetricsResponse { - return new GetCustomMetricsResponse().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): GetCustomObjectMetricsResponse { + return new GetCustomObjectMetricsResponse().fromJsonString(jsonString, options); } - static equals(a: GetCustomMetricsResponse | PlainMessage | undefined, b: GetCustomMetricsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetCustomMetricsResponse, a, b); + static equals(a: GetCustomObjectMetricsResponse | PlainMessage | undefined, b: GetCustomObjectMetricsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetCustomObjectMetricsResponse, a, b); } } /** - * @generated from message api.v1.project.Metric + * @generated from message api.v1.project.KubernetesObject */ -export class Metric extends Message { +export class KubernetesObject extends Message { + /** + * @generated from field: string kind = 1; + */ + kind = ""; + /** - * @generated from field: string name = 1; + * @generated from field: string name = 2; */ name = ""; + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.project.KubernetesObject"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): KubernetesObject { + return new KubernetesObject().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): KubernetesObject { + return new KubernetesObject().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): KubernetesObject { + return new KubernetesObject().fromJsonString(jsonString, options); + } + + static equals(a: KubernetesObject | PlainMessage | undefined, b: KubernetesObject | PlainMessage | undefined): boolean { + return proto3.util.equals(KubernetesObject, a, b); + } +} + +/** + * @generated from message api.v1.project.GetObjectsByKindRequest + */ +export class GetObjectsByKindRequest extends Message { /** - * @generated from field: api.v1.capsule.ObjectReference object = 2; + * @generated from field: string kind = 1; */ - object?: ObjectReference; + kind = ""; /** - * @generated from field: double latest_value = 3; + * @generated from field: string api_version = 2; */ - latestValue = 0; + apiVersion = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "api.v1.project.GetObjectsByKindRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "kind", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "api_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + static fromBinary(bytes: Uint8Array, options?: Partial): GetObjectsByKindRequest { + return new GetObjectsByKindRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetObjectsByKindRequest { + return new GetObjectsByKindRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetObjectsByKindRequest { + return new GetObjectsByKindRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetObjectsByKindRequest | PlainMessage | undefined, b: GetObjectsByKindRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetObjectsByKindRequest, a, b); + } +} + +/** + * @generated from message api.v1.project.GetObjectsByKindResponse + */ +export class GetObjectsByKindResponse extends Message { /** - * @generated from field: google.protobuf.Timestamp latest_timestamp = 4; + * @generated from field: repeated api.v1.project.KubernetesObject objects = 1; */ - latestTimestamp?: Timestamp; + objects: KubernetesObject[] = []; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "api.v1.project.Metric"; + static readonly typeName = "api.v1.project.GetObjectsByKindResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "object", kind: "message", T: ObjectReference }, - { no: 3, name: "latest_value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ }, - { no: 4, name: "latest_timestamp", kind: "message", T: Timestamp }, + { no: 1, name: "objects", kind: "message", T: KubernetesObject, repeated: true }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): Metric { - return new Metric().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): GetObjectsByKindResponse { + return new GetObjectsByKindResponse().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): Metric { - return new Metric().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): GetObjectsByKindResponse { + return new GetObjectsByKindResponse().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): Metric { - return new Metric().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): GetObjectsByKindResponse { + return new GetObjectsByKindResponse().fromJsonString(jsonString, options); } - static equals(a: Metric | PlainMessage | undefined, b: Metric | PlainMessage | undefined): boolean { - return proto3.util.equals(Metric, a, b); + static equals(a: GetObjectsByKindResponse | PlainMessage | undefined, b: GetObjectsByKindResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetObjectsByKindResponse, a, b); } }