aboutsummaryrefslogtreecommitdiff
path: root/doc/book/build/python.md
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-11-28 16:18:28 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-11-28 16:18:28 +0100
commit80886906507ba12586874ec66ef683139108cbcf (patch)
treee5c1d302bb01bbaa9313927183b9a3917b5baf33 /doc/book/build/python.md
parent3908619eac7c46c0d1b065adb4b79db798bc8d22 (diff)
downloadgarage-80886906507ba12586874ec66ef683139108cbcf.tar.gz
garage-80886906507ba12586874ec66ef683139108cbcf.zip
fix the docapi-v1
Diffstat (limited to 'doc/book/build/python.md')
-rw-r--r--doc/book/build/python.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/book/build/python.md b/doc/book/build/python.md
index 5b797897..896c99d3 100644
--- a/doc/book/build/python.md
+++ b/doc/book/build/python.md
@@ -80,7 +80,7 @@ from garage_admin_sdk.apis import *
from garage_admin_sdk.models import *
configuration = garage_admin_sdk.Configuration(
- host = "http://localhost:3903/v0",
+ host = "http://localhost:3903/v1",
access_token = "s3cr3t"
)
@@ -94,13 +94,14 @@ print(f"running garage {status.garage_version}, node_id {status.node}")
# Change layout of this node
current = layout.get_layout()
-layout.add_layout({
- status.node: NodeClusterInfo(
+layout.add_layout([
+ NodeRoleChange(
+ id = status.node,
zone = "dc1",
- capacity = 1,
+ capacity = 1000000000,
tags = [ "dev" ],
)
-})
+])
layout.apply_layout(LayoutVersion(
version = current.version + 1
))