Improve code generation
This commit is contained in:
parent
b916cc1b32
commit
cbdd714b5a
65 changed files with 680 additions and 307 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.gradle
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "garage"]
|
||||||
|
path = garage
|
||||||
|
url = https://git.deuxfleurs.fr/Deuxfleurs/garage.git
|
18
README.md
18
README.md
|
@ -1,8 +1,18 @@
|
||||||
|
# Garage Admin SDK
|
||||||
|
|
||||||
# Generate
|
## Clone this repo
|
||||||
|
|
||||||
## Python
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone ...
|
||||||
|
git submodule init
|
||||||
```
|
```
|
||||||
java -jar ~/Downloads/openapi-generator-cli.jar generate -i ../garage/doc/api/garage-admin-v0.yml -g python -o ./python/
|
|
||||||
|
## (Re)generate libraries
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Check the OpenAPI spec file
|
||||||
|
gradle validate
|
||||||
|
|
||||||
|
# (re)build the python client
|
||||||
|
gradle buildPythonClient
|
||||||
```
|
```
|
||||||
|
|
20
build.gradle
Normal file
20
build.gradle
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
plugins {
|
||||||
|
id "org.openapi.generator" version "6.1.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
task validate(type: org.openapitools.generator.gradle.plugin.tasks.ValidateTask){
|
||||||
|
inputSpec = "./garage/doc/api/garage-admin-v0.yml"
|
||||||
|
recommend = true
|
||||||
|
}
|
||||||
|
|
||||||
|
task buildPythonClient(type: org.openapitools.generator.gradle.plugin.tasks.GenerateTask) {
|
||||||
|
generatorName = "python"
|
||||||
|
inputSpec = "./garage/doc/api/garage-admin-v0.yml"
|
||||||
|
outputDir = "$rootDir/python"
|
||||||
|
configOptions = [
|
||||||
|
packageName: "garage_admin_sdk",
|
||||||
|
packageVersion: "0.7.3",
|
||||||
|
projectName: "garage-admin-sdk"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
1
garage
Submodule
1
garage
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit a628359122cd6204118e6238a65859d50e4cd472
|
|
@ -8,7 +8,7 @@ stages:
|
||||||
script:
|
script:
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pip install -r test-requirements.txt
|
- pip install -r test-requirements.txt
|
||||||
- pytest --cov=openapi_client
|
- pytest --cov=garage_admin_sdk
|
||||||
|
|
||||||
test-3.6:
|
test-3.6:
|
||||||
extends: .tests
|
extends: .tests
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
.gitignore
|
.gitignore
|
||||||
.gitlab-ci.yml
|
.gitlab-ci.yml
|
||||||
|
.openapi-generator-ignore
|
||||||
.travis.yml
|
.travis.yml
|
||||||
README.md
|
README.md
|
||||||
docs/ClusterLayout.md
|
docs/ClusterLayout.md
|
||||||
|
@ -8,6 +9,7 @@ docs/KeyApi.md
|
||||||
docs/KeyGetRequest.md
|
docs/KeyGetRequest.md
|
||||||
docs/KeyIdAccessKeyDeleteRequest.md
|
docs/KeyIdAccessKeyDeleteRequest.md
|
||||||
docs/KeyIdAccessKeyDeleteRequestAllow.md
|
docs/KeyIdAccessKeyDeleteRequestAllow.md
|
||||||
|
docs/KeyIdAccessKeyDeleteRequestDeny.md
|
||||||
docs/KeyImportPostRequest.md
|
docs/KeyImportPostRequest.md
|
||||||
docs/KeyInfo.md
|
docs/KeyInfo.md
|
||||||
docs/KeyInfoBucketsInner.md
|
docs/KeyInfoBucketsInner.md
|
||||||
|
@ -20,38 +22,58 @@ docs/MembershipApi.md
|
||||||
docs/NodeClusterInfo.md
|
docs/NodeClusterInfo.md
|
||||||
docs/NodeNetworkInfo.md
|
docs/NodeNetworkInfo.md
|
||||||
docs/StatusGet200Response.md
|
docs/StatusGet200Response.md
|
||||||
|
garage_admin_sdk/__init__.py
|
||||||
|
garage_admin_sdk/api/__init__.py
|
||||||
|
garage_admin_sdk/api/key_api.py
|
||||||
|
garage_admin_sdk/api/layout_api.py
|
||||||
|
garage_admin_sdk/api/membership_api.py
|
||||||
|
garage_admin_sdk/api_client.py
|
||||||
|
garage_admin_sdk/apis/__init__.py
|
||||||
|
garage_admin_sdk/configuration.py
|
||||||
|
garage_admin_sdk/exceptions.py
|
||||||
|
garage_admin_sdk/model/__init__.py
|
||||||
|
garage_admin_sdk/model/cluster_layout.py
|
||||||
|
garage_admin_sdk/model/connect_post200_response_inner.py
|
||||||
|
garage_admin_sdk/model/key_get_request.py
|
||||||
|
garage_admin_sdk/model/key_id_access_key_delete_request.py
|
||||||
|
garage_admin_sdk/model/key_id_access_key_delete_request_allow.py
|
||||||
|
garage_admin_sdk/model/key_id_access_key_delete_request_deny.py
|
||||||
|
garage_admin_sdk/model/key_import_post_request.py
|
||||||
|
garage_admin_sdk/model/key_info.py
|
||||||
|
garage_admin_sdk/model/key_info_buckets_inner.py
|
||||||
|
garage_admin_sdk/model/key_info_buckets_inner_permissions.py
|
||||||
|
garage_admin_sdk/model/key_info_permissions.py
|
||||||
|
garage_admin_sdk/model/layout_version.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/status_get200_response.py
|
||||||
|
garage_admin_sdk/model_utils.py
|
||||||
|
garage_admin_sdk/models/__init__.py
|
||||||
|
garage_admin_sdk/rest.py
|
||||||
git_push.sh
|
git_push.sh
|
||||||
openapi_client/__init__.py
|
|
||||||
openapi_client/api/__init__.py
|
|
||||||
openapi_client/api/key_api.py
|
|
||||||
openapi_client/api/layout_api.py
|
|
||||||
openapi_client/api/membership_api.py
|
|
||||||
openapi_client/api_client.py
|
|
||||||
openapi_client/apis/__init__.py
|
|
||||||
openapi_client/configuration.py
|
|
||||||
openapi_client/exceptions.py
|
|
||||||
openapi_client/model/__init__.py
|
|
||||||
openapi_client/model/cluster_layout.py
|
|
||||||
openapi_client/model/connect_post200_response_inner.py
|
|
||||||
openapi_client/model/key_get_request.py
|
|
||||||
openapi_client/model/key_id_access_key_delete_request.py
|
|
||||||
openapi_client/model/key_id_access_key_delete_request_allow.py
|
|
||||||
openapi_client/model/key_import_post_request.py
|
|
||||||
openapi_client/model/key_info.py
|
|
||||||
openapi_client/model/key_info_buckets_inner.py
|
|
||||||
openapi_client/model/key_info_buckets_inner_permissions.py
|
|
||||||
openapi_client/model/key_info_permissions.py
|
|
||||||
openapi_client/model/layout_version.py
|
|
||||||
openapi_client/model/list_keys200_response_inner.py
|
|
||||||
openapi_client/model/node_cluster_info.py
|
|
||||||
openapi_client/model/node_network_info.py
|
|
||||||
openapi_client/model/status_get200_response.py
|
|
||||||
openapi_client/model_utils.py
|
|
||||||
openapi_client/models/__init__.py
|
|
||||||
openapi_client/rest.py
|
|
||||||
requirements.txt
|
requirements.txt
|
||||||
setup.cfg
|
setup.cfg
|
||||||
setup.py
|
setup.py
|
||||||
test-requirements.txt
|
test-requirements.txt
|
||||||
test/__init__.py
|
test/__init__.py
|
||||||
|
test/test_cluster_layout.py
|
||||||
|
test/test_connect_post200_response_inner.py
|
||||||
|
test/test_key_api.py
|
||||||
|
test/test_key_get_request.py
|
||||||
|
test/test_key_id_access_key_delete_request.py
|
||||||
|
test/test_key_id_access_key_delete_request_allow.py
|
||||||
|
test/test_key_id_access_key_delete_request_deny.py
|
||||||
|
test/test_key_import_post_request.py
|
||||||
|
test/test_key_info.py
|
||||||
|
test/test_key_info_buckets_inner.py
|
||||||
|
test/test_key_info_buckets_inner_permissions.py
|
||||||
|
test/test_key_info_permissions.py
|
||||||
|
test/test_layout_api.py
|
||||||
|
test/test_layout_version.py
|
||||||
|
test/test_list_keys200_response_inner.py
|
||||||
|
test/test_membership_api.py
|
||||||
|
test/test_node_cluster_info.py
|
||||||
|
test/test_node_network_info.py
|
||||||
|
test/test_status_get200_response.py
|
||||||
tox.ini
|
tox.ini
|
||||||
|
|
|
@ -10,4 +10,4 @@ install:
|
||||||
- "pip install -r requirements.txt"
|
- "pip install -r requirements.txt"
|
||||||
- "pip install -r test-requirements.txt"
|
- "pip install -r test-requirements.txt"
|
||||||
# command to run tests
|
# command to run tests
|
||||||
script: pytest --cov=openapi_client
|
script: pytest --cov=garage_admin_sdk
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# openapi-client
|
# garage-admin-sdk
|
||||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks.
|
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!*
|
*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!*
|
||||||
|
@ -7,7 +7,7 @@ Administrate your Garage cluster programatically, including status, layout, keys
|
||||||
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: v0.7.3
|
- API version: v0.7.3
|
||||||
- Package version: 1.0.0
|
- Package version: 0.7.3
|
||||||
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
||||||
|
|
||||||
## Requirements.
|
## Requirements.
|
||||||
|
@ -26,7 +26,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
||||||
|
|
||||||
Then import the package:
|
Then import the package:
|
||||||
```python
|
```python
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
```
|
```
|
||||||
|
|
||||||
### Setuptools
|
### Setuptools
|
||||||
|
@ -40,7 +40,7 @@ python setup.py install --user
|
||||||
|
|
||||||
Then import the package:
|
Then import the package:
|
||||||
```python
|
```python
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
```
|
```
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
@ -50,17 +50,17 @@ Please follow the [installation procedure](#installation--usage) and then run th
|
||||||
```python
|
```python
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
from openapi_client.api import key_api
|
from garage_admin_sdk.api import key_api
|
||||||
from openapi_client.model.key_get_request import KeyGetRequest
|
from garage_admin_sdk.model.key_get_request import KeyGetRequest
|
||||||
from openapi_client.model.key_id_access_key_delete_request import KeyIdAccessKeyDeleteRequest
|
from garage_admin_sdk.model.key_id_access_key_delete_request import KeyIdAccessKeyDeleteRequest
|
||||||
from openapi_client.model.key_import_post_request import KeyImportPostRequest
|
from garage_admin_sdk.model.key_import_post_request import KeyImportPostRequest
|
||||||
from openapi_client.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
from openapi_client.model.list_keys200_response_inner import ListKeys200ResponseInner
|
from garage_admin_sdk.model.list_keys200_response_inner import ListKeys200ResponseInner
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -70,13 +70,13 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = key_api.KeyApi(api_client)
|
api_instance = key_api.KeyApi(api_client)
|
||||||
key_import_post_request = KeyImportPostRequest(
|
key_import_post_request = KeyImportPostRequest(
|
||||||
|
@ -89,7 +89,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Import an existing key
|
# Import an existing key
|
||||||
api_response = api_instance.key_import_post(key_import_post_request=key_import_post_request)
|
api_response = api_instance.key_import_post(key_import_post_request=key_import_post_request)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling KeyApi->key_import_post: %s\n" % e)
|
print("Exception when calling KeyApi->key_import_post: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -121,6 +121,7 @@ Class | Method | HTTP request | Description
|
||||||
- [KeyGetRequest](docs/KeyGetRequest.md)
|
- [KeyGetRequest](docs/KeyGetRequest.md)
|
||||||
- [KeyIdAccessKeyDeleteRequest](docs/KeyIdAccessKeyDeleteRequest.md)
|
- [KeyIdAccessKeyDeleteRequest](docs/KeyIdAccessKeyDeleteRequest.md)
|
||||||
- [KeyIdAccessKeyDeleteRequestAllow](docs/KeyIdAccessKeyDeleteRequestAllow.md)
|
- [KeyIdAccessKeyDeleteRequestAllow](docs/KeyIdAccessKeyDeleteRequestAllow.md)
|
||||||
|
- [KeyIdAccessKeyDeleteRequestDeny](docs/KeyIdAccessKeyDeleteRequestDeny.md)
|
||||||
- [KeyImportPostRequest](docs/KeyImportPostRequest.md)
|
- [KeyImportPostRequest](docs/KeyImportPostRequest.md)
|
||||||
- [KeyInfo](docs/KeyInfo.md)
|
- [KeyInfo](docs/KeyInfo.md)
|
||||||
- [KeyInfoBucketsInner](docs/KeyInfoBucketsInner.md)
|
- [KeyInfoBucketsInner](docs/KeyInfoBucketsInner.md)
|
||||||
|
@ -147,21 +148,21 @@ Class | Method | HTTP request | Description
|
||||||
|
|
||||||
|
|
||||||
## Notes for Large OpenAPI documents
|
## Notes for Large OpenAPI documents
|
||||||
If the OpenAPI document is large, imports in openapi_client.apis and openapi_client.models may fail with a
|
If the OpenAPI document is large, imports in garage_admin_sdk.apis and garage_admin_sdk.models may fail with a
|
||||||
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
|
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
|
||||||
|
|
||||||
Solution 1:
|
Solution 1:
|
||||||
Use specific imports for apis and models like:
|
Use specific imports for apis and models like:
|
||||||
- `from openapi_client.api.default_api import DefaultApi`
|
- `from garage_admin_sdk.api.default_api import DefaultApi`
|
||||||
- `from openapi_client.model.pet import Pet`
|
- `from garage_admin_sdk.model.pet import Pet`
|
||||||
|
|
||||||
Solution 2:
|
Solution 2:
|
||||||
Before importing the package, adjust the maximum recursion limit as shown below:
|
Before importing the package, adjust the maximum recursion limit as shown below:
|
||||||
```
|
```
|
||||||
import sys
|
import sys
|
||||||
sys.setrecursionlimit(1500)
|
sys.setrecursionlimit(1500)
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.apis import *
|
from garage_admin_sdk.apis import *
|
||||||
from openapi_client.models import *
|
from garage_admin_sdk.models import *
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# openapi_client.KeyApi
|
# garage_admin_sdk.KeyApi
|
||||||
|
|
||||||
All URIs are relative to *http://localhost:3903/v0*
|
All URIs are relative to *http://localhost:3903/v0*
|
||||||
|
|
||||||
|
@ -26,14 +26,14 @@ Imports an existing API key. This feature must only be used for migrations and b
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import key_api
|
from garage_admin_sdk.api import key_api
|
||||||
from openapi_client.model.key_import_post_request import KeyImportPostRequest
|
from garage_admin_sdk.model.key_import_post_request import KeyImportPostRequest
|
||||||
from openapi_client.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -43,12 +43,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = key_api.KeyApi(api_client)
|
api_instance = key_api.KeyApi(api_client)
|
||||||
key_import_post_request = KeyImportPostRequest(
|
key_import_post_request = KeyImportPostRequest(
|
||||||
|
@ -63,7 +63,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Import an existing key
|
# Import an existing key
|
||||||
api_response = api_instance.key_import_post(key_import_post_request=key_import_post_request)
|
api_response = api_instance.key_import_post(key_import_post_request=key_import_post_request)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling KeyApi->key_import_post: %s\n" % e)
|
print("Exception when calling KeyApi->key_import_post: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -111,14 +111,14 @@ Creates a new API access key.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import key_api
|
from garage_admin_sdk.api import key_api
|
||||||
from openapi_client.model.key_get_request import KeyGetRequest
|
from garage_admin_sdk.model.key_get_request import KeyGetRequest
|
||||||
from openapi_client.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -128,12 +128,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = key_api.KeyApi(api_client)
|
api_instance = key_api.KeyApi(api_client)
|
||||||
key_get_request = KeyGetRequest(
|
key_get_request = KeyGetRequest(
|
||||||
|
@ -146,7 +146,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Create a new API key
|
# Create a new API key
|
||||||
api_response = api_instance.key_post(key_get_request=key_get_request)
|
api_response = api_instance.key_post(key_get_request=key_get_request)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling KeyApi->key_post: %s\n" % e)
|
print("Exception when calling KeyApi->key_post: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -192,12 +192,12 @@ Delete a key
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import key_api
|
from garage_admin_sdk.api import key_api
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -207,12 +207,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = key_api.KeyApi(api_client)
|
api_instance = key_api.KeyApi(api_client)
|
||||||
access_key = "GK31c2f218a2e44f485b94239e" # str | The exact API access key generated by Garage
|
access_key = "GK31c2f218a2e44f485b94239e" # str | The exact API access key generated by Garage
|
||||||
|
@ -221,7 +221,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
try:
|
try:
|
||||||
# Delete a key
|
# Delete a key
|
||||||
api_instance.keyidaccess_key_delete(access_key)
|
api_instance.keyidaccess_key_delete(access_key)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling KeyApi->keyidaccess_key_delete: %s\n" % e)
|
print("Exception when calling KeyApi->keyidaccess_key_delete: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -268,13 +268,13 @@ Return information about a specific key and return its information
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import key_api
|
from garage_admin_sdk.api import key_api
|
||||||
from openapi_client.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -284,12 +284,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = key_api.KeyApi(api_client)
|
api_instance = key_api.KeyApi(api_client)
|
||||||
access_key = "GK31c2f218a2e44f485b94239e" # str | The exact API access key generated by Garage
|
access_key = "GK31c2f218a2e44f485b94239e" # str | The exact API access key generated by Garage
|
||||||
|
@ -299,7 +299,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Get key information
|
# Get key information
|
||||||
api_response = api_instance.keyidaccess_key_get(access_key)
|
api_response = api_instance.keyidaccess_key_get(access_key)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling KeyApi->keyidaccess_key_get: %s\n" % e)
|
print("Exception when calling KeyApi->keyidaccess_key_get: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -346,14 +346,14 @@ Updates information about the specified API access key.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import key_api
|
from garage_admin_sdk.api import key_api
|
||||||
from openapi_client.model.key_id_access_key_delete_request import KeyIdAccessKeyDeleteRequest
|
from garage_admin_sdk.model.key_id_access_key_delete_request import KeyIdAccessKeyDeleteRequest
|
||||||
from openapi_client.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -363,12 +363,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = key_api.KeyApi(api_client)
|
api_instance = key_api.KeyApi(api_client)
|
||||||
access_key = "GK31c2f218a2e44f485b94239e" # str | The exact API access key generated by Garage
|
access_key = "GK31c2f218a2e44f485b94239e" # str | The exact API access key generated by Garage
|
||||||
|
@ -377,7 +377,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
allow=KeyIdAccessKeyDeleteRequestAllow(
|
allow=KeyIdAccessKeyDeleteRequestAllow(
|
||||||
create_bucket=True,
|
create_bucket=True,
|
||||||
),
|
),
|
||||||
deny=KeyIdAccessKeyDeleteRequestAllow(
|
deny=KeyIdAccessKeyDeleteRequestDeny(
|
||||||
create_bucket=True,
|
create_bucket=True,
|
||||||
),
|
),
|
||||||
) # KeyIdAccessKeyDeleteRequest | For a given key, provide a first set with the permissions to grant, and a second set with the permissions to remove (optional)
|
) # KeyIdAccessKeyDeleteRequest | For a given key, provide a first set with the permissions to grant, and a second set with the permissions to remove (optional)
|
||||||
|
@ -387,7 +387,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Update a key
|
# Update a key
|
||||||
api_response = api_instance.keyidaccess_key_post(access_key)
|
api_response = api_instance.keyidaccess_key_post(access_key)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling KeyApi->keyidaccess_key_post: %s\n" % e)
|
print("Exception when calling KeyApi->keyidaccess_key_post: %s\n" % e)
|
||||||
|
|
||||||
# example passing only required values which don't have defaults set
|
# example passing only required values which don't have defaults set
|
||||||
|
@ -396,7 +396,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Update a key
|
# Update a key
|
||||||
api_response = api_instance.keyidaccess_key_post(access_key, key_id_access_key_delete_request=key_id_access_key_delete_request)
|
api_response = api_instance.keyidaccess_key_post(access_key, key_id_access_key_delete_request=key_id_access_key_delete_request)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling KeyApi->keyidaccess_key_post: %s\n" % e)
|
print("Exception when calling KeyApi->keyidaccess_key_post: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -445,13 +445,13 @@ Find the first key matching the given pattern based on its identifier aor friend
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import key_api
|
from garage_admin_sdk.api import key_api
|
||||||
from openapi_client.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -461,12 +461,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = key_api.KeyApi(api_client)
|
api_instance = key_api.KeyApi(api_client)
|
||||||
pattern = "test-k" # str | A pattern (beginning or full string) corresponding to a key identifier or friendly name
|
pattern = "test-k" # str | A pattern (beginning or full string) corresponding to a key identifier or friendly name
|
||||||
|
@ -476,7 +476,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Select key by pattern
|
# Select key by pattern
|
||||||
api_response = api_instance.keysearchpattern_get(pattern)
|
api_response = api_instance.keysearchpattern_get(pattern)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling KeyApi->keysearchpattern_get: %s\n" % e)
|
print("Exception when calling KeyApi->keysearchpattern_get: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -523,13 +523,13 @@ Returns all API access keys in the cluster.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import key_api
|
from garage_admin_sdk.api import key_api
|
||||||
from openapi_client.model.list_keys200_response_inner import ListKeys200ResponseInner
|
from garage_admin_sdk.model.list_keys200_response_inner import ListKeys200ResponseInner
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -539,12 +539,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = key_api.KeyApi(api_client)
|
api_instance = key_api.KeyApi(api_client)
|
||||||
|
|
||||||
|
@ -553,7 +553,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# List all keys
|
# List all keys
|
||||||
api_response = api_instance.list_keys()
|
api_response = api_instance.list_keys()
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling KeyApi->list_keys: %s\n" % e)
|
print("Exception when calling KeyApi->list_keys: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**name** | **str** | | [optional]
|
**name** | **str** | | [optional]
|
||||||
**allow** | [**KeyIdAccessKeyDeleteRequestAllow**](KeyIdAccessKeyDeleteRequestAllow.md) | | [optional]
|
**allow** | [**KeyIdAccessKeyDeleteRequestAllow**](KeyIdAccessKeyDeleteRequestAllow.md) | | [optional]
|
||||||
**deny** | [**KeyIdAccessKeyDeleteRequestAllow**](KeyIdAccessKeyDeleteRequestAllow.md) | | [optional]
|
**deny** | [**KeyIdAccessKeyDeleteRequestDeny**](KeyIdAccessKeyDeleteRequestDeny.md) | | [optional]
|
||||||
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
12
python/docs/KeyIdAccessKeyDeleteRequestDeny.md
Normal file
12
python/docs/KeyIdAccessKeyDeleteRequestDeny.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# KeyIdAccessKeyDeleteRequestDeny
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**create_bucket** | **bool** | | [optional]
|
||||||
|
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# openapi_client.LayoutApi
|
# garage_admin_sdk.LayoutApi
|
||||||
|
|
||||||
All URIs are relative to *http://localhost:3903/v0*
|
All URIs are relative to *http://localhost:3903/v0*
|
||||||
|
|
||||||
|
@ -23,13 +23,13 @@ Applies to the cluster the layout changes currently registered as staged layout
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import layout_api
|
from garage_admin_sdk.api import layout_api
|
||||||
from openapi_client.model.layout_version import LayoutVersion
|
from garage_admin_sdk.model.layout_version import LayoutVersion
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -39,12 +39,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = layout_api.LayoutApi(api_client)
|
api_instance = layout_api.LayoutApi(api_client)
|
||||||
layout_version = LayoutVersion(
|
layout_version = LayoutVersion(
|
||||||
|
@ -56,7 +56,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
try:
|
try:
|
||||||
# Apply staged layout
|
# Apply staged layout
|
||||||
api_instance.layout_apply_post(layout_version=layout_version)
|
api_instance.layout_apply_post(layout_version=layout_version)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling LayoutApi->layout_apply_post: %s\n" % e)
|
print("Exception when calling LayoutApi->layout_apply_post: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -104,13 +104,13 @@ Returns the cluster's current layout, including: - Currently configured cluste
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import layout_api
|
from garage_admin_sdk.api import layout_api
|
||||||
from openapi_client.model.cluster_layout import ClusterLayout
|
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -120,12 +120,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = layout_api.LayoutApi(api_client)
|
api_instance = layout_api.LayoutApi(api_client)
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Details on the current and staged layout
|
# Details on the current and staged layout
|
||||||
api_response = api_instance.layout_get()
|
api_response = api_instance.layout_get()
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling LayoutApi->layout_get: %s\n" % e)
|
print("Exception when calling LayoutApi->layout_get: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -178,13 +178,13 @@ Send modifications to the cluster layout. These modifications will be included i
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import layout_api
|
from garage_admin_sdk.api import layout_api
|
||||||
from openapi_client.model.node_cluster_info import NodeClusterInfo
|
from garage_admin_sdk.model.node_cluster_info import NodeClusterInfo
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -194,12 +194,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = layout_api.LayoutApi(api_client)
|
api_instance = layout_api.LayoutApi(api_client)
|
||||||
request_body = {
|
request_body = {
|
||||||
|
@ -211,7 +211,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
try:
|
try:
|
||||||
# Send modifications to the cluster layout
|
# Send modifications to the cluster layout
|
||||||
api_instance.layout_post(request_body=request_body)
|
api_instance.layout_post(request_body=request_body)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling LayoutApi->layout_post: %s\n" % e)
|
print("Exception when calling LayoutApi->layout_post: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -259,13 +259,13 @@ Clears all of the staged layout changes.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import layout_api
|
from garage_admin_sdk.api import layout_api
|
||||||
from openapi_client.model.layout_version import LayoutVersion
|
from garage_admin_sdk.model.layout_version import LayoutVersion
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -275,12 +275,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = layout_api.LayoutApi(api_client)
|
api_instance = layout_api.LayoutApi(api_client)
|
||||||
layout_version = LayoutVersion(
|
layout_version = LayoutVersion(
|
||||||
|
@ -292,7 +292,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
try:
|
try:
|
||||||
# Clear staged layout
|
# Clear staged layout
|
||||||
api_instance.layout_revert_post(layout_version=layout_version)
|
api_instance.layout_revert_post(layout_version=layout_version)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling LayoutApi->layout_revert_post: %s\n" % e)
|
print("Exception when calling LayoutApi->layout_revert_post: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# openapi_client.MembershipApi
|
# garage_admin_sdk.MembershipApi
|
||||||
|
|
||||||
All URIs are relative to *http://localhost:3903/v0*
|
All URIs are relative to *http://localhost:3903/v0*
|
||||||
|
|
||||||
|
@ -21,13 +21,13 @@ Instructs this Garage node to connect to other Garage nodes at specified `<node_
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import membership_api
|
from garage_admin_sdk.api import membership_api
|
||||||
from openapi_client.model.connect_post200_response_inner import ConnectPost200ResponseInner
|
from garage_admin_sdk.model.connect_post200_response_inner import ConnectPost200ResponseInner
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -37,12 +37,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = membership_api.MembershipApi(api_client)
|
api_instance = membership_api.MembershipApi(api_client)
|
||||||
request_body = ["ec79480e0ce52ae26fd00c9da684e4fa56658d9c64cdcecb094e936de0bfe71f@10.0.0.11:3901","4a6ae5a1d0d33bf895f5bb4f0a418b7dc94c47c0dd2eb108d1158f3c8f60b0ff@10.0.0.12:3901"] # [str] | (optional)
|
request_body = ["ec79480e0ce52ae26fd00c9da684e4fa56658d9c64cdcecb094e936de0bfe71f@10.0.0.11:3901","4a6ae5a1d0d33bf895f5bb4f0a418b7dc94c47c0dd2eb108d1158f3c8f60b0ff@10.0.0.12:3901"] # [str] | (optional)
|
||||||
|
@ -53,7 +53,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Connect target node to other Garage nodes
|
# Connect target node to other Garage nodes
|
||||||
api_response = api_instance.connect_post(request_body=request_body)
|
api_response = api_instance.connect_post(request_body=request_body)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling MembershipApi->connect_post: %s\n" % e)
|
print("Exception when calling MembershipApi->connect_post: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -101,13 +101,13 @@ Returns the cluster's current status, including: - ID of the node being queried
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import time
|
import time
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api import membership_api
|
from garage_admin_sdk.api import membership_api
|
||||||
from openapi_client.model.status_get200_response import StatusGet200Response
|
from garage_admin_sdk.model.status_get200_response import StatusGet200Response
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
# Defining the host is optional and defaults to http://localhost:3903/v0
|
# Defining the host is optional and defaults to http://localhost:3903/v0
|
||||||
# See configuration.py for a list of all supported configuration parameters.
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
host = "http://localhost:3903/v0"
|
host = "http://localhost:3903/v0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -117,12 +117,12 @@ configuration = openapi_client.Configuration(
|
||||||
# satisfies your auth use case.
|
# satisfies your auth use case.
|
||||||
|
|
||||||
# Configure Bearer authorization: bearerAuth
|
# Configure Bearer authorization: bearerAuth
|
||||||
configuration = openapi_client.Configuration(
|
configuration = garage_admin_sdk.Configuration(
|
||||||
access_token = 'YOUR_BEARER_TOKEN'
|
access_token = 'YOUR_BEARER_TOKEN'
|
||||||
)
|
)
|
||||||
|
|
||||||
# Enter a context with an instance of the API client
|
# Enter a context with an instance of the API client
|
||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with garage_admin_sdk.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = membership_api.MembershipApi(api_client)
|
api_instance = membership_api.MembershipApi(api_client)
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Status of this node and other nodes in the cluster
|
# Status of this node and other nodes in the cluster
|
||||||
api_response = api_instance.status_get()
|
api_response = api_instance.status_get()
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except openapi_client.ApiException as e:
|
except garage_admin_sdk.ApiException as e:
|
||||||
print("Exception when calling MembershipApi->status_get: %s\n" % e)
|
print("Exception when calling MembershipApi->status_get: %s\n" % e)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -10,18 +10,18 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
__version__ = "1.0.0"
|
__version__ = "0.7.3"
|
||||||
|
|
||||||
# import ApiClient
|
# import ApiClient
|
||||||
from openapi_client.api_client import ApiClient
|
from garage_admin_sdk.api_client import ApiClient
|
||||||
|
|
||||||
# import Configuration
|
# import Configuration
|
||||||
from openapi_client.configuration import Configuration
|
from garage_admin_sdk.configuration import Configuration
|
||||||
|
|
||||||
# import exceptions
|
# import exceptions
|
||||||
from openapi_client.exceptions import OpenApiException
|
from garage_admin_sdk.exceptions import OpenApiException
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
from openapi_client.exceptions import ApiTypeError
|
from garage_admin_sdk.exceptions import ApiTypeError
|
||||||
from openapi_client.exceptions import ApiValueError
|
from garage_admin_sdk.exceptions import ApiValueError
|
||||||
from openapi_client.exceptions import ApiKeyError
|
from garage_admin_sdk.exceptions import ApiKeyError
|
||||||
from openapi_client.exceptions import ApiException
|
from garage_admin_sdk.exceptions import ApiException
|
|
@ -1,3 +1,3 @@
|
||||||
# do not import all apis into this module because that uses a lot of memory and stack frames
|
# do not import all apis into this module because that uses a lot of memory and stack frames
|
||||||
# if you need the ability to import all apis from one package, import them with
|
# if you need the ability to import all apis from one package, import them with
|
||||||
# from openapi_client.apis import KeyApi
|
# from garage_admin_sdk.apis import KeyApi
|
|
@ -11,8 +11,8 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.api_client import ApiClient, Endpoint as _Endpoint
|
from garage_admin_sdk.api_client import ApiClient, Endpoint as _Endpoint
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
check_allowed_values,
|
check_allowed_values,
|
||||||
check_validations,
|
check_validations,
|
||||||
date,
|
date,
|
||||||
|
@ -21,11 +21,11 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
none_type,
|
none_type,
|
||||||
validate_and_convert_types
|
validate_and_convert_types
|
||||||
)
|
)
|
||||||
from openapi_client.model.key_get_request import KeyGetRequest
|
from garage_admin_sdk.model.key_get_request import KeyGetRequest
|
||||||
from openapi_client.model.key_id_access_key_delete_request import KeyIdAccessKeyDeleteRequest
|
from garage_admin_sdk.model.key_id_access_key_delete_request import KeyIdAccessKeyDeleteRequest
|
||||||
from openapi_client.model.key_import_post_request import KeyImportPostRequest
|
from garage_admin_sdk.model.key_import_post_request import KeyImportPostRequest
|
||||||
from openapi_client.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
from openapi_client.model.list_keys200_response_inner import ListKeys200ResponseInner
|
from garage_admin_sdk.model.list_keys200_response_inner import ListKeys200ResponseInner
|
||||||
|
|
||||||
|
|
||||||
class KeyApi(object):
|
class KeyApi(object):
|
|
@ -11,8 +11,8 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.api_client import ApiClient, Endpoint as _Endpoint
|
from garage_admin_sdk.api_client import ApiClient, Endpoint as _Endpoint
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
check_allowed_values,
|
check_allowed_values,
|
||||||
check_validations,
|
check_validations,
|
||||||
date,
|
date,
|
||||||
|
@ -21,9 +21,9 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
none_type,
|
none_type,
|
||||||
validate_and_convert_types
|
validate_and_convert_types
|
||||||
)
|
)
|
||||||
from openapi_client.model.cluster_layout import ClusterLayout
|
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
||||||
from openapi_client.model.layout_version import LayoutVersion
|
from garage_admin_sdk.model.layout_version import LayoutVersion
|
||||||
from openapi_client.model.node_cluster_info import NodeClusterInfo
|
from garage_admin_sdk.model.node_cluster_info import NodeClusterInfo
|
||||||
|
|
||||||
|
|
||||||
class LayoutApi(object):
|
class LayoutApi(object):
|
|
@ -11,8 +11,8 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.api_client import ApiClient, Endpoint as _Endpoint
|
from garage_admin_sdk.api_client import ApiClient, Endpoint as _Endpoint
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
check_allowed_values,
|
check_allowed_values,
|
||||||
check_validations,
|
check_validations,
|
||||||
date,
|
date,
|
||||||
|
@ -21,8 +21,8 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
none_type,
|
none_type,
|
||||||
validate_and_convert_types
|
validate_and_convert_types
|
||||||
)
|
)
|
||||||
from openapi_client.model.connect_post200_response_inner import ConnectPost200ResponseInner
|
from garage_admin_sdk.model.connect_post200_response_inner import ConnectPost200ResponseInner
|
||||||
from openapi_client.model.status_get200_response import StatusGet200Response
|
from garage_admin_sdk.model.status_get200_response import StatusGet200Response
|
||||||
|
|
||||||
|
|
||||||
class MembershipApi(object):
|
class MembershipApi(object):
|
|
@ -20,10 +20,10 @@ from urllib.parse import quote
|
||||||
from urllib3.fields import RequestField
|
from urllib3.fields import RequestField
|
||||||
|
|
||||||
|
|
||||||
from openapi_client import rest
|
from garage_admin_sdk import rest
|
||||||
from openapi_client.configuration import Configuration
|
from garage_admin_sdk.configuration import Configuration
|
||||||
from openapi_client.exceptions import ApiTypeError, ApiValueError, ApiException
|
from garage_admin_sdk.exceptions import ApiTypeError, ApiValueError, ApiException
|
||||||
from openapi_client.model_utils import (
|
from garage_admin_sdk.model_utils import (
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
ModelSimple,
|
ModelSimple,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
|
@ -76,7 +76,7 @@ class ApiClient(object):
|
||||||
self.default_headers[header_name] = header_value
|
self.default_headers[header_name] = header_value
|
||||||
self.cookie = cookie
|
self.cookie = cookie
|
||||||
# Set default User-Agent.
|
# Set default User-Agent.
|
||||||
self.user_agent = 'OpenAPI-Generator/1.0.0/python'
|
self.user_agent = 'OpenAPI-Generator/0.7.3/python'
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
return self
|
return self
|
|
@ -6,7 +6,7 @@
|
||||||
# raise a `RecursionError`.
|
# raise a `RecursionError`.
|
||||||
# In order to avoid this, import only the API that you directly need like:
|
# In order to avoid this, import only the API that you directly need like:
|
||||||
#
|
#
|
||||||
# from openapi_client.api.key_api import KeyApi
|
# from garage_admin_sdk.api.key_api import KeyApi
|
||||||
#
|
#
|
||||||
# or import this package, but before doing it, use:
|
# or import this package, but before doing it, use:
|
||||||
#
|
#
|
||||||
|
@ -14,6 +14,6 @@
|
||||||
# sys.setrecursionlimit(n)
|
# sys.setrecursionlimit(n)
|
||||||
|
|
||||||
# Import APIs into API package:
|
# Import APIs into API package:
|
||||||
from openapi_client.api.key_api import KeyApi
|
from garage_admin_sdk.api.key_api import KeyApi
|
||||||
from openapi_client.api.layout_api import LayoutApi
|
from garage_admin_sdk.api.layout_api import LayoutApi
|
||||||
from openapi_client.api.membership_api import MembershipApi
|
from garage_admin_sdk.api.membership_api import MembershipApi
|
|
@ -15,7 +15,7 @@ import sys
|
||||||
import urllib3
|
import urllib3
|
||||||
|
|
||||||
from http import client as http_client
|
from http import client as http_client
|
||||||
from openapi_client.exceptions import ApiValueError
|
from garage_admin_sdk.exceptions import ApiValueError
|
||||||
|
|
||||||
|
|
||||||
JSON_SCHEMA_VALIDATION_KEYWORDS = {
|
JSON_SCHEMA_VALIDATION_KEYWORDS = {
|
||||||
|
@ -133,7 +133,7 @@ class Configuration(object):
|
||||||
self.logger = {}
|
self.logger = {}
|
||||||
"""Logging Settings
|
"""Logging Settings
|
||||||
"""
|
"""
|
||||||
self.logger["package_logger"] = logging.getLogger("openapi_client")
|
self.logger["package_logger"] = logging.getLogger("garage_admin_sdk")
|
||||||
self.logger["urllib3_logger"] = logging.getLogger("urllib3")
|
self.logger["urllib3_logger"] = logging.getLogger("urllib3")
|
||||||
self.logger_format = '%(asctime)s %(levelname)s %(message)s'
|
self.logger_format = '%(asctime)s %(levelname)s %(message)s'
|
||||||
"""Log format
|
"""Log format
|
||||||
|
@ -388,7 +388,7 @@ class Configuration(object):
|
||||||
"OS: {env}\n"\
|
"OS: {env}\n"\
|
||||||
"Python Version: {pyversion}\n"\
|
"Python Version: {pyversion}\n"\
|
||||||
"Version of the API: v0.7.3\n"\
|
"Version of the API: v0.7.3\n"\
|
||||||
"SDK Package Version: 1.0.0".\
|
"SDK Package Version: 0.7.3".\
|
||||||
format(env=sys.platform, pyversion=sys.version)
|
format(env=sys.platform, pyversion=sys.version)
|
||||||
|
|
||||||
def get_host_settings(self):
|
def get_host_settings(self):
|
|
@ -2,4 +2,4 @@
|
||||||
# reference which would not work in python2
|
# reference which would not work in python2
|
||||||
# do not import all models into this module because that uses a lot of memory and stack frames
|
# do not import all models into this module because that uses a lot of memory and stack frames
|
||||||
# if you need the ability to import all models from one package, import them with
|
# if you need the ability to import all models from one package, import them with
|
||||||
# from openapi_client.models import ModelA, ModelB
|
# from garage_admin_sdk.models import ModelA, ModelB
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,11 +26,11 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
def lazy_import():
|
def lazy_import():
|
||||||
from openapi_client.model.node_cluster_info import NodeClusterInfo
|
from garage_admin_sdk.model.node_cluster_info import NodeClusterInfo
|
||||||
globals()['NodeClusterInfo'] = NodeClusterInfo
|
globals()['NodeClusterInfo'] = NodeClusterInfo
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,7 +26,7 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,7 +26,7 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,12 +26,14 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
def lazy_import():
|
def lazy_import():
|
||||||
from openapi_client.model.key_id_access_key_delete_request_allow import KeyIdAccessKeyDeleteRequestAllow
|
from garage_admin_sdk.model.key_id_access_key_delete_request_allow import KeyIdAccessKeyDeleteRequestAllow
|
||||||
|
from garage_admin_sdk.model.key_id_access_key_delete_request_deny import KeyIdAccessKeyDeleteRequestDeny
|
||||||
globals()['KeyIdAccessKeyDeleteRequestAllow'] = KeyIdAccessKeyDeleteRequestAllow
|
globals()['KeyIdAccessKeyDeleteRequestAllow'] = KeyIdAccessKeyDeleteRequestAllow
|
||||||
|
globals()['KeyIdAccessKeyDeleteRequestDeny'] = KeyIdAccessKeyDeleteRequestDeny
|
||||||
|
|
||||||
|
|
||||||
class KeyIdAccessKeyDeleteRequest(ModelNormal):
|
class KeyIdAccessKeyDeleteRequest(ModelNormal):
|
||||||
|
@ -89,7 +91,7 @@ class KeyIdAccessKeyDeleteRequest(ModelNormal):
|
||||||
return {
|
return {
|
||||||
'name': (str,), # noqa: E501
|
'name': (str,), # noqa: E501
|
||||||
'allow': (KeyIdAccessKeyDeleteRequestAllow,), # noqa: E501
|
'allow': (KeyIdAccessKeyDeleteRequestAllow,), # noqa: E501
|
||||||
'deny': (KeyIdAccessKeyDeleteRequestAllow,), # noqa: E501
|
'deny': (KeyIdAccessKeyDeleteRequestDeny,), # noqa: E501
|
||||||
}
|
}
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
|
@ -146,7 +148,7 @@ class KeyIdAccessKeyDeleteRequest(ModelNormal):
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
name (str): [optional] # noqa: E501
|
name (str): [optional] # noqa: E501
|
||||||
allow (KeyIdAccessKeyDeleteRequestAllow): [optional] # noqa: E501
|
allow (KeyIdAccessKeyDeleteRequestAllow): [optional] # noqa: E501
|
||||||
deny (KeyIdAccessKeyDeleteRequestAllow): [optional] # noqa: E501
|
deny (KeyIdAccessKeyDeleteRequestDeny): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
||||||
|
@ -234,7 +236,7 @@ class KeyIdAccessKeyDeleteRequest(ModelNormal):
|
||||||
_visited_composed_classes = (Animal,)
|
_visited_composed_classes = (Animal,)
|
||||||
name (str): [optional] # noqa: E501
|
name (str): [optional] # noqa: E501
|
||||||
allow (KeyIdAccessKeyDeleteRequestAllow): [optional] # noqa: E501
|
allow (KeyIdAccessKeyDeleteRequestAllow): [optional] # noqa: E501
|
||||||
deny (KeyIdAccessKeyDeleteRequestAllow): [optional] # noqa: E501
|
deny (KeyIdAccessKeyDeleteRequestDeny): [optional] # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_check_type = kwargs.pop('_check_type', True)
|
_check_type = kwargs.pop('_check_type', True)
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,7 +26,7 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,263 @@
|
||||||
|
"""
|
||||||
|
Garage Administration API v0+garage-v0.7.3
|
||||||
|
|
||||||
|
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.7.3
|
||||||
|
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 KeyIdAccessKeyDeleteRequestDeny(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 {
|
||||||
|
'create_bucket': (bool,), # noqa: E501
|
||||||
|
}
|
||||||
|
|
||||||
|
@cached_property
|
||||||
|
def discriminator():
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
'create_bucket': 'createBucket', # noqa: E501
|
||||||
|
}
|
||||||
|
|
||||||
|
read_only_vars = {
|
||||||
|
}
|
||||||
|
|
||||||
|
_composed_schemas = {}
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
@convert_js_args_to_python_args
|
||||||
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
||||||
|
"""KeyIdAccessKeyDeleteRequestDeny - 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,)
|
||||||
|
create_bucket (bool): [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__,)
|
||||||
|
|
||||||
|
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, *args, **kwargs): # noqa: E501
|
||||||
|
"""KeyIdAccessKeyDeleteRequestDeny - 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,)
|
||||||
|
create_bucket (bool): [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__,)
|
||||||
|
|
||||||
|
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.")
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,7 +26,7 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,12 +26,12 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
def lazy_import():
|
def lazy_import():
|
||||||
from openapi_client.model.key_info_buckets_inner import KeyInfoBucketsInner
|
from garage_admin_sdk.model.key_info_buckets_inner import KeyInfoBucketsInner
|
||||||
from openapi_client.model.key_info_permissions import KeyInfoPermissions
|
from garage_admin_sdk.model.key_info_permissions import KeyInfoPermissions
|
||||||
globals()['KeyInfoBucketsInner'] = KeyInfoBucketsInner
|
globals()['KeyInfoBucketsInner'] = KeyInfoBucketsInner
|
||||||
globals()['KeyInfoPermissions'] = KeyInfoPermissions
|
globals()['KeyInfoPermissions'] = KeyInfoPermissions
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,11 +26,11 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
def lazy_import():
|
def lazy_import():
|
||||||
from openapi_client.model.key_info_buckets_inner_permissions import KeyInfoBucketsInnerPermissions
|
from garage_admin_sdk.model.key_info_buckets_inner_permissions import KeyInfoBucketsInnerPermissions
|
||||||
globals()['KeyInfoBucketsInnerPermissions'] = KeyInfoBucketsInnerPermissions
|
globals()['KeyInfoBucketsInnerPermissions'] = KeyInfoBucketsInnerPermissions
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,7 +26,7 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,7 +26,7 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,7 +26,7 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,7 +26,7 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,7 +26,7 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,7 +26,7 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
import re # noqa: F401
|
import re # noqa: F401
|
||||||
import sys # noqa: F401
|
import sys # noqa: F401
|
||||||
|
|
||||||
from openapi_client.model_utils import ( # noqa: F401
|
from garage_admin_sdk.model_utils import ( # noqa: F401
|
||||||
ApiTypeError,
|
ApiTypeError,
|
||||||
ModelComposed,
|
ModelComposed,
|
||||||
ModelNormal,
|
ModelNormal,
|
||||||
|
@ -26,12 +26,12 @@ from openapi_client.model_utils import ( # noqa: F401
|
||||||
validate_get_composed_info,
|
validate_get_composed_info,
|
||||||
OpenApiModel
|
OpenApiModel
|
||||||
)
|
)
|
||||||
from openapi_client.exceptions import ApiAttributeError
|
from garage_admin_sdk.exceptions import ApiAttributeError
|
||||||
|
|
||||||
|
|
||||||
def lazy_import():
|
def lazy_import():
|
||||||
from openapi_client.model.cluster_layout import ClusterLayout
|
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
||||||
from openapi_client.model.node_network_info import NodeNetworkInfo
|
from garage_admin_sdk.model.node_network_info import NodeNetworkInfo
|
||||||
globals()['ClusterLayout'] = ClusterLayout
|
globals()['ClusterLayout'] = ClusterLayout
|
||||||
globals()['NodeNetworkInfo'] = NodeNetworkInfo
|
globals()['NodeNetworkInfo'] = NodeNetworkInfo
|
||||||
|
|
|
@ -20,7 +20,7 @@ import uuid
|
||||||
|
|
||||||
from dateutil.parser import parse
|
from dateutil.parser import parse
|
||||||
|
|
||||||
from openapi_client.exceptions import (
|
from garage_admin_sdk.exceptions import (
|
||||||
ApiKeyError,
|
ApiKeyError,
|
||||||
ApiAttributeError,
|
ApiAttributeError,
|
||||||
ApiTypeError,
|
ApiTypeError,
|
27
python/garage_admin_sdk/models/__init__.py
Normal file
27
python/garage_admin_sdk/models/__init__.py
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# flake8: noqa
|
||||||
|
|
||||||
|
# import all models into this package
|
||||||
|
# if you have many models here with many references from one model to another this may
|
||||||
|
# raise a RecursionError
|
||||||
|
# to avoid this, import only the models that you directly need like:
|
||||||
|
# from from garage_admin_sdk.model.pet import Pet
|
||||||
|
# or import this package, but before doing it, use:
|
||||||
|
# import sys
|
||||||
|
# sys.setrecursionlimit(n)
|
||||||
|
|
||||||
|
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
||||||
|
from garage_admin_sdk.model.connect_post200_response_inner import ConnectPost200ResponseInner
|
||||||
|
from garage_admin_sdk.model.key_get_request import KeyGetRequest
|
||||||
|
from garage_admin_sdk.model.key_id_access_key_delete_request import KeyIdAccessKeyDeleteRequest
|
||||||
|
from garage_admin_sdk.model.key_id_access_key_delete_request_allow import KeyIdAccessKeyDeleteRequestAllow
|
||||||
|
from garage_admin_sdk.model.key_id_access_key_delete_request_deny import KeyIdAccessKeyDeleteRequestDeny
|
||||||
|
from garage_admin_sdk.model.key_import_post_request import KeyImportPostRequest
|
||||||
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
|
from garage_admin_sdk.model.key_info_buckets_inner import KeyInfoBucketsInner
|
||||||
|
from garage_admin_sdk.model.key_info_buckets_inner_permissions import KeyInfoBucketsInnerPermissions
|
||||||
|
from garage_admin_sdk.model.key_info_permissions import KeyInfoPermissions
|
||||||
|
from garage_admin_sdk.model.layout_version import LayoutVersion
|
||||||
|
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.status_get200_response import StatusGet200Response
|
|
@ -19,7 +19,7 @@ from urllib.request import proxy_bypass_environment
|
||||||
import urllib3
|
import urllib3
|
||||||
import ipaddress
|
import ipaddress
|
||||||
|
|
||||||
from openapi_client.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError
|
from garage_admin_sdk.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
|
@ -1,26 +0,0 @@
|
||||||
# flake8: noqa
|
|
||||||
|
|
||||||
# import all models into this package
|
|
||||||
# if you have many models here with many references from one model to another this may
|
|
||||||
# raise a RecursionError
|
|
||||||
# to avoid this, import only the models that you directly need like:
|
|
||||||
# from from openapi_client.model.pet import Pet
|
|
||||||
# or import this package, but before doing it, use:
|
|
||||||
# import sys
|
|
||||||
# sys.setrecursionlimit(n)
|
|
||||||
|
|
||||||
from openapi_client.model.cluster_layout import ClusterLayout
|
|
||||||
from openapi_client.model.connect_post200_response_inner import ConnectPost200ResponseInner
|
|
||||||
from openapi_client.model.key_get_request import KeyGetRequest
|
|
||||||
from openapi_client.model.key_id_access_key_delete_request import KeyIdAccessKeyDeleteRequest
|
|
||||||
from openapi_client.model.key_id_access_key_delete_request_allow import KeyIdAccessKeyDeleteRequestAllow
|
|
||||||
from openapi_client.model.key_import_post_request import KeyImportPostRequest
|
|
||||||
from openapi_client.model.key_info import KeyInfo
|
|
||||||
from openapi_client.model.key_info_buckets_inner import KeyInfoBucketsInner
|
|
||||||
from openapi_client.model.key_info_buckets_inner_permissions import KeyInfoBucketsInnerPermissions
|
|
||||||
from openapi_client.model.key_info_permissions import KeyInfoPermissions
|
|
||||||
from openapi_client.model.layout_version import LayoutVersion
|
|
||||||
from openapi_client.model.list_keys200_response_inner import ListKeys200ResponseInner
|
|
||||||
from openapi_client.model.node_cluster_info import NodeClusterInfo
|
|
||||||
from openapi_client.model.node_network_info import NodeNetworkInfo
|
|
||||||
from openapi_client.model.status_get200_response import StatusGet200Response
|
|
|
@ -10,8 +10,8 @@
|
||||||
|
|
||||||
from setuptools import setup, find_packages # noqa: H301
|
from setuptools import setup, find_packages # noqa: H301
|
||||||
|
|
||||||
NAME = "openapi-client"
|
NAME = "garage-admin-sdk"
|
||||||
VERSION = "1.0.0"
|
VERSION = "0.7.3"
|
||||||
# To install the library, run the following
|
# To install the library, run the following
|
||||||
#
|
#
|
||||||
# python setup.py install
|
# python setup.py install
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.node_cluster_info import NodeClusterInfo
|
from garage_admin_sdk.model.node_cluster_info import NodeClusterInfo
|
||||||
globals()['NodeClusterInfo'] = NodeClusterInfo
|
globals()['NodeClusterInfo'] = NodeClusterInfo
|
||||||
from openapi_client.model.cluster_layout import ClusterLayout
|
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
||||||
|
|
||||||
|
|
||||||
class TestClusterLayout(unittest.TestCase):
|
class TestClusterLayout(unittest.TestCase):
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.connect_post200_response_inner import ConnectPost200ResponseInner
|
from garage_admin_sdk.model.connect_post200_response_inner import ConnectPost200ResponseInner
|
||||||
|
|
||||||
|
|
||||||
class TestConnectPost200ResponseInner(unittest.TestCase):
|
class TestConnectPost200ResponseInner(unittest.TestCase):
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api.key_api import KeyApi # noqa: E501
|
from garage_admin_sdk.api.key_api import KeyApi # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
class TestKeyApi(unittest.TestCase):
|
class TestKeyApi(unittest.TestCase):
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.key_get_request import KeyGetRequest
|
from garage_admin_sdk.model.key_get_request import KeyGetRequest
|
||||||
|
|
||||||
|
|
||||||
class TestKeyGetRequest(unittest.TestCase):
|
class TestKeyGetRequest(unittest.TestCase):
|
||||||
|
|
|
@ -11,10 +11,12 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.key_id_access_key_delete_request_allow import KeyIdAccessKeyDeleteRequestAllow
|
from garage_admin_sdk.model.key_id_access_key_delete_request_allow import KeyIdAccessKeyDeleteRequestAllow
|
||||||
|
from garage_admin_sdk.model.key_id_access_key_delete_request_deny import KeyIdAccessKeyDeleteRequestDeny
|
||||||
globals()['KeyIdAccessKeyDeleteRequestAllow'] = KeyIdAccessKeyDeleteRequestAllow
|
globals()['KeyIdAccessKeyDeleteRequestAllow'] = KeyIdAccessKeyDeleteRequestAllow
|
||||||
from openapi_client.model.key_id_access_key_delete_request import KeyIdAccessKeyDeleteRequest
|
globals()['KeyIdAccessKeyDeleteRequestDeny'] = KeyIdAccessKeyDeleteRequestDeny
|
||||||
|
from garage_admin_sdk.model.key_id_access_key_delete_request import KeyIdAccessKeyDeleteRequest
|
||||||
|
|
||||||
|
|
||||||
class TestKeyIdAccessKeyDeleteRequest(unittest.TestCase):
|
class TestKeyIdAccessKeyDeleteRequest(unittest.TestCase):
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.key_id_access_key_delete_request_allow import KeyIdAccessKeyDeleteRequestAllow
|
from garage_admin_sdk.model.key_id_access_key_delete_request_allow import KeyIdAccessKeyDeleteRequestAllow
|
||||||
|
|
||||||
|
|
||||||
class TestKeyIdAccessKeyDeleteRequestAllow(unittest.TestCase):
|
class TestKeyIdAccessKeyDeleteRequestAllow(unittest.TestCase):
|
||||||
|
|
35
python/test/test_key_id_access_key_delete_request_deny.py
Normal file
35
python/test/test_key_id_access_key_delete_request_deny.py
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
"""
|
||||||
|
Garage Administration API v0+garage-v0.7.3
|
||||||
|
|
||||||
|
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.7.3
|
||||||
|
Generated by: https://openapi-generator.tech
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
import garage_admin_sdk
|
||||||
|
from garage_admin_sdk.model.key_id_access_key_delete_request_deny import KeyIdAccessKeyDeleteRequestDeny
|
||||||
|
|
||||||
|
|
||||||
|
class TestKeyIdAccessKeyDeleteRequestDeny(unittest.TestCase):
|
||||||
|
"""KeyIdAccessKeyDeleteRequestDeny unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def testKeyIdAccessKeyDeleteRequestDeny(self):
|
||||||
|
"""Test KeyIdAccessKeyDeleteRequestDeny"""
|
||||||
|
# FIXME: construct object with mandatory attributes with example values
|
||||||
|
# model = KeyIdAccessKeyDeleteRequestDeny() # noqa: E501
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
|
@ -11,8 +11,8 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.key_import_post_request import KeyImportPostRequest
|
from garage_admin_sdk.model.key_import_post_request import KeyImportPostRequest
|
||||||
|
|
||||||
|
|
||||||
class TestKeyImportPostRequest(unittest.TestCase):
|
class TestKeyImportPostRequest(unittest.TestCase):
|
||||||
|
|
|
@ -11,12 +11,12 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.key_info_buckets_inner import KeyInfoBucketsInner
|
from garage_admin_sdk.model.key_info_buckets_inner import KeyInfoBucketsInner
|
||||||
from openapi_client.model.key_info_permissions import KeyInfoPermissions
|
from garage_admin_sdk.model.key_info_permissions import KeyInfoPermissions
|
||||||
globals()['KeyInfoBucketsInner'] = KeyInfoBucketsInner
|
globals()['KeyInfoBucketsInner'] = KeyInfoBucketsInner
|
||||||
globals()['KeyInfoPermissions'] = KeyInfoPermissions
|
globals()['KeyInfoPermissions'] = KeyInfoPermissions
|
||||||
from openapi_client.model.key_info import KeyInfo
|
from garage_admin_sdk.model.key_info import KeyInfo
|
||||||
|
|
||||||
|
|
||||||
class TestKeyInfo(unittest.TestCase):
|
class TestKeyInfo(unittest.TestCase):
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.key_info_buckets_inner_permissions import KeyInfoBucketsInnerPermissions
|
from garage_admin_sdk.model.key_info_buckets_inner_permissions import KeyInfoBucketsInnerPermissions
|
||||||
globals()['KeyInfoBucketsInnerPermissions'] = KeyInfoBucketsInnerPermissions
|
globals()['KeyInfoBucketsInnerPermissions'] = KeyInfoBucketsInnerPermissions
|
||||||
from openapi_client.model.key_info_buckets_inner import KeyInfoBucketsInner
|
from garage_admin_sdk.model.key_info_buckets_inner import KeyInfoBucketsInner
|
||||||
|
|
||||||
|
|
||||||
class TestKeyInfoBucketsInner(unittest.TestCase):
|
class TestKeyInfoBucketsInner(unittest.TestCase):
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.key_info_buckets_inner_permissions import KeyInfoBucketsInnerPermissions
|
from garage_admin_sdk.model.key_info_buckets_inner_permissions import KeyInfoBucketsInnerPermissions
|
||||||
|
|
||||||
|
|
||||||
class TestKeyInfoBucketsInnerPermissions(unittest.TestCase):
|
class TestKeyInfoBucketsInnerPermissions(unittest.TestCase):
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.key_info_permissions import KeyInfoPermissions
|
from garage_admin_sdk.model.key_info_permissions import KeyInfoPermissions
|
||||||
|
|
||||||
|
|
||||||
class TestKeyInfoPermissions(unittest.TestCase):
|
class TestKeyInfoPermissions(unittest.TestCase):
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api.layout_api import LayoutApi # noqa: E501
|
from garage_admin_sdk.api.layout_api import LayoutApi # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
class TestLayoutApi(unittest.TestCase):
|
class TestLayoutApi(unittest.TestCase):
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.layout_version import LayoutVersion
|
from garage_admin_sdk.model.layout_version import LayoutVersion
|
||||||
|
|
||||||
|
|
||||||
class TestLayoutVersion(unittest.TestCase):
|
class TestLayoutVersion(unittest.TestCase):
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.list_keys200_response_inner import ListKeys200ResponseInner
|
from garage_admin_sdk.model.list_keys200_response_inner import ListKeys200ResponseInner
|
||||||
|
|
||||||
|
|
||||||
class TestListKeys200ResponseInner(unittest.TestCase):
|
class TestListKeys200ResponseInner(unittest.TestCase):
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.api.membership_api import MembershipApi # noqa: E501
|
from garage_admin_sdk.api.membership_api import MembershipApi # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
class TestMembershipApi(unittest.TestCase):
|
class TestMembershipApi(unittest.TestCase):
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.node_cluster_info import NodeClusterInfo
|
from garage_admin_sdk.model.node_cluster_info import NodeClusterInfo
|
||||||
|
|
||||||
|
|
||||||
class TestNodeClusterInfo(unittest.TestCase):
|
class TestNodeClusterInfo(unittest.TestCase):
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.node_network_info import NodeNetworkInfo
|
from garage_admin_sdk.model.node_network_info import NodeNetworkInfo
|
||||||
|
|
||||||
|
|
||||||
class TestNodeNetworkInfo(unittest.TestCase):
|
class TestNodeNetworkInfo(unittest.TestCase):
|
||||||
|
|
|
@ -11,12 +11,12 @@
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import openapi_client
|
import garage_admin_sdk
|
||||||
from openapi_client.model.cluster_layout import ClusterLayout
|
from garage_admin_sdk.model.cluster_layout import ClusterLayout
|
||||||
from openapi_client.model.node_network_info import NodeNetworkInfo
|
from garage_admin_sdk.model.node_network_info import NodeNetworkInfo
|
||||||
globals()['ClusterLayout'] = ClusterLayout
|
globals()['ClusterLayout'] = ClusterLayout
|
||||||
globals()['NodeNetworkInfo'] = NodeNetworkInfo
|
globals()['NodeNetworkInfo'] = NodeNetworkInfo
|
||||||
from openapi_client.model.status_get200_response import StatusGet200Response
|
from garage_admin_sdk.model.status_get200_response import StatusGet200Response
|
||||||
|
|
||||||
|
|
||||||
class TestStatusGet200Response(unittest.TestCase):
|
class TestStatusGet200Response(unittest.TestCase):
|
||||||
|
|
|
@ -6,4 +6,4 @@ deps=-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
|
|
||||||
commands=
|
commands=
|
||||||
pytest --cov=openapi_client
|
pytest --cov=garage_admin_sdk
|
||||||
|
|
Loading…
Reference in a new issue