api version 1, initial commit
This commit is contained in:
parent
f48df53ba2
commit
715450cfe6
67 changed files with 1700 additions and 235 deletions
|
@ -6,6 +6,7 @@ docs/AddKeyRequest.md
|
||||||
docs/AddNode200ResponseInner.md
|
docs/AddNode200ResponseInner.md
|
||||||
docs/AllowBucketKeyRequest.md
|
docs/AllowBucketKeyRequest.md
|
||||||
docs/AllowBucketKeyRequestPermissions.md
|
docs/AllowBucketKeyRequestPermissions.md
|
||||||
|
docs/ApplyLayout200Response.md
|
||||||
docs/BucketApi.md
|
docs/BucketApi.md
|
||||||
docs/BucketInfo.md
|
docs/BucketInfo.md
|
||||||
docs/BucketInfoQuotas.md
|
docs/BucketInfoQuotas.md
|
||||||
|
@ -29,6 +30,9 @@ docs/ListBuckets200ResponseInnerLocalAliasesInner.md
|
||||||
docs/ListKeys200ResponseInner.md
|
docs/ListKeys200ResponseInner.md
|
||||||
docs/NodeClusterInfo.md
|
docs/NodeClusterInfo.md
|
||||||
docs/NodeNetworkInfo.md
|
docs/NodeNetworkInfo.md
|
||||||
|
docs/NodeRoleChange.md
|
||||||
|
docs/NodeRoleRemove.md
|
||||||
|
docs/NodeRoleUpdate.md
|
||||||
docs/NodesApi.md
|
docs/NodesApi.md
|
||||||
docs/UpdateBucketRequest.md
|
docs/UpdateBucketRequest.md
|
||||||
docs/UpdateBucketRequestQuotas.md
|
docs/UpdateBucketRequestQuotas.md
|
||||||
|
@ -51,6 +55,7 @@ garage_admin_sdk/model/add_key_request.py
|
||||||
garage_admin_sdk/model/add_node200_response_inner.py
|
garage_admin_sdk/model/add_node200_response_inner.py
|
||||||
garage_admin_sdk/model/allow_bucket_key_request.py
|
garage_admin_sdk/model/allow_bucket_key_request.py
|
||||||
garage_admin_sdk/model/allow_bucket_key_request_permissions.py
|
garage_admin_sdk/model/allow_bucket_key_request_permissions.py
|
||||||
|
garage_admin_sdk/model/apply_layout200_response.py
|
||||||
garage_admin_sdk/model/bucket_info.py
|
garage_admin_sdk/model/bucket_info.py
|
||||||
garage_admin_sdk/model/bucket_info_quotas.py
|
garage_admin_sdk/model/bucket_info_quotas.py
|
||||||
garage_admin_sdk/model/bucket_info_website_config.py
|
garage_admin_sdk/model/bucket_info_website_config.py
|
||||||
|
@ -71,6 +76,9 @@ garage_admin_sdk/model/list_buckets200_response_inner_local_aliases_inner.py
|
||||||
garage_admin_sdk/model/list_keys200_response_inner.py
|
garage_admin_sdk/model/list_keys200_response_inner.py
|
||||||
garage_admin_sdk/model/node_cluster_info.py
|
garage_admin_sdk/model/node_cluster_info.py
|
||||||
garage_admin_sdk/model/node_network_info.py
|
garage_admin_sdk/model/node_network_info.py
|
||||||
|
garage_admin_sdk/model/node_role_change.py
|
||||||
|
garage_admin_sdk/model/node_role_remove.py
|
||||||
|
garage_admin_sdk/model/node_role_update.py
|
||||||
garage_admin_sdk/model/update_bucket_request.py
|
garage_admin_sdk/model/update_bucket_request.py
|
||||||
garage_admin_sdk/model/update_bucket_request_quotas.py
|
garage_admin_sdk/model/update_bucket_request_quotas.py
|
||||||
garage_admin_sdk/model/update_bucket_request_website_access.py
|
garage_admin_sdk/model/update_bucket_request_website_access.py
|
||||||
|
@ -86,4 +94,8 @@ setup.cfg
|
||||||
setup.py
|
setup.py
|
||||||
test-requirements.txt
|
test-requirements.txt
|
||||||
test/__init__.py
|
test/__init__.py
|
||||||
|
test/test_apply_layout200_response.py
|
||||||
|
test/test_node_role_change.py
|
||||||
|
test/test_node_role_remove.py
|
||||||
|
test/test_node_role_update.py
|
||||||
tox.ini
|
tox.ini
|
||||||
|
|
12
README.md
12
README.md
|
@ -6,7 +6,7 @@ Administrate your Garage cluster programatically, including status, layout, keys
|
||||||
|
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: v0.8.0
|
- API version: v0.9.0
|
||||||
- Package version: 0.8.0
|
- Package version: 0.8.0
|
||||||
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
||||||
|
|
||||||
|
@ -58,10 +58,10 @@ from garage_admin_sdk.model.bucket_info import BucketInfo
|
||||||
from garage_admin_sdk.model.create_bucket_request import CreateBucketRequest
|
from garage_admin_sdk.model.create_bucket_request import CreateBucketRequest
|
||||||
from garage_admin_sdk.model.list_buckets200_response_inner import ListBuckets200ResponseInner
|
from garage_admin_sdk.model.list_buckets200_response_inner import ListBuckets200ResponseInner
|
||||||
from garage_admin_sdk.model.update_bucket_request import UpdateBucketRequest
|
from garage_admin_sdk.model.update_bucket_request import UpdateBucketRequest
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -99,7 +99,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
|
|
||||||
## Documentation for API Endpoints
|
## Documentation for API Endpoints
|
||||||
|
|
||||||
All URIs are relative to *http://localhost:3903/v0*
|
All URIs are relative to *http://localhost:3903/v1*
|
||||||
|
|
||||||
Class | Method | HTTP request | Description
|
Class | Method | HTTP request | Description
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
|
@ -136,6 +136,7 @@ Class | Method | HTTP request | Description
|
||||||
- [AddNode200ResponseInner](docs/AddNode200ResponseInner.md)
|
- [AddNode200ResponseInner](docs/AddNode200ResponseInner.md)
|
||||||
- [AllowBucketKeyRequest](docs/AllowBucketKeyRequest.md)
|
- [AllowBucketKeyRequest](docs/AllowBucketKeyRequest.md)
|
||||||
- [AllowBucketKeyRequestPermissions](docs/AllowBucketKeyRequestPermissions.md)
|
- [AllowBucketKeyRequestPermissions](docs/AllowBucketKeyRequestPermissions.md)
|
||||||
|
- [ApplyLayout200Response](docs/ApplyLayout200Response.md)
|
||||||
- [BucketInfo](docs/BucketInfo.md)
|
- [BucketInfo](docs/BucketInfo.md)
|
||||||
- [BucketInfoQuotas](docs/BucketInfoQuotas.md)
|
- [BucketInfoQuotas](docs/BucketInfoQuotas.md)
|
||||||
- [BucketInfoWebsiteConfig](docs/BucketInfoWebsiteConfig.md)
|
- [BucketInfoWebsiteConfig](docs/BucketInfoWebsiteConfig.md)
|
||||||
|
@ -156,6 +157,9 @@ Class | Method | HTTP request | Description
|
||||||
- [ListKeys200ResponseInner](docs/ListKeys200ResponseInner.md)
|
- [ListKeys200ResponseInner](docs/ListKeys200ResponseInner.md)
|
||||||
- [NodeClusterInfo](docs/NodeClusterInfo.md)
|
- [NodeClusterInfo](docs/NodeClusterInfo.md)
|
||||||
- [NodeNetworkInfo](docs/NodeNetworkInfo.md)
|
- [NodeNetworkInfo](docs/NodeNetworkInfo.md)
|
||||||
|
- [NodeRoleChange](docs/NodeRoleChange.md)
|
||||||
|
- [NodeRoleRemove](docs/NodeRoleRemove.md)
|
||||||
|
- [NodeRoleUpdate](docs/NodeRoleUpdate.md)
|
||||||
- [UpdateBucketRequest](docs/UpdateBucketRequest.md)
|
- [UpdateBucketRequest](docs/UpdateBucketRequest.md)
|
||||||
- [UpdateBucketRequestQuotas](docs/UpdateBucketRequestQuotas.md)
|
- [UpdateBucketRequestQuotas](docs/UpdateBucketRequestQuotas.md)
|
||||||
- [UpdateBucketRequestWebsiteAccess](docs/UpdateBucketRequestWebsiteAccess.md)
|
- [UpdateBucketRequestWebsiteAccess](docs/UpdateBucketRequestWebsiteAccess.md)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**name** | **str** | | [optional]
|
**name** | **str, none_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]
|
**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]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
13
docs/ApplyLayout200Response.md
Normal file
13
docs/ApplyLayout200Response.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# ApplyLayout200Response
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**message** | **[str]** | |
|
||||||
|
**layout** | [**ClusterLayout**](ClusterLayout.md) | |
|
||||||
|
**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]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# garage_admin_sdk.BucketApi
|
# garage_admin_sdk.BucketApi
|
||||||
|
|
||||||
All URIs are relative to *http://localhost:3903/v0*
|
All URIs are relative to *http://localhost:3903/v1*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
@ -36,10 +36,10 @@ from garage_admin_sdk.api import bucket_api
|
||||||
from garage_admin_sdk.model.bucket_info import BucketInfo
|
from garage_admin_sdk.model.bucket_info import BucketInfo
|
||||||
from garage_admin_sdk.model.allow_bucket_key_request import AllowBucketKeyRequest
|
from garage_admin_sdk.model.allow_bucket_key_request import AllowBucketKeyRequest
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -125,10 +125,10 @@ from garage_admin_sdk.api import bucket_api
|
||||||
from garage_admin_sdk.model.bucket_info import BucketInfo
|
from garage_admin_sdk.model.bucket_info import BucketInfo
|
||||||
from garage_admin_sdk.model.create_bucket_request import CreateBucketRequest
|
from garage_admin_sdk.model.create_bucket_request import CreateBucketRequest
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -214,10 +214,10 @@ import time
|
||||||
import garage_admin_sdk
|
import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import bucket_api
|
from garage_admin_sdk.api import bucket_api
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -293,10 +293,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import bucket_api
|
from garage_admin_sdk.api import bucket_api
|
||||||
from garage_admin_sdk.model.bucket_info import BucketInfo
|
from garage_admin_sdk.model.bucket_info import BucketInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -375,10 +375,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import bucket_api
|
from garage_admin_sdk.api import bucket_api
|
||||||
from garage_admin_sdk.model.bucket_info import BucketInfo
|
from garage_admin_sdk.model.bucket_info import BucketInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -460,10 +460,10 @@ from garage_admin_sdk.api import bucket_api
|
||||||
from garage_admin_sdk.model.bucket_info import BucketInfo
|
from garage_admin_sdk.model.bucket_info import BucketInfo
|
||||||
from garage_admin_sdk.model.allow_bucket_key_request import AllowBucketKeyRequest
|
from garage_admin_sdk.model.allow_bucket_key_request import AllowBucketKeyRequest
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -548,10 +548,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import bucket_api
|
from garage_admin_sdk.api import bucket_api
|
||||||
from garage_admin_sdk.model.bucket_info import BucketInfo
|
from garage_admin_sdk.model.bucket_info import BucketInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -627,10 +627,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import bucket_api
|
from garage_admin_sdk.api import bucket_api
|
||||||
from garage_admin_sdk.model.bucket_info import BucketInfo
|
from garage_admin_sdk.model.bucket_info import BucketInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -706,10 +706,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import bucket_api
|
from garage_admin_sdk.api import bucket_api
|
||||||
from garage_admin_sdk.model.list_buckets200_response_inner import ListBuckets200ResponseInner
|
from garage_admin_sdk.model.list_buckets200_response_inner import ListBuckets200ResponseInner
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -780,10 +780,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import bucket_api
|
from garage_admin_sdk.api import bucket_api
|
||||||
from garage_admin_sdk.model.bucket_info import BucketInfo
|
from garage_admin_sdk.model.bucket_info import BucketInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -862,10 +862,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import bucket_api
|
from garage_admin_sdk.api import bucket_api
|
||||||
from garage_admin_sdk.model.bucket_info import BucketInfo
|
from garage_admin_sdk.model.bucket_info import BucketInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -934,7 +934,7 @@ Name | Type | Description | Notes
|
||||||
|
|
||||||
Update a bucket
|
Update a bucket
|
||||||
|
|
||||||
All fields (`websiteAccess` and `quotas`) are optionnal. If they are present, the corresponding modifications are applied to the bucket, otherwise nothing is changed. In `websiteAccess`: if `enabled` is `true`, `indexDocument` must be specified. The field `errorDocument` is optional, if no error document is set a generic error message is displayed when errors happen. Conversely, if `enabled` is `false`, neither `indexDocument` nor `errorDocument` must be specified. In `quotas`: new values of `maxSize` and `maxObjects` must both be specified, or set to `null` to remove the quotas. An absent value will be considered the same as a `null`. It is not possible to change only one of the two quotas.
|
All fields (`websiteAccess` and `quotas`) are optional. If they are present, the corresponding modifications are applied to the bucket, otherwise nothing is changed. In `websiteAccess`: if `enabled` is `true`, `indexDocument` must be specified. The field `errorDocument` is optional, if no error document is set a generic error message is displayed when errors happen. Conversely, if `enabled` is `false`, neither `indexDocument` nor `errorDocument` must be specified. In `quotas`: new values of `maxSize` and `maxObjects` must both be specified, or set to `null` to remove the quotas. An absent value will be considered the same as a `null`. It is not possible to change only one of the two quotas.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
@ -947,10 +947,10 @@ from garage_admin_sdk.api import bucket_api
|
||||||
from garage_admin_sdk.model.bucket_info import BucketInfo
|
from garage_admin_sdk.model.bucket_info import BucketInfo
|
||||||
from garage_admin_sdk.model.update_bucket_request import UpdateBucketRequest
|
from garage_admin_sdk.model.update_bucket_request import UpdateBucketRequest
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**version** | **int** | |
|
**version** | **int** | |
|
||||||
**roles** | [**{str: (NodeClusterInfo,)}**](NodeClusterInfo.md) | |
|
**roles** | [**[NodeClusterInfo]**](NodeClusterInfo.md) | |
|
||||||
**staged_role_changes** | [**{str: (NodeClusterInfo,)}**](NodeClusterInfo.md) | |
|
**staged_role_changes** | [**[NodeRoleChange]**](NodeRoleChange.md) | |
|
||||||
**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]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
|
@ -6,7 +6,10 @@ Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**node** | **str** | |
|
**node** | **str** | |
|
||||||
**garage_version** | **str** | |
|
**garage_version** | **str** | |
|
||||||
**known_nodes** | [**{str: (NodeNetworkInfo,)}**](NodeNetworkInfo.md) | |
|
**garage_features** | **[str]** | |
|
||||||
|
**rust_version** | **str** | |
|
||||||
|
**db_engine** | **str** | |
|
||||||
|
**known_nodes** | [**[NodeNetworkInfo]**](NodeNetworkInfo.md) | |
|
||||||
**layout** | [**ClusterLayout**](ClusterLayout.md) | |
|
**layout** | [**ClusterLayout**](ClusterLayout.md) | |
|
||||||
**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]
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**name** | **str** | |
|
**name** | **str, none_type** | |
|
||||||
**access_key_id** | **str** | |
|
**access_key_id** | **str** | |
|
||||||
**secret_access_key** | **str** | |
|
**secret_access_key** | **str** | |
|
||||||
**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]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# garage_admin_sdk.KeyApi
|
# garage_admin_sdk.KeyApi
|
||||||
|
|
||||||
All URIs are relative to *http://localhost:3903/v0*
|
All URIs are relative to *http://localhost:3903/v1*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
@ -31,10 +31,10 @@ from garage_admin_sdk.api import key_api
|
||||||
from garage_admin_sdk.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
from garage_admin_sdk.model.add_key_request import AddKeyRequest
|
from garage_admin_sdk.model.add_key_request import AddKeyRequest
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -53,7 +53,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
api_instance = key_api.KeyApi(api_client)
|
api_instance = key_api.KeyApi(api_client)
|
||||||
add_key_request = AddKeyRequest(
|
add_key_request = AddKeyRequest(
|
||||||
name="test-key",
|
name="test-key",
|
||||||
) # AddKeyRequest | \"You can set a friendly name for this key, send an empty string instead\"
|
) # AddKeyRequest | You can set a friendly name for this key. If you don't want to, you can set the name to `null`. *Note: the secret key is returned in the response.*
|
||||||
|
|
||||||
# example passing only required values which don't have defaults set
|
# example passing only required values which don't have defaults set
|
||||||
try:
|
try:
|
||||||
|
@ -69,7 +69,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**add_key_request** | [**AddKeyRequest**](AddKeyRequest.md)| \"You can set a friendly name for this key, send an empty string instead\" |
|
**add_key_request** | [**AddKeyRequest**](AddKeyRequest.md)| You can set a friendly name for this key. If you don't want to, you can set the name to `null`. *Note: the secret key is returned in the response.* |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -111,10 +111,10 @@ import time
|
||||||
import garage_admin_sdk
|
import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import key_api
|
from garage_admin_sdk.api import key_api
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -176,7 +176,7 @@ void (empty response body)
|
||||||
|
|
||||||
Get key information
|
Get key information
|
||||||
|
|
||||||
Return information about a specific key and return its information
|
Return information about a specific key like its identifiers, its permissions and buckets on which it has permissions. For confidentiality reasons, the secret key is not returned by default: you must pass the `showSecretKey` query parameter to get it.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
@ -188,10 +188,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import key_api
|
from garage_admin_sdk.api import key_api
|
||||||
from garage_admin_sdk.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -209,6 +209,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = key_api.KeyApi(api_client)
|
api_instance = key_api.KeyApi(api_client)
|
||||||
access_key = "GK31c2f218a2e44f485b94239e" # str | The exact API access key generated by Garage
|
access_key = "GK31c2f218a2e44f485b94239e" # str | The exact API access key generated by Garage
|
||||||
|
show_secret_key = True # bool | Wether or not the secret key should be returned in the response (optional) if omitted the server will use the default value of False
|
||||||
|
|
||||||
# example passing only required values which don't have defaults set
|
# example passing only required values which don't have defaults set
|
||||||
try:
|
try:
|
||||||
|
@ -217,6 +218,15 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except garage_admin_sdk.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling KeyApi->get_key: %s\n" % e)
|
print("Exception when calling KeyApi->get_key: %s\n" % e)
|
||||||
|
|
||||||
|
# example passing only required values which don't have defaults set
|
||||||
|
# and optional values
|
||||||
|
try:
|
||||||
|
# Get key information
|
||||||
|
api_response = api_instance.get_key(access_key, show_secret_key=show_secret_key)
|
||||||
|
pprint(api_response)
|
||||||
|
except garage_admin_sdk.ApiException as e:
|
||||||
|
print("Exception when calling KeyApi->get_key: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -225,6 +235,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**access_key** | **str**| The exact API access key generated by Garage |
|
**access_key** | **str**| The exact API access key generated by Garage |
|
||||||
|
**show_secret_key** | **bool**| Wether or not the secret key should be returned in the response | [optional] if omitted the server will use the default value of False
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -267,10 +278,10 @@ from garage_admin_sdk.api import key_api
|
||||||
from garage_admin_sdk.model.import_key_request import ImportKeyRequest
|
from garage_admin_sdk.model.import_key_request import ImportKeyRequest
|
||||||
from garage_admin_sdk.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -350,10 +361,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import key_api
|
from garage_admin_sdk.api import key_api
|
||||||
from garage_admin_sdk.model.list_keys200_response_inner import ListKeys200ResponseInner
|
from garage_admin_sdk.model.list_keys200_response_inner import ListKeys200ResponseInner
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -412,7 +423,7 @@ This endpoint does not need any parameter.
|
||||||
|
|
||||||
Select key by pattern
|
Select key by pattern
|
||||||
|
|
||||||
Find the first key matching the given pattern based on its identifier aor friendly name and return its information.
|
Find the first key matching the given pattern based on its identifier or friendly name and return its information. For confidentiality reasons, the secret key is not returned by default: you must pass the `showSecretKey` query parameter to get it.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
@ -424,10 +435,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import key_api
|
from garage_admin_sdk.api import key_api
|
||||||
from garage_admin_sdk.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -445,6 +456,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = key_api.KeyApi(api_client)
|
api_instance = key_api.KeyApi(api_client)
|
||||||
pattern = "test-k" # str | A pattern (beginning or full string) corresponding to a key identifier or friendly name
|
pattern = "test-k" # str | A pattern (beginning or full string) corresponding to a key identifier or friendly name
|
||||||
|
show_secret_key = True # bool | Wether or not the secret key should be returned in the response (optional) if omitted the server will use the default value of False
|
||||||
|
|
||||||
# example passing only required values which don't have defaults set
|
# example passing only required values which don't have defaults set
|
||||||
try:
|
try:
|
||||||
|
@ -453,6 +465,15 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except garage_admin_sdk.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling KeyApi->search_key: %s\n" % e)
|
print("Exception when calling KeyApi->search_key: %s\n" % e)
|
||||||
|
|
||||||
|
# example passing only required values which don't have defaults set
|
||||||
|
# and optional values
|
||||||
|
try:
|
||||||
|
# Select key by pattern
|
||||||
|
api_response = api_instance.search_key(pattern, show_secret_key=show_secret_key)
|
||||||
|
pprint(api_response)
|
||||||
|
except garage_admin_sdk.ApiException as e:
|
||||||
|
print("Exception when calling KeyApi->search_key: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -461,6 +482,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**pattern** | **str**| A pattern (beginning or full string) corresponding to a key identifier or friendly name |
|
**pattern** | **str**| A pattern (beginning or full string) corresponding to a key identifier or friendly name |
|
||||||
|
**show_secret_key** | **bool**| Wether or not the secret key should be returned in the response | [optional] if omitted the server will use the default value of False
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -490,7 +512,7 @@ Name | Type | Description | Notes
|
||||||
|
|
||||||
Update a key
|
Update a key
|
||||||
|
|
||||||
Updates information about the specified API access key.
|
Updates information about the specified API access key. *Note: the secret key is not returned in the response, `null` is sent instead.*
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
@ -503,10 +525,10 @@ from garage_admin_sdk.api import key_api
|
||||||
from garage_admin_sdk.model.update_key_request import UpdateKeyRequest
|
from garage_admin_sdk.model.update_key_request import UpdateKeyRequest
|
||||||
from garage_admin_sdk.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
|
|
@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**name** | **str** | | [optional]
|
**name** | **str** | | [optional]
|
||||||
**access_key_id** | **str** | | [optional]
|
**access_key_id** | **str** | | [optional]
|
||||||
**secret_access_key** | **str** | | [optional]
|
**secret_access_key** | **str, none_type** | | [optional]
|
||||||
**permissions** | [**KeyInfoPermissions**](KeyInfoPermissions.md) | | [optional]
|
**permissions** | [**KeyInfoPermissions**](KeyInfoPermissions.md) | | [optional]
|
||||||
**buckets** | [**[KeyInfoBucketsInner]**](KeyInfoBucketsInner.md) | | [optional]
|
**buckets** | [**[KeyInfoBucketsInner]**](KeyInfoBucketsInner.md) | | [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]
|
**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]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# garage_admin_sdk.LayoutApi
|
# garage_admin_sdk.LayoutApi
|
||||||
|
|
||||||
All URIs are relative to *http://localhost:3903/v0*
|
All URIs are relative to *http://localhost:3903/v1*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
@ -11,11 +11,11 @@ Method | HTTP request | Description
|
||||||
|
|
||||||
|
|
||||||
# **add_layout**
|
# **add_layout**
|
||||||
> add_layout(request_body)
|
> ClusterLayout add_layout(node_role_change)
|
||||||
|
|
||||||
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. Note that setting the capacity to `null` will configure the node as a gateway.
|
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. Setting the capacity to `null` will configure the node as a gateway. Otherwise, capacity must be now set in bytes (before Garage 0.9 it was arbitrary weights). For example to declare 100GB, you must set `capacity: 100000000000`. Garage uses internally the International System of Units (SI), it assumes that 1kB = 1000 bytes, and displays storage as kB, MB, GB (and not KiB, MiB, GiB that assume 1KiB = 1024 bytes).
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
@ -25,12 +25,13 @@ Send modifications to the cluster layout. These modifications will be included i
|
||||||
import time
|
import time
|
||||||
import garage_admin_sdk
|
import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import layout_api
|
from garage_admin_sdk.api import layout_api
|
||||||
from garage_admin_sdk.model.node_cluster_info import NodeClusterInfo
|
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
||||||
|
from garage_admin_sdk.model.node_role_change import NodeRoleChange
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -47,18 +48,15 @@ configuration = garage_admin_sdk.Configuration(
|
||||||
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = layout_api.LayoutApi(api_client)
|
api_instance = layout_api.LayoutApi(api_client)
|
||||||
request_body = {
|
node_role_change = [
|
||||||
"key": NodeClusterInfo(
|
NodeRoleChange(None),
|
||||||
zone="dc1",
|
] # [NodeRoleChange] | To add a new node to the layout or to change the configuration of an existing node, simply set the values you want (`zone`, `capacity`, and `tags`). To remove a node, simply pass the `remove: true` field. This logic is represented in OpenAPI with a \"One Of\" object. Contrary to the CLI that may update only a subset of the fields capacity, zone and tags, when calling this API all of these values must be specified.
|
||||||
capacity=4,
|
|
||||||
tags=["gateway","fast"],
|
|
||||||
),
|
|
||||||
} # {str: (NodeClusterInfo,)} | To add a new node to the layout or to change the configuration of an existing node, simply set the values you want. To remove a node, set it to `null` instead of passing a configuration object. Contrary to the CLI that may update only a subset of the fields capacity, zone and tags, when calling this API all of these values must be specified.
|
|
||||||
|
|
||||||
# example passing only required values which don't have defaults set
|
# example passing only required values which don't have defaults set
|
||||||
try:
|
try:
|
||||||
# Send modifications to the cluster layout
|
# Send modifications to the cluster layout
|
||||||
api_instance.add_layout(request_body)
|
api_response = api_instance.add_layout(node_role_change)
|
||||||
|
pprint(api_response)
|
||||||
except garage_admin_sdk.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling LayoutApi->add_layout: %s\n" % e)
|
print("Exception when calling LayoutApi->add_layout: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
@ -68,11 +66,11 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**request_body** | [**{str: (NodeClusterInfo,)}**](NodeClusterInfo.md)| To add a new node to the layout or to change the configuration of an existing node, simply set the values you want. To remove a node, set it to `null` instead of passing a configuration object. Contrary to the CLI that may update only a subset of the fields capacity, zone and tags, when calling this API all of these values must be specified. |
|
**node_role_change** | [**[NodeRoleChange]**](NodeRoleChange.md)| To add a new node to the layout or to change the configuration of an existing node, simply set the values you want (`zone`, `capacity`, and `tags`). To remove a node, simply pass the `remove: true` field. This logic is represented in OpenAPI with a \"One Of\" object. Contrary to the CLI that may update only a subset of the fields capacity, zone and tags, when calling this API all of these values must be specified. |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
void (empty response body)
|
[**ClusterLayout**](ClusterLayout.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -81,7 +79,7 @@ void (empty response body)
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
|
@ -95,11 +93,11 @@ void (empty response body)
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **apply_layout**
|
# **apply_layout**
|
||||||
> apply_layout(layout_version)
|
> ApplyLayout200Response apply_layout(layout_version)
|
||||||
|
|
||||||
Apply staged layout
|
Apply staged layout
|
||||||
|
|
||||||
Applies to the cluster the layout changes currently registered as staged layout changes.
|
Applies to the cluster the layout changes currently registered as staged layout changes. *Note: do not try to parse the `message` field of the response, it is given as an array of string specifically because its format is not stable.*
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
@ -110,11 +108,12 @@ import time
|
||||||
import garage_admin_sdk
|
import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import layout_api
|
from garage_admin_sdk.api import layout_api
|
||||||
from garage_admin_sdk.model.layout_version import LayoutVersion
|
from garage_admin_sdk.model.layout_version import LayoutVersion
|
||||||
|
from garage_admin_sdk.model.apply_layout200_response import ApplyLayout200Response
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -138,7 +137,8 @@ with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# example passing only required values which don't have defaults set
|
# example passing only required values which don't have defaults set
|
||||||
try:
|
try:
|
||||||
# Apply staged layout
|
# Apply staged layout
|
||||||
api_instance.apply_layout(layout_version)
|
api_response = api_instance.apply_layout(layout_version)
|
||||||
|
pprint(api_response)
|
||||||
except garage_admin_sdk.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling LayoutApi->apply_layout: %s\n" % e)
|
print("Exception when calling LayoutApi->apply_layout: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
@ -152,7 +152,7 @@ Name | Type | Description | Notes
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
void (empty response body)
|
[**ApplyLayout200Response**](ApplyLayout200Response.md)
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ void (empty response body)
|
||||||
### HTTP request headers
|
### HTTP request headers
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
- **Content-Type**: application/json
|
||||||
- **Accept**: Not defined
|
- **Accept**: application/json
|
||||||
|
|
||||||
|
|
||||||
### HTTP response details
|
### HTTP response details
|
||||||
|
@ -179,7 +179,7 @@ void (empty response body)
|
||||||
|
|
||||||
Details on the current and staged layout
|
Details on the current and staged layout
|
||||||
|
|
||||||
Returns the cluster's current layout, including: - Currently configured cluster layout - Staged changes to the cluster layout *The info returned by this endpoint is a subset of the info returned by `GET /status`.*
|
Returns the cluster's current layout, including: - Currently configured cluster layout - Staged changes to the cluster layout *Capacity is given in bytes* *The info returned by this endpoint is a subset of the info returned by `GET /status`.*
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
@ -191,10 +191,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import layout_api
|
from garage_admin_sdk.api import layout_api
|
||||||
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -265,10 +265,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import layout_api
|
from garage_admin_sdk.api import layout_api
|
||||||
from garage_admin_sdk.model.layout_version import LayoutVersion
|
from garage_admin_sdk.model.layout_version import LayoutVersion
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**zone** | **str** | |
|
**zone** | **str** | |
|
||||||
**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 |
|
||||||
|
**capacity** | **int, none_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]
|
**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]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
|
@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
||||||
**is_up** | **bool** | |
|
**is_up** | **bool** | |
|
||||||
**last_seen_secs_ago** | **int, none_type** | |
|
**last_seen_secs_ago** | **int, none_type** | |
|
||||||
**hostname** | **str** | |
|
**hostname** | **str** | |
|
||||||
|
**id** | **str** | | [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]
|
**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]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
16
docs/NodeRoleChange.md
Normal file
16
docs/NodeRoleChange.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# NodeRoleChange
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **str** | | [optional]
|
||||||
|
**remove** | **bool** | | [optional]
|
||||||
|
**zone** | **str** | | [optional]
|
||||||
|
**capacity** | **int, none_type** | | [optional]
|
||||||
|
**tags** | **[str]** | | [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]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
13
docs/NodeRoleRemove.md
Normal file
13
docs/NodeRoleRemove.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# NodeRoleRemove
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**remove** | **bool** | |
|
||||||
|
**id** | **str** | | [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]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
15
docs/NodeRoleUpdate.md
Normal file
15
docs/NodeRoleUpdate.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# NodeRoleUpdate
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**zone** | **str** | |
|
||||||
|
**capacity** | **int, none_type** | |
|
||||||
|
**tags** | **[str]** | |
|
||||||
|
**id** | **str** | | [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]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# garage_admin_sdk.NodesApi
|
# garage_admin_sdk.NodesApi
|
||||||
|
|
||||||
All URIs are relative to *http://localhost:3903/v0*
|
All URIs are relative to *http://localhost:3903/v1*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
@ -25,10 +25,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import nodes_api
|
from garage_admin_sdk.api import nodes_api
|
||||||
from garage_admin_sdk.model.add_node200_response_inner import AddNode200ResponseInner
|
from garage_admin_sdk.model.add_node200_response_inner import AddNode200ResponseInner
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
@ -92,7 +92,7 @@ Name | Type | Description | Notes
|
||||||
|
|
||||||
Status of this node and other nodes in the cluster
|
Status of this node and other nodes in the cluster
|
||||||
|
|
||||||
Returns the cluster's current status, including: - ID of the node being queried and its version of the Garage daemon - Live nodes - Currently configured cluster layout - Staged changes to the cluster layout
|
Returns the cluster's current status, including: - ID of the node being queried and its version of the Garage daemon - Live nodes - Currently configured cluster layout - Staged changes to the cluster layout *Capacity is given in bytes*
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
@ -104,10 +104,10 @@ import garage_admin_sdk
|
||||||
from garage_admin_sdk.api import nodes_api
|
from garage_admin_sdk.api import nodes_api
|
||||||
from garage_admin_sdk.model.get_nodes200_response import GetNodes200Response
|
from garage_admin_sdk.model.get_nodes200_response import GetNodes200Response
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v1
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = garage_admin_sdk.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
# The client must configure the authentication and authorization parameters
|
# The client must configure the authentication and authorization parameters
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -1629,7 +1629,7 @@ class BucketApi(object):
|
||||||
):
|
):
|
||||||
"""Update a bucket # noqa: E501
|
"""Update a bucket # noqa: E501
|
||||||
|
|
||||||
All fields (`websiteAccess` and `quotas`) are optionnal. If they are present, the corresponding modifications are applied to the bucket, otherwise nothing is changed. In `websiteAccess`: if `enabled` is `true`, `indexDocument` must be specified. The field `errorDocument` is optional, if no error document is set a generic error message is displayed when errors happen. Conversely, if `enabled` is `false`, neither `indexDocument` nor `errorDocument` must be specified. In `quotas`: new values of `maxSize` and `maxObjects` must both be specified, or set to `null` to remove the quotas. An absent value will be considered the same as a `null`. It is not possible to change only one of the two quotas. # noqa: E501
|
All fields (`websiteAccess` and `quotas`) are optional. If they are present, the corresponding modifications are applied to the bucket, otherwise nothing is changed. In `websiteAccess`: if `enabled` is `true`, `indexDocument` must be specified. The field `errorDocument` is optional, if no error document is set a generic error message is displayed when errors happen. Conversely, if `enabled` is `false`, neither `indexDocument` nor `errorDocument` must be specified. In `quotas`: new values of `maxSize` and `maxObjects` must both be specified, or set to `null` to remove the quotas. An absent value will be considered the same as a `null`. It is not possible to change only one of the two quotas. # 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
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -154,6 +154,7 @@ class KeyApi(object):
|
||||||
params_map={
|
params_map={
|
||||||
'all': [
|
'all': [
|
||||||
'access_key',
|
'access_key',
|
||||||
|
'show_secret_key',
|
||||||
],
|
],
|
||||||
'required': [
|
'required': [
|
||||||
'access_key',
|
'access_key',
|
||||||
|
@ -173,12 +174,16 @@ class KeyApi(object):
|
||||||
'openapi_types': {
|
'openapi_types': {
|
||||||
'access_key':
|
'access_key':
|
||||||
(str,),
|
(str,),
|
||||||
|
'show_secret_key':
|
||||||
|
(bool,),
|
||||||
},
|
},
|
||||||
'attribute_map': {
|
'attribute_map': {
|
||||||
'access_key': 'access_key',
|
'access_key': 'access_key',
|
||||||
|
'show_secret_key': 'showSecretKey',
|
||||||
},
|
},
|
||||||
'location_map': {
|
'location_map': {
|
||||||
'access_key': 'path',
|
'access_key': 'path',
|
||||||
|
'show_secret_key': 'query',
|
||||||
},
|
},
|
||||||
'collection_format_map': {
|
'collection_format_map': {
|
||||||
}
|
}
|
||||||
|
@ -301,6 +306,7 @@ class KeyApi(object):
|
||||||
params_map={
|
params_map={
|
||||||
'all': [
|
'all': [
|
||||||
'pattern',
|
'pattern',
|
||||||
|
'show_secret_key',
|
||||||
],
|
],
|
||||||
'required': [
|
'required': [
|
||||||
'pattern',
|
'pattern',
|
||||||
|
@ -320,12 +326,16 @@ class KeyApi(object):
|
||||||
'openapi_types': {
|
'openapi_types': {
|
||||||
'pattern':
|
'pattern':
|
||||||
(str,),
|
(str,),
|
||||||
|
'show_secret_key':
|
||||||
|
(bool,),
|
||||||
},
|
},
|
||||||
'attribute_map': {
|
'attribute_map': {
|
||||||
'pattern': 'pattern',
|
'pattern': 'pattern',
|
||||||
|
'show_secret_key': 'showSecretKey',
|
||||||
},
|
},
|
||||||
'location_map': {
|
'location_map': {
|
||||||
'pattern': 'path',
|
'pattern': 'path',
|
||||||
|
'show_secret_key': 'query',
|
||||||
},
|
},
|
||||||
'collection_format_map': {
|
'collection_format_map': {
|
||||||
}
|
}
|
||||||
|
@ -412,7 +422,7 @@ class KeyApi(object):
|
||||||
>>> result = thread.get()
|
>>> result = thread.get()
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
add_key_request (AddKeyRequest): \"You can set a friendly name for this key, send an empty string instead\"
|
add_key_request (AddKeyRequest): You can set a friendly name for this key. If you don't want to, you can set the name to `null`. *Note: the secret key is returned in the response.*
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
_return_http_data_only (bool): response data without head status
|
_return_http_data_only (bool): response data without head status
|
||||||
|
@ -570,7 +580,7 @@ class KeyApi(object):
|
||||||
):
|
):
|
||||||
"""Get key information # noqa: E501
|
"""Get key information # noqa: E501
|
||||||
|
|
||||||
Return information about a specific key and return its information # noqa: E501
|
Return information about a specific key like its identifiers, its permissions and buckets on which it has permissions. For confidentiality reasons, the secret key is not returned by default: you must pass the `showSecretKey` query parameter to get it. # 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
|
||||||
|
|
||||||
|
@ -581,6 +591,7 @@ class KeyApi(object):
|
||||||
access_key (str): The exact API access key generated by Garage
|
access_key (str): The exact API access key generated by Garage
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
|
show_secret_key (bool): Wether or not the secret key should be returned in the response. [optional] if omitted the server will use the default value of False
|
||||||
_return_http_data_only (bool): response data without head status
|
_return_http_data_only (bool): response data without head status
|
||||||
code and headers. Default is True.
|
code and headers. Default is True.
|
||||||
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
||||||
|
@ -814,7 +825,7 @@ class KeyApi(object):
|
||||||
):
|
):
|
||||||
"""Select key by pattern # noqa: E501
|
"""Select key by pattern # noqa: E501
|
||||||
|
|
||||||
Find the first key matching the given pattern based on its identifier aor friendly name and return its information. # noqa: E501
|
Find the first key matching the given pattern based on its identifier or friendly name and return its information. For confidentiality reasons, the secret key is not returned by default: you must pass the `showSecretKey` query parameter to get it. # 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
|
||||||
|
|
||||||
|
@ -825,6 +836,7 @@ class KeyApi(object):
|
||||||
pattern (str): A pattern (beginning or full string) corresponding to a key identifier or friendly name
|
pattern (str): A pattern (beginning or full string) corresponding to a key identifier or friendly name
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
|
show_secret_key (bool): Wether or not the secret key should be returned in the response. [optional] if omitted the server will use the default value of False
|
||||||
_return_http_data_only (bool): response data without head status
|
_return_http_data_only (bool): response data without head status
|
||||||
code and headers. Default is True.
|
code and headers. Default is True.
|
||||||
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
||||||
|
@ -898,7 +910,7 @@ class KeyApi(object):
|
||||||
):
|
):
|
||||||
"""Update a key # noqa: E501
|
"""Update a key # noqa: E501
|
||||||
|
|
||||||
Updates information about the specified API access key. # noqa: E501
|
Updates information about the specified API access key. *Note: the secret key is not returned in the response, `null` is sent instead.* # 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
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -21,9 +21,10 @@ from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
none_type,
|
none_type,
|
||||||
validate_and_convert_types
|
validate_and_convert_types
|
||||||
)
|
)
|
||||||
|
from garage_admin_sdk.model.apply_layout200_response import ApplyLayout200Response
|
||||||
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
||||||
from garage_admin_sdk.model.layout_version import LayoutVersion
|
from garage_admin_sdk.model.layout_version import LayoutVersion
|
||||||
from garage_admin_sdk.model.node_cluster_info import NodeClusterInfo
|
from garage_admin_sdk.model.node_role_change import NodeRoleChange
|
||||||
|
|
||||||
|
|
||||||
class LayoutApi(object):
|
class LayoutApi(object):
|
||||||
|
@ -39,7 +40,7 @@ class LayoutApi(object):
|
||||||
self.api_client = api_client
|
self.api_client = api_client
|
||||||
self.add_layout_endpoint = _Endpoint(
|
self.add_layout_endpoint = _Endpoint(
|
||||||
settings={
|
settings={
|
||||||
'response_type': None,
|
'response_type': (ClusterLayout,),
|
||||||
'auth': [
|
'auth': [
|
||||||
'bearerAuth'
|
'bearerAuth'
|
||||||
],
|
],
|
||||||
|
@ -50,10 +51,10 @@ class LayoutApi(object):
|
||||||
},
|
},
|
||||||
params_map={
|
params_map={
|
||||||
'all': [
|
'all': [
|
||||||
'request_body',
|
'node_role_change',
|
||||||
],
|
],
|
||||||
'required': [
|
'required': [
|
||||||
'request_body',
|
'node_role_change',
|
||||||
],
|
],
|
||||||
'nullable': [
|
'nullable': [
|
||||||
],
|
],
|
||||||
|
@ -68,19 +69,21 @@ class LayoutApi(object):
|
||||||
'allowed_values': {
|
'allowed_values': {
|
||||||
},
|
},
|
||||||
'openapi_types': {
|
'openapi_types': {
|
||||||
'request_body':
|
'node_role_change':
|
||||||
({str: (NodeClusterInfo,)},),
|
([NodeRoleChange],),
|
||||||
},
|
},
|
||||||
'attribute_map': {
|
'attribute_map': {
|
||||||
},
|
},
|
||||||
'location_map': {
|
'location_map': {
|
||||||
'request_body': 'body',
|
'node_role_change': 'body',
|
||||||
},
|
},
|
||||||
'collection_format_map': {
|
'collection_format_map': {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
headers_map={
|
headers_map={
|
||||||
'accept': [],
|
'accept': [
|
||||||
|
'application/json'
|
||||||
|
],
|
||||||
'content_type': [
|
'content_type': [
|
||||||
'application/json'
|
'application/json'
|
||||||
]
|
]
|
||||||
|
@ -89,7 +92,7 @@ class LayoutApi(object):
|
||||||
)
|
)
|
||||||
self.apply_layout_endpoint = _Endpoint(
|
self.apply_layout_endpoint = _Endpoint(
|
||||||
settings={
|
settings={
|
||||||
'response_type': None,
|
'response_type': (ApplyLayout200Response,),
|
||||||
'auth': [
|
'auth': [
|
||||||
'bearerAuth'
|
'bearerAuth'
|
||||||
],
|
],
|
||||||
|
@ -130,7 +133,9 @@ class LayoutApi(object):
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
headers_map={
|
headers_map={
|
||||||
'accept': [],
|
'accept': [
|
||||||
|
'application/json'
|
||||||
|
],
|
||||||
'content_type': [
|
'content_type': [
|
||||||
'application/json'
|
'application/json'
|
||||||
]
|
]
|
||||||
|
@ -234,20 +239,20 @@ class LayoutApi(object):
|
||||||
|
|
||||||
def add_layout(
|
def add_layout(
|
||||||
self,
|
self,
|
||||||
request_body,
|
node_role_change,
|
||||||
**kwargs
|
**kwargs
|
||||||
):
|
):
|
||||||
"""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. Note that setting the capacity to `null` will configure the node as a gateway. # 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. Setting the capacity to `null` will configure the node as a gateway. Otherwise, capacity must be now set in bytes (before Garage 0.9 it was arbitrary weights). For example to declare 100GB, you must set `capacity: 100000000000`. Garage uses internally the International System of Units (SI), it assumes that 1kB = 1000 bytes, and displays storage as kB, MB, GB (and not KiB, MiB, GiB that assume 1KiB = 1024 bytes). # 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
|
||||||
|
|
||||||
>>> thread = api.add_layout(request_body, async_req=True)
|
>>> thread = api.add_layout(node_role_change, async_req=True)
|
||||||
>>> result = thread.get()
|
>>> result = thread.get()
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
request_body ({str: (NodeClusterInfo,)}): To add a new node to the layout or to change the configuration of an existing node, simply set the values you want. To remove a node, set it to `null` instead of passing a configuration object. Contrary to the CLI that may update only a subset of the fields capacity, zone and tags, when calling this API all of these values must be specified.
|
node_role_change ([NodeRoleChange]): To add a new node to the layout or to change the configuration of an existing node, simply set the values you want (`zone`, `capacity`, and `tags`). To remove a node, simply pass the `remove: true` field. This logic is represented in OpenAPI with a \"One Of\" object. Contrary to the CLI that may update only a subset of the fields capacity, zone and tags, when calling this API all of these values must be specified.
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
_return_http_data_only (bool): response data without head status
|
_return_http_data_only (bool): response data without head status
|
||||||
|
@ -282,7 +287,7 @@ class LayoutApi(object):
|
||||||
async_req (bool): execute request asynchronously
|
async_req (bool): execute request asynchronously
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
None
|
ClusterLayout
|
||||||
If the method is called asynchronously, returns the request
|
If the method is called asynchronously, returns the request
|
||||||
thread.
|
thread.
|
||||||
"""
|
"""
|
||||||
|
@ -311,8 +316,8 @@ class LayoutApi(object):
|
||||||
'_content_type')
|
'_content_type')
|
||||||
kwargs['_host_index'] = kwargs.get('_host_index')
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
||||||
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
||||||
kwargs['request_body'] = \
|
kwargs['node_role_change'] = \
|
||||||
request_body
|
node_role_change
|
||||||
return self.add_layout_endpoint.call_with_http_info(**kwargs)
|
return self.add_layout_endpoint.call_with_http_info(**kwargs)
|
||||||
|
|
||||||
def apply_layout(
|
def apply_layout(
|
||||||
|
@ -322,7 +327,7 @@ class LayoutApi(object):
|
||||||
):
|
):
|
||||||
"""Apply staged layout # noqa: E501
|
"""Apply staged layout # noqa: E501
|
||||||
|
|
||||||
Applies to the cluster the layout changes currently registered as staged layout changes. # noqa: E501
|
Applies to the cluster the layout changes currently registered as staged layout changes. *Note: do not try to parse the `message` field of the response, it is given as an array of string specifically because its format is not stable.* # 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
|
||||||
|
|
||||||
|
@ -365,7 +370,7 @@ class LayoutApi(object):
|
||||||
async_req (bool): execute request asynchronously
|
async_req (bool): execute request asynchronously
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
None
|
ApplyLayout200Response
|
||||||
If the method is called asynchronously, returns the request
|
If the method is called asynchronously, returns the request
|
||||||
thread.
|
thread.
|
||||||
"""
|
"""
|
||||||
|
@ -404,7 +409,7 @@ class LayoutApi(object):
|
||||||
):
|
):
|
||||||
"""Details on the current and staged layout # noqa: E501
|
"""Details on the current and staged layout # noqa: E501
|
||||||
|
|
||||||
Returns the cluster's current layout, including: - Currently configured cluster layout - Staged changes to the cluster layout *The info returned by this endpoint is a subset of the info returned by `GET /status`.* # noqa: E501
|
Returns the cluster's current layout, including: - Currently configured cluster layout - Staged changes to the cluster layout *Capacity is given in bytes* *The info returned by this endpoint is a subset of the info returned by `GET /status`.* # 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
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -222,7 +222,7 @@ class NodesApi(object):
|
||||||
):
|
):
|
||||||
"""Status of this node and other nodes in the cluster # noqa: E501
|
"""Status of this node and other nodes in the cluster # noqa: E501
|
||||||
|
|
||||||
Returns the cluster's current status, including: - ID of the node being queried and its version of the Garage daemon - Live nodes - Currently configured cluster layout - Staged changes to the cluster layout # noqa: E501
|
Returns the cluster's current status, including: - ID of the node being queried and its version of the Garage daemon - Live nodes - Currently configured cluster layout - Staged changes to the cluster layout *Capacity is given in bytes* # 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
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ class Configuration(object):
|
||||||
):
|
):
|
||||||
"""Constructor
|
"""Constructor
|
||||||
"""
|
"""
|
||||||
self._base_path = "http://localhost:3903/v0" if host is None else host
|
self._base_path = "http://localhost:3903/v1" if host is None else host
|
||||||
"""Default Base url
|
"""Default Base url
|
||||||
"""
|
"""
|
||||||
self.server_index = 0 if server_index is None and host is None else server_index
|
self.server_index = 0 if server_index is None and host is None else server_index
|
||||||
|
@ -387,7 +387,7 @@ class Configuration(object):
|
||||||
return "Python SDK Debug Report:\n"\
|
return "Python SDK Debug Report:\n"\
|
||||||
"OS: {env}\n"\
|
"OS: {env}\n"\
|
||||||
"Python Version: {pyversion}\n"\
|
"Python Version: {pyversion}\n"\
|
||||||
"Version of the API: v0.8.0\n"\
|
"Version of the API: v0.9.0\n"\
|
||||||
"SDK Package Version: 0.8.0".\
|
"SDK Package Version: 0.8.0".\
|
||||||
format(env=sys.platform, pyversion=sys.version)
|
format(env=sys.platform, pyversion=sys.version)
|
||||||
|
|
||||||
|
@ -398,7 +398,7 @@ class Configuration(object):
|
||||||
"""
|
"""
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
'url': "http://localhost:3903/v0",
|
'url': "http://localhost:3903/v1",
|
||||||
'description': "A local server",
|
'description': "A local server",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ class AddKeyRequest(ModelNormal):
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
"""
|
"""
|
||||||
return {
|
return {
|
||||||
'name': (str,), # noqa: E501
|
'name': (str, none_type,), # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
|
@ -134,7 +134,7 @@ class AddKeyRequest(ModelNormal):
|
||||||
Animal class but this time we won't travel
|
Animal class but this time we won't travel
|
||||||
through its discriminator because we passed in
|
through its discriminator because we passed in
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
name (str): [optional] # noqa: E501
|
name (str, none_type): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
@ -220,7 +220,7 @@ class AddKeyRequest(ModelNormal):
|
||||||
Animal class but this time we won't travel
|
Animal class but this time we won't travel
|
||||||
through its discriminator because we passed in
|
through its discriminator because we passed in
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
name (str): [optional] # noqa: E501
|
name (str, none_type): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
281
garage_admin_sdk/model/apply_layout200_response.py
Normal file
281
garage_admin_sdk/model/apply_layout200_response.py
Normal file
|
@ -0,0 +1,281 @@
|
||||||
|
"""
|
||||||
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
|
The version of the OpenAPI document: v0.9.0
|
||||||
|
Generated by: https://openapi-generator.tech
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
import re # noqa: F401
|
||||||
|
import sys # noqa: F401
|
||||||
|
|
||||||
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
|
ApiTypeError,
|
||||||
|
ModelComposed,
|
||||||
|
ModelNormal,
|
||||||
|
ModelSimple,
|
||||||
|
cached_property,
|
||||||
|
change_keys_js_to_python,
|
||||||
|
convert_js_args_to_python_args,
|
||||||
|
date,
|
||||||
|
datetime,
|
||||||
|
file_type,
|
||||||
|
none_type,
|
||||||
|
validate_get_composed_info,
|
||||||
|
OpenApiModel
|
||||||
|
)
|
||||||
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
def lazy_import():
|
||||||
|
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
||||||
|
globals()['ClusterLayout'] = ClusterLayout
|
||||||
|
|
||||||
|
|
||||||
|
class ApplyLayout200Response(ModelNormal):
|
||||||
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
|
Ref: https://openapi-generator.tech
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
|
||||||
|
Attributes:
|
||||||
|
allowed_values (dict): The key is the tuple path to the attribute
|
||||||
|
and the for var_name this is (var_name,). The value is a dict
|
||||||
|
with a capitalized key describing the allowed value and an allowed
|
||||||
|
value. These dicts store the allowed enum values.
|
||||||
|
attribute_map (dict): The key is attribute name
|
||||||
|
and the value is json key in definition.
|
||||||
|
discriminator_value_class_map (dict): A dict to go from the discriminator
|
||||||
|
variable value to the discriminator class name.
|
||||||
|
validations (dict): The key is the tuple path to the attribute
|
||||||
|
and the for var_name this is (var_name,). The value is a dict
|
||||||
|
that stores validations for max_length, min_length, max_items,
|
||||||
|
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
||||||
|
inclusive_minimum, and regex.
|
||||||
|
additional_properties_type (tuple): A tuple of classes accepted
|
||||||
|
as additional properties values.
|
||||||
|
"""
|
||||||
|
|
||||||
|
allowed_values = {
|
||||||
|
}
|
||||||
|
|
||||||
|
validations = {
|
||||||
|
}
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def additional_properties_type():
|
||||||
|
"""
|
||||||
|
This must be a method because a model may have properties that are
|
||||||
|
of type self, this must run after the class is loaded
|
||||||
|
"""
|
||||||
|
lazy_import()
|
||||||
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
||||||
|
|
||||||
|
_nullable = False
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def openapi_types():
|
||||||
|
"""
|
||||||
|
This must be a method because a model may have properties that are
|
||||||
|
of type self, this must run after the class is loaded
|
||||||
|
|
||||||
|
Returns
|
||||||
|
openapi_types (dict): The key is attribute name
|
||||||
|
and the value is attribute type.
|
||||||
|
"""
|
||||||
|
lazy_import()
|
||||||
|
return {
|
||||||
|
'message': ([str],), # noqa: E501
|
||||||
|
'layout': (ClusterLayout,), # noqa: E501
|
||||||
|
}
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def discriminator():
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
'message': 'message', # noqa: E501
|
||||||
|
'layout': 'layout', # noqa: E501
|
||||||
|
}
|
||||||
|
|
||||||
|
read_only_vars = {
|
||||||
|
}
|
||||||
|
|
||||||
|
_composed_schemas = {}
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
@convert_js_args_to_python_args
|
||||||
|
def _from_openapi_data(cls, message, layout, *args, **kwargs): # noqa: E501
|
||||||
|
"""ApplyLayout200Response - a model defined in OpenAPI
|
||||||
|
|
||||||
|
Args:
|
||||||
|
message ([str]):
|
||||||
|
layout (ClusterLayout):
|
||||||
|
|
||||||
|
Keyword Args:
|
||||||
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
|
will be type checked and a TypeError will be
|
||||||
|
raised if the wrong type is input.
|
||||||
|
Defaults to True
|
||||||
|
_path_to_item (tuple/list): This is a list of keys or values to
|
||||||
|
drill down to the model in received_data
|
||||||
|
when deserializing a response
|
||||||
|
_spec_property_naming (bool): True if the variable names in the input data
|
||||||
|
are serialized names, as specified in the OpenAPI document.
|
||||||
|
False if the variable names in the input data
|
||||||
|
are pythonic names, e.g. snake case (default)
|
||||||
|
_configuration (Configuration): the instance to use when
|
||||||
|
deserializing a file_type parameter.
|
||||||
|
If passed, type conversion is attempted
|
||||||
|
If omitted no type conversion is done.
|
||||||
|
_visited_composed_classes (tuple): This stores a tuple of
|
||||||
|
classes that we have traveled through so that
|
||||||
|
if we see that class again we will not use its
|
||||||
|
discriminator again.
|
||||||
|
When traveling through a discriminator, the
|
||||||
|
composed schema that is
|
||||||
|
is traveled through is added to this set.
|
||||||
|
For example if Animal has a discriminator
|
||||||
|
petType and we pass in "Dog", and the class Dog
|
||||||
|
allOf includes Animal, we move through Animal
|
||||||
|
once using the discriminator, and pick Dog.
|
||||||
|
Then in Dog, we will make an instance of the
|
||||||
|
Animal class but this time we won't travel
|
||||||
|
through its discriminator because we passed in
|
||||||
|
_visited_composed_classes = (Animal,)
|
||||||
|
"""
|
||||||
|
|
||||||
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
||||||
|
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||||
|
_configuration = kwargs.pop('_configuration', None)
|
||||||
|
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||||
|
|
||||||
|
self = super(OpenApiModel, cls).__new__(cls)
|
||||||
|
|
||||||
|
if args:
|
||||||
|
for arg in args:
|
||||||
|
if isinstance(arg, dict):
|
||||||
|
kwargs.update(arg)
|
||||||
|
else:
|
||||||
|
raise ApiTypeError(
|
||||||
|
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||||
|
args,
|
||||||
|
self.__class__.__name__,
|
||||||
|
),
|
||||||
|
path_to_item=_path_to_item,
|
||||||
|
valid_classes=(self.__class__,),
|
||||||
|
)
|
||||||
|
|
||||||
|
self._data_store = {}
|
||||||
|
self._check_type = _check_type
|
||||||
|
self._spec_property_naming = _spec_property_naming
|
||||||
|
self._path_to_item = _path_to_item
|
||||||
|
self._configuration = _configuration
|
||||||
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||||
|
|
||||||
|
self.message = message
|
||||||
|
self.layout = layout
|
||||||
|
for var_name, var_value in kwargs.items():
|
||||||
|
if var_name not in self.attribute_map and \
|
||||||
|
self._configuration is not None and \
|
||||||
|
self._configuration.discard_unknown_keys and \
|
||||||
|
self.additional_properties_type is None:
|
||||||
|
# discard variable.
|
||||||
|
continue
|
||||||
|
setattr(self, var_name, var_value)
|
||||||
|
return self
|
||||||
|
|
||||||
|
required_properties = set([
|
||||||
|
'_data_store',
|
||||||
|
'_check_type',
|
||||||
|
'_spec_property_naming',
|
||||||
|
'_path_to_item',
|
||||||
|
'_configuration',
|
||||||
|
'_visited_composed_classes',
|
||||||
|
])
|
||||||
|
|
||||||
|
@convert_js_args_to_python_args
|
||||||
|
def __init__(self, message, layout, *args, **kwargs): # noqa: E501
|
||||||
|
"""ApplyLayout200Response - a model defined in OpenAPI
|
||||||
|
|
||||||
|
Args:
|
||||||
|
message ([str]):
|
||||||
|
layout (ClusterLayout):
|
||||||
|
|
||||||
|
Keyword Args:
|
||||||
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
|
will be type checked and a TypeError will be
|
||||||
|
raised if the wrong type is input.
|
||||||
|
Defaults to True
|
||||||
|
_path_to_item (tuple/list): This is a list of keys or values to
|
||||||
|
drill down to the model in received_data
|
||||||
|
when deserializing a response
|
||||||
|
_spec_property_naming (bool): True if the variable names in the input data
|
||||||
|
are serialized names, as specified in the OpenAPI document.
|
||||||
|
False if the variable names in the input data
|
||||||
|
are pythonic names, e.g. snake case (default)
|
||||||
|
_configuration (Configuration): the instance to use when
|
||||||
|
deserializing a file_type parameter.
|
||||||
|
If passed, type conversion is attempted
|
||||||
|
If omitted no type conversion is done.
|
||||||
|
_visited_composed_classes (tuple): This stores a tuple of
|
||||||
|
classes that we have traveled through so that
|
||||||
|
if we see that class again we will not use its
|
||||||
|
discriminator again.
|
||||||
|
When traveling through a discriminator, the
|
||||||
|
composed schema that is
|
||||||
|
is traveled through is added to this set.
|
||||||
|
For example if Animal has a discriminator
|
||||||
|
petType and we pass in "Dog", and the class Dog
|
||||||
|
allOf includes Animal, we move through Animal
|
||||||
|
once using the discriminator, and pick Dog.
|
||||||
|
Then in Dog, we will make an instance of the
|
||||||
|
Animal class but this time we won't travel
|
||||||
|
through its discriminator because we passed in
|
||||||
|
_visited_composed_classes = (Animal,)
|
||||||
|
"""
|
||||||
|
|
||||||
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||||
|
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||||
|
_configuration = kwargs.pop('_configuration', None)
|
||||||
|
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||||
|
|
||||||
|
if args:
|
||||||
|
for arg in args:
|
||||||
|
if isinstance(arg, dict):
|
||||||
|
kwargs.update(arg)
|
||||||
|
else:
|
||||||
|
raise ApiTypeError(
|
||||||
|
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||||
|
args,
|
||||||
|
self.__class__.__name__,
|
||||||
|
),
|
||||||
|
path_to_item=_path_to_item,
|
||||||
|
valid_classes=(self.__class__,),
|
||||||
|
)
|
||||||
|
|
||||||
|
self._data_store = {}
|
||||||
|
self._check_type = _check_type
|
||||||
|
self._spec_property_naming = _spec_property_naming
|
||||||
|
self._path_to_item = _path_to_item
|
||||||
|
self._configuration = _configuration
|
||||||
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||||
|
|
||||||
|
self.message = message
|
||||||
|
self.layout = layout
|
||||||
|
for var_name, var_value in kwargs.items():
|
||||||
|
if var_name not in self.attribute_map and \
|
||||||
|
self._configuration is not None and \
|
||||||
|
self._configuration.discard_unknown_keys and \
|
||||||
|
self.additional_properties_type is None:
|
||||||
|
# discard variable.
|
||||||
|
continue
|
||||||
|
setattr(self, var_name, var_value)
|
||||||
|
if var_name in self.read_only_vars:
|
||||||
|
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
||||||
|
f"class with read only attributes.")
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -31,7 +31,9 @@ from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
def lazy_import():
|
def lazy_import():
|
||||||
from garage_admin_sdk.model.node_cluster_info import NodeClusterInfo
|
from garage_admin_sdk.model.node_cluster_info import NodeClusterInfo
|
||||||
|
from garage_admin_sdk.model.node_role_change import NodeRoleChange
|
||||||
globals()['NodeClusterInfo'] = NodeClusterInfo
|
globals()['NodeClusterInfo'] = NodeClusterInfo
|
||||||
|
globals()['NodeRoleChange'] = NodeRoleChange
|
||||||
|
|
||||||
|
|
||||||
class ClusterLayout(ModelNormal):
|
class ClusterLayout(ModelNormal):
|
||||||
|
@ -88,8 +90,8 @@ class ClusterLayout(ModelNormal):
|
||||||
lazy_import()
|
lazy_import()
|
||||||
return {
|
return {
|
||||||
'version': (int,), # noqa: E501
|
'version': (int,), # noqa: E501
|
||||||
'roles': ({str: (NodeClusterInfo,)},), # noqa: E501
|
'roles': ([NodeClusterInfo],), # noqa: E501
|
||||||
'staged_role_changes': ({str: (NodeClusterInfo,)},), # noqa: E501
|
'staged_role_changes': ([NodeRoleChange],), # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
|
@ -115,8 +117,8 @@ class ClusterLayout(ModelNormal):
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
version (int):
|
version (int):
|
||||||
roles ({str: (NodeClusterInfo,)}):
|
roles ([NodeClusterInfo]):
|
||||||
staged_role_changes ({str: (NodeClusterInfo,)}):
|
staged_role_changes ([NodeRoleChange]):
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
_check_type (bool): if True, values for parameters in openapi_types
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
|
@ -208,8 +210,8 @@ class ClusterLayout(ModelNormal):
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
version (int):
|
version (int):
|
||||||
roles ({str: (NodeClusterInfo,)}):
|
roles ([NodeClusterInfo]):
|
||||||
staged_role_changes ({str: (NodeClusterInfo,)}):
|
staged_role_changes ([NodeRoleChange]):
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
_check_type (bool): if True, values for parameters in openapi_types
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -91,7 +91,10 @@ class GetNodes200Response(ModelNormal):
|
||||||
return {
|
return {
|
||||||
'node': (str,), # noqa: E501
|
'node': (str,), # noqa: E501
|
||||||
'garage_version': (str,), # noqa: E501
|
'garage_version': (str,), # noqa: E501
|
||||||
'known_nodes': ({str: (NodeNetworkInfo,)},), # noqa: E501
|
'garage_features': ([str],), # noqa: E501
|
||||||
|
'rust_version': (str,), # noqa: E501
|
||||||
|
'db_engine': (str,), # noqa: E501
|
||||||
|
'known_nodes': ([NodeNetworkInfo],), # noqa: E501
|
||||||
'layout': (ClusterLayout,), # noqa: E501
|
'layout': (ClusterLayout,), # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,6 +106,9 @@ class GetNodes200Response(ModelNormal):
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
'node': 'node', # noqa: E501
|
'node': 'node', # noqa: E501
|
||||||
'garage_version': 'garageVersion', # noqa: E501
|
'garage_version': 'garageVersion', # noqa: E501
|
||||||
|
'garage_features': 'garageFeatures', # noqa: E501
|
||||||
|
'rust_version': 'rustVersion', # noqa: E501
|
||||||
|
'db_engine': 'dbEngine', # noqa: E501
|
||||||
'known_nodes': 'knownNodes', # noqa: E501
|
'known_nodes': 'knownNodes', # noqa: E501
|
||||||
'layout': 'layout', # noqa: E501
|
'layout': 'layout', # noqa: E501
|
||||||
}
|
}
|
||||||
|
@ -114,13 +120,16 @@ class GetNodes200Response(ModelNormal):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@convert_js_args_to_python_args
|
@convert_js_args_to_python_args
|
||||||
def _from_openapi_data(cls, node, garage_version, known_nodes, layout, *args, **kwargs): # noqa: E501
|
def _from_openapi_data(cls, node, garage_version, garage_features, rust_version, db_engine, known_nodes, layout, *args, **kwargs): # noqa: E501
|
||||||
"""GetNodes200Response - a model defined in OpenAPI
|
"""GetNodes200Response - a model defined in OpenAPI
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
node (str):
|
node (str):
|
||||||
garage_version (str):
|
garage_version (str):
|
||||||
known_nodes ({str: (NodeNetworkInfo,)}):
|
garage_features ([str]):
|
||||||
|
rust_version (str):
|
||||||
|
db_engine (str):
|
||||||
|
known_nodes ([NodeNetworkInfo]):
|
||||||
layout (ClusterLayout):
|
layout (ClusterLayout):
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
|
@ -187,6 +196,9 @@ class GetNodes200Response(ModelNormal):
|
||||||
|
|
||||||
self.node = node
|
self.node = node
|
||||||
self.garage_version = garage_version
|
self.garage_version = garage_version
|
||||||
|
self.garage_features = garage_features
|
||||||
|
self.rust_version = rust_version
|
||||||
|
self.db_engine = db_engine
|
||||||
self.known_nodes = known_nodes
|
self.known_nodes = known_nodes
|
||||||
self.layout = layout
|
self.layout = layout
|
||||||
for var_name, var_value in kwargs.items():
|
for var_name, var_value in kwargs.items():
|
||||||
|
@ -209,13 +221,16 @@ class GetNodes200Response(ModelNormal):
|
||||||
])
|
])
|
||||||
|
|
||||||
@convert_js_args_to_python_args
|
@convert_js_args_to_python_args
|
||||||
def __init__(self, node, garage_version, known_nodes, layout, *args, **kwargs): # noqa: E501
|
def __init__(self, node, garage_version, garage_features, rust_version, db_engine, known_nodes, layout, *args, **kwargs): # noqa: E501
|
||||||
"""GetNodes200Response - a model defined in OpenAPI
|
"""GetNodes200Response - a model defined in OpenAPI
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
node (str):
|
node (str):
|
||||||
garage_version (str):
|
garage_version (str):
|
||||||
known_nodes ({str: (NodeNetworkInfo,)}):
|
garage_features ([str]):
|
||||||
|
rust_version (str):
|
||||||
|
db_engine (str):
|
||||||
|
known_nodes ([NodeNetworkInfo]):
|
||||||
layout (ClusterLayout):
|
layout (ClusterLayout):
|
||||||
|
|
||||||
Keyword Args:
|
Keyword Args:
|
||||||
|
@ -280,6 +295,9 @@ class GetNodes200Response(ModelNormal):
|
||||||
|
|
||||||
self.node = node
|
self.node = node
|
||||||
self.garage_version = garage_version
|
self.garage_version = garage_version
|
||||||
|
self.garage_features = garage_features
|
||||||
|
self.rust_version = rust_version
|
||||||
|
self.db_engine = db_engine
|
||||||
self.known_nodes = known_nodes
|
self.known_nodes = known_nodes
|
||||||
self.layout = layout
|
self.layout = layout
|
||||||
for var_name, var_value in kwargs.items():
|
for var_name, var_value in kwargs.items():
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ class ImportKeyRequest(ModelNormal):
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
"""
|
"""
|
||||||
return {
|
return {
|
||||||
'name': (str,), # noqa: E501
|
'name': (str, none_type,), # noqa: E501
|
||||||
'access_key_id': (str,), # noqa: E501
|
'access_key_id': (str,), # noqa: E501
|
||||||
'secret_access_key': (str,), # noqa: E501
|
'secret_access_key': (str,), # noqa: E501
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,7 @@ class ImportKeyRequest(ModelNormal):
|
||||||
"""ImportKeyRequest - a model defined in OpenAPI
|
"""ImportKeyRequest - a model defined in OpenAPI
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
name (str):
|
name (str, none_type):
|
||||||
access_key_id (str):
|
access_key_id (str):
|
||||||
secret_access_key (str):
|
secret_access_key (str):
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ class ImportKeyRequest(ModelNormal):
|
||||||
"""ImportKeyRequest - a model defined in OpenAPI
|
"""ImportKeyRequest - a model defined in OpenAPI
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
name (str):
|
name (str, none_type):
|
||||||
access_key_id (str):
|
access_key_id (str):
|
||||||
secret_access_key (str):
|
secret_access_key (str):
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ class KeyInfo(ModelNormal):
|
||||||
return {
|
return {
|
||||||
'name': (str,), # noqa: E501
|
'name': (str,), # noqa: E501
|
||||||
'access_key_id': (str,), # noqa: E501
|
'access_key_id': (str,), # noqa: E501
|
||||||
'secret_access_key': (str,), # noqa: E501
|
'secret_access_key': (str, none_type,), # noqa: E501
|
||||||
'permissions': (KeyInfoPermissions,), # noqa: E501
|
'permissions': (KeyInfoPermissions,), # noqa: E501
|
||||||
'buckets': ([KeyInfoBucketsInner],), # noqa: E501
|
'buckets': ([KeyInfoBucketsInner],), # noqa: E501
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,7 @@ class KeyInfo(ModelNormal):
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
name (str): [optional] # noqa: E501
|
name (str): [optional] # noqa: E501
|
||||||
access_key_id (str): [optional] # noqa: E501
|
access_key_id (str): [optional] # noqa: E501
|
||||||
secret_access_key (str): [optional] # noqa: E501
|
secret_access_key (str, none_type): [optional] # noqa: E501
|
||||||
permissions (KeyInfoPermissions): [optional] # noqa: E501
|
permissions (KeyInfoPermissions): [optional] # noqa: E501
|
||||||
buckets ([KeyInfoBucketsInner]): [optional] # noqa: E501
|
buckets ([KeyInfoBucketsInner]): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
@ -242,7 +242,7 @@ class KeyInfo(ModelNormal):
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
name (str): [optional] # noqa: E501
|
name (str): [optional] # noqa: E501
|
||||||
access_key_id (str): [optional] # noqa: E501
|
access_key_id (str): [optional] # noqa: E501
|
||||||
secret_access_key (str): [optional] # noqa: E501
|
secret_access_key (str, none_type): [optional] # noqa: E501
|
||||||
permissions (KeyInfoPermissions): [optional] # noqa: E501
|
permissions (KeyInfoPermissions): [optional] # noqa: E501
|
||||||
buckets ([KeyInfoBucketsInner]): [optional] # noqa: E501
|
buckets ([KeyInfoBucketsInner]): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -82,8 +82,8 @@ class NodeClusterInfo(ModelNormal):
|
||||||
"""
|
"""
|
||||||
return {
|
return {
|
||||||
'zone': (str,), # noqa: E501
|
'zone': (str,), # noqa: E501
|
||||||
'capacity': (int, none_type,), # noqa: E501
|
|
||||||
'tags': ([str],), # noqa: E501
|
'tags': ([str],), # noqa: E501
|
||||||
|
'capacity': (int, none_type,), # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
|
@ -93,8 +93,8 @@ class NodeClusterInfo(ModelNormal):
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
'zone': 'zone', # noqa: E501
|
'zone': 'zone', # noqa: E501
|
||||||
'capacity': 'capacity', # noqa: E501
|
|
||||||
'tags': 'tags', # noqa: E501
|
'tags': 'tags', # noqa: E501
|
||||||
|
'capacity': 'capacity', # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
read_only_vars = {
|
read_only_vars = {
|
||||||
|
@ -104,12 +104,11 @@ class NodeClusterInfo(ModelNormal):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@convert_js_args_to_python_args
|
@convert_js_args_to_python_args
|
||||||
def _from_openapi_data(cls, zone, capacity, tags, *args, **kwargs): # noqa: E501
|
def _from_openapi_data(cls, zone, tags, *args, **kwargs): # noqa: E501
|
||||||
"""NodeClusterInfo - a model defined in OpenAPI
|
"""NodeClusterInfo - a model defined in OpenAPI
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
zone (str):
|
zone (str):
|
||||||
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:
|
||||||
|
@ -143,6 +142,7 @@ class NodeClusterInfo(ModelNormal):
|
||||||
Animal class but this time we won't travel
|
Animal class but this time we won't travel
|
||||||
through its discriminator because we passed in
|
through its discriminator because we passed in
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
|
capacity (int, none_type): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
@ -175,7 +175,6 @@ class NodeClusterInfo(ModelNormal):
|
||||||
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||||
|
|
||||||
self.zone = zone
|
self.zone = zone
|
||||||
self.capacity = capacity
|
|
||||||
self.tags = tags
|
self.tags = tags
|
||||||
for var_name, var_value in kwargs.items():
|
for var_name, var_value in kwargs.items():
|
||||||
if var_name not in self.attribute_map and \
|
if var_name not in self.attribute_map and \
|
||||||
|
@ -197,12 +196,11 @@ class NodeClusterInfo(ModelNormal):
|
||||||
])
|
])
|
||||||
|
|
||||||
@convert_js_args_to_python_args
|
@convert_js_args_to_python_args
|
||||||
def __init__(self, zone, capacity, tags, *args, **kwargs): # noqa: E501
|
def __init__(self, zone, tags, *args, **kwargs): # noqa: E501
|
||||||
"""NodeClusterInfo - a model defined in OpenAPI
|
"""NodeClusterInfo - a model defined in OpenAPI
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
zone (str):
|
zone (str):
|
||||||
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:
|
||||||
|
@ -236,6 +234,7 @@ class NodeClusterInfo(ModelNormal):
|
||||||
Animal class but this time we won't travel
|
Animal class but this time we won't travel
|
||||||
through its discriminator because we passed in
|
through its discriminator because we passed in
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
|
capacity (int, none_type): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
@ -266,7 +265,6 @@ class NodeClusterInfo(ModelNormal):
|
||||||
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||||
|
|
||||||
self.zone = zone
|
self.zone = zone
|
||||||
self.capacity = capacity
|
|
||||||
self.tags = tags
|
self.tags = tags
|
||||||
for var_name, var_value in kwargs.items():
|
for var_name, var_value in kwargs.items():
|
||||||
if var_name not in self.attribute_map and \
|
if var_name not in self.attribute_map and \
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ class NodeNetworkInfo(ModelNormal):
|
||||||
'is_up': (bool,), # noqa: E501
|
'is_up': (bool,), # noqa: E501
|
||||||
'last_seen_secs_ago': (int, none_type,), # noqa: E501
|
'last_seen_secs_ago': (int, none_type,), # noqa: E501
|
||||||
'hostname': (str,), # noqa: E501
|
'hostname': (str,), # noqa: E501
|
||||||
|
'id': (str,), # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
|
@ -94,9 +95,10 @@ class NodeNetworkInfo(ModelNormal):
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
'addr': 'addr', # noqa: E501
|
'addr': 'addr', # noqa: E501
|
||||||
'is_up': 'is_up', # noqa: E501
|
'is_up': 'isUp', # noqa: E501
|
||||||
'last_seen_secs_ago': 'last_seen_secs_ago', # noqa: E501
|
'last_seen_secs_ago': 'lastSeenSecsAgo', # noqa: E501
|
||||||
'hostname': 'hostname', # noqa: E501
|
'hostname': 'hostname', # noqa: E501
|
||||||
|
'id': 'id', # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
read_only_vars = {
|
read_only_vars = {
|
||||||
|
@ -146,6 +148,7 @@ class NodeNetworkInfo(ModelNormal):
|
||||||
Animal class but this time we won't travel
|
Animal class but this time we won't travel
|
||||||
through its discriminator because we passed in
|
through its discriminator because we passed in
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
|
id (str): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
@ -241,6 +244,7 @@ class NodeNetworkInfo(ModelNormal):
|
||||||
Animal class but this time we won't travel
|
Animal class but this time we won't travel
|
||||||
through its discriminator because we passed in
|
through its discriminator because we passed in
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
|
id (str): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
|
338
garage_admin_sdk/model/node_role_change.py
Normal file
338
garage_admin_sdk/model/node_role_change.py
Normal file
|
@ -0,0 +1,338 @@
|
||||||
|
"""
|
||||||
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
|
The version of the OpenAPI document: v0.9.0
|
||||||
|
Generated by: https://openapi-generator.tech
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
import re # noqa: F401
|
||||||
|
import sys # noqa: F401
|
||||||
|
|
||||||
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
|
ApiTypeError,
|
||||||
|
ModelComposed,
|
||||||
|
ModelNormal,
|
||||||
|
ModelSimple,
|
||||||
|
cached_property,
|
||||||
|
change_keys_js_to_python,
|
||||||
|
convert_js_args_to_python_args,
|
||||||
|
date,
|
||||||
|
datetime,
|
||||||
|
file_type,
|
||||||
|
none_type,
|
||||||
|
validate_get_composed_info,
|
||||||
|
OpenApiModel
|
||||||
|
)
|
||||||
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
def lazy_import():
|
||||||
|
from garage_admin_sdk.model.node_role_remove import NodeRoleRemove
|
||||||
|
from garage_admin_sdk.model.node_role_update import NodeRoleUpdate
|
||||||
|
globals()['NodeRoleRemove'] = NodeRoleRemove
|
||||||
|
globals()['NodeRoleUpdate'] = NodeRoleUpdate
|
||||||
|
|
||||||
|
|
||||||
|
class NodeRoleChange(ModelComposed):
|
||||||
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
|
Ref: https://openapi-generator.tech
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
|
||||||
|
Attributes:
|
||||||
|
allowed_values (dict): The key is the tuple path to the attribute
|
||||||
|
and the for var_name this is (var_name,). The value is a dict
|
||||||
|
with a capitalized key describing the allowed value and an allowed
|
||||||
|
value. These dicts store the allowed enum values.
|
||||||
|
attribute_map (dict): The key is attribute name
|
||||||
|
and the value is json key in definition.
|
||||||
|
discriminator_value_class_map (dict): A dict to go from the discriminator
|
||||||
|
variable value to the discriminator class name.
|
||||||
|
validations (dict): The key is the tuple path to the attribute
|
||||||
|
and the for var_name this is (var_name,). The value is a dict
|
||||||
|
that stores validations for max_length, min_length, max_items,
|
||||||
|
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
||||||
|
inclusive_minimum, and regex.
|
||||||
|
additional_properties_type (tuple): A tuple of classes accepted
|
||||||
|
as additional properties values.
|
||||||
|
"""
|
||||||
|
|
||||||
|
allowed_values = {
|
||||||
|
}
|
||||||
|
|
||||||
|
validations = {
|
||||||
|
}
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def additional_properties_type():
|
||||||
|
"""
|
||||||
|
This must be a method because a model may have properties that are
|
||||||
|
of type self, this must run after the class is loaded
|
||||||
|
"""
|
||||||
|
lazy_import()
|
||||||
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
||||||
|
|
||||||
|
_nullable = False
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def openapi_types():
|
||||||
|
"""
|
||||||
|
This must be a method because a model may have properties that are
|
||||||
|
of type self, this must run after the class is loaded
|
||||||
|
|
||||||
|
Returns
|
||||||
|
openapi_types (dict): The key is attribute name
|
||||||
|
and the value is attribute type.
|
||||||
|
"""
|
||||||
|
lazy_import()
|
||||||
|
return {
|
||||||
|
'id': (str,), # noqa: E501
|
||||||
|
'remove': (bool,), # noqa: E501
|
||||||
|
'zone': (str,), # noqa: E501
|
||||||
|
'capacity': (int, none_type,), # noqa: E501
|
||||||
|
'tags': ([str],), # noqa: E501
|
||||||
|
}
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def discriminator():
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
'id': 'id', # noqa: E501
|
||||||
|
'remove': 'remove', # noqa: E501
|
||||||
|
'zone': 'zone', # noqa: E501
|
||||||
|
'capacity': 'capacity', # noqa: E501
|
||||||
|
'tags': 'tags', # noqa: E501
|
||||||
|
}
|
||||||
|
|
||||||
|
read_only_vars = {
|
||||||
|
}
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
@convert_js_args_to_python_args
|
||||||
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
||||||
|
"""NodeRoleChange - a model defined in OpenAPI
|
||||||
|
|
||||||
|
Keyword Args:
|
||||||
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
|
will be type checked and a TypeError will be
|
||||||
|
raised if the wrong type is input.
|
||||||
|
Defaults to True
|
||||||
|
_path_to_item (tuple/list): This is a list of keys or values to
|
||||||
|
drill down to the model in received_data
|
||||||
|
when deserializing a response
|
||||||
|
_spec_property_naming (bool): True if the variable names in the input data
|
||||||
|
are serialized names, as specified in the OpenAPI document.
|
||||||
|
False if the variable names in the input data
|
||||||
|
are pythonic names, e.g. snake case (default)
|
||||||
|
_configuration (Configuration): the instance to use when
|
||||||
|
deserializing a file_type parameter.
|
||||||
|
If passed, type conversion is attempted
|
||||||
|
If omitted no type conversion is done.
|
||||||
|
_visited_composed_classes (tuple): This stores a tuple of
|
||||||
|
classes that we have traveled through so that
|
||||||
|
if we see that class again we will not use its
|
||||||
|
discriminator again.
|
||||||
|
When traveling through a discriminator, the
|
||||||
|
composed schema that is
|
||||||
|
is traveled through is added to this set.
|
||||||
|
For example if Animal has a discriminator
|
||||||
|
petType and we pass in "Dog", and the class Dog
|
||||||
|
allOf includes Animal, we move through Animal
|
||||||
|
once using the discriminator, and pick Dog.
|
||||||
|
Then in Dog, we will make an instance of the
|
||||||
|
Animal class but this time we won't travel
|
||||||
|
through its discriminator because we passed in
|
||||||
|
_visited_composed_classes = (Animal,)
|
||||||
|
id (str): [optional] # noqa: E501
|
||||||
|
remove (bool): [optional] # noqa: E501
|
||||||
|
zone (str): [optional] # noqa: E501
|
||||||
|
capacity (int, none_type): [optional] # noqa: E501
|
||||||
|
tags ([str]): [optional] # noqa: E501
|
||||||
|
"""
|
||||||
|
|
||||||
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||||
|
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||||
|
_configuration = kwargs.pop('_configuration', None)
|
||||||
|
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||||
|
|
||||||
|
self = super(OpenApiModel, cls).__new__(cls)
|
||||||
|
|
||||||
|
if args:
|
||||||
|
for arg in args:
|
||||||
|
if isinstance(arg, dict):
|
||||||
|
kwargs.update(arg)
|
||||||
|
else:
|
||||||
|
raise ApiTypeError(
|
||||||
|
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||||
|
args,
|
||||||
|
self.__class__.__name__,
|
||||||
|
),
|
||||||
|
path_to_item=_path_to_item,
|
||||||
|
valid_classes=(self.__class__,),
|
||||||
|
)
|
||||||
|
|
||||||
|
self._data_store = {}
|
||||||
|
self._check_type = _check_type
|
||||||
|
self._spec_property_naming = _spec_property_naming
|
||||||
|
self._path_to_item = _path_to_item
|
||||||
|
self._configuration = _configuration
|
||||||
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||||
|
|
||||||
|
constant_args = {
|
||||||
|
'_check_type': _check_type,
|
||||||
|
'_path_to_item': _path_to_item,
|
||||||
|
'_spec_property_naming': _spec_property_naming,
|
||||||
|
'_configuration': _configuration,
|
||||||
|
'_visited_composed_classes': self._visited_composed_classes,
|
||||||
|
}
|
||||||
|
composed_info = validate_get_composed_info(
|
||||||
|
constant_args, kwargs, self)
|
||||||
|
self._composed_instances = composed_info[0]
|
||||||
|
self._var_name_to_model_instances = composed_info[1]
|
||||||
|
self._additional_properties_model_instances = composed_info[2]
|
||||||
|
discarded_args = composed_info[3]
|
||||||
|
|
||||||
|
for var_name, var_value in kwargs.items():
|
||||||
|
if var_name in discarded_args and \
|
||||||
|
self._configuration is not None and \
|
||||||
|
self._configuration.discard_unknown_keys and \
|
||||||
|
self._additional_properties_model_instances:
|
||||||
|
# discard variable.
|
||||||
|
continue
|
||||||
|
setattr(self, var_name, var_value)
|
||||||
|
|
||||||
|
return self
|
||||||
|
|
||||||
|
required_properties = set([
|
||||||
|
'_data_store',
|
||||||
|
'_check_type',
|
||||||
|
'_spec_property_naming',
|
||||||
|
'_path_to_item',
|
||||||
|
'_configuration',
|
||||||
|
'_visited_composed_classes',
|
||||||
|
'_composed_instances',
|
||||||
|
'_var_name_to_model_instances',
|
||||||
|
'_additional_properties_model_instances',
|
||||||
|
])
|
||||||
|
|
||||||
|
@convert_js_args_to_python_args
|
||||||
|
def __init__(self, *args, **kwargs): # noqa: E501
|
||||||
|
"""NodeRoleChange - a model defined in OpenAPI
|
||||||
|
|
||||||
|
Keyword Args:
|
||||||
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
|
will be type checked and a TypeError will be
|
||||||
|
raised if the wrong type is input.
|
||||||
|
Defaults to True
|
||||||
|
_path_to_item (tuple/list): This is a list of keys or values to
|
||||||
|
drill down to the model in received_data
|
||||||
|
when deserializing a response
|
||||||
|
_spec_property_naming (bool): True if the variable names in the input data
|
||||||
|
are serialized names, as specified in the OpenAPI document.
|
||||||
|
False if the variable names in the input data
|
||||||
|
are pythonic names, e.g. snake case (default)
|
||||||
|
_configuration (Configuration): the instance to use when
|
||||||
|
deserializing a file_type parameter.
|
||||||
|
If passed, type conversion is attempted
|
||||||
|
If omitted no type conversion is done.
|
||||||
|
_visited_composed_classes (tuple): This stores a tuple of
|
||||||
|
classes that we have traveled through so that
|
||||||
|
if we see that class again we will not use its
|
||||||
|
discriminator again.
|
||||||
|
When traveling through a discriminator, the
|
||||||
|
composed schema that is
|
||||||
|
is traveled through is added to this set.
|
||||||
|
For example if Animal has a discriminator
|
||||||
|
petType and we pass in "Dog", and the class Dog
|
||||||
|
allOf includes Animal, we move through Animal
|
||||||
|
once using the discriminator, and pick Dog.
|
||||||
|
Then in Dog, we will make an instance of the
|
||||||
|
Animal class but this time we won't travel
|
||||||
|
through its discriminator because we passed in
|
||||||
|
_visited_composed_classes = (Animal,)
|
||||||
|
id (str): [optional] # noqa: E501
|
||||||
|
remove (bool): [optional] # noqa: E501
|
||||||
|
zone (str): [optional] # noqa: E501
|
||||||
|
capacity (int, none_type): [optional] # noqa: E501
|
||||||
|
tags ([str]): [optional] # noqa: E501
|
||||||
|
"""
|
||||||
|
|
||||||
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||||
|
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||||
|
_configuration = kwargs.pop('_configuration', None)
|
||||||
|
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||||
|
|
||||||
|
if args:
|
||||||
|
for arg in args:
|
||||||
|
if isinstance(arg, dict):
|
||||||
|
kwargs.update(arg)
|
||||||
|
else:
|
||||||
|
raise ApiTypeError(
|
||||||
|
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||||
|
args,
|
||||||
|
self.__class__.__name__,
|
||||||
|
),
|
||||||
|
path_to_item=_path_to_item,
|
||||||
|
valid_classes=(self.__class__,),
|
||||||
|
)
|
||||||
|
|
||||||
|
self._data_store = {}
|
||||||
|
self._check_type = _check_type
|
||||||
|
self._spec_property_naming = _spec_property_naming
|
||||||
|
self._path_to_item = _path_to_item
|
||||||
|
self._configuration = _configuration
|
||||||
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||||
|
|
||||||
|
constant_args = {
|
||||||
|
'_check_type': _check_type,
|
||||||
|
'_path_to_item': _path_to_item,
|
||||||
|
'_spec_property_naming': _spec_property_naming,
|
||||||
|
'_configuration': _configuration,
|
||||||
|
'_visited_composed_classes': self._visited_composed_classes,
|
||||||
|
}
|
||||||
|
composed_info = validate_get_composed_info(
|
||||||
|
constant_args, kwargs, self)
|
||||||
|
self._composed_instances = composed_info[0]
|
||||||
|
self._var_name_to_model_instances = composed_info[1]
|
||||||
|
self._additional_properties_model_instances = composed_info[2]
|
||||||
|
discarded_args = composed_info[3]
|
||||||
|
|
||||||
|
for var_name, var_value in kwargs.items():
|
||||||
|
if var_name in discarded_args and \
|
||||||
|
self._configuration is not None and \
|
||||||
|
self._configuration.discard_unknown_keys and \
|
||||||
|
self._additional_properties_model_instances:
|
||||||
|
# discard variable.
|
||||||
|
continue
|
||||||
|
setattr(self, var_name, var_value)
|
||||||
|
if var_name in self.read_only_vars:
|
||||||
|
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
||||||
|
f"class with read only attributes.")
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def _composed_schemas():
|
||||||
|
# we need this here to make our import statements work
|
||||||
|
# we must store _composed_schemas in here so the code is only run
|
||||||
|
# when we invoke this method. If we kept this at the class
|
||||||
|
# level we would get an error because the class level
|
||||||
|
# code would be run when this module is imported, and these composed
|
||||||
|
# classes don't exist yet because their module has not finished
|
||||||
|
# loading
|
||||||
|
lazy_import()
|
||||||
|
return {
|
||||||
|
'anyOf': [
|
||||||
|
],
|
||||||
|
'allOf': [
|
||||||
|
],
|
||||||
|
'oneOf': [
|
||||||
|
NodeRoleRemove,
|
||||||
|
NodeRoleUpdate,
|
||||||
|
],
|
||||||
|
}
|
273
garage_admin_sdk/model/node_role_remove.py
Normal file
273
garage_admin_sdk/model/node_role_remove.py
Normal file
|
@ -0,0 +1,273 @@
|
||||||
|
"""
|
||||||
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
|
The version of the OpenAPI document: v0.9.0
|
||||||
|
Generated by: https://openapi-generator.tech
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
import re # noqa: F401
|
||||||
|
import sys # noqa: F401
|
||||||
|
|
||||||
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
|
ApiTypeError,
|
||||||
|
ModelComposed,
|
||||||
|
ModelNormal,
|
||||||
|
ModelSimple,
|
||||||
|
cached_property,
|
||||||
|
change_keys_js_to_python,
|
||||||
|
convert_js_args_to_python_args,
|
||||||
|
date,
|
||||||
|
datetime,
|
||||||
|
file_type,
|
||||||
|
none_type,
|
||||||
|
validate_get_composed_info,
|
||||||
|
OpenApiModel
|
||||||
|
)
|
||||||
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class NodeRoleRemove(ModelNormal):
|
||||||
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
|
Ref: https://openapi-generator.tech
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
|
||||||
|
Attributes:
|
||||||
|
allowed_values (dict): The key is the tuple path to the attribute
|
||||||
|
and the for var_name this is (var_name,). The value is a dict
|
||||||
|
with a capitalized key describing the allowed value and an allowed
|
||||||
|
value. These dicts store the allowed enum values.
|
||||||
|
attribute_map (dict): The key is attribute name
|
||||||
|
and the value is json key in definition.
|
||||||
|
discriminator_value_class_map (dict): A dict to go from the discriminator
|
||||||
|
variable value to the discriminator class name.
|
||||||
|
validations (dict): The key is the tuple path to the attribute
|
||||||
|
and the for var_name this is (var_name,). The value is a dict
|
||||||
|
that stores validations for max_length, min_length, max_items,
|
||||||
|
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
||||||
|
inclusive_minimum, and regex.
|
||||||
|
additional_properties_type (tuple): A tuple of classes accepted
|
||||||
|
as additional properties values.
|
||||||
|
"""
|
||||||
|
|
||||||
|
allowed_values = {
|
||||||
|
}
|
||||||
|
|
||||||
|
validations = {
|
||||||
|
}
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def additional_properties_type():
|
||||||
|
"""
|
||||||
|
This must be a method because a model may have properties that are
|
||||||
|
of type self, this must run after the class is loaded
|
||||||
|
"""
|
||||||
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
||||||
|
|
||||||
|
_nullable = False
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def openapi_types():
|
||||||
|
"""
|
||||||
|
This must be a method because a model may have properties that are
|
||||||
|
of type self, this must run after the class is loaded
|
||||||
|
|
||||||
|
Returns
|
||||||
|
openapi_types (dict): The key is attribute name
|
||||||
|
and the value is attribute type.
|
||||||
|
"""
|
||||||
|
return {
|
||||||
|
'remove': (bool,), # noqa: E501
|
||||||
|
'id': (str,), # noqa: E501
|
||||||
|
}
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def discriminator():
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
'remove': 'remove', # noqa: E501
|
||||||
|
'id': 'id', # noqa: E501
|
||||||
|
}
|
||||||
|
|
||||||
|
read_only_vars = {
|
||||||
|
}
|
||||||
|
|
||||||
|
_composed_schemas = {}
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
@convert_js_args_to_python_args
|
||||||
|
def _from_openapi_data(cls, remove, *args, **kwargs): # noqa: E501
|
||||||
|
"""NodeRoleRemove - a model defined in OpenAPI
|
||||||
|
|
||||||
|
Args:
|
||||||
|
remove (bool):
|
||||||
|
|
||||||
|
Keyword Args:
|
||||||
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
|
will be type checked and a TypeError will be
|
||||||
|
raised if the wrong type is input.
|
||||||
|
Defaults to True
|
||||||
|
_path_to_item (tuple/list): This is a list of keys or values to
|
||||||
|
drill down to the model in received_data
|
||||||
|
when deserializing a response
|
||||||
|
_spec_property_naming (bool): True if the variable names in the input data
|
||||||
|
are serialized names, as specified in the OpenAPI document.
|
||||||
|
False if the variable names in the input data
|
||||||
|
are pythonic names, e.g. snake case (default)
|
||||||
|
_configuration (Configuration): the instance to use when
|
||||||
|
deserializing a file_type parameter.
|
||||||
|
If passed, type conversion is attempted
|
||||||
|
If omitted no type conversion is done.
|
||||||
|
_visited_composed_classes (tuple): This stores a tuple of
|
||||||
|
classes that we have traveled through so that
|
||||||
|
if we see that class again we will not use its
|
||||||
|
discriminator again.
|
||||||
|
When traveling through a discriminator, the
|
||||||
|
composed schema that is
|
||||||
|
is traveled through is added to this set.
|
||||||
|
For example if Animal has a discriminator
|
||||||
|
petType and we pass in "Dog", and the class Dog
|
||||||
|
allOf includes Animal, we move through Animal
|
||||||
|
once using the discriminator, and pick Dog.
|
||||||
|
Then in Dog, we will make an instance of the
|
||||||
|
Animal class but this time we won't travel
|
||||||
|
through its discriminator because we passed in
|
||||||
|
_visited_composed_classes = (Animal,)
|
||||||
|
id (str): [optional] # noqa: E501
|
||||||
|
"""
|
||||||
|
|
||||||
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
||||||
|
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||||
|
_configuration = kwargs.pop('_configuration', None)
|
||||||
|
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||||
|
|
||||||
|
self = super(OpenApiModel, cls).__new__(cls)
|
||||||
|
|
||||||
|
if args:
|
||||||
|
for arg in args:
|
||||||
|
if isinstance(arg, dict):
|
||||||
|
kwargs.update(arg)
|
||||||
|
else:
|
||||||
|
raise ApiTypeError(
|
||||||
|
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||||
|
args,
|
||||||
|
self.__class__.__name__,
|
||||||
|
),
|
||||||
|
path_to_item=_path_to_item,
|
||||||
|
valid_classes=(self.__class__,),
|
||||||
|
)
|
||||||
|
|
||||||
|
self._data_store = {}
|
||||||
|
self._check_type = _check_type
|
||||||
|
self._spec_property_naming = _spec_property_naming
|
||||||
|
self._path_to_item = _path_to_item
|
||||||
|
self._configuration = _configuration
|
||||||
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||||
|
|
||||||
|
self.remove = remove
|
||||||
|
for var_name, var_value in kwargs.items():
|
||||||
|
if var_name not in self.attribute_map and \
|
||||||
|
self._configuration is not None and \
|
||||||
|
self._configuration.discard_unknown_keys and \
|
||||||
|
self.additional_properties_type is None:
|
||||||
|
# discard variable.
|
||||||
|
continue
|
||||||
|
setattr(self, var_name, var_value)
|
||||||
|
return self
|
||||||
|
|
||||||
|
required_properties = set([
|
||||||
|
'_data_store',
|
||||||
|
'_check_type',
|
||||||
|
'_spec_property_naming',
|
||||||
|
'_path_to_item',
|
||||||
|
'_configuration',
|
||||||
|
'_visited_composed_classes',
|
||||||
|
])
|
||||||
|
|
||||||
|
@convert_js_args_to_python_args
|
||||||
|
def __init__(self, remove, *args, **kwargs): # noqa: E501
|
||||||
|
"""NodeRoleRemove - a model defined in OpenAPI
|
||||||
|
|
||||||
|
Args:
|
||||||
|
remove (bool):
|
||||||
|
|
||||||
|
Keyword Args:
|
||||||
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
|
will be type checked and a TypeError will be
|
||||||
|
raised if the wrong type is input.
|
||||||
|
Defaults to True
|
||||||
|
_path_to_item (tuple/list): This is a list of keys or values to
|
||||||
|
drill down to the model in received_data
|
||||||
|
when deserializing a response
|
||||||
|
_spec_property_naming (bool): True if the variable names in the input data
|
||||||
|
are serialized names, as specified in the OpenAPI document.
|
||||||
|
False if the variable names in the input data
|
||||||
|
are pythonic names, e.g. snake case (default)
|
||||||
|
_configuration (Configuration): the instance to use when
|
||||||
|
deserializing a file_type parameter.
|
||||||
|
If passed, type conversion is attempted
|
||||||
|
If omitted no type conversion is done.
|
||||||
|
_visited_composed_classes (tuple): This stores a tuple of
|
||||||
|
classes that we have traveled through so that
|
||||||
|
if we see that class again we will not use its
|
||||||
|
discriminator again.
|
||||||
|
When traveling through a discriminator, the
|
||||||
|
composed schema that is
|
||||||
|
is traveled through is added to this set.
|
||||||
|
For example if Animal has a discriminator
|
||||||
|
petType and we pass in "Dog", and the class Dog
|
||||||
|
allOf includes Animal, we move through Animal
|
||||||
|
once using the discriminator, and pick Dog.
|
||||||
|
Then in Dog, we will make an instance of the
|
||||||
|
Animal class but this time we won't travel
|
||||||
|
through its discriminator because we passed in
|
||||||
|
_visited_composed_classes = (Animal,)
|
||||||
|
id (str): [optional] # noqa: E501
|
||||||
|
"""
|
||||||
|
|
||||||
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||||
|
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||||
|
_configuration = kwargs.pop('_configuration', None)
|
||||||
|
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||||
|
|
||||||
|
if args:
|
||||||
|
for arg in args:
|
||||||
|
if isinstance(arg, dict):
|
||||||
|
kwargs.update(arg)
|
||||||
|
else:
|
||||||
|
raise ApiTypeError(
|
||||||
|
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||||
|
args,
|
||||||
|
self.__class__.__name__,
|
||||||
|
),
|
||||||
|
path_to_item=_path_to_item,
|
||||||
|
valid_classes=(self.__class__,),
|
||||||
|
)
|
||||||
|
|
||||||
|
self._data_store = {}
|
||||||
|
self._check_type = _check_type
|
||||||
|
self._spec_property_naming = _spec_property_naming
|
||||||
|
self._path_to_item = _path_to_item
|
||||||
|
self._configuration = _configuration
|
||||||
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||||
|
|
||||||
|
self.remove = remove
|
||||||
|
for var_name, var_value in kwargs.items():
|
||||||
|
if var_name not in self.attribute_map and \
|
||||||
|
self._configuration is not None and \
|
||||||
|
self._configuration.discard_unknown_keys and \
|
||||||
|
self.additional_properties_type is None:
|
||||||
|
# discard variable.
|
||||||
|
continue
|
||||||
|
setattr(self, var_name, var_value)
|
||||||
|
if var_name in self.read_only_vars:
|
||||||
|
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
||||||
|
f"class with read only attributes.")
|
285
garage_admin_sdk/model/node_role_update.py
Normal file
285
garage_admin_sdk/model/node_role_update.py
Normal file
|
@ -0,0 +1,285 @@
|
||||||
|
"""
|
||||||
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
|
The version of the OpenAPI document: v0.9.0
|
||||||
|
Generated by: https://openapi-generator.tech
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
import re # noqa: F401
|
||||||
|
import sys # noqa: F401
|
||||||
|
|
||||||
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
|
ApiTypeError,
|
||||||
|
ModelComposed,
|
||||||
|
ModelNormal,
|
||||||
|
ModelSimple,
|
||||||
|
cached_property,
|
||||||
|
change_keys_js_to_python,
|
||||||
|
convert_js_args_to_python_args,
|
||||||
|
date,
|
||||||
|
datetime,
|
||||||
|
file_type,
|
||||||
|
none_type,
|
||||||
|
validate_get_composed_info,
|
||||||
|
OpenApiModel
|
||||||
|
)
|
||||||
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class NodeRoleUpdate(ModelNormal):
|
||||||
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||||
|
Ref: https://openapi-generator.tech
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
|
||||||
|
Attributes:
|
||||||
|
allowed_values (dict): The key is the tuple path to the attribute
|
||||||
|
and the for var_name this is (var_name,). The value is a dict
|
||||||
|
with a capitalized key describing the allowed value and an allowed
|
||||||
|
value. These dicts store the allowed enum values.
|
||||||
|
attribute_map (dict): The key is attribute name
|
||||||
|
and the value is json key in definition.
|
||||||
|
discriminator_value_class_map (dict): A dict to go from the discriminator
|
||||||
|
variable value to the discriminator class name.
|
||||||
|
validations (dict): The key is the tuple path to the attribute
|
||||||
|
and the for var_name this is (var_name,). The value is a dict
|
||||||
|
that stores validations for max_length, min_length, max_items,
|
||||||
|
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
||||||
|
inclusive_minimum, and regex.
|
||||||
|
additional_properties_type (tuple): A tuple of classes accepted
|
||||||
|
as additional properties values.
|
||||||
|
"""
|
||||||
|
|
||||||
|
allowed_values = {
|
||||||
|
}
|
||||||
|
|
||||||
|
validations = {
|
||||||
|
}
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def additional_properties_type():
|
||||||
|
"""
|
||||||
|
This must be a method because a model may have properties that are
|
||||||
|
of type self, this must run after the class is loaded
|
||||||
|
"""
|
||||||
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
||||||
|
|
||||||
|
_nullable = False
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def openapi_types():
|
||||||
|
"""
|
||||||
|
This must be a method because a model may have properties that are
|
||||||
|
of type self, this must run after the class is loaded
|
||||||
|
|
||||||
|
Returns
|
||||||
|
openapi_types (dict): The key is attribute name
|
||||||
|
and the value is attribute type.
|
||||||
|
"""
|
||||||
|
return {
|
||||||
|
'zone': (str,), # noqa: E501
|
||||||
|
'capacity': (int, none_type,), # noqa: E501
|
||||||
|
'tags': ([str],), # noqa: E501
|
||||||
|
'id': (str,), # noqa: E501
|
||||||
|
}
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def discriminator():
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
'zone': 'zone', # noqa: E501
|
||||||
|
'capacity': 'capacity', # noqa: E501
|
||||||
|
'tags': 'tags', # noqa: E501
|
||||||
|
'id': 'id', # noqa: E501
|
||||||
|
}
|
||||||
|
|
||||||
|
read_only_vars = {
|
||||||
|
}
|
||||||
|
|
||||||
|
_composed_schemas = {}
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
@convert_js_args_to_python_args
|
||||||
|
def _from_openapi_data(cls, zone, capacity, tags, *args, **kwargs): # noqa: E501
|
||||||
|
"""NodeRoleUpdate - a model defined in OpenAPI
|
||||||
|
|
||||||
|
Args:
|
||||||
|
zone (str):
|
||||||
|
capacity (int, none_type):
|
||||||
|
tags ([str]):
|
||||||
|
|
||||||
|
Keyword Args:
|
||||||
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
|
will be type checked and a TypeError will be
|
||||||
|
raised if the wrong type is input.
|
||||||
|
Defaults to True
|
||||||
|
_path_to_item (tuple/list): This is a list of keys or values to
|
||||||
|
drill down to the model in received_data
|
||||||
|
when deserializing a response
|
||||||
|
_spec_property_naming (bool): True if the variable names in the input data
|
||||||
|
are serialized names, as specified in the OpenAPI document.
|
||||||
|
False if the variable names in the input data
|
||||||
|
are pythonic names, e.g. snake case (default)
|
||||||
|
_configuration (Configuration): the instance to use when
|
||||||
|
deserializing a file_type parameter.
|
||||||
|
If passed, type conversion is attempted
|
||||||
|
If omitted no type conversion is done.
|
||||||
|
_visited_composed_classes (tuple): This stores a tuple of
|
||||||
|
classes that we have traveled through so that
|
||||||
|
if we see that class again we will not use its
|
||||||
|
discriminator again.
|
||||||
|
When traveling through a discriminator, the
|
||||||
|
composed schema that is
|
||||||
|
is traveled through is added to this set.
|
||||||
|
For example if Animal has a discriminator
|
||||||
|
petType and we pass in "Dog", and the class Dog
|
||||||
|
allOf includes Animal, we move through Animal
|
||||||
|
once using the discriminator, and pick Dog.
|
||||||
|
Then in Dog, we will make an instance of the
|
||||||
|
Animal class but this time we won't travel
|
||||||
|
through its discriminator because we passed in
|
||||||
|
_visited_composed_classes = (Animal,)
|
||||||
|
id (str): [optional] # noqa: E501
|
||||||
|
"""
|
||||||
|
|
||||||
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
||||||
|
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||||
|
_configuration = kwargs.pop('_configuration', None)
|
||||||
|
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||||
|
|
||||||
|
self = super(OpenApiModel, cls).__new__(cls)
|
||||||
|
|
||||||
|
if args:
|
||||||
|
for arg in args:
|
||||||
|
if isinstance(arg, dict):
|
||||||
|
kwargs.update(arg)
|
||||||
|
else:
|
||||||
|
raise ApiTypeError(
|
||||||
|
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||||
|
args,
|
||||||
|
self.__class__.__name__,
|
||||||
|
),
|
||||||
|
path_to_item=_path_to_item,
|
||||||
|
valid_classes=(self.__class__,),
|
||||||
|
)
|
||||||
|
|
||||||
|
self._data_store = {}
|
||||||
|
self._check_type = _check_type
|
||||||
|
self._spec_property_naming = _spec_property_naming
|
||||||
|
self._path_to_item = _path_to_item
|
||||||
|
self._configuration = _configuration
|
||||||
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||||
|
|
||||||
|
self.zone = zone
|
||||||
|
self.capacity = capacity
|
||||||
|
self.tags = tags
|
||||||
|
for var_name, var_value in kwargs.items():
|
||||||
|
if var_name not in self.attribute_map and \
|
||||||
|
self._configuration is not None and \
|
||||||
|
self._configuration.discard_unknown_keys and \
|
||||||
|
self.additional_properties_type is None:
|
||||||
|
# discard variable.
|
||||||
|
continue
|
||||||
|
setattr(self, var_name, var_value)
|
||||||
|
return self
|
||||||
|
|
||||||
|
required_properties = set([
|
||||||
|
'_data_store',
|
||||||
|
'_check_type',
|
||||||
|
'_spec_property_naming',
|
||||||
|
'_path_to_item',
|
||||||
|
'_configuration',
|
||||||
|
'_visited_composed_classes',
|
||||||
|
])
|
||||||
|
|
||||||
|
@convert_js_args_to_python_args
|
||||||
|
def __init__(self, zone, capacity, tags, *args, **kwargs): # noqa: E501
|
||||||
|
"""NodeRoleUpdate - a model defined in OpenAPI
|
||||||
|
|
||||||
|
Args:
|
||||||
|
zone (str):
|
||||||
|
capacity (int, none_type):
|
||||||
|
tags ([str]):
|
||||||
|
|
||||||
|
Keyword Args:
|
||||||
|
_check_type (bool): if True, values for parameters in openapi_types
|
||||||
|
will be type checked and a TypeError will be
|
||||||
|
raised if the wrong type is input.
|
||||||
|
Defaults to True
|
||||||
|
_path_to_item (tuple/list): This is a list of keys or values to
|
||||||
|
drill down to the model in received_data
|
||||||
|
when deserializing a response
|
||||||
|
_spec_property_naming (bool): True if the variable names in the input data
|
||||||
|
are serialized names, as specified in the OpenAPI document.
|
||||||
|
False if the variable names in the input data
|
||||||
|
are pythonic names, e.g. snake case (default)
|
||||||
|
_configuration (Configuration): the instance to use when
|
||||||
|
deserializing a file_type parameter.
|
||||||
|
If passed, type conversion is attempted
|
||||||
|
If omitted no type conversion is done.
|
||||||
|
_visited_composed_classes (tuple): This stores a tuple of
|
||||||
|
classes that we have traveled through so that
|
||||||
|
if we see that class again we will not use its
|
||||||
|
discriminator again.
|
||||||
|
When traveling through a discriminator, the
|
||||||
|
composed schema that is
|
||||||
|
is traveled through is added to this set.
|
||||||
|
For example if Animal has a discriminator
|
||||||
|
petType and we pass in "Dog", and the class Dog
|
||||||
|
allOf includes Animal, we move through Animal
|
||||||
|
once using the discriminator, and pick Dog.
|
||||||
|
Then in Dog, we will make an instance of the
|
||||||
|
Animal class but this time we won't travel
|
||||||
|
through its discriminator because we passed in
|
||||||
|
_visited_composed_classes = (Animal,)
|
||||||
|
id (str): [optional] # noqa: E501
|
||||||
|
"""
|
||||||
|
|
||||||
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
||||||
|
_path_to_item = kwargs.pop('_path_to_item', ())
|
||||||
|
_configuration = kwargs.pop('_configuration', None)
|
||||||
|
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
||||||
|
|
||||||
|
if args:
|
||||||
|
for arg in args:
|
||||||
|
if isinstance(arg, dict):
|
||||||
|
kwargs.update(arg)
|
||||||
|
else:
|
||||||
|
raise ApiTypeError(
|
||||||
|
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
||||||
|
args,
|
||||||
|
self.__class__.__name__,
|
||||||
|
),
|
||||||
|
path_to_item=_path_to_item,
|
||||||
|
valid_classes=(self.__class__,),
|
||||||
|
)
|
||||||
|
|
||||||
|
self._data_store = {}
|
||||||
|
self._check_type = _check_type
|
||||||
|
self._spec_property_naming = _spec_property_naming
|
||||||
|
self._path_to_item = _path_to_item
|
||||||
|
self._configuration = _configuration
|
||||||
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
||||||
|
|
||||||
|
self.zone = zone
|
||||||
|
self.capacity = capacity
|
||||||
|
self.tags = tags
|
||||||
|
for var_name, var_value in kwargs.items():
|
||||||
|
if var_name not in self.attribute_map and \
|
||||||
|
self._configuration is not None and \
|
||||||
|
self._configuration.discard_unknown_keys and \
|
||||||
|
self.additional_properties_type is None:
|
||||||
|
# discard variable.
|
||||||
|
continue
|
||||||
|
setattr(self, var_name, var_value)
|
||||||
|
if var_name in self.read_only_vars:
|
||||||
|
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
||||||
|
f"class with read only attributes.")
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ from garage_admin_sdk.model.add_key_request import AddKeyRequest
|
||||||
from garage_admin_sdk.model.add_node200_response_inner import AddNode200ResponseInner
|
from garage_admin_sdk.model.add_node200_response_inner import AddNode200ResponseInner
|
||||||
from garage_admin_sdk.model.allow_bucket_key_request import AllowBucketKeyRequest
|
from garage_admin_sdk.model.allow_bucket_key_request import AllowBucketKeyRequest
|
||||||
from garage_admin_sdk.model.allow_bucket_key_request_permissions import AllowBucketKeyRequestPermissions
|
from garage_admin_sdk.model.allow_bucket_key_request_permissions import AllowBucketKeyRequestPermissions
|
||||||
|
from garage_admin_sdk.model.apply_layout200_response import ApplyLayout200Response
|
||||||
from garage_admin_sdk.model.bucket_info import BucketInfo
|
from garage_admin_sdk.model.bucket_info import BucketInfo
|
||||||
from garage_admin_sdk.model.bucket_info_quotas import BucketInfoQuotas
|
from garage_admin_sdk.model.bucket_info_quotas import BucketInfoQuotas
|
||||||
from garage_admin_sdk.model.bucket_info_website_config import BucketInfoWebsiteConfig
|
from garage_admin_sdk.model.bucket_info_website_config import BucketInfoWebsiteConfig
|
||||||
|
@ -33,6 +34,9 @@ from garage_admin_sdk.model.list_buckets200_response_inner_local_aliases_inner i
|
||||||
from garage_admin_sdk.model.list_keys200_response_inner import ListKeys200ResponseInner
|
from garage_admin_sdk.model.list_keys200_response_inner import ListKeys200ResponseInner
|
||||||
from garage_admin_sdk.model.node_cluster_info import NodeClusterInfo
|
from garage_admin_sdk.model.node_cluster_info import NodeClusterInfo
|
||||||
from garage_admin_sdk.model.node_network_info import NodeNetworkInfo
|
from garage_admin_sdk.model.node_network_info import NodeNetworkInfo
|
||||||
|
from garage_admin_sdk.model.node_role_change import NodeRoleChange
|
||||||
|
from garage_admin_sdk.model.node_role_remove import NodeRoleRemove
|
||||||
|
from garage_admin_sdk.model.node_role_update import NodeRoleUpdate
|
||||||
from garage_admin_sdk.model.update_bucket_request import UpdateBucketRequest
|
from garage_admin_sdk.model.update_bucket_request import UpdateBucketRequest
|
||||||
from garage_admin_sdk.model.update_bucket_request_quotas import UpdateBucketRequestQuotas
|
from garage_admin_sdk.model.update_bucket_request_quotas import UpdateBucketRequestQuotas
|
||||||
from garage_admin_sdk.model.update_bucket_request_website_access import UpdateBucketRequestWebsiteAccess
|
from garage_admin_sdk.model.update_bucket_request_website_access import UpdateBucketRequestWebsiteAccess
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -1,9 +1,9 @@
|
||||||
"""
|
"""
|
||||||
Garage Administration API v0+garage-v0.8.0
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
The version of the OpenAPI document: v0.8.0
|
The version of the OpenAPI document: v0.9.0
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -27,11 +27,11 @@ REQUIRES = [
|
||||||
setup(
|
setup(
|
||||||
name=NAME,
|
name=NAME,
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
description="Garage Administration API v0+garage-v0.8.0",
|
description="Garage Administration API v0+garage-v0.9.0",
|
||||||
author="OpenAPI Generator community",
|
author="OpenAPI Generator community",
|
||||||
author_email="team@openapitools.org",
|
author_email="team@openapitools.org",
|
||||||
url="",
|
url="",
|
||||||
keywords=["OpenAPI", "OpenAPI-Generator", "Garage Administration API v0+garage-v0.8.0"],
|
keywords=["OpenAPI", "OpenAPI-Generator", "Garage Administration API v0+garage-v0.9.0"],
|
||||||
python_requires=">=3.6",
|
python_requires=">=3.6",
|
||||||
install_requires=REQUIRES,
|
install_requires=REQUIRES,
|
||||||
packages=find_packages(exclude=["test", "tests"]),
|
packages=find_packages(exclude=["test", "tests"]),
|
||||||
|
|
37
test/test_apply_layout200_response.py
Normal file
37
test/test_apply_layout200_response.py
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
"""
|
||||||
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
|
The version of the OpenAPI document: v0.9.0
|
||||||
|
Generated by: https://openapi-generator.tech
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
import garage_admin_sdk
|
||||||
|
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
||||||
|
globals()['ClusterLayout'] = ClusterLayout
|
||||||
|
from garage_admin_sdk.model.apply_layout200_response import ApplyLayout200Response
|
||||||
|
|
||||||
|
|
||||||
|
class TestApplyLayout200Response(unittest.TestCase):
|
||||||
|
"""ApplyLayout200Response unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def testApplyLayout200Response(self):
|
||||||
|
"""Test ApplyLayout200Response"""
|
||||||
|
# FIXME: construct object with mandatory attributes with example values
|
||||||
|
# model = ApplyLayout200Response() # noqa: E501
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
39
test/test_node_role_change.py
Normal file
39
test/test_node_role_change.py
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
"""
|
||||||
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
|
The version of the OpenAPI document: v0.9.0
|
||||||
|
Generated by: https://openapi-generator.tech
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
import garage_admin_sdk
|
||||||
|
from garage_admin_sdk.model.node_role_remove import NodeRoleRemove
|
||||||
|
from garage_admin_sdk.model.node_role_update import NodeRoleUpdate
|
||||||
|
globals()['NodeRoleRemove'] = NodeRoleRemove
|
||||||
|
globals()['NodeRoleUpdate'] = NodeRoleUpdate
|
||||||
|
from garage_admin_sdk.model.node_role_change import NodeRoleChange
|
||||||
|
|
||||||
|
|
||||||
|
class TestNodeRoleChange(unittest.TestCase):
|
||||||
|
"""NodeRoleChange unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def testNodeRoleChange(self):
|
||||||
|
"""Test NodeRoleChange"""
|
||||||
|
# FIXME: construct object with mandatory attributes with example values
|
||||||
|
# model = NodeRoleChange() # noqa: E501
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
35
test/test_node_role_remove.py
Normal file
35
test/test_node_role_remove.py
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
"""
|
||||||
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
|
The version of the OpenAPI document: v0.9.0
|
||||||
|
Generated by: https://openapi-generator.tech
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
import garage_admin_sdk
|
||||||
|
from garage_admin_sdk.model.node_role_remove import NodeRoleRemove
|
||||||
|
|
||||||
|
|
||||||
|
class TestNodeRoleRemove(unittest.TestCase):
|
||||||
|
"""NodeRoleRemove unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def testNodeRoleRemove(self):
|
||||||
|
"""Test NodeRoleRemove"""
|
||||||
|
# FIXME: construct object with mandatory attributes with example values
|
||||||
|
# model = NodeRoleRemove() # noqa: E501
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
35
test/test_node_role_update.py
Normal file
35
test/test_node_role_update.py
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
"""
|
||||||
|
Garage Administration API v0+garage-v0.9.0
|
||||||
|
|
||||||
|
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks. *Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!* # noqa: E501
|
||||||
|
|
||||||
|
The version of the OpenAPI document: v0.9.0
|
||||||
|
Generated by: https://openapi-generator.tech
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
import garage_admin_sdk
|
||||||
|
from garage_admin_sdk.model.node_role_update import NodeRoleUpdate
|
||||||
|
|
||||||
|
|
||||||
|
class TestNodeRoleUpdate(unittest.TestCase):
|
||||||
|
"""NodeRoleUpdate unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def testNodeRoleUpdate(self):
|
||||||
|
"""Test NodeRoleUpdate"""
|
||||||
|
# FIXME: construct object with mandatory attributes with example values
|
||||||
|
# model = NodeRoleUpdate() # noqa: E501
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
Loading…
Reference in a new issue