Skip to content

Commit

Permalink
chore(proto): ts regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mauran committed Jul 5, 2023
1 parent 899b8fe commit 69aceb6
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions types/proto/pomegranate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,49 @@ export const protobufPackage = "pomegranate";

export interface StartDeploymentRequest {
deployment_uuid: string;
project_uuid: string;
user_uuid: string;
}

export interface RestartDeploymentRequest {
deployment_uuid: string;
project_uuid: string;
user_uuid: string;
}

export interface DeleteDeploymentRequest {
deployment_uuid: string;
project_uuid: string;
user_uuid: string;
}

export interface StopDeploymentRequest {
deployment_uuid: string;
project_uuid: string;
}

export interface DeploymentStatusRequest {
deployment_uuid: string;
project_uuid: string;
}

export interface ApplyConfigDeploymentRequest {
deployment_uuid: string;
project_uuid: string;
user_uuid: string;
config: string;
}

export interface DeploymentLogRequest {
deployment_uuid: string;
project_uuid: string;
}

export interface DeploymentStatRequest {
deployment_uuid: string;
project_uuid: string;
}

export interface ResponseMessage {
message: string;
}
Expand All @@ -38,6 +58,13 @@ export interface ResponseMessageStatus {
status: string;
}

export interface DeploymentStats {
message: string;
cpu_usage: number;
memory_usage: number;
memory_limit: number;
}

export const POMEGRANATE_PACKAGE_NAME = "pomegranate";

export interface PomegranateClient {
Expand All @@ -51,6 +78,10 @@ export interface PomegranateClient {

deploymentStatus(request: DeploymentStatusRequest): Observable<ResponseMessageStatus>;

deploymentLog(request: DeploymentLogRequest): Observable<ResponseMessage>;

deploymentStat(request: DeploymentStatRequest): Observable<DeploymentStats>;

applyConfigDeployment(request: ApplyConfigDeploymentRequest): Observable<ResponseMessage>;
}

Expand All @@ -75,6 +106,14 @@ export interface PomegranateController {
request: DeploymentStatusRequest,
): Promise<ResponseMessageStatus> | Observable<ResponseMessageStatus> | ResponseMessageStatus;

deploymentLog(
request: DeploymentLogRequest,
): Promise<ResponseMessage> | Observable<ResponseMessage> | ResponseMessage;

deploymentStat(
request: DeploymentStatRequest,
): Promise<DeploymentStats> | Observable<DeploymentStats> | DeploymentStats;

applyConfigDeployment(
request: ApplyConfigDeploymentRequest,
): Promise<ResponseMessage> | Observable<ResponseMessage> | ResponseMessage;
Expand All @@ -88,6 +127,8 @@ export function PomegranateControllerMethods() {
"deleteDeployment",
"stopDeployment",
"deploymentStatus",
"deploymentLog",
"deploymentStat",
"applyConfigDeployment",
];
for (const method of grpcMethods) {
Expand Down

0 comments on commit 69aceb6

Please sign in to comment.