From 2b685b90be9aa848a9450dd582d1d322b25b5568 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 23 Sep 2022 20:59:23 +0200 Subject: [PATCH] Support configuring gateways --- garage | 2 +- python/docs/LayoutApi.md | 2 +- python/docs/NodeClusterInfo.md | 2 +- python/garage_admin_sdk/api/layout_api.py | 2 +- python/garage_admin_sdk/model/node_cluster_info.py | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/garage b/garage index 0dc0f51..7b257b2 160000 --- a/garage +++ b/garage @@ -1 +1 @@ -Subproject commit 0dc0f519e119ae1c560d51e37af21187e99c8b57 +Subproject commit 7b257b21c2623fcaa1cbd0b6f5b1a60c5b789a2c diff --git a/python/docs/LayoutApi.md b/python/docs/LayoutApi.md index f9f8ab4..d26a333 100644 --- a/python/docs/LayoutApi.md +++ b/python/docs/LayoutApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description Send modifications to the cluster layout -Send modifications to the cluster layout. These modifications will be included in the staged role changes, visible in subsequent calls of `GET /layout`. Once the set of staged changes is satisfactory, the user may call `POST /layout/apply` to apply the changed changes, or `POST /layout/revert` to clear all of the staged changes in the layout. +Send modifications to the cluster layout. These modifications will be included in the staged role changes, visible in subsequent calls of `GET /layout`. Once the set of staged changes is satisfactory, the user may call `POST /layout/apply` to apply the changed changes, or `POST /layout/revert` to clear all of the staged changes in the layout. Note that setting the capacity to `null` will configure the node as a gateway. ### Example diff --git a/python/docs/NodeClusterInfo.md b/python/docs/NodeClusterInfo.md index ce78df0..fc19417 100644 --- a/python/docs/NodeClusterInfo.md +++ b/python/docs/NodeClusterInfo.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **zone** | **str** | | -**capacity** | **int** | | +**capacity** | **int, none_type** | | **tags** | **[str]** | User defined tags, put whatever makes sense for you, these tags are not interpreted by Garage | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/python/garage_admin_sdk/api/layout_api.py b/python/garage_admin_sdk/api/layout_api.py index dd51a73..6768122 100644 --- a/python/garage_admin_sdk/api/layout_api.py +++ b/python/garage_admin_sdk/api/layout_api.py @@ -239,7 +239,7 @@ class LayoutApi(object): ): """Send modifications to the cluster layout # noqa: E501 - Send modifications to the cluster layout. These modifications will be included in the staged role changes, visible in subsequent calls of `GET /layout`. Once the set of staged changes is satisfactory, the user may call `POST /layout/apply` to apply the changed changes, or `POST /layout/revert` to clear all of the staged changes in the layout. # noqa: E501 + Send modifications to the cluster layout. These modifications will be included in the staged role changes, visible in subsequent calls of `GET /layout`. Once the set of staged changes is satisfactory, the user may call `POST /layout/apply` to apply the changed changes, or `POST /layout/revert` to clear all of the staged changes in the layout. Note that setting the capacity to `null` will configure the node as a gateway. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/python/garage_admin_sdk/model/node_cluster_info.py b/python/garage_admin_sdk/model/node_cluster_info.py index 5a182c5..7a0b6a5 100644 --- a/python/garage_admin_sdk/model/node_cluster_info.py +++ b/python/garage_admin_sdk/model/node_cluster_info.py @@ -82,7 +82,7 @@ class NodeClusterInfo(ModelNormal): """ return { 'zone': (str,), # noqa: E501 - 'capacity': (int,), # noqa: E501 + 'capacity': (int, none_type,), # noqa: E501 'tags': ([str],), # noqa: E501 } @@ -109,7 +109,7 @@ class NodeClusterInfo(ModelNormal): Args: zone (str): - capacity (int): + capacity (int, none_type): tags ([str]): User defined tags, put whatever makes sense for you, these tags are not interpreted by Garage Keyword Args: @@ -202,7 +202,7 @@ class NodeClusterInfo(ModelNormal): Args: zone (str): - capacity (int): + capacity (int, none_type): tags ([str]): User defined tags, put whatever makes sense for you, these tags are not interpreted by Garage Keyword Args: