mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-11-04 15:02:39 +09:00 
			
		
		
		
	feat: rewrite proto to only update tags of machine
This commit is contained in:
		@@ -81,9 +81,9 @@ service HeadscaleService {
 | 
			
		||||
        };
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    rpc UpdateMachine(UpdateMachineRequest) returns (UpdateMachineResponse) {
 | 
			
		||||
    rpc SetTags(SetTagsRequest) returns (SetTagsResponse) {
 | 
			
		||||
        option (google.api.http) = {
 | 
			
		||||
            post: "/api/v1/machine/{machine.id}"
 | 
			
		||||
            post: "/api/v1/machine/{machine_id}/tags"
 | 
			
		||||
            body: "*"
 | 
			
		||||
        };
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -62,11 +62,12 @@ message GetMachineResponse {
 | 
			
		||||
    Machine machine = 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
message UpdateMachineRequest {
 | 
			
		||||
    Machine machine = 1;
 | 
			
		||||
message SetTagsRequest {
 | 
			
		||||
    uint64 machine_id = 1;
 | 
			
		||||
    repeated string tags = 2;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
message UpdateMachineResponse {
 | 
			
		||||
message SetTagsResponse {
 | 
			
		||||
    Machine machine = 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user