mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-15 08:10:24 +00:00
feat: add forcedTags field and update proto
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user