From c6341eead0aad98da51cf0836669c207ff002bd9 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Mon, 2 Oct 2017 18:21:42 +0200 Subject: [PATCH] docs(swagger): update swagger docs --- api/swagger.yaml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 6499dab61..6a69707c5 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -1889,7 +1889,14 @@ definitions: type: "integer" example: 1 description: "Active authentication method for the Portainer instance. Valid values are: 1 for managed or 2 for LDAP." - + AllowBindMountsForRegularUsers: + type: "boolean" + example: false + description: "Whether non-administrator should be able to use bind mounts when creating containers" + AllowPrivilegedModeForRegularUsers: + type: "boolean" + example: true + description: "Whether non-administrator should be able to use privileged mode when creating containers" TLSConfiguration: type: "object" properties: @@ -1987,6 +1994,14 @@ definitions: description: "Active authentication method for the Portainer instance. Valid values are: 1 for managed or 2 for LDAP." LDAPSettings: $ref: "#/definitions/LDAPSettings" + AllowBindMountsForRegularUsers: + type: "boolean" + example: false + description: "Whether non-administrator should be able to use bind mounts when creating containers" + AllowPrivilegedModeForRegularUsers: + type: "boolean" + example: true + description: "Whether non-administrator should be able to use privileged mode when creating containers" Settings_BlackListedLabels: properties: name: @@ -2394,6 +2409,14 @@ definitions: description: "Active authentication method for the Portainer instance. Valid values are: 1 for managed or 2 for LDAP." LDAPSettings: $ref: "#/definitions/LDAPSettings" + AllowBindMountsForRegularUsers: + type: "boolean" + example: true + description: "Whether non-administrator users should be able to use bind mounts when creating containers" + AllowPrivilegedModeForRegularUsers: + type: "boolean" + example: true + description: "Whether non-administrator users should be able to use privileged mode when creating containers" UserCreateRequest: type: "object" required: