diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 9e3aee7..88627a1 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -6,6 +6,7 @@ docs/AddKeyRequest.md docs/AddNode200ResponseInner.md docs/AllowBucketKeyRequest.md docs/AllowBucketKeyRequestPermissions.md +docs/ApplyLayout200Response.md docs/BucketApi.md docs/BucketInfo.md docs/BucketInfoQuotas.md @@ -29,6 +30,9 @@ docs/ListBuckets200ResponseInnerLocalAliasesInner.md docs/ListKeys200ResponseInner.md docs/NodeClusterInfo.md docs/NodeNetworkInfo.md +docs/NodeRoleChange.md +docs/NodeRoleRemove.md +docs/NodeRoleUpdate.md docs/NodesApi.md docs/UpdateBucketRequest.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/allow_bucket_key_request.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_quotas.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/node_cluster_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_quotas.py garage_admin_sdk/model/update_bucket_request_website_access.py @@ -86,4 +94,8 @@ setup.cfg setup.py test-requirements.txt 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 diff --git a/README.md b/README.md index 27a39ff..277b25b 100644 --- a/README.md +++ b/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: -- API version: v0.8.0 +- API version: v0.9.0 - Package version: 0.8.0 - 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.list_buckets200_response_inner import ListBuckets200ResponseInner 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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 -All URIs are relative to *http://localhost:3903/v0* +All URIs are relative to *http://localhost:3903/v1* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- @@ -136,6 +136,7 @@ Class | Method | HTTP request | Description - [AddNode200ResponseInner](docs/AddNode200ResponseInner.md) - [AllowBucketKeyRequest](docs/AllowBucketKeyRequest.md) - [AllowBucketKeyRequestPermissions](docs/AllowBucketKeyRequestPermissions.md) + - [ApplyLayout200Response](docs/ApplyLayout200Response.md) - [BucketInfo](docs/BucketInfo.md) - [BucketInfoQuotas](docs/BucketInfoQuotas.md) - [BucketInfoWebsiteConfig](docs/BucketInfoWebsiteConfig.md) @@ -156,6 +157,9 @@ Class | Method | HTTP request | Description - [ListKeys200ResponseInner](docs/ListKeys200ResponseInner.md) - [NodeClusterInfo](docs/NodeClusterInfo.md) - [NodeNetworkInfo](docs/NodeNetworkInfo.md) + - [NodeRoleChange](docs/NodeRoleChange.md) + - [NodeRoleRemove](docs/NodeRoleRemove.md) + - [NodeRoleUpdate](docs/NodeRoleUpdate.md) - [UpdateBucketRequest](docs/UpdateBucketRequest.md) - [UpdateBucketRequestQuotas](docs/UpdateBucketRequestQuotas.md) - [UpdateBucketRequestWebsiteAccess](docs/UpdateBucketRequestWebsiteAccess.md) diff --git a/docs/AddKeyRequest.md b/docs/AddKeyRequest.md index b69f01e..9bc4275 100644 --- a/docs/AddKeyRequest.md +++ b/docs/AddKeyRequest.md @@ -4,7 +4,7 @@ ## Properties 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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ApplyLayout200Response.md b/docs/ApplyLayout200Response.md new file mode 100644 index 0000000..6d11fb8 --- /dev/null +++ b/docs/ApplyLayout200Response.md @@ -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) + + diff --git a/docs/BucketApi.md b/docs/BucketApi.md index 11203aa..ae47cde 100644 --- a/docs/BucketApi.md +++ b/docs/BucketApi.md @@ -1,6 +1,6 @@ # 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 ------------- | ------------- | ------------- @@ -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.allow_bucket_key_request import AllowBucketKeyRequest 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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.create_bucket_request import CreateBucketRequest 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # The client must configure the authentication and authorization parameters @@ -214,10 +214,10 @@ import time import garage_admin_sdk from garage_admin_sdk.api import bucket_api 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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.model.bucket_info import BucketInfo 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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.model.bucket_info import BucketInfo 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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.allow_bucket_key_request import AllowBucketKeyRequest 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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.model.bucket_info import BucketInfo 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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.model.bucket_info import BucketInfo 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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.model.list_buckets200_response_inner import ListBuckets200ResponseInner 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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.model.bucket_info import BucketInfo 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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.model.bucket_info import BucketInfo 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # The client must configure the authentication and authorization parameters @@ -934,7 +934,7 @@ Name | Type | Description | Notes 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 @@ -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.update_bucket_request import UpdateBucketRequest 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # The client must configure the authentication and authorization parameters diff --git a/docs/ClusterLayout.md b/docs/ClusterLayout.md index b8491d2..80aa3b2 100644 --- a/docs/ClusterLayout.md +++ b/docs/ClusterLayout.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **version** | **int** | | -**roles** | [**{str: (NodeClusterInfo,)}**](NodeClusterInfo.md) | | -**staged_role_changes** | [**{str: (NodeClusterInfo,)}**](NodeClusterInfo.md) | | +**roles** | [**[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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetNodes200Response.md b/docs/GetNodes200Response.md index 85586f5..c2ba65d 100644 --- a/docs/GetNodes200Response.md +++ b/docs/GetNodes200Response.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **node** | **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) | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/docs/ImportKeyRequest.md b/docs/ImportKeyRequest.md index 9e1035a..246fb16 100644 --- a/docs/ImportKeyRequest.md +++ b/docs/ImportKeyRequest.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | +**name** | **str, none_type** | | **access_key_id** | **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] diff --git a/docs/KeyApi.md b/docs/KeyApi.md index 91893a7..aa64851 100644 --- a/docs/KeyApi.md +++ b/docs/KeyApi.md @@ -1,6 +1,6 @@ # 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 ------------- | ------------- | ------------- @@ -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.add_key_request import AddKeyRequest 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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) add_key_request = AddKeyRequest( 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 try: @@ -69,7 +69,7 @@ with garage_admin_sdk.ApiClient(configuration) as api_client: 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 @@ -111,10 +111,10 @@ import time import garage_admin_sdk from garage_admin_sdk.api import key_api 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # The client must configure the authentication and authorization parameters @@ -176,7 +176,7 @@ void (empty response body) 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 @@ -188,10 +188,10 @@ import garage_admin_sdk from garage_admin_sdk.api import key_api from garage_admin_sdk.model.key_info import KeyInfo 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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 api_instance = key_api.KeyApi(api_client) 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 try: @@ -217,6 +218,15 @@ with garage_admin_sdk.ApiClient(configuration) as api_client: pprint(api_response) except garage_admin_sdk.ApiException as 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 ------------- | ------------- | ------------- | ------------- **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 @@ -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.key_info import KeyInfo 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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.model.list_keys200_response_inner import ListKeys200ResponseInner 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # The client must configure the authentication and authorization parameters @@ -412,7 +423,7 @@ This endpoint does not need any parameter. 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 @@ -424,10 +435,10 @@ import garage_admin_sdk from garage_admin_sdk.api import key_api from garage_admin_sdk.model.key_info import KeyInfo 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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 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 + 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 try: @@ -453,6 +465,15 @@ with garage_admin_sdk.ApiClient(configuration) as api_client: pprint(api_response) except garage_admin_sdk.ApiException as 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 ------------- | ------------- | ------------- | ------------- **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 @@ -490,7 +512,7 @@ Name | Type | Description | Notes 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 @@ -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.key_info import KeyInfo 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # The client must configure the authentication and authorization parameters diff --git a/docs/KeyInfo.md b/docs/KeyInfo.md index e9abd50..e904d24 100644 --- a/docs/KeyInfo.md +++ b/docs/KeyInfo.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] **access_key_id** | **str** | | [optional] -**secret_access_key** | **str** | | [optional] +**secret_access_key** | **str, none_type** | | [optional] **permissions** | [**KeyInfoPermissions**](KeyInfoPermissions.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] diff --git a/docs/LayoutApi.md b/docs/LayoutApi.md index d26a333..ba66d8c 100644 --- a/docs/LayoutApi.md +++ b/docs/LayoutApi.md @@ -1,6 +1,6 @@ # 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 ------------- | ------------- | ------------- @@ -11,11 +11,11 @@ Method | HTTP request | Description # **add_layout** -> add_layout(request_body) +> ClusterLayout add_layout(node_role_change) 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 @@ -25,12 +25,13 @@ Send modifications to the cluster layout. These modifications will be included i import time import garage_admin_sdk 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 -# 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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: # Create an instance of the API class api_instance = layout_api.LayoutApi(api_client) - request_body = { - "key": NodeClusterInfo( - zone="dc1", - 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. + node_role_change = [ + NodeRoleChange(None), + ] # [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. # example passing only required values which don't have defaults set try: # 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: 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 ------------- | ------------- | ------------- | ------------- - **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 -void (empty response body) +[**ClusterLayout**](ClusterLayout.md) ### Authorization @@ -81,7 +79,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/json ### 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) # **apply_layout** -> apply_layout(layout_version) +> ApplyLayout200Response apply_layout(layout_version) 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 @@ -110,11 +108,12 @@ import time import garage_admin_sdk from garage_admin_sdk.api import layout_api from garage_admin_sdk.model.layout_version import LayoutVersion +from garage_admin_sdk.model.apply_layout200_response import ApplyLayout200Response 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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 try: # 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: print("Exception when calling LayoutApi->apply_layout: %s\n" % e) ``` @@ -152,7 +152,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +[**ApplyLayout200Response**](ApplyLayout200Response.md) ### Authorization @@ -161,7 +161,7 @@ void (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details @@ -179,7 +179,7 @@ void (empty response body) 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 @@ -191,10 +191,10 @@ import garage_admin_sdk from garage_admin_sdk.api import layout_api from garage_admin_sdk.model.cluster_layout import ClusterLayout 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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.model.layout_version import LayoutVersion 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # The client must configure the authentication and authorization parameters diff --git a/docs/NodeClusterInfo.md b/docs/NodeClusterInfo.md index fc19417..2f7b03e 100644 --- a/docs/NodeClusterInfo.md +++ b/docs/NodeClusterInfo.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **zone** | **str** | | -**capacity** | **int, none_type** | | **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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/NodeNetworkInfo.md b/docs/NodeNetworkInfo.md index 8f03e93..c39555c 100644 --- a/docs/NodeNetworkInfo.md +++ b/docs/NodeNetworkInfo.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **is_up** | **bool** | | **last_seen_secs_ago** | **int, none_type** | | **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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/NodeRoleChange.md b/docs/NodeRoleChange.md new file mode 100644 index 0000000..888e2a6 --- /dev/null +++ b/docs/NodeRoleChange.md @@ -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) + + diff --git a/docs/NodeRoleRemove.md b/docs/NodeRoleRemove.md new file mode 100644 index 0000000..f41ea69 --- /dev/null +++ b/docs/NodeRoleRemove.md @@ -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) + + diff --git a/docs/NodeRoleUpdate.md b/docs/NodeRoleUpdate.md new file mode 100644 index 0000000..497d5c9 --- /dev/null +++ b/docs/NodeRoleUpdate.md @@ -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) + + diff --git a/docs/NodesApi.md b/docs/NodesApi.md index d1103d6..703dd05 100644 --- a/docs/NodesApi.md +++ b/docs/NodesApi.md @@ -1,6 +1,6 @@ # 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 ------------- | ------------- | ------------- @@ -25,10 +25,10 @@ import garage_admin_sdk from garage_admin_sdk.api import nodes_api from garage_admin_sdk.model.add_node200_response_inner import AddNode200ResponseInner 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # 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 -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 @@ -104,10 +104,10 @@ import garage_admin_sdk from garage_admin_sdk.api import nodes_api from garage_admin_sdk.model.get_nodes200_response import GetNodes200Response 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. configuration = garage_admin_sdk.Configuration( - host = "http://localhost:3903/v0" + host = "http://localhost:3903/v1" ) # The client must configure the authentication and authorization parameters diff --git a/garage_admin_sdk/__init__.py b/garage_admin_sdk/__init__.py index a9bcda1..340acb2 100644 --- a/garage_admin_sdk/__init__.py +++ b/garage_admin_sdk/__init__.py @@ -1,11 +1,11 @@ # 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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/api/bucket_api.py b/garage_admin_sdk/api/bucket_api.py index d26030f..bb582f4 100644 --- a/garage_admin_sdk/api/bucket_api.py +++ b/garage_admin_sdk/api/bucket_api.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ @@ -1629,7 +1629,7 @@ class BucketApi(object): ): """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 asynchronous HTTP request, please pass async_req=True diff --git a/garage_admin_sdk/api/key_api.py b/garage_admin_sdk/api/key_api.py index 3a651bb..dcd7769 100644 --- a/garage_admin_sdk/api/key_api.py +++ b/garage_admin_sdk/api/key_api.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ @@ -154,6 +154,7 @@ class KeyApi(object): params_map={ 'all': [ 'access_key', + 'show_secret_key', ], 'required': [ 'access_key', @@ -173,12 +174,16 @@ class KeyApi(object): 'openapi_types': { 'access_key': (str,), + 'show_secret_key': + (bool,), }, 'attribute_map': { 'access_key': 'access_key', + 'show_secret_key': 'showSecretKey', }, 'location_map': { 'access_key': 'path', + 'show_secret_key': 'query', }, 'collection_format_map': { } @@ -301,6 +306,7 @@ class KeyApi(object): params_map={ 'all': [ 'pattern', + 'show_secret_key', ], 'required': [ 'pattern', @@ -320,12 +326,16 @@ class KeyApi(object): 'openapi_types': { 'pattern': (str,), + 'show_secret_key': + (bool,), }, 'attribute_map': { 'pattern': 'pattern', + 'show_secret_key': 'showSecretKey', }, 'location_map': { 'pattern': 'path', + 'show_secret_key': 'query', }, 'collection_format_map': { } @@ -412,7 +422,7 @@ class KeyApi(object): >>> result = thread.get() 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: _return_http_data_only (bool): response data without head status @@ -570,7 +580,7 @@ class KeyApi(object): ): """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 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 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 code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -814,7 +825,7 @@ class KeyApi(object): ): """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 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 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 code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -898,7 +910,7 @@ class KeyApi(object): ): """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 asynchronous HTTP request, please pass async_req=True diff --git a/garage_admin_sdk/api/layout_api.py b/garage_admin_sdk/api/layout_api.py index 39785d7..06510e9 100644 --- a/garage_admin_sdk/api/layout_api.py +++ b/garage_admin_sdk/api/layout_api.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ @@ -21,9 +21,10 @@ from garage_admin_sdk.model_utils import ( # noqa: F401 none_type, 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.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): @@ -39,7 +40,7 @@ class LayoutApi(object): self.api_client = api_client self.add_layout_endpoint = _Endpoint( settings={ - 'response_type': None, + 'response_type': (ClusterLayout,), 'auth': [ 'bearerAuth' ], @@ -50,10 +51,10 @@ class LayoutApi(object): }, params_map={ 'all': [ - 'request_body', + 'node_role_change', ], 'required': [ - 'request_body', + 'node_role_change', ], 'nullable': [ ], @@ -68,19 +69,21 @@ class LayoutApi(object): 'allowed_values': { }, 'openapi_types': { - 'request_body': - ({str: (NodeClusterInfo,)},), + 'node_role_change': + ([NodeRoleChange],), }, 'attribute_map': { }, 'location_map': { - 'request_body': 'body', + 'node_role_change': 'body', }, 'collection_format_map': { } }, headers_map={ - 'accept': [], + 'accept': [ + 'application/json' + ], 'content_type': [ 'application/json' ] @@ -89,7 +92,7 @@ class LayoutApi(object): ) self.apply_layout_endpoint = _Endpoint( settings={ - 'response_type': None, + 'response_type': (ApplyLayout200Response,), 'auth': [ 'bearerAuth' ], @@ -130,7 +133,9 @@ class LayoutApi(object): } }, headers_map={ - 'accept': [], + 'accept': [ + 'application/json' + ], 'content_type': [ 'application/json' ] @@ -234,20 +239,20 @@ class LayoutApi(object): def add_layout( self, - request_body, + node_role_change, **kwargs ): """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 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() 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: _return_http_data_only (bool): response data without head status @@ -282,7 +287,7 @@ class LayoutApi(object): async_req (bool): execute request asynchronously Returns: - None + ClusterLayout If the method is called asynchronously, returns the request thread. """ @@ -311,8 +316,8 @@ class LayoutApi(object): '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') kwargs['_request_auths'] = kwargs.get('_request_auths', None) - kwargs['request_body'] = \ - request_body + kwargs['node_role_change'] = \ + node_role_change return self.add_layout_endpoint.call_with_http_info(**kwargs) def apply_layout( @@ -322,7 +327,7 @@ class LayoutApi(object): ): """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 asynchronous HTTP request, please pass async_req=True @@ -365,7 +370,7 @@ class LayoutApi(object): async_req (bool): execute request asynchronously Returns: - None + ApplyLayout200Response If the method is called asynchronously, returns the request thread. """ @@ -404,7 +409,7 @@ class LayoutApi(object): ): """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 asynchronous HTTP request, please pass async_req=True diff --git a/garage_admin_sdk/api/nodes_api.py b/garage_admin_sdk/api/nodes_api.py index acd2dbb..98bcd3a 100644 --- a/garage_admin_sdk/api/nodes_api.py +++ b/garage_admin_sdk/api/nodes_api.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 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 - 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 asynchronous HTTP request, please pass async_req=True diff --git a/garage_admin_sdk/api_client.py b/garage_admin_sdk/api_client.py index b0c6ca8..eb2ccd3 100644 --- a/garage_admin_sdk/api_client.py +++ b/garage_admin_sdk/api_client.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/configuration.py b/garage_admin_sdk/configuration.py index 89375ba..7066f51 100644 --- a/garage_admin_sdk/configuration.py +++ b/garage_admin_sdk/configuration.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ @@ -93,7 +93,7 @@ class Configuration(object): ): """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 """ 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"\ "OS: {env}\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".\ format(env=sys.platform, pyversion=sys.version) @@ -398,7 +398,7 @@ class Configuration(object): """ return [ { - 'url': "http://localhost:3903/v0", + 'url': "http://localhost:3903/v1", 'description': "A local server", } ] diff --git a/garage_admin_sdk/exceptions.py b/garage_admin_sdk/exceptions.py index ac96627..13f2264 100644 --- a/garage_admin_sdk/exceptions.py +++ b/garage_admin_sdk/exceptions.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/add_key_request.py b/garage_admin_sdk/model/add_key_request.py index bf5eaf0..fa523ea 100644 --- a/garage_admin_sdk/model/add_key_request.py +++ b/garage_admin_sdk/model/add_key_request.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ @@ -81,7 +81,7 @@ class AddKeyRequest(ModelNormal): and the value is attribute type. """ return { - 'name': (str,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 } @cached_property @@ -134,7 +134,7 @@ class AddKeyRequest(ModelNormal): Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -220,7 +220,7 @@ class AddKeyRequest(ModelNormal): Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - name (str): [optional] # noqa: E501 + name (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/garage_admin_sdk/model/add_node200_response_inner.py b/garage_admin_sdk/model/add_node200_response_inner.py index f219373..386e22c 100644 --- a/garage_admin_sdk/model/add_node200_response_inner.py +++ b/garage_admin_sdk/model/add_node200_response_inner.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/allow_bucket_key_request.py b/garage_admin_sdk/model/allow_bucket_key_request.py index 1088939..0a506db 100644 --- a/garage_admin_sdk/model/allow_bucket_key_request.py +++ b/garage_admin_sdk/model/allow_bucket_key_request.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/allow_bucket_key_request_permissions.py b/garage_admin_sdk/model/allow_bucket_key_request_permissions.py index cee3b02..24c790a 100644 --- a/garage_admin_sdk/model/allow_bucket_key_request_permissions.py +++ b/garage_admin_sdk/model/allow_bucket_key_request_permissions.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/apply_layout200_response.py b/garage_admin_sdk/model/apply_layout200_response.py new file mode 100644 index 0000000..8570bd9 --- /dev/null +++ b/garage_admin_sdk/model/apply_layout200_response.py @@ -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.") diff --git a/garage_admin_sdk/model/bucket_info.py b/garage_admin_sdk/model/bucket_info.py index 174aa9c..1e61e38 100644 --- a/garage_admin_sdk/model/bucket_info.py +++ b/garage_admin_sdk/model/bucket_info.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/bucket_info_quotas.py b/garage_admin_sdk/model/bucket_info_quotas.py index 18976d4..6ac9f7f 100644 --- a/garage_admin_sdk/model/bucket_info_quotas.py +++ b/garage_admin_sdk/model/bucket_info_quotas.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/bucket_info_website_config.py b/garage_admin_sdk/model/bucket_info_website_config.py index 775b067..1b11e3a 100644 --- a/garage_admin_sdk/model/bucket_info_website_config.py +++ b/garage_admin_sdk/model/bucket_info_website_config.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/bucket_key_info.py b/garage_admin_sdk/model/bucket_key_info.py index 9c1db3d..1e276ce 100644 --- a/garage_admin_sdk/model/bucket_key_info.py +++ b/garage_admin_sdk/model/bucket_key_info.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/cluster_layout.py b/garage_admin_sdk/model/cluster_layout.py index ce71b45..84ee062 100644 --- a/garage_admin_sdk/model/cluster_layout.py +++ b/garage_admin_sdk/model/cluster_layout.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ @@ -31,7 +31,9 @@ from garage_admin_sdk.exceptions import ApiAttributeError def lazy_import(): from garage_admin_sdk.model.node_cluster_info import NodeClusterInfo + from garage_admin_sdk.model.node_role_change import NodeRoleChange globals()['NodeClusterInfo'] = NodeClusterInfo + globals()['NodeRoleChange'] = NodeRoleChange class ClusterLayout(ModelNormal): @@ -88,8 +90,8 @@ class ClusterLayout(ModelNormal): lazy_import() return { 'version': (int,), # noqa: E501 - 'roles': ({str: (NodeClusterInfo,)},), # noqa: E501 - 'staged_role_changes': ({str: (NodeClusterInfo,)},), # noqa: E501 + 'roles': ([NodeClusterInfo],), # noqa: E501 + 'staged_role_changes': ([NodeRoleChange],), # noqa: E501 } @cached_property @@ -115,8 +117,8 @@ class ClusterLayout(ModelNormal): Args: version (int): - roles ({str: (NodeClusterInfo,)}): - staged_role_changes ({str: (NodeClusterInfo,)}): + roles ([NodeClusterInfo]): + staged_role_changes ([NodeRoleChange]): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -208,8 +210,8 @@ class ClusterLayout(ModelNormal): Args: version (int): - roles ({str: (NodeClusterInfo,)}): - staged_role_changes ({str: (NodeClusterInfo,)}): + roles ([NodeClusterInfo]): + staged_role_changes ([NodeRoleChange]): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/garage_admin_sdk/model/create_bucket_request.py b/garage_admin_sdk/model/create_bucket_request.py index 4b64638..5a9ca2f 100644 --- a/garage_admin_sdk/model/create_bucket_request.py +++ b/garage_admin_sdk/model/create_bucket_request.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/create_bucket_request_local_alias.py b/garage_admin_sdk/model/create_bucket_request_local_alias.py index 27e4895..83faa4d 100644 --- a/garage_admin_sdk/model/create_bucket_request_local_alias.py +++ b/garage_admin_sdk/model/create_bucket_request_local_alias.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/create_bucket_request_local_alias_allow.py b/garage_admin_sdk/model/create_bucket_request_local_alias_allow.py index ccc8b9b..7a5f5b6 100644 --- a/garage_admin_sdk/model/create_bucket_request_local_alias_allow.py +++ b/garage_admin_sdk/model/create_bucket_request_local_alias_allow.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/get_nodes200_response.py b/garage_admin_sdk/model/get_nodes200_response.py index a0c1500..b18e5f3 100644 --- a/garage_admin_sdk/model/get_nodes200_response.py +++ b/garage_admin_sdk/model/get_nodes200_response.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ @@ -91,7 +91,10 @@ class GetNodes200Response(ModelNormal): return { 'node': (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 } @@ -103,6 +106,9 @@ class GetNodes200Response(ModelNormal): attribute_map = { 'node': 'node', # 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 'layout': 'layout', # noqa: E501 } @@ -114,13 +120,16 @@ class GetNodes200Response(ModelNormal): @classmethod @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 Args: node (str): garage_version (str): - known_nodes ({str: (NodeNetworkInfo,)}): + garage_features ([str]): + rust_version (str): + db_engine (str): + known_nodes ([NodeNetworkInfo]): layout (ClusterLayout): Keyword Args: @@ -187,6 +196,9 @@ class GetNodes200Response(ModelNormal): self.node = node 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.layout = layout for var_name, var_value in kwargs.items(): @@ -209,13 +221,16 @@ class GetNodes200Response(ModelNormal): ]) @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 Args: node (str): garage_version (str): - known_nodes ({str: (NodeNetworkInfo,)}): + garage_features ([str]): + rust_version (str): + db_engine (str): + known_nodes ([NodeNetworkInfo]): layout (ClusterLayout): Keyword Args: @@ -280,6 +295,9 @@ class GetNodes200Response(ModelNormal): self.node = node 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.layout = layout for var_name, var_value in kwargs.items(): diff --git a/garage_admin_sdk/model/import_key_request.py b/garage_admin_sdk/model/import_key_request.py index 9417f4e..953110f 100644 --- a/garage_admin_sdk/model/import_key_request.py +++ b/garage_admin_sdk/model/import_key_request.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ @@ -81,7 +81,7 @@ class ImportKeyRequest(ModelNormal): and the value is attribute type. """ return { - 'name': (str,), # noqa: E501 + 'name': (str, none_type,), # noqa: E501 'access_key_id': (str,), # noqa: E501 'secret_access_key': (str,), # noqa: E501 } @@ -108,7 +108,7 @@ class ImportKeyRequest(ModelNormal): """ImportKeyRequest - a model defined in OpenAPI Args: - name (str): + name (str, none_type): access_key_id (str): secret_access_key (str): @@ -201,7 +201,7 @@ class ImportKeyRequest(ModelNormal): """ImportKeyRequest - a model defined in OpenAPI Args: - name (str): + name (str, none_type): access_key_id (str): secret_access_key (str): diff --git a/garage_admin_sdk/model/key_info.py b/garage_admin_sdk/model/key_info.py index 3ee863b..f4c8635 100644 --- a/garage_admin_sdk/model/key_info.py +++ b/garage_admin_sdk/model/key_info.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ @@ -91,7 +91,7 @@ class KeyInfo(ModelNormal): return { 'name': (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 'buckets': ([KeyInfoBucketsInner],), # noqa: E501 } @@ -152,7 +152,7 @@ class KeyInfo(ModelNormal): _visited_composed_classes = (Animal,) name (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 buckets ([KeyInfoBucketsInner]): [optional] # noqa: E501 """ @@ -242,7 +242,7 @@ class KeyInfo(ModelNormal): _visited_composed_classes = (Animal,) name (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 buckets ([KeyInfoBucketsInner]): [optional] # noqa: E501 """ diff --git a/garage_admin_sdk/model/key_info_buckets_inner.py b/garage_admin_sdk/model/key_info_buckets_inner.py index e3a8e18..232879f 100644 --- a/garage_admin_sdk/model/key_info_buckets_inner.py +++ b/garage_admin_sdk/model/key_info_buckets_inner.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/key_info_buckets_inner_permissions.py b/garage_admin_sdk/model/key_info_buckets_inner_permissions.py index 177e8ae..4c681f4 100644 --- a/garage_admin_sdk/model/key_info_buckets_inner_permissions.py +++ b/garage_admin_sdk/model/key_info_buckets_inner_permissions.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/key_info_permissions.py b/garage_admin_sdk/model/key_info_permissions.py index 035ee39..d3b8fff 100644 --- a/garage_admin_sdk/model/key_info_permissions.py +++ b/garage_admin_sdk/model/key_info_permissions.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/layout_version.py b/garage_admin_sdk/model/layout_version.py index a3369b2..bfb3fbd 100644 --- a/garage_admin_sdk/model/layout_version.py +++ b/garage_admin_sdk/model/layout_version.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/list_buckets200_response_inner.py b/garage_admin_sdk/model/list_buckets200_response_inner.py index d478a66..2bbb5c9 100644 --- a/garage_admin_sdk/model/list_buckets200_response_inner.py +++ b/garage_admin_sdk/model/list_buckets200_response_inner.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/list_buckets200_response_inner_local_aliases_inner.py b/garage_admin_sdk/model/list_buckets200_response_inner_local_aliases_inner.py index 083c503..4788d61 100644 --- a/garage_admin_sdk/model/list_buckets200_response_inner_local_aliases_inner.py +++ b/garage_admin_sdk/model/list_buckets200_response_inner_local_aliases_inner.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/list_keys200_response_inner.py b/garage_admin_sdk/model/list_keys200_response_inner.py index 9a6f276..f270913 100644 --- a/garage_admin_sdk/model/list_keys200_response_inner.py +++ b/garage_admin_sdk/model/list_keys200_response_inner.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/node_cluster_info.py b/garage_admin_sdk/model/node_cluster_info.py index 868bf9a..843c9e3 100644 --- a/garage_admin_sdk/model/node_cluster_info.py +++ b/garage_admin_sdk/model/node_cluster_info.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ @@ -82,8 +82,8 @@ class NodeClusterInfo(ModelNormal): """ return { 'zone': (str,), # noqa: E501 - 'capacity': (int, none_type,), # noqa: E501 'tags': ([str],), # noqa: E501 + 'capacity': (int, none_type,), # noqa: E501 } @cached_property @@ -93,8 +93,8 @@ class NodeClusterInfo(ModelNormal): attribute_map = { 'zone': 'zone', # noqa: E501 - 'capacity': 'capacity', # noqa: E501 'tags': 'tags', # noqa: E501 + 'capacity': 'capacity', # noqa: E501 } read_only_vars = { @@ -104,12 +104,11 @@ class NodeClusterInfo(ModelNormal): @classmethod @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 Args: zone (str): - capacity (int, none_type): tags ([str]): User defined tags, put whatever makes sense for you, these tags are not interpreted by Garage Keyword Args: @@ -143,6 +142,7 @@ class NodeClusterInfo(ModelNormal): Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + capacity (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -175,7 +175,6 @@ class NodeClusterInfo(ModelNormal): 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 \ @@ -197,12 +196,11 @@ class NodeClusterInfo(ModelNormal): ]) @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 Args: zone (str): - capacity (int, none_type): tags ([str]): User defined tags, put whatever makes sense for you, these tags are not interpreted by Garage Keyword Args: @@ -236,6 +234,7 @@ class NodeClusterInfo(ModelNormal): Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + capacity (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -266,7 +265,6 @@ class NodeClusterInfo(ModelNormal): 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 \ diff --git a/garage_admin_sdk/model/node_network_info.py b/garage_admin_sdk/model/node_network_info.py index aeda1fc..1dcbb73 100644 --- a/garage_admin_sdk/model/node_network_info.py +++ b/garage_admin_sdk/model/node_network_info.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ @@ -85,6 +85,7 @@ class NodeNetworkInfo(ModelNormal): 'is_up': (bool,), # noqa: E501 'last_seen_secs_ago': (int, none_type,), # noqa: E501 'hostname': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 } @cached_property @@ -94,9 +95,10 @@ class NodeNetworkInfo(ModelNormal): attribute_map = { 'addr': 'addr', # noqa: E501 - 'is_up': 'is_up', # noqa: E501 - 'last_seen_secs_ago': 'last_seen_secs_ago', # noqa: E501 + 'is_up': 'isUp', # noqa: E501 + 'last_seen_secs_ago': 'lastSeenSecsAgo', # noqa: E501 'hostname': 'hostname', # noqa: E501 + 'id': 'id', # noqa: E501 } read_only_vars = { @@ -146,6 +148,7 @@ class NodeNetworkInfo(ModelNormal): 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) @@ -241,6 +244,7 @@ class NodeNetworkInfo(ModelNormal): 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) diff --git a/garage_admin_sdk/model/node_role_change.py b/garage_admin_sdk/model/node_role_change.py new file mode 100644 index 0000000..29037ef --- /dev/null +++ b/garage_admin_sdk/model/node_role_change.py @@ -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, + ], + } diff --git a/garage_admin_sdk/model/node_role_remove.py b/garage_admin_sdk/model/node_role_remove.py new file mode 100644 index 0000000..d473f4b --- /dev/null +++ b/garage_admin_sdk/model/node_role_remove.py @@ -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.") diff --git a/garage_admin_sdk/model/node_role_update.py b/garage_admin_sdk/model/node_role_update.py new file mode 100644 index 0000000..fe8c588 --- /dev/null +++ b/garage_admin_sdk/model/node_role_update.py @@ -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.") diff --git a/garage_admin_sdk/model/update_bucket_request.py b/garage_admin_sdk/model/update_bucket_request.py index 63f3915..a3c31b7 100644 --- a/garage_admin_sdk/model/update_bucket_request.py +++ b/garage_admin_sdk/model/update_bucket_request.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/update_bucket_request_quotas.py b/garage_admin_sdk/model/update_bucket_request_quotas.py index 437f92b..68605b4 100644 --- a/garage_admin_sdk/model/update_bucket_request_quotas.py +++ b/garage_admin_sdk/model/update_bucket_request_quotas.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/update_bucket_request_website_access.py b/garage_admin_sdk/model/update_bucket_request_website_access.py index cc15778..e31c034 100644 --- a/garage_admin_sdk/model/update_bucket_request_website_access.py +++ b/garage_admin_sdk/model/update_bucket_request_website_access.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/update_key_request.py b/garage_admin_sdk/model/update_key_request.py index e119f65..18edca5 100644 --- a/garage_admin_sdk/model/update_key_request.py +++ b/garage_admin_sdk/model/update_key_request.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/update_key_request_allow.py b/garage_admin_sdk/model/update_key_request_allow.py index 9ddb4af..609ed60 100644 --- a/garage_admin_sdk/model/update_key_request_allow.py +++ b/garage_admin_sdk/model/update_key_request_allow.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model/update_key_request_deny.py b/garage_admin_sdk/model/update_key_request_deny.py index d8ef3dd..5e3af6a 100644 --- a/garage_admin_sdk/model/update_key_request_deny.py +++ b/garage_admin_sdk/model/update_key_request_deny.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/model_utils.py b/garage_admin_sdk/model_utils.py index fc7c0fc..46d7928 100644 --- a/garage_admin_sdk/model_utils.py +++ b/garage_admin_sdk/model_utils.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/garage_admin_sdk/models/__init__.py b/garage_admin_sdk/models/__init__.py index a516b66..465e6d9 100644 --- a/garage_admin_sdk/models/__init__.py +++ b/garage_admin_sdk/models/__init__.py @@ -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.allow_bucket_key_request import AllowBucketKeyRequest 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_quotas import BucketInfoQuotas 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.node_cluster_info import NodeClusterInfo 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_quotas import UpdateBucketRequestQuotas from garage_admin_sdk.model.update_bucket_request_website_access import UpdateBucketRequestWebsiteAccess diff --git a/garage_admin_sdk/rest.py b/garage_admin_sdk/rest.py index 2f0ab6c..f18813a 100644 --- a/garage_admin_sdk/rest.py +++ b/garage_admin_sdk/rest.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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ diff --git a/setup.py b/setup.py index d07078e..a95cb36 100644 --- a/setup.py +++ b/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 - The version of the OpenAPI document: v0.8.0 + The version of the OpenAPI document: v0.9.0 Generated by: https://openapi-generator.tech """ @@ -27,11 +27,11 @@ REQUIRES = [ setup( name=NAME, 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_email="team@openapitools.org", 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", install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), diff --git a/test/test_apply_layout200_response.py b/test/test_apply_layout200_response.py new file mode 100644 index 0000000..55c83ef --- /dev/null +++ b/test/test_apply_layout200_response.py @@ -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() diff --git a/test/test_node_role_change.py b/test/test_node_role_change.py new file mode 100644 index 0000000..3ef10b8 --- /dev/null +++ b/test/test_node_role_change.py @@ -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() diff --git a/test/test_node_role_remove.py b/test/test_node_role_remove.py new file mode 100644 index 0000000..bf5c65a --- /dev/null +++ b/test/test_node_role_remove.py @@ -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() diff --git a/test/test_node_role_update.py b/test/test_node_role_update.py new file mode 100644 index 0000000..5a1df39 --- /dev/null +++ b/test/test_node_role_update.py @@ -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()