From 4fa0b6b5157d79d110d211d35a8386a1b5b4b4fe Mon Sep 17 00:00:00 2001 From: Chris Goller Date: Tue, 27 Aug 2024 16:49:44 -0500 Subject: [PATCH] feat: add optional hardware configuration to projects Signed-off-by: Chris Goller --- proto/depot/core/v1/project.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/proto/depot/core/v1/project.proto b/proto/depot/core/v1/project.proto index c129f08..d50f34e 100644 --- a/proto/depot/core/v1/project.proto +++ b/proto/depot/core/v1/project.proto @@ -48,6 +48,7 @@ message Project { string region_id = 4; google.protobuf.Timestamp created_at = 5; CachePolicy cache_policy = 6; + Hardware hardware = 7; } message ListProjectsRequest {} @@ -69,6 +70,7 @@ message CreateProjectRequest { optional string organization_id = 2; string region_id = 3; optional CachePolicy cache_policy = 4; + optional Hardware hardware = 5; } message CreateProjectResponse { @@ -80,6 +82,7 @@ message UpdateProjectRequest { optional string name = 2; optional string region_id = 3; optional CachePolicy cache_policy = 4; + optional Hardware hardware = 5; } message UpdateProjectResponse { @@ -97,6 +100,16 @@ message CachePolicy { int32 keep_days = 2; } +// Hardware represents the hardware configuration of a project. +enum Hardware { + // By default is 16 CPU and 32GB of memory. + HARDWARE_UNSPECIFIED = 0; + // 16 CPU and 32GB of memory. + HARDWARE_16X32 = 1; + // 4 CPU and 4GB of memory. + HARDWARE_4X4 = 2; +} + message ListTrustPoliciesRequest { string project_id = 1; }