From 611d32694af83a3193cd0b611bceb5a747073b46 Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Tue, 28 Feb 2017 16:37:41 +0800 Subject: [PATCH] Move api samples to correct directories Change-Id: I3dd4ddc50f92fd793303256487349c1bd5837279 --- api-ref/source/v1/instance_networks.inc | 4 ++-- api-ref/source/v1/instance_states.inc | 8 ++++---- api-ref/source/v1/instance_types.inc | 18 +++++++++--------- .../instance-associate-fip-req.json | 0 .../instance-get-network-response.json | 0 .../instance-get-state-response.json | 0 .../instance-set-power-off.json | 0 .../lock-instance.json | 0 .../unlock-instance.json | 0 .../type-create-post-req.json | 0 .../type-create-post-resp.json | 0 .../type-extra-specs-list-resp.json | 0 .../type-extra-specs-patch-req.json | 0 .../type-extra-specs-patch-resp.json | 0 .../type-get-resp.json | 0 .../type-update-put-req.json | 0 .../type-update-put-resp.json | 0 .../types-list-resp.json | 0 18 files changed, 15 insertions(+), 15 deletions(-) rename api-ref/source/v1/samples/{instances => instance_networks}/instance-associate-fip-req.json (100%) rename api-ref/source/v1/samples/{instances => instance_networks}/instance-get-network-response.json (100%) rename api-ref/source/v1/samples/{instances => instance_states}/instance-get-state-response.json (100%) rename api-ref/source/v1/samples/{instances => instance_states}/instance-set-power-off.json (100%) rename api-ref/source/v1/samples/{instances => instance_states}/lock-instance.json (100%) rename api-ref/source/v1/samples/{instances => instance_states}/unlock-instance.json (100%) rename api-ref/source/v1/samples/{types => instance_types}/type-create-post-req.json (100%) rename api-ref/source/v1/samples/{types => instance_types}/type-create-post-resp.json (100%) rename api-ref/source/v1/samples/{types => instance_types}/type-extra-specs-list-resp.json (100%) rename api-ref/source/v1/samples/{types => instance_types}/type-extra-specs-patch-req.json (100%) rename api-ref/source/v1/samples/{types => instance_types}/type-extra-specs-patch-resp.json (100%) rename api-ref/source/v1/samples/{types => instance_types}/type-get-resp.json (100%) rename api-ref/source/v1/samples/{types => instance_types}/type-update-put-req.json (100%) rename api-ref/source/v1/samples/{types => instance_types}/type-update-put-resp.json (100%) rename api-ref/source/v1/samples/{types => instance_types}/types-list-resp.json (100%) diff --git a/api-ref/source/v1/instance_networks.inc b/api-ref/source/v1/instance_networks.inc index b9d0ebbe..d5e41757 100644 --- a/api-ref/source/v1/instance_networks.inc +++ b/api-ref/source/v1/instance_networks.inc @@ -35,7 +35,7 @@ Response **Example instance network:** -.. literalinclude:: samples/instances/instance-get-network-response.json +.. literalinclude:: samples/instance_networks/instance-get-network-response.json Add (Associate) Floating IP @@ -65,7 +65,7 @@ Request **Example request to Add (Associate) Floating IP to an instance:** -.. literalinclude:: samples/instances/instance-associate-fip-req.json +.. literalinclude:: samples/instance_networks/instance-associate-fip-req.json Remove (Disassociate) Floating IP diff --git a/api-ref/source/v1/instance_states.inc b/api-ref/source/v1/instance_states.inc index 8a23401f..a70343f2 100644 --- a/api-ref/source/v1/instance_states.inc +++ b/api-ref/source/v1/instance_states.inc @@ -36,7 +36,7 @@ Response **Example instance state:** -.. literalinclude:: samples/instances/instance-get-state-response.json +.. literalinclude:: samples/instance_states/instance-get-state-response.json Change Instance Power State @@ -63,7 +63,7 @@ Request **Example request to power off a Instance:** -.. literalinclude:: samples/instances/instance-set-power-off.json +.. literalinclude:: samples/instance_states/instance-set-power-off.json Change Instance Lock State @@ -90,8 +90,8 @@ Request **Example request to lock an Instance:** -.. literalinclude:: samples/instances/lock-instance.json +.. literalinclude:: samples/instance_states/lock-instance.json **Example request to unlock an Instance:** -.. literalinclude:: samples/instances/unlock-instance.json +.. literalinclude:: samples/instance_states/unlock-instance.json diff --git a/api-ref/source/v1/instance_types.inc b/api-ref/source/v1/instance_types.inc index 924f1e27..5555fb40 100644 --- a/api-ref/source/v1/instance_types.inc +++ b/api-ref/source/v1/instance_types.inc @@ -42,7 +42,7 @@ Response **Example List types** -.. literalinclude:: samples/types/types-list-resp.json +.. literalinclude:: samples/instance_types/types-list-resp.json :language: javascript Create Instance Type @@ -72,7 +72,7 @@ Request **Example Create Type** -.. literalinclude:: samples/types/type-create-post-req.json +.. literalinclude:: samples/instance_types/type-create-post-req.json :language: javascript Response @@ -91,7 +91,7 @@ Response **Example Create type** -.. literalinclude:: samples/types/type-create-post-resp.json +.. literalinclude:: samples/instance_types/type-create-post-resp.json :language: javascript Update Instance Type @@ -121,7 +121,7 @@ Request **Example Update Type** -.. literalinclude:: samples/types/type-update-put-req.json +.. literalinclude:: samples/instance_types/type-update-put-req.json :language: javascript Response @@ -140,7 +140,7 @@ Response **Example Update type** -.. literalinclude:: samples/types/type-update-put-resp.json +.. literalinclude:: samples/instance_types/type-update-put-resp.json :language: javascript Show Instance Type Details @@ -177,7 +177,7 @@ Response **Example Show type Details** -.. literalinclude:: samples/types/type-get-resp.json +.. literalinclude:: samples/instance_types/type-get-resp.json :language: javascript @@ -236,7 +236,7 @@ Response **Example List Extra Specs** -.. literalinclude:: samples/types/type-extra-specs-list-resp.json +.. literalinclude:: samples/instance_types/type-extra-specs-list-resp.json :language: javascript @@ -261,7 +261,7 @@ Request **Example Create Extra Specs** -.. literalinclude:: samples/types/type-extra-specs-patch-req.json +.. literalinclude:: samples/instance_types/type-extra-specs-patch-req.json :language: javascript Response @@ -273,7 +273,7 @@ Response **Example Create Extra Specs** -.. literalinclude:: samples/types/type-extra-specs-patch-resp.json +.. literalinclude:: samples/instance_types/type-extra-specs-patch-resp.json :language: javascript diff --git a/api-ref/source/v1/samples/instances/instance-associate-fip-req.json b/api-ref/source/v1/samples/instance_networks/instance-associate-fip-req.json similarity index 100% rename from api-ref/source/v1/samples/instances/instance-associate-fip-req.json rename to api-ref/source/v1/samples/instance_networks/instance-associate-fip-req.json diff --git a/api-ref/source/v1/samples/instances/instance-get-network-response.json b/api-ref/source/v1/samples/instance_networks/instance-get-network-response.json similarity index 100% rename from api-ref/source/v1/samples/instances/instance-get-network-response.json rename to api-ref/source/v1/samples/instance_networks/instance-get-network-response.json diff --git a/api-ref/source/v1/samples/instances/instance-get-state-response.json b/api-ref/source/v1/samples/instance_states/instance-get-state-response.json similarity index 100% rename from api-ref/source/v1/samples/instances/instance-get-state-response.json rename to api-ref/source/v1/samples/instance_states/instance-get-state-response.json diff --git a/api-ref/source/v1/samples/instances/instance-set-power-off.json b/api-ref/source/v1/samples/instance_states/instance-set-power-off.json similarity index 100% rename from api-ref/source/v1/samples/instances/instance-set-power-off.json rename to api-ref/source/v1/samples/instance_states/instance-set-power-off.json diff --git a/api-ref/source/v1/samples/instances/lock-instance.json b/api-ref/source/v1/samples/instance_states/lock-instance.json similarity index 100% rename from api-ref/source/v1/samples/instances/lock-instance.json rename to api-ref/source/v1/samples/instance_states/lock-instance.json diff --git a/api-ref/source/v1/samples/instances/unlock-instance.json b/api-ref/source/v1/samples/instance_states/unlock-instance.json similarity index 100% rename from api-ref/source/v1/samples/instances/unlock-instance.json rename to api-ref/source/v1/samples/instance_states/unlock-instance.json diff --git a/api-ref/source/v1/samples/types/type-create-post-req.json b/api-ref/source/v1/samples/instance_types/type-create-post-req.json similarity index 100% rename from api-ref/source/v1/samples/types/type-create-post-req.json rename to api-ref/source/v1/samples/instance_types/type-create-post-req.json diff --git a/api-ref/source/v1/samples/types/type-create-post-resp.json b/api-ref/source/v1/samples/instance_types/type-create-post-resp.json similarity index 100% rename from api-ref/source/v1/samples/types/type-create-post-resp.json rename to api-ref/source/v1/samples/instance_types/type-create-post-resp.json diff --git a/api-ref/source/v1/samples/types/type-extra-specs-list-resp.json b/api-ref/source/v1/samples/instance_types/type-extra-specs-list-resp.json similarity index 100% rename from api-ref/source/v1/samples/types/type-extra-specs-list-resp.json rename to api-ref/source/v1/samples/instance_types/type-extra-specs-list-resp.json diff --git a/api-ref/source/v1/samples/types/type-extra-specs-patch-req.json b/api-ref/source/v1/samples/instance_types/type-extra-specs-patch-req.json similarity index 100% rename from api-ref/source/v1/samples/types/type-extra-specs-patch-req.json rename to api-ref/source/v1/samples/instance_types/type-extra-specs-patch-req.json diff --git a/api-ref/source/v1/samples/types/type-extra-specs-patch-resp.json b/api-ref/source/v1/samples/instance_types/type-extra-specs-patch-resp.json similarity index 100% rename from api-ref/source/v1/samples/types/type-extra-specs-patch-resp.json rename to api-ref/source/v1/samples/instance_types/type-extra-specs-patch-resp.json diff --git a/api-ref/source/v1/samples/types/type-get-resp.json b/api-ref/source/v1/samples/instance_types/type-get-resp.json similarity index 100% rename from api-ref/source/v1/samples/types/type-get-resp.json rename to api-ref/source/v1/samples/instance_types/type-get-resp.json diff --git a/api-ref/source/v1/samples/types/type-update-put-req.json b/api-ref/source/v1/samples/instance_types/type-update-put-req.json similarity index 100% rename from api-ref/source/v1/samples/types/type-update-put-req.json rename to api-ref/source/v1/samples/instance_types/type-update-put-req.json diff --git a/api-ref/source/v1/samples/types/type-update-put-resp.json b/api-ref/source/v1/samples/instance_types/type-update-put-resp.json similarity index 100% rename from api-ref/source/v1/samples/types/type-update-put-resp.json rename to api-ref/source/v1/samples/instance_types/type-update-put-resp.json diff --git a/api-ref/source/v1/samples/types/types-list-resp.json b/api-ref/source/v1/samples/instance_types/types-list-resp.json similarity index 100% rename from api-ref/source/v1/samples/types/types-list-resp.json rename to api-ref/source/v1/samples/instance_types/types-list-resp.json