mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-29 18:33:05 +00:00
feat: rewrite proto to only update tags of machine
This commit is contained in:
parent
3a90079ab8
commit
31debf7055
2 changed files with 6 additions and 5 deletions
|
@ -81,9 +81,9 @@ service HeadscaleService {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
rpc UpdateMachine(UpdateMachineRequest) returns (UpdateMachineResponse) {
|
rpc SetTags(SetTagsRequest) returns (SetTagsResponse) {
|
||||||
option (google.api.http) = {
|
option (google.api.http) = {
|
||||||
post: "/api/v1/machine/{machine.id}"
|
post: "/api/v1/machine/{machine_id}/tags"
|
||||||
body: "*"
|
body: "*"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,11 +62,12 @@ message GetMachineResponse {
|
||||||
Machine machine = 1;
|
Machine machine = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UpdateMachineRequest {
|
message SetTagsRequest {
|
||||||
Machine machine = 1;
|
uint64 machine_id = 1;
|
||||||
|
repeated string tags = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UpdateMachineResponse {
|
message SetTagsResponse {
|
||||||
Machine machine = 1;
|
Machine machine = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue