Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update GPU and CPU proto specs #76

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
17 changes: 8 additions & 9 deletions proto/provider/akash/inventory/v1/cpu.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,24 @@ import "akash/inventory/v1/resourcepair.proto";
option go_package = "github.com/akash-network/akash-api/go/inventory/v1";

message CPU {
ResourcePair quantity = 1 [
(gogoproto.customname) = "Quantity",
(gogoproto.jsontag) = "quantity",
(gogoproto.moretags) = "yaml:\"quantity\""
];

string id = 2 [
string id = 1 [
(gogoproto.customname) = "ID",
(gogoproto.jsontag) = "id",
(gogoproto.moretags) = "yaml:\"id\""
];
string vendor = 3 [
string vendor = 2 [
(gogoproto.customname) = "Vendor",
(gogoproto.jsontag) = "vendor",
(gogoproto.moretags) = "yaml:\"vendor\""
];
string model = 4 [
string model = 3 [
(gogoproto.customname) = "Model",
(gogoproto.jsontag) = "model",
(gogoproto.moretags) = "yaml:\"model\""
];
uint32 vcores = 4 [
(gogoproto.customname) = "Vcores",
(gogoproto.jsontag) = "vcores",
(gogoproto.moretags) = "yaml:\"vcores\""
];
}
32 changes: 16 additions & 16 deletions proto/provider/akash/inventory/v1/gpu.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ import "akash/inventory/v1/resourcepair.proto";
option go_package = "github.com/akash-network/akash-api/go/inventory/v1";

message GPU {
ResourcePair quantity = 1 [
(gogoproto.customname) = "Quantity",
(gogoproto.jsontag) = "quantity",
(gogoproto.moretags) = "yaml:\"quantity\""
string name = 1 [
(gogoproto.customname) = "Name",
(gogoproto.jsontag) = "name",
(gogoproto.moretags) = "yaml:\"name\""
];
string id = 2 [
(gogoproto.customname) = "ID",
(gogoproto.jsontag) = "id",
(gogoproto.moretags) = "yaml:\"id\""
string modelid = 2 [
(gogoproto.customname) = "ModelID",
(gogoproto.jsontag) = "modelid",
(gogoproto.moretags) = "yaml:\"modelid\""
];
string vendor = 3 [
(gogoproto.customname) = "Vendor",
(gogoproto.jsontag) = "vendor",
(gogoproto.moretags) = "yaml:\"vendor\""
string interface = 3 [
(gogoproto.customname) = "Interface",
(gogoproto.jsontag) = "interface",
(gogoproto.moretags) = "yaml:\"interface\""
];
string model = 4 [
(gogoproto.customname) = "Model",
(gogoproto.jsontag) = "model",
(gogoproto.moretags) = "yaml:\"model\""
string memory = 4 [
(gogoproto.customname) = "Memory",
(gogoproto.jsontag) = "memory",
(gogoproto.moretags) = "yaml:\"memory\""
];
}
Loading