From 4520a058c8f15925ad6b7e45afdaf652ccd9d6eb Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Wed, 4 Dec 2024 12:18:33 +0000 Subject: [PATCH] doc: Add missing API samples These have been introduced at some point and now appear when running the API samples test with GENERATE_SAMPLES=True. Add them. Change-Id: Ic4b6b685f17e8d411776e20f239daa0736ae9a0b Signed-off-by: Stephen Finucane --- .../v2.31/create-serial-console-req.json | 6 ++++++ doc/api_samples/os-keypairs/v2.92/keypairs-post-req.json | 7 +++++++ .../os-remote-consoles/v2.6/create-rdp-console-req.json | 6 ++++++ doc/api_samples/os-shelve/v2.77/os-unshelve.json | 3 +++ doc/api_samples/os-shelve/v2.91/os-shelve.json | 3 +++ doc/api_samples/os-shelve/v2.91/os-unshelve-az.json | 5 +++++ doc/api_samples/os-shelve/v2.91/os-unshelve.json | 3 +++ 7 files changed, 33 insertions(+) create mode 100644 doc/api_samples/os-console-auth-tokens/v2.31/create-serial-console-req.json create mode 100644 doc/api_samples/os-keypairs/v2.92/keypairs-post-req.json create mode 100644 doc/api_samples/os-remote-consoles/v2.6/create-rdp-console-req.json create mode 100644 doc/api_samples/os-shelve/v2.77/os-unshelve.json create mode 100644 doc/api_samples/os-shelve/v2.91/os-shelve.json create mode 100644 doc/api_samples/os-shelve/v2.91/os-unshelve-az.json create mode 100644 doc/api_samples/os-shelve/v2.91/os-unshelve.json diff --git a/doc/api_samples/os-console-auth-tokens/v2.31/create-serial-console-req.json b/doc/api_samples/os-console-auth-tokens/v2.31/create-serial-console-req.json new file mode 100644 index 000000000000..53f08bf6dbc5 --- /dev/null +++ b/doc/api_samples/os-console-auth-tokens/v2.31/create-serial-console-req.json @@ -0,0 +1,6 @@ +{ + "remote_console": { + "protocol": "serial", + "type": "serial" + } +} \ No newline at end of file diff --git a/doc/api_samples/os-keypairs/v2.92/keypairs-post-req.json b/doc/api_samples/os-keypairs/v2.92/keypairs-post-req.json new file mode 100644 index 000000000000..1ba92071242b --- /dev/null +++ b/doc/api_samples/os-keypairs/v2.92/keypairs-post-req.json @@ -0,0 +1,7 @@ +{ + "keypair": { + "name": "foo", + "type": "ssh", + "user_id": "fake" + } +} \ No newline at end of file diff --git a/doc/api_samples/os-remote-consoles/v2.6/create-rdp-console-req.json b/doc/api_samples/os-remote-consoles/v2.6/create-rdp-console-req.json new file mode 100644 index 000000000000..d44203b0952d --- /dev/null +++ b/doc/api_samples/os-remote-consoles/v2.6/create-rdp-console-req.json @@ -0,0 +1,6 @@ +{ + "remote_console": { + "protocol": "rdp", + "type": "rdp-html5" + } +} \ No newline at end of file diff --git a/doc/api_samples/os-shelve/v2.77/os-unshelve.json b/doc/api_samples/os-shelve/v2.77/os-unshelve.json new file mode 100644 index 000000000000..fd05c2a2fe67 --- /dev/null +++ b/doc/api_samples/os-shelve/v2.77/os-unshelve.json @@ -0,0 +1,3 @@ +{ + "unshelve": null +} \ No newline at end of file diff --git a/doc/api_samples/os-shelve/v2.91/os-shelve.json b/doc/api_samples/os-shelve/v2.91/os-shelve.json new file mode 100644 index 000000000000..e33b05865aca --- /dev/null +++ b/doc/api_samples/os-shelve/v2.91/os-shelve.json @@ -0,0 +1,3 @@ +{ + "shelve": null +} \ No newline at end of file diff --git a/doc/api_samples/os-shelve/v2.91/os-unshelve-az.json b/doc/api_samples/os-shelve/v2.91/os-unshelve-az.json new file mode 100644 index 000000000000..8ca146b5933c --- /dev/null +++ b/doc/api_samples/os-shelve/v2.91/os-unshelve-az.json @@ -0,0 +1,5 @@ +{ + "unshelve": { + "availability_zone": "us-west" + } +} \ No newline at end of file diff --git a/doc/api_samples/os-shelve/v2.91/os-unshelve.json b/doc/api_samples/os-shelve/v2.91/os-unshelve.json new file mode 100644 index 000000000000..fd05c2a2fe67 --- /dev/null +++ b/doc/api_samples/os-shelve/v2.91/os-unshelve.json @@ -0,0 +1,3 @@ +{ + "unshelve": null +} \ No newline at end of file