Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: add optional hardware configuration to projects #9

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading