feat: add forcedTags field and update proto
This commit is contained in:
parent
bc63c577a9
commit
02f68ebac8
9 changed files with 688 additions and 253 deletions
|
@ -81,6 +81,13 @@ service HeadscaleService {
|
|||
};
|
||||
}
|
||||
|
||||
rpc UpdateMachine(UpdateMachineRequest) returns (UpdateMachineResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/v1/machine/{machine.id}"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
rpc RegisterMachine(RegisterMachineRequest) returns (RegisterMachineResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/v1/machine/register"
|
||||
|
|
|
@ -32,6 +32,9 @@ message Machine {
|
|||
google.protobuf.Timestamp created_at = 12;
|
||||
|
||||
RegisterMethod register_method = 13;
|
||||
|
||||
repeated string forced_tags = 14;
|
||||
|
||||
// google.protobuf.Timestamp updated_at = 14;
|
||||
// google.protobuf.Timestamp deleted_at = 15;
|
||||
|
||||
|
@ -57,6 +60,14 @@ message GetMachineResponse {
|
|||
Machine machine = 1;
|
||||
}
|
||||
|
||||
message UpdateMachineRequest {
|
||||
Machine machine = 1;
|
||||
}
|
||||
|
||||
message UpdateMachineResponse {
|
||||
Machine machine = 1;
|
||||
}
|
||||
|
||||
message DeleteMachineRequest {
|
||||
uint64 machine_id = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue