From 356659148cc9e699d843e7798d32ad42ae41f19c Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Sun, 26 Jan 2025 08:52:29 +0200 Subject: [PATCH] doc/rest-api: Refresh swagger YAML --- doc/rest-api.yaml | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/doc/rest-api.yaml b/doc/rest-api.yaml index 8381cba6e76..bd756682c44 100644 --- a/doc/rest-api.yaml +++ b/doc/rest-api.yaml @@ -1254,7 +1254,7 @@ definitions: description: Profiles to add example: '"default" profile with a root disk device' items: - $ref: '#/definitions/ProfilesPost' + $ref: '#/definitions/InitProfileProjectPost' type: array x-go-name: Profiles projects: @@ -1324,6 +1324,51 @@ definitions: title: InitPreseed represents initialization configuration that can be supplied to `init`. type: object x-go-package: github.com/lxc/incus/v6/shared/api + InitProfileProjectPost: + properties: + Project: + description: Project in which the profile will reside + example: '"default"' + type: string + config: + additionalProperties: + type: string + description: Instance configuration map (refer to doc/instances.md) + example: + limits.cpu: "4" + limits.memory: 4GiB + type: object + x-go-name: Config + description: + description: Description of the profile + example: Medium size instances + type: string + x-go-name: Description + devices: + additionalProperties: + additionalProperties: + type: string + type: object + description: List of devices + example: + eth0: + name: eth0 + network: mybr0 + type: nic + root: + path: / + pool: default + type: disk + type: object + x-go-name: Devices + name: + description: The name of the new profile + example: foo + type: string + x-go-name: Name + title: InitProfileProjectPost represents the fields of a new profile along with its associated project. + type: object + x-go-package: github.com/lxc/incus/v6/shared/api InitStorageVolumesProjectPost: properties: Pool: