From 28703c732e1b1f5581f43534446faf14a9727bd4 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Sun, 19 May 2019 20:01:44 +0000 Subject: [PATCH] api-ref: add missing parameters for container Change-Id: I550f76ae4528553a0399c5f8865014eff87b698b --- api-ref/source/containers.inc | 31 +++++++++++++++++++++++++------ api-ref/source/parameters.yaml | 4 ++-- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/api-ref/source/containers.inc b/api-ref/source/containers.inc index d88785787..a7b097f1c 100644 --- a/api-ref/source/containers.inc +++ b/api-ref/source/containers.inc @@ -43,7 +43,6 @@ Request - cpu: cpu-request - memory: memory-request - workdir: workdir-request - - image_pull_policy: image_pull_policy-request - labels: labels-request - environment: environment-request - restart_policy: restart_policy-request @@ -84,7 +83,6 @@ Response - cpu: cpu - memory: memory - workdir: workdir - - image_pull_policy: image_pull_policy - environment: environment - restart_policy: restart_policy - interactive: interactive @@ -100,6 +98,11 @@ Response - auto_heal: auto_heal - privileged: privileged - healthcheck: healthcheck + - user_id: user_id + - project_id: project_id + - disk: disk + - registry_id: registry_id + - cpu_policy: cpu_policy Response Example @@ -159,7 +162,6 @@ Response - cpu: cpu - memory: memory - workdir: workdir - - image_pull_policy: image_pull_policy - environment: environment - restart_policy: restart_policy - interactive: interactive @@ -173,6 +175,11 @@ Response - ports: ports - privileged: privileged - healthcheck: healthcheck + - user_id: user_id + - project_id: project_id + - disk: disk + - registry_id: registry_id + - cpu_policy: cpu_policy Response Example ---------------- @@ -223,7 +230,6 @@ Response - cpu: cpu - memory: memory - workdir: workdir - - image_pull_policy: image_pull_policy - environment: environment - restart_policy: restart_policy - interactive: interactive @@ -237,6 +243,11 @@ Response - ports: ports - privileged: privileged - healthcheck: healthcheck + - user_id: user_id + - project_id: project_id + - disk: disk + - registry_id: registry_id + - cpu_policy: cpu_policy Response Example ---------------- @@ -425,7 +436,6 @@ Return new container with updated attributes. - cpu: cpu - memory: memory - workdir: workdir - - image_pull_policy: image_pull_policy - environment: environment - restart_policy: restart_policy - interactive: interactive @@ -439,6 +449,11 @@ Return new container with updated attributes. - ports: ports - privileged: privileged - healthcheck: healthcheck + - user_id: user_id + - project_id: project_id + - disk: disk + - registry_id: registry_id + - cpu_policy: cpu_policy Response Example ---------------- @@ -719,7 +734,6 @@ Response - cpu: cpu - memory: memory - workdir: workdir - - image_pull_policy: image_pull_policy - environment: environment - restart_policy: restart_policy - interactive: interactive @@ -731,6 +745,11 @@ Response - task_state: task_state - status_reason: status_reason - ports: ports + - user_id: user_id + - project_id: project_id + - disk: disk + - registry_id: registry_id + - cpu_policy: cpu_policy Response Example ---------------- diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 403774b7d..a216c684b 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -653,7 +653,7 @@ command: Send command to the container. in: body required: true - type: string + type: array command-request: description: | Send command to the container. @@ -665,7 +665,7 @@ container-project_id: The UUID of the project to which this container belongs. in: body required: true - type: string + type: array container-request: description: | The number of containers