Support configuring gateways

This commit is contained in:
Quentin 2022-09-23 20:59:23 +02:00
parent 7b1c1faf7a
commit 2b685b90be
Signed by: quentin
GPG Key ID: E9602264D639FF68
5 changed files with 7 additions and 7 deletions

2
garage

@ -1 +1 @@
Subproject commit 0dc0f519e119ae1c560d51e37af21187e99c8b57 Subproject commit 7b257b21c2623fcaa1cbd0b6f5b1a60c5b789a2c

View File

@ -15,7 +15,7 @@ Method | HTTP request | Description
Send modifications to the cluster layout 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 ### Example

View File

@ -5,7 +5,7 @@
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**zone** | **str** | | **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 | **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] **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]

View File

@ -239,7 +239,7 @@ class LayoutApi(object):
): ):
"""Send modifications to the cluster layout # noqa: E501 """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 This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True asynchronous HTTP request, please pass async_req=True

View File

@ -82,7 +82,7 @@ class NodeClusterInfo(ModelNormal):
""" """
return { return {
'zone': (str,), # noqa: E501 'zone': (str,), # noqa: E501
'capacity': (int,), # noqa: E501 'capacity': (int, none_type,), # noqa: E501
'tags': ([str],), # noqa: E501 'tags': ([str],), # noqa: E501
} }
@ -109,7 +109,7 @@ class NodeClusterInfo(ModelNormal):
Args: Args:
zone (str): 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 tags ([str]): User defined tags, put whatever makes sense for you, these tags are not interpreted by Garage
Keyword Args: Keyword Args:
@ -202,7 +202,7 @@ class NodeClusterInfo(ModelNormal):
Args: Args:
zone (str): 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 tags ([str]): User defined tags, put whatever makes sense for you, these tags are not interpreted by Garage
Keyword Args: Keyword Args: