Skip to content

Commit

Permalink
feat: add optional hardware configuration to projects
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Goller <[email protected]>
  • Loading branch information
goller committed Aug 27, 2024
1 parent a0e07a6 commit 4fa0b6b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions proto/depot/core/v1/project.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand All @@ -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 {
Expand All @@ -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 {
Expand All @@ -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;
}
Expand Down

0 comments on commit 4fa0b6b

Please sign in to comment.