| 1 |
syntax = "proto3"; |
| 2 |
|
| 3 |
package svc.environment.v1; |
| 4 |
|
| 5 |
import "types/v1/cursor.proto"; |
| 6 |
import "types/v1/environment.proto"; |
| 7 |
import "types/v1/machine.proto"; |
| 8 |
|
| 9 |
option go_package = "svc/environment/v1;environmentv1"; |
| 10 |
|
| 11 |
service EnvironmentService { |
| 12 |
rpc ListMachine(ListMachineRequest) returns (ListMachineResponse); |
| 13 |
} |
| 14 |
|
| 15 |
message ListMachineRequest { |
| 16 |
types.v1.Cursor cursor = 1; |
| 17 |
int32 limit = 2; |
| 18 |
int64 environment_id = 3; |
| 19 |
} |
| 20 |
|
| 21 |
message ListMachineResponse { |
| 22 |
types.v1.Cursor next = 1; |
| 23 |
message ListItem { |
| 24 |
types.v1.Machine machine = 1; |
| 25 |
} |
| 26 |
repeated ListItem items = 2; |
| 27 |
} |