feat: add forcedTags field and update proto

This commit is contained in:
Adrien Raffin-Caboisse 2022-04-15 13:11:41 +02:00
parent bc63c577a9
commit 02f68ebac8
No known key found for this signature in database
GPG key ID: 7FB60532DEBEAD6A
9 changed files with 688 additions and 253 deletions

View file

@ -200,6 +200,45 @@
]
}
},
"/api/v1/machine/{machine.id}": {
"post": {
"operationId": "HeadscaleService_UpdateMachine",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1UpdateMachineResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "machine.id",
"in": "path",
"required": true,
"type": "string",
"format": "uint64"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1UpdateMachineRequest"
}
}
],
"tags": [
"HeadscaleService"
]
}
},
"/api/v1/machine/{machineId}": {
"get": {
"operationId": "HeadscaleService_GetMachine",
@ -906,6 +945,12 @@
},
"registerMethod": {
"$ref": "#/definitions/v1RegisterMethod"
},
"forcedTags": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
@ -997,6 +1042,22 @@
}
}
}
},
"v1UpdateMachineRequest": {
"type": "object",
"properties": {
"machine": {
"$ref": "#/definitions/v1Machine"
}
}
},
"v1UpdateMachineResponse": {
"type": "object",
"properties": {
"machine": {
"$ref": "#/definitions/v1Machine"
}
}
}
}
}