From 473f8eee213d81c99f259f868bf50d1f5833dfc8 Mon Sep 17 00:00:00 2001 From: liyi Date: Wed, 12 Jul 2017 12:58:30 +0800 Subject: [PATCH] Update policy type APIs doc Update samples. Change-Id: I98f4046c1f6061826a0650540762b9db7a6dc65b --- api-ref/source/samples/policy-type-show-response-v1.5.json | 7 +------ api-ref/source/samples/policy-type-show-response.json | 5 ----- .../source/samples/policy-types-list-response-v1.5.json | 6 +++++- api-ref/source/samples/policy-types-list-response.json | 5 ++++- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/api-ref/source/samples/policy-type-show-response-v1.5.json b/api-ref/source/samples/policy-type-show-response-v1.5.json index db169028..8b9563ee 100644 --- a/api-ref/source/samples/policy-type-show-response-v1.5.json +++ b/api-ref/source/samples/policy-type-show-response-v1.5.json @@ -4,7 +4,6 @@ "schema": { "availability_zone": { "description": "Name of the availability zone to place the nodes.", - "readonly": false, "required": false, "type": "String", "updatable": false @@ -12,19 +11,16 @@ "enable_drs_extension": { "default": false, "description": "Enable vSphere DRS extension.", - "readonly": false, "required": false, "type": "Boolean", "updatable": false }, "servergroup": { "description": "Properties of the VM server group", - "readonly": false, "required": false, "schema": { "name": { "description": "The name of the server group", - "readonly": false, "required": false, "type": "String", "updatable": false @@ -41,7 +37,6 @@ ], "default": "anti-affinity", "description": "The server group policies.", - "readonly": false, "required": false, "type": "String", "updatable": false @@ -50,7 +45,7 @@ "type": "Map", "updatable": false } - } + }, "support_status": { "1.0": [ { diff --git a/api-ref/source/samples/policy-type-show-response.json b/api-ref/source/samples/policy-type-show-response.json index ae195bd8..bec3e615 100644 --- a/api-ref/source/samples/policy-type-show-response.json +++ b/api-ref/source/samples/policy-type-show-response.json @@ -4,7 +4,6 @@ "schema": { "availability_zone": { "description": "Name of the availability zone to place the nodes.", - "readonly": false, "required": false, "type": "String", "updatable": false @@ -12,19 +11,16 @@ "enable_drs_extension": { "default": false, "description": "Enable vSphere DRS extension.", - "readonly": false, "required": false, "type": "Boolean", "updatable": false }, "servergroup": { "description": "Properties of the VM server group", - "readonly": false, "required": false, "schema": { "name": { "description": "The name of the server group", - "readonly": false, "required": false, "type": "String", "updatable": false @@ -41,7 +37,6 @@ ], "default": "anti-affinity", "description": "The server group policies.", - "readonly": false, "required": false, "type": "String", "updatable": false diff --git a/api-ref/source/samples/policy-types-list-response-v1.5.json b/api-ref/source/samples/policy-types-list-response-v1.5.json index b26da7a1..879e688e 100644 --- a/api-ref/source/samples/policy-types-list-response-v1.5.json +++ b/api-ref/source/samples/policy-types-list-response-v1.5.json @@ -42,8 +42,12 @@ "support_status": { "1.0": [ { - "status": "SUPPORTED", + "status": "EXPERIMENTAL", "since": "2016.04" + }, + { + "status": "SUPPORTED", + "since": "2016.10" } ] } diff --git a/api-ref/source/samples/policy-types-list-response.json b/api-ref/source/samples/policy-types-list-response.json index 4a392e28..6914ce93 100644 --- a/api-ref/source/samples/policy-types-list-response.json +++ b/api-ref/source/samples/policy-types-list-response.json @@ -3,6 +3,9 @@ { "name": "senlin.policy.affinity-1.0" }, + { + "name": "senlin.policy.batch-1.0" + }, { "name": "senlin.policy.health-1.0" }, @@ -16,7 +19,7 @@ "name": "senlin.policy.deletion-1.0" }, { - "name": "senlin.policy.loadbalance-1.0" + "name": "senlin.policy.loadbalance-1.1" }, { "name": "senlin.policy.zone_placement-1.0"