aboutsummaryrefslogtreecommitdiff
path: root/doc/book/build/python.md
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2023-11-29 15:42:46 +0000
committerAlex <alex@adnab.me>2023-11-29 15:42:46 +0000
commita8b0e01f88b947bc34c05d818d51860b4d171967 (patch)
tree874f7a7c85901b96d1d8b725a3abf2ddb65c9d64 /doc/book/build/python.md
parentffa659433d45d5186acc618134c5561bf9b21f37 (diff)
parent80886906507ba12586874ec66ef683139108cbcf (diff)
downloadgarage-a8b0e01f88b947bc34c05d818d51860b4d171967.tar.gz
garage-a8b0e01f88b947bc34c05d818d51860b4d171967.zip
Merge pull request 'OpenAPI specification of admin APIv1' (#672) from api-v1 into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/672
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
))