mirror of
https://github.com/openziti/zrok.git
synced 2025-06-20 09:48:07 +02:00
temporarily commit the generated py client
This commit is contained in:
parent
ce4491723f
commit
97d76d45cd
66
sdk/python/src/.gitignore
vendored
Normal file
66
sdk/python/src/.gitignore
vendored
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
# Byte-compiled / optimized / DLL files
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
*$py.class
|
||||||
|
|
||||||
|
# C extensions
|
||||||
|
*.so
|
||||||
|
|
||||||
|
# Distribution / packaging
|
||||||
|
.Python
|
||||||
|
env/
|
||||||
|
build/
|
||||||
|
develop-eggs/
|
||||||
|
dist/
|
||||||
|
downloads/
|
||||||
|
eggs/
|
||||||
|
.eggs/
|
||||||
|
lib/
|
||||||
|
lib64/
|
||||||
|
parts/
|
||||||
|
sdist/
|
||||||
|
var/
|
||||||
|
*.egg-info/
|
||||||
|
.installed.cfg
|
||||||
|
*.egg
|
||||||
|
|
||||||
|
# PyInstaller
|
||||||
|
# Usually these files are written by a python script from a template
|
||||||
|
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||||
|
*.manifest
|
||||||
|
*.spec
|
||||||
|
|
||||||
|
# Installer logs
|
||||||
|
pip-log.txt
|
||||||
|
pip-delete-this-directory.txt
|
||||||
|
|
||||||
|
# Unit test / coverage reports
|
||||||
|
htmlcov/
|
||||||
|
.tox/
|
||||||
|
.coverage
|
||||||
|
.coverage.*
|
||||||
|
.cache
|
||||||
|
nosetests.xml
|
||||||
|
coverage.xml
|
||||||
|
*,cover
|
||||||
|
.hypothesis/
|
||||||
|
venv/
|
||||||
|
.venv/
|
||||||
|
.python-version
|
||||||
|
.pytest_cache
|
||||||
|
|
||||||
|
# Translations
|
||||||
|
*.mo
|
||||||
|
*.pot
|
||||||
|
|
||||||
|
# Django stuff:
|
||||||
|
*.log
|
||||||
|
|
||||||
|
# Sphinx documentation
|
||||||
|
docs/_build/
|
||||||
|
|
||||||
|
# PyBuilder
|
||||||
|
target/
|
||||||
|
|
||||||
|
#Ipython Notebook
|
||||||
|
.ipynb_checkpoints
|
215
sdk/python/src/README.md
Normal file
215
sdk/python/src/README.md
Normal file
@ -0,0 +1,215 @@
|
|||||||
|
# zrok
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
|
- API version: 1.0.0
|
||||||
|
- Package version: 1.0.0
|
||||||
|
- Generator version: 7.12.0
|
||||||
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
||||||
|
|
||||||
|
## Requirements.
|
||||||
|
|
||||||
|
Python 3.8+
|
||||||
|
|
||||||
|
## Installation & Usage
|
||||||
|
### pip install
|
||||||
|
|
||||||
|
If the python package is hosted on a repository, you can install directly using:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
|
||||||
|
```
|
||||||
|
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
|
||||||
|
|
||||||
|
Then import the package:
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
```
|
||||||
|
|
||||||
|
### Setuptools
|
||||||
|
|
||||||
|
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
|
||||||
|
|
||||||
|
```sh
|
||||||
|
python setup.py install --user
|
||||||
|
```
|
||||||
|
(or `sudo python setup.py install` to install the package for all users)
|
||||||
|
|
||||||
|
Then import the package:
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
```
|
||||||
|
|
||||||
|
### Tests
|
||||||
|
|
||||||
|
Execute `pytest` to run the tests.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
Please follow the [installation procedure](#installation--usage) and then run the following:
|
||||||
|
|
||||||
|
```python
|
||||||
|
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
# The client must configure the authentication and authorization parameters
|
||||||
|
# in accordance with the API server security policy.
|
||||||
|
# Examples for each auth method are provided below, use the example that
|
||||||
|
# satisfies your auth use case.
|
||||||
|
|
||||||
|
# Configure API key authorization: key
|
||||||
|
configuration.api_key['key'] = os.environ["API_KEY"]
|
||||||
|
|
||||||
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
# configuration.api_key_prefix['key'] = 'Bearer'
|
||||||
|
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.AccountApi(api_client)
|
||||||
|
body = zrok_api.ChangePasswordRequest() # ChangePasswordRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_instance.change_password(body=body)
|
||||||
|
except ApiException as e:
|
||||||
|
print("Exception when calling AccountApi->change_password: %s\n" % e)
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation for API Endpoints
|
||||||
|
|
||||||
|
All URIs are relative to */api/v1*
|
||||||
|
|
||||||
|
Class | Method | HTTP request | Description
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
*AccountApi* | [**change_password**](docs/AccountApi.md#change_password) | **POST** /changePassword |
|
||||||
|
*AccountApi* | [**invite**](docs/AccountApi.md#invite) | **POST** /invite |
|
||||||
|
*AccountApi* | [**login**](docs/AccountApi.md#login) | **POST** /login |
|
||||||
|
*AccountApi* | [**regenerate_account_token**](docs/AccountApi.md#regenerate_account_token) | **POST** /regenerateAccountToken |
|
||||||
|
*AccountApi* | [**register**](docs/AccountApi.md#register) | **POST** /register |
|
||||||
|
*AccountApi* | [**reset_password**](docs/AccountApi.md#reset_password) | **POST** /resetPassword |
|
||||||
|
*AccountApi* | [**reset_password_request**](docs/AccountApi.md#reset_password_request) | **POST** /resetPasswordRequest |
|
||||||
|
*AccountApi* | [**verify**](docs/AccountApi.md#verify) | **POST** /verify |
|
||||||
|
*AdminApi* | [**add_organization_member**](docs/AdminApi.md#add_organization_member) | **POST** /organization/add |
|
||||||
|
*AdminApi* | [**create_account**](docs/AdminApi.md#create_account) | **POST** /account |
|
||||||
|
*AdminApi* | [**create_frontend**](docs/AdminApi.md#create_frontend) | **POST** /frontend |
|
||||||
|
*AdminApi* | [**create_identity**](docs/AdminApi.md#create_identity) | **POST** /identity |
|
||||||
|
*AdminApi* | [**create_organization**](docs/AdminApi.md#create_organization) | **POST** /organization |
|
||||||
|
*AdminApi* | [**delete_frontend**](docs/AdminApi.md#delete_frontend) | **DELETE** /frontend |
|
||||||
|
*AdminApi* | [**delete_organization**](docs/AdminApi.md#delete_organization) | **DELETE** /organization |
|
||||||
|
*AdminApi* | [**grants**](docs/AdminApi.md#grants) | **POST** /grants |
|
||||||
|
*AdminApi* | [**invite_token_generate**](docs/AdminApi.md#invite_token_generate) | **POST** /invite/token/generate |
|
||||||
|
*AdminApi* | [**list_frontends**](docs/AdminApi.md#list_frontends) | **GET** /frontends |
|
||||||
|
*AdminApi* | [**list_organization_members**](docs/AdminApi.md#list_organization_members) | **POST** /organization/list |
|
||||||
|
*AdminApi* | [**list_organizations**](docs/AdminApi.md#list_organizations) | **GET** /organizations |
|
||||||
|
*AdminApi* | [**remove_organization_member**](docs/AdminApi.md#remove_organization_member) | **POST** /organization/remove |
|
||||||
|
*AdminApi* | [**update_frontend**](docs/AdminApi.md#update_frontend) | **PATCH** /frontend |
|
||||||
|
*EnvironmentApi* | [**disable**](docs/EnvironmentApi.md#disable) | **POST** /disable |
|
||||||
|
*EnvironmentApi* | [**enable**](docs/EnvironmentApi.md#enable) | **POST** /enable |
|
||||||
|
*MetadataApi* | [**client_version_check**](docs/MetadataApi.md#client_version_check) | **POST** /clientVersionCheck |
|
||||||
|
*MetadataApi* | [**configuration**](docs/MetadataApi.md#configuration) | **GET** /configuration |
|
||||||
|
*MetadataApi* | [**get_account_detail**](docs/MetadataApi.md#get_account_detail) | **GET** /detail/account |
|
||||||
|
*MetadataApi* | [**get_account_metrics**](docs/MetadataApi.md#get_account_metrics) | **GET** /metrics/account |
|
||||||
|
*MetadataApi* | [**get_environment_detail**](docs/MetadataApi.md#get_environment_detail) | **GET** /detail/environment/{envZId} |
|
||||||
|
*MetadataApi* | [**get_environment_metrics**](docs/MetadataApi.md#get_environment_metrics) | **GET** /metrics/environment/{envId} |
|
||||||
|
*MetadataApi* | [**get_frontend_detail**](docs/MetadataApi.md#get_frontend_detail) | **GET** /detail/frontend/{frontendId} |
|
||||||
|
*MetadataApi* | [**get_share_detail**](docs/MetadataApi.md#get_share_detail) | **GET** /detail/share/{shareToken} |
|
||||||
|
*MetadataApi* | [**get_share_metrics**](docs/MetadataApi.md#get_share_metrics) | **GET** /metrics/share/{shareToken} |
|
||||||
|
*MetadataApi* | [**get_sparklines**](docs/MetadataApi.md#get_sparklines) | **POST** /sparklines |
|
||||||
|
*MetadataApi* | [**list_memberships**](docs/MetadataApi.md#list_memberships) | **GET** /memberships |
|
||||||
|
*MetadataApi* | [**list_org_members**](docs/MetadataApi.md#list_org_members) | **GET** /members/{organizationToken} |
|
||||||
|
*MetadataApi* | [**org_account_overview**](docs/MetadataApi.md#org_account_overview) | **GET** /overview/{organizationToken}/{accountEmail} |
|
||||||
|
*MetadataApi* | [**overview**](docs/MetadataApi.md#overview) | **GET** /overview |
|
||||||
|
*MetadataApi* | [**version**](docs/MetadataApi.md#version) | **GET** /version |
|
||||||
|
*MetadataApi* | [**version_inventory**](docs/MetadataApi.md#version_inventory) | **GET** /versions |
|
||||||
|
*ShareApi* | [**access**](docs/ShareApi.md#access) | **POST** /access |
|
||||||
|
*ShareApi* | [**share**](docs/ShareApi.md#share) | **POST** /share |
|
||||||
|
*ShareApi* | [**unaccess**](docs/ShareApi.md#unaccess) | **DELETE** /unaccess |
|
||||||
|
*ShareApi* | [**unshare**](docs/ShareApi.md#unshare) | **DELETE** /unshare |
|
||||||
|
*ShareApi* | [**update_access**](docs/ShareApi.md#update_access) | **PATCH** /access |
|
||||||
|
*ShareApi* | [**update_share**](docs/ShareApi.md#update_share) | **PATCH** /share |
|
||||||
|
|
||||||
|
|
||||||
|
## Documentation For Models
|
||||||
|
|
||||||
|
- [Access201Response](docs/Access201Response.md)
|
||||||
|
- [AccessRequest](docs/AccessRequest.md)
|
||||||
|
- [AddOrganizationMemberRequest](docs/AddOrganizationMemberRequest.md)
|
||||||
|
- [AuthUser](docs/AuthUser.md)
|
||||||
|
- [ChangePasswordRequest](docs/ChangePasswordRequest.md)
|
||||||
|
- [ClientVersionCheckRequest](docs/ClientVersionCheckRequest.md)
|
||||||
|
- [Configuration](docs/Configuration.md)
|
||||||
|
- [CreateFrontend201Response](docs/CreateFrontend201Response.md)
|
||||||
|
- [CreateFrontendRequest](docs/CreateFrontendRequest.md)
|
||||||
|
- [CreateIdentity201Response](docs/CreateIdentity201Response.md)
|
||||||
|
- [CreateIdentityRequest](docs/CreateIdentityRequest.md)
|
||||||
|
- [CreateOrganization201Response](docs/CreateOrganization201Response.md)
|
||||||
|
- [CreateOrganizationRequest](docs/CreateOrganizationRequest.md)
|
||||||
|
- [DisableRequest](docs/DisableRequest.md)
|
||||||
|
- [EnableRequest](docs/EnableRequest.md)
|
||||||
|
- [Environment](docs/Environment.md)
|
||||||
|
- [EnvironmentAndResources](docs/EnvironmentAndResources.md)
|
||||||
|
- [Frontend](docs/Frontend.md)
|
||||||
|
- [GetSparklines200Response](docs/GetSparklines200Response.md)
|
||||||
|
- [GetSparklinesRequest](docs/GetSparklinesRequest.md)
|
||||||
|
- [InviteRequest](docs/InviteRequest.md)
|
||||||
|
- [InviteTokenGenerateRequest](docs/InviteTokenGenerateRequest.md)
|
||||||
|
- [ListFrontends200ResponseInner](docs/ListFrontends200ResponseInner.md)
|
||||||
|
- [ListMemberships200Response](docs/ListMemberships200Response.md)
|
||||||
|
- [ListMemberships200ResponseMembershipsInner](docs/ListMemberships200ResponseMembershipsInner.md)
|
||||||
|
- [ListOrganizationMembers200Response](docs/ListOrganizationMembers200Response.md)
|
||||||
|
- [ListOrganizationMembers200ResponseMembersInner](docs/ListOrganizationMembers200ResponseMembersInner.md)
|
||||||
|
- [ListOrganizations200Response](docs/ListOrganizations200Response.md)
|
||||||
|
- [ListOrganizations200ResponseOrganizationsInner](docs/ListOrganizations200ResponseOrganizationsInner.md)
|
||||||
|
- [LoginRequest](docs/LoginRequest.md)
|
||||||
|
- [Metrics](docs/Metrics.md)
|
||||||
|
- [MetricsSample](docs/MetricsSample.md)
|
||||||
|
- [Overview](docs/Overview.md)
|
||||||
|
- [Principal](docs/Principal.md)
|
||||||
|
- [RegenerateAccountToken200Response](docs/RegenerateAccountToken200Response.md)
|
||||||
|
- [RegenerateAccountTokenRequest](docs/RegenerateAccountTokenRequest.md)
|
||||||
|
- [RegisterRequest](docs/RegisterRequest.md)
|
||||||
|
- [RemoveOrganizationMemberRequest](docs/RemoveOrganizationMemberRequest.md)
|
||||||
|
- [ResetPasswordRequest](docs/ResetPasswordRequest.md)
|
||||||
|
- [Share](docs/Share.md)
|
||||||
|
- [ShareRequest](docs/ShareRequest.md)
|
||||||
|
- [ShareResponse](docs/ShareResponse.md)
|
||||||
|
- [SparkDataSample](docs/SparkDataSample.md)
|
||||||
|
- [UnaccessRequest](docs/UnaccessRequest.md)
|
||||||
|
- [UnshareRequest](docs/UnshareRequest.md)
|
||||||
|
- [UpdateAccessRequest](docs/UpdateAccessRequest.md)
|
||||||
|
- [UpdateFrontendRequest](docs/UpdateFrontendRequest.md)
|
||||||
|
- [UpdateShareRequest](docs/UpdateShareRequest.md)
|
||||||
|
- [Verify200Response](docs/Verify200Response.md)
|
||||||
|
- [VerifyRequest](docs/VerifyRequest.md)
|
||||||
|
- [VersionInventory200Response](docs/VersionInventory200Response.md)
|
||||||
|
|
||||||
|
|
||||||
|
<a id="documentation-for-authorization"></a>
|
||||||
|
## Documentation For Authorization
|
||||||
|
|
||||||
|
|
||||||
|
Authentication schemes defined for the API:
|
||||||
|
<a id="key"></a>
|
||||||
|
### key
|
||||||
|
|
||||||
|
- **Type**: API key
|
||||||
|
- **API key parameter name**: x-token
|
||||||
|
- **Location**: HTTP header
|
||||||
|
|
||||||
|
|
||||||
|
## Author
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
30
sdk/python/src/docs/Access201Response.md
Normal file
30
sdk/python/src/docs/Access201Response.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Access201Response
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**frontend_token** | **str** | | [optional]
|
||||||
|
**backend_mode** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.access201_response import Access201Response
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of Access201Response from a JSON string
|
||||||
|
access201_response_instance = Access201Response.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(Access201Response.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
access201_response_dict = access201_response_instance.to_dict()
|
||||||
|
# create an instance of Access201Response from a dict
|
||||||
|
access201_response_from_dict = Access201Response.from_dict(access201_response_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
32
sdk/python/src/docs/AccessRequest.md
Normal file
32
sdk/python/src/docs/AccessRequest.md
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# AccessRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**env_zid** | **str** | | [optional]
|
||||||
|
**share_token** | **str** | | [optional]
|
||||||
|
**bind_address** | **str** | | [optional]
|
||||||
|
**description** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.access_request import AccessRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of AccessRequest from a JSON string
|
||||||
|
access_request_instance = AccessRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(AccessRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
access_request_dict = access_request_instance.to_dict()
|
||||||
|
# create an instance of AccessRequest from a dict
|
||||||
|
access_request_from_dict = AccessRequest.from_dict(access_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
557
sdk/python/src/docs/AccountApi.md
Normal file
557
sdk/python/src/docs/AccountApi.md
Normal file
@ -0,0 +1,557 @@
|
|||||||
|
# zrok_api.AccountApi
|
||||||
|
|
||||||
|
All URIs are relative to */api/v1*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**change_password**](AccountApi.md#change_password) | **POST** /changePassword |
|
||||||
|
[**invite**](AccountApi.md#invite) | **POST** /invite |
|
||||||
|
[**login**](AccountApi.md#login) | **POST** /login |
|
||||||
|
[**regenerate_account_token**](AccountApi.md#regenerate_account_token) | **POST** /regenerateAccountToken |
|
||||||
|
[**register**](AccountApi.md#register) | **POST** /register |
|
||||||
|
[**reset_password**](AccountApi.md#reset_password) | **POST** /resetPassword |
|
||||||
|
[**reset_password_request**](AccountApi.md#reset_password_request) | **POST** /resetPasswordRequest |
|
||||||
|
[**verify**](AccountApi.md#verify) | **POST** /verify |
|
||||||
|
|
||||||
|
|
||||||
|
# **change_password**
|
||||||
|
> change_password(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
* Api Key Authentication (key):
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.change_password_request import ChangePasswordRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
# The client must configure the authentication and authorization parameters
|
||||||
|
# in accordance with the API server security policy.
|
||||||
|
# Examples for each auth method are provided below, use the example that
|
||||||
|
# satisfies your auth use case.
|
||||||
|
|
||||||
|
# Configure API key authorization: key
|
||||||
|
configuration.api_key['key'] = os.environ["API_KEY"]
|
||||||
|
|
||||||
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
# configuration.api_key_prefix['key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.AccountApi(api_client)
|
||||||
|
body = zrok_api.ChangePasswordRequest() # ChangePasswordRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_instance.change_password(body=body)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling AccountApi->change_password: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**ChangePasswordRequest**](ChangePasswordRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[key](../README.md#key)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | password changed | - |
|
||||||
|
**400** | password not changed | - |
|
||||||
|
**401** | unauthorized | - |
|
||||||
|
**422** | password validation failure | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **invite**
|
||||||
|
> invite(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.invite_request import InviteRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.AccountApi(api_client)
|
||||||
|
body = zrok_api.InviteRequest() # InviteRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_instance.invite(body=body)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling AccountApi->invite: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**InviteRequest**](InviteRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**201** | invitation created | - |
|
||||||
|
**400** | invitation not created (already exists) | - |
|
||||||
|
**401** | unauthorized | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **login**
|
||||||
|
> str login(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.login_request import LoginRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.AccountApi(api_client)
|
||||||
|
body = zrok_api.LoginRequest() # LoginRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_response = api_instance.login(body=body)
|
||||||
|
print("The response of AccountApi->login:\n")
|
||||||
|
pprint(api_response)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling AccountApi->login: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**LoginRequest**](LoginRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
**str**
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | login successful | - |
|
||||||
|
**401** | invalid login | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **regenerate_account_token**
|
||||||
|
> RegenerateAccountToken200Response regenerate_account_token(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
* Api Key Authentication (key):
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.regenerate_account_token200_response import RegenerateAccountToken200Response
|
||||||
|
from zrok_api.models.regenerate_account_token_request import RegenerateAccountTokenRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
# The client must configure the authentication and authorization parameters
|
||||||
|
# in accordance with the API server security policy.
|
||||||
|
# Examples for each auth method are provided below, use the example that
|
||||||
|
# satisfies your auth use case.
|
||||||
|
|
||||||
|
# Configure API key authorization: key
|
||||||
|
configuration.api_key['key'] = os.environ["API_KEY"]
|
||||||
|
|
||||||
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
# configuration.api_key_prefix['key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.AccountApi(api_client)
|
||||||
|
body = zrok_api.RegenerateAccountTokenRequest() # RegenerateAccountTokenRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_response = api_instance.regenerate_account_token(body=body)
|
||||||
|
print("The response of AccountApi->regenerate_account_token:\n")
|
||||||
|
pprint(api_response)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling AccountApi->regenerate_account_token: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**RegenerateAccountTokenRequest**](RegenerateAccountTokenRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**RegenerateAccountToken200Response**](RegenerateAccountToken200Response.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[key](../README.md#key)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | regenerate account token | - |
|
||||||
|
**404** | account not found | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **register**
|
||||||
|
> RegenerateAccountToken200Response register(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.regenerate_account_token200_response import RegenerateAccountToken200Response
|
||||||
|
from zrok_api.models.register_request import RegisterRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.AccountApi(api_client)
|
||||||
|
body = zrok_api.RegisterRequest() # RegisterRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_response = api_instance.register(body=body)
|
||||||
|
print("The response of AccountApi->register:\n")
|
||||||
|
pprint(api_response)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling AccountApi->register: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**RegisterRequest**](RegisterRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**RegenerateAccountToken200Response**](RegenerateAccountToken200Response.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | account created | - |
|
||||||
|
**404** | request not found | - |
|
||||||
|
**422** | password validation failure | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **reset_password**
|
||||||
|
> reset_password(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.reset_password_request import ResetPasswordRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.AccountApi(api_client)
|
||||||
|
body = zrok_api.ResetPasswordRequest() # ResetPasswordRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_instance.reset_password(body=body)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling AccountApi->reset_password: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**ResetPasswordRequest**](ResetPasswordRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | password reset | - |
|
||||||
|
**404** | request not found | - |
|
||||||
|
**422** | password validation failure | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **reset_password_request**
|
||||||
|
> reset_password_request(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.regenerate_account_token_request import RegenerateAccountTokenRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.AccountApi(api_client)
|
||||||
|
body = zrok_api.RegenerateAccountTokenRequest() # RegenerateAccountTokenRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_instance.reset_password_request(body=body)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling AccountApi->reset_password_request: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**RegenerateAccountTokenRequest**](RegenerateAccountTokenRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**201** | reset password request created | - |
|
||||||
|
**400** | reset password request not created | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **verify**
|
||||||
|
> Verify200Response verify(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.verify200_response import Verify200Response
|
||||||
|
from zrok_api.models.verify_request import VerifyRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.AccountApi(api_client)
|
||||||
|
body = zrok_api.VerifyRequest() # VerifyRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_response = api_instance.verify(body=body)
|
||||||
|
print("The response of AccountApi->verify:\n")
|
||||||
|
pprint(api_response)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling AccountApi->verify: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**VerifyRequest**](VerifyRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**Verify200Response**](Verify200Response.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | registration token ready | - |
|
||||||
|
**404** | registration token not found | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
31
sdk/python/src/docs/AddOrganizationMemberRequest.md
Normal file
31
sdk/python/src/docs/AddOrganizationMemberRequest.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# AddOrganizationMemberRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**organization_token** | **str** | | [optional]
|
||||||
|
**email** | **str** | | [optional]
|
||||||
|
**admin** | **bool** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.add_organization_member_request import AddOrganizationMemberRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of AddOrganizationMemberRequest from a JSON string
|
||||||
|
add_organization_member_request_instance = AddOrganizationMemberRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(AddOrganizationMemberRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
add_organization_member_request_dict = add_organization_member_request_instance.to_dict()
|
||||||
|
# create an instance of AddOrganizationMemberRequest from a dict
|
||||||
|
add_organization_member_request_from_dict = AddOrganizationMemberRequest.from_dict(add_organization_member_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
1079
sdk/python/src/docs/AdminApi.md
Normal file
1079
sdk/python/src/docs/AdminApi.md
Normal file
File diff suppressed because it is too large
Load Diff
30
sdk/python/src/docs/AuthUser.md
Normal file
30
sdk/python/src/docs/AuthUser.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# AuthUser
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**username** | **str** | | [optional]
|
||||||
|
**password** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.auth_user import AuthUser
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of AuthUser from a JSON string
|
||||||
|
auth_user_instance = AuthUser.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(AuthUser.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
auth_user_dict = auth_user_instance.to_dict()
|
||||||
|
# create an instance of AuthUser from a dict
|
||||||
|
auth_user_from_dict = AuthUser.from_dict(auth_user_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
31
sdk/python/src/docs/ChangePasswordRequest.md
Normal file
31
sdk/python/src/docs/ChangePasswordRequest.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# ChangePasswordRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**email** | **str** | | [optional]
|
||||||
|
**old_password** | **str** | | [optional]
|
||||||
|
**new_password** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.change_password_request import ChangePasswordRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ChangePasswordRequest from a JSON string
|
||||||
|
change_password_request_instance = ChangePasswordRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ChangePasswordRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
change_password_request_dict = change_password_request_instance.to_dict()
|
||||||
|
# create an instance of ChangePasswordRequest from a dict
|
||||||
|
change_password_request_from_dict = ChangePasswordRequest.from_dict(change_password_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/ClientVersionCheckRequest.md
Normal file
29
sdk/python/src/docs/ClientVersionCheckRequest.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# ClientVersionCheckRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**client_version** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.client_version_check_request import ClientVersionCheckRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ClientVersionCheckRequest from a JSON string
|
||||||
|
client_version_check_request_instance = ClientVersionCheckRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ClientVersionCheckRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
client_version_check_request_dict = client_version_check_request_instance.to_dict()
|
||||||
|
# create an instance of ClientVersionCheckRequest from a dict
|
||||||
|
client_version_check_request_from_dict = ClientVersionCheckRequest.from_dict(client_version_check_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
33
sdk/python/src/docs/Configuration.md
Normal file
33
sdk/python/src/docs/Configuration.md
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# Configuration
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**version** | **str** | | [optional]
|
||||||
|
**tou_link** | **str** | | [optional]
|
||||||
|
**invites_open** | **bool** | | [optional]
|
||||||
|
**requires_invite_token** | **bool** | | [optional]
|
||||||
|
**invite_token_contact** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.configuration import Configuration
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of Configuration from a JSON string
|
||||||
|
configuration_instance = Configuration.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(Configuration.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
configuration_dict = configuration_instance.to_dict()
|
||||||
|
# create an instance of Configuration from a dict
|
||||||
|
configuration_from_dict = Configuration.from_dict(configuration_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/CreateFrontend201Response.md
Normal file
29
sdk/python/src/docs/CreateFrontend201Response.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# CreateFrontend201Response
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**frontend_token** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.create_frontend201_response import CreateFrontend201Response
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of CreateFrontend201Response from a JSON string
|
||||||
|
create_frontend201_response_instance = CreateFrontend201Response.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(CreateFrontend201Response.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
create_frontend201_response_dict = create_frontend201_response_instance.to_dict()
|
||||||
|
# create an instance of CreateFrontend201Response from a dict
|
||||||
|
create_frontend201_response_from_dict = CreateFrontend201Response.from_dict(create_frontend201_response_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
32
sdk/python/src/docs/CreateFrontendRequest.md
Normal file
32
sdk/python/src/docs/CreateFrontendRequest.md
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# CreateFrontendRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**z_id** | **str** | | [optional]
|
||||||
|
**url_template** | **str** | | [optional]
|
||||||
|
**public_name** | **str** | | [optional]
|
||||||
|
**permission_mode** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.create_frontend_request import CreateFrontendRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of CreateFrontendRequest from a JSON string
|
||||||
|
create_frontend_request_instance = CreateFrontendRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(CreateFrontendRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
create_frontend_request_dict = create_frontend_request_instance.to_dict()
|
||||||
|
# create an instance of CreateFrontendRequest from a dict
|
||||||
|
create_frontend_request_from_dict = CreateFrontendRequest.from_dict(create_frontend_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
30
sdk/python/src/docs/CreateIdentity201Response.md
Normal file
30
sdk/python/src/docs/CreateIdentity201Response.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# CreateIdentity201Response
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**identity** | **str** | | [optional]
|
||||||
|
**cfg** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.create_identity201_response import CreateIdentity201Response
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of CreateIdentity201Response from a JSON string
|
||||||
|
create_identity201_response_instance = CreateIdentity201Response.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(CreateIdentity201Response.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
create_identity201_response_dict = create_identity201_response_instance.to_dict()
|
||||||
|
# create an instance of CreateIdentity201Response from a dict
|
||||||
|
create_identity201_response_from_dict = CreateIdentity201Response.from_dict(create_identity201_response_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/CreateIdentityRequest.md
Normal file
29
sdk/python/src/docs/CreateIdentityRequest.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# CreateIdentityRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**name** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.create_identity_request import CreateIdentityRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of CreateIdentityRequest from a JSON string
|
||||||
|
create_identity_request_instance = CreateIdentityRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(CreateIdentityRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
create_identity_request_dict = create_identity_request_instance.to_dict()
|
||||||
|
# create an instance of CreateIdentityRequest from a dict
|
||||||
|
create_identity_request_from_dict = CreateIdentityRequest.from_dict(create_identity_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/CreateOrganization201Response.md
Normal file
29
sdk/python/src/docs/CreateOrganization201Response.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# CreateOrganization201Response
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**organization_token** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.create_organization201_response import CreateOrganization201Response
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of CreateOrganization201Response from a JSON string
|
||||||
|
create_organization201_response_instance = CreateOrganization201Response.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(CreateOrganization201Response.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
create_organization201_response_dict = create_organization201_response_instance.to_dict()
|
||||||
|
# create an instance of CreateOrganization201Response from a dict
|
||||||
|
create_organization201_response_from_dict = CreateOrganization201Response.from_dict(create_organization201_response_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/CreateOrganizationRequest.md
Normal file
29
sdk/python/src/docs/CreateOrganizationRequest.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# CreateOrganizationRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**description** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.create_organization_request import CreateOrganizationRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of CreateOrganizationRequest from a JSON string
|
||||||
|
create_organization_request_instance = CreateOrganizationRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(CreateOrganizationRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
create_organization_request_dict = create_organization_request_instance.to_dict()
|
||||||
|
# create an instance of CreateOrganizationRequest from a dict
|
||||||
|
create_organization_request_from_dict = CreateOrganizationRequest.from_dict(create_organization_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/DisableRequest.md
Normal file
29
sdk/python/src/docs/DisableRequest.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# DisableRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**identity** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.disable_request import DisableRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of DisableRequest from a JSON string
|
||||||
|
disable_request_instance = DisableRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(DisableRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
disable_request_dict = disable_request_instance.to_dict()
|
||||||
|
# create an instance of DisableRequest from a dict
|
||||||
|
disable_request_from_dict = DisableRequest.from_dict(disable_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
30
sdk/python/src/docs/EnableRequest.md
Normal file
30
sdk/python/src/docs/EnableRequest.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# EnableRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**description** | **str** | | [optional]
|
||||||
|
**host** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.enable_request import EnableRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of EnableRequest from a JSON string
|
||||||
|
enable_request_instance = EnableRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(EnableRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
enable_request_dict = enable_request_instance.to_dict()
|
||||||
|
# create an instance of EnableRequest from a dict
|
||||||
|
enable_request_from_dict = EnableRequest.from_dict(enable_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
36
sdk/python/src/docs/Environment.md
Normal file
36
sdk/python/src/docs/Environment.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# Environment
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**description** | **str** | | [optional]
|
||||||
|
**host** | **str** | | [optional]
|
||||||
|
**address** | **str** | | [optional]
|
||||||
|
**z_id** | **str** | | [optional]
|
||||||
|
**activity** | [**List[SparkDataSample]**](SparkDataSample.md) | | [optional]
|
||||||
|
**limited** | **bool** | | [optional]
|
||||||
|
**created_at** | **int** | | [optional]
|
||||||
|
**updated_at** | **int** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.environment import Environment
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of Environment from a JSON string
|
||||||
|
environment_instance = Environment.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(Environment.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
environment_dict = environment_instance.to_dict()
|
||||||
|
# create an instance of Environment from a dict
|
||||||
|
environment_from_dict = Environment.from_dict(environment_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
31
sdk/python/src/docs/EnvironmentAndResources.md
Normal file
31
sdk/python/src/docs/EnvironmentAndResources.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# EnvironmentAndResources
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**environment** | [**Environment**](Environment.md) | | [optional]
|
||||||
|
**frontends** | [**List[Frontend]**](Frontend.md) | | [optional]
|
||||||
|
**shares** | [**List[Share]**](Share.md) | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.environment_and_resources import EnvironmentAndResources
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of EnvironmentAndResources from a JSON string
|
||||||
|
environment_and_resources_instance = EnvironmentAndResources.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(EnvironmentAndResources.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
environment_and_resources_dict = environment_and_resources_instance.to_dict()
|
||||||
|
# create an instance of EnvironmentAndResources from a dict
|
||||||
|
environment_and_resources_from_dict = EnvironmentAndResources.from_dict(environment_and_resources_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
162
sdk/python/src/docs/EnvironmentApi.md
Normal file
162
sdk/python/src/docs/EnvironmentApi.md
Normal file
@ -0,0 +1,162 @@
|
|||||||
|
# zrok_api.EnvironmentApi
|
||||||
|
|
||||||
|
All URIs are relative to */api/v1*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**disable**](EnvironmentApi.md#disable) | **POST** /disable |
|
||||||
|
[**enable**](EnvironmentApi.md#enable) | **POST** /enable |
|
||||||
|
|
||||||
|
|
||||||
|
# **disable**
|
||||||
|
> disable(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
* Api Key Authentication (key):
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.disable_request import DisableRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
# The client must configure the authentication and authorization parameters
|
||||||
|
# in accordance with the API server security policy.
|
||||||
|
# Examples for each auth method are provided below, use the example that
|
||||||
|
# satisfies your auth use case.
|
||||||
|
|
||||||
|
# Configure API key authorization: key
|
||||||
|
configuration.api_key['key'] = os.environ["API_KEY"]
|
||||||
|
|
||||||
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
# configuration.api_key_prefix['key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.EnvironmentApi(api_client)
|
||||||
|
body = zrok_api.DisableRequest() # DisableRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_instance.disable(body=body)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling EnvironmentApi->disable: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**DisableRequest**](DisableRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[key](../README.md#key)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | environment disabled | - |
|
||||||
|
**401** | invalid environment | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **enable**
|
||||||
|
> CreateIdentity201Response enable(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
* Api Key Authentication (key):
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.create_identity201_response import CreateIdentity201Response
|
||||||
|
from zrok_api.models.enable_request import EnableRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
# The client must configure the authentication and authorization parameters
|
||||||
|
# in accordance with the API server security policy.
|
||||||
|
# Examples for each auth method are provided below, use the example that
|
||||||
|
# satisfies your auth use case.
|
||||||
|
|
||||||
|
# Configure API key authorization: key
|
||||||
|
configuration.api_key['key'] = os.environ["API_KEY"]
|
||||||
|
|
||||||
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
# configuration.api_key_prefix['key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.EnvironmentApi(api_client)
|
||||||
|
body = zrok_api.EnableRequest() # EnableRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_response = api_instance.enable(body=body)
|
||||||
|
print("The response of EnvironmentApi->enable:\n")
|
||||||
|
pprint(api_response)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling EnvironmentApi->enable: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**EnableRequest**](EnableRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**CreateIdentity201Response**](CreateIdentity201Response.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[key](../README.md#key)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**201** | environment enabled | - |
|
||||||
|
**401** | unauthorized | - |
|
||||||
|
**404** | account not found | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
37
sdk/python/src/docs/Frontend.md
Normal file
37
sdk/python/src/docs/Frontend.md
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# Frontend
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **int** | | [optional]
|
||||||
|
**frontend_token** | **str** | | [optional]
|
||||||
|
**share_token** | **str** | | [optional]
|
||||||
|
**backend_mode** | **str** | | [optional]
|
||||||
|
**bind_address** | **str** | | [optional]
|
||||||
|
**description** | **str** | | [optional]
|
||||||
|
**z_id** | **str** | | [optional]
|
||||||
|
**created_at** | **int** | | [optional]
|
||||||
|
**updated_at** | **int** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.frontend import Frontend
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of Frontend from a JSON string
|
||||||
|
frontend_instance = Frontend.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(Frontend.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
frontend_dict = frontend_instance.to_dict()
|
||||||
|
# create an instance of Frontend from a dict
|
||||||
|
frontend_from_dict = Frontend.from_dict(frontend_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/GetSparklines200Response.md
Normal file
29
sdk/python/src/docs/GetSparklines200Response.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# GetSparklines200Response
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**sparklines** | [**List[Metrics]**](Metrics.md) | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.get_sparklines200_response import GetSparklines200Response
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of GetSparklines200Response from a JSON string
|
||||||
|
get_sparklines200_response_instance = GetSparklines200Response.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(GetSparklines200Response.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
get_sparklines200_response_dict = get_sparklines200_response_instance.to_dict()
|
||||||
|
# create an instance of GetSparklines200Response from a dict
|
||||||
|
get_sparklines200_response_from_dict = GetSparklines200Response.from_dict(get_sparklines200_response_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
31
sdk/python/src/docs/GetSparklinesRequest.md
Normal file
31
sdk/python/src/docs/GetSparklinesRequest.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# GetSparklinesRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**account** | **bool** | | [optional]
|
||||||
|
**environments** | **List[str]** | | [optional]
|
||||||
|
**shares** | **List[str]** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.get_sparklines_request import GetSparklinesRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of GetSparklinesRequest from a JSON string
|
||||||
|
get_sparklines_request_instance = GetSparklinesRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(GetSparklinesRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
get_sparklines_request_dict = get_sparklines_request_instance.to_dict()
|
||||||
|
# create an instance of GetSparklinesRequest from a dict
|
||||||
|
get_sparklines_request_from_dict = GetSparklinesRequest.from_dict(get_sparklines_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
30
sdk/python/src/docs/InviteRequest.md
Normal file
30
sdk/python/src/docs/InviteRequest.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# InviteRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**email** | **str** | | [optional]
|
||||||
|
**invite_token** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.invite_request import InviteRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of InviteRequest from a JSON string
|
||||||
|
invite_request_instance = InviteRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(InviteRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
invite_request_dict = invite_request_instance.to_dict()
|
||||||
|
# create an instance of InviteRequest from a dict
|
||||||
|
invite_request_from_dict = InviteRequest.from_dict(invite_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/InviteTokenGenerateRequest.md
Normal file
29
sdk/python/src/docs/InviteTokenGenerateRequest.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# InviteTokenGenerateRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**invite_tokens** | **List[str]** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.invite_token_generate_request import InviteTokenGenerateRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of InviteTokenGenerateRequest from a JSON string
|
||||||
|
invite_token_generate_request_instance = InviteTokenGenerateRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(InviteTokenGenerateRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
invite_token_generate_request_dict = invite_token_generate_request_instance.to_dict()
|
||||||
|
# create an instance of InviteTokenGenerateRequest from a dict
|
||||||
|
invite_token_generate_request_from_dict = InviteTokenGenerateRequest.from_dict(invite_token_generate_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
34
sdk/python/src/docs/ListFrontends200ResponseInner.md
Normal file
34
sdk/python/src/docs/ListFrontends200ResponseInner.md
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# ListFrontends200ResponseInner
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**frontend_token** | **str** | | [optional]
|
||||||
|
**z_id** | **str** | | [optional]
|
||||||
|
**url_template** | **str** | | [optional]
|
||||||
|
**public_name** | **str** | | [optional]
|
||||||
|
**created_at** | **int** | | [optional]
|
||||||
|
**updated_at** | **int** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.list_frontends200_response_inner import ListFrontends200ResponseInner
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ListFrontends200ResponseInner from a JSON string
|
||||||
|
list_frontends200_response_inner_instance = ListFrontends200ResponseInner.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ListFrontends200ResponseInner.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
list_frontends200_response_inner_dict = list_frontends200_response_inner_instance.to_dict()
|
||||||
|
# create an instance of ListFrontends200ResponseInner from a dict
|
||||||
|
list_frontends200_response_inner_from_dict = ListFrontends200ResponseInner.from_dict(list_frontends200_response_inner_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/ListMemberships200Response.md
Normal file
29
sdk/python/src/docs/ListMemberships200Response.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# ListMemberships200Response
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**memberships** | [**List[ListMemberships200ResponseMembershipsInner]**](ListMemberships200ResponseMembershipsInner.md) | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.list_memberships200_response import ListMemberships200Response
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ListMemberships200Response from a JSON string
|
||||||
|
list_memberships200_response_instance = ListMemberships200Response.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ListMemberships200Response.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
list_memberships200_response_dict = list_memberships200_response_instance.to_dict()
|
||||||
|
# create an instance of ListMemberships200Response from a dict
|
||||||
|
list_memberships200_response_from_dict = ListMemberships200Response.from_dict(list_memberships200_response_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
|||||||
|
# ListMemberships200ResponseMembershipsInner
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**organization_token** | **str** | | [optional]
|
||||||
|
**description** | **str** | | [optional]
|
||||||
|
**admin** | **bool** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.list_memberships200_response_memberships_inner import ListMemberships200ResponseMembershipsInner
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ListMemberships200ResponseMembershipsInner from a JSON string
|
||||||
|
list_memberships200_response_memberships_inner_instance = ListMemberships200ResponseMembershipsInner.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ListMemberships200ResponseMembershipsInner.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
list_memberships200_response_memberships_inner_dict = list_memberships200_response_memberships_inner_instance.to_dict()
|
||||||
|
# create an instance of ListMemberships200ResponseMembershipsInner from a dict
|
||||||
|
list_memberships200_response_memberships_inner_from_dict = ListMemberships200ResponseMembershipsInner.from_dict(list_memberships200_response_memberships_inner_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/ListOrganizationMembers200Response.md
Normal file
29
sdk/python/src/docs/ListOrganizationMembers200Response.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# ListOrganizationMembers200Response
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**members** | [**List[ListOrganizationMembers200ResponseMembersInner]**](ListOrganizationMembers200ResponseMembersInner.md) | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.list_organization_members200_response import ListOrganizationMembers200Response
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ListOrganizationMembers200Response from a JSON string
|
||||||
|
list_organization_members200_response_instance = ListOrganizationMembers200Response.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ListOrganizationMembers200Response.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
list_organization_members200_response_dict = list_organization_members200_response_instance.to_dict()
|
||||||
|
# create an instance of ListOrganizationMembers200Response from a dict
|
||||||
|
list_organization_members200_response_from_dict = ListOrganizationMembers200Response.from_dict(list_organization_members200_response_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
# ListOrganizationMembers200ResponseMembersInner
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**email** | **str** | | [optional]
|
||||||
|
**admin** | **bool** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.list_organization_members200_response_members_inner import ListOrganizationMembers200ResponseMembersInner
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ListOrganizationMembers200ResponseMembersInner from a JSON string
|
||||||
|
list_organization_members200_response_members_inner_instance = ListOrganizationMembers200ResponseMembersInner.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ListOrganizationMembers200ResponseMembersInner.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
list_organization_members200_response_members_inner_dict = list_organization_members200_response_members_inner_instance.to_dict()
|
||||||
|
# create an instance of ListOrganizationMembers200ResponseMembersInner from a dict
|
||||||
|
list_organization_members200_response_members_inner_from_dict = ListOrganizationMembers200ResponseMembersInner.from_dict(list_organization_members200_response_members_inner_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/ListOrganizations200Response.md
Normal file
29
sdk/python/src/docs/ListOrganizations200Response.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# ListOrganizations200Response
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**organizations** | [**List[ListOrganizations200ResponseOrganizationsInner]**](ListOrganizations200ResponseOrganizationsInner.md) | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.list_organizations200_response import ListOrganizations200Response
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ListOrganizations200Response from a JSON string
|
||||||
|
list_organizations200_response_instance = ListOrganizations200Response.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ListOrganizations200Response.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
list_organizations200_response_dict = list_organizations200_response_instance.to_dict()
|
||||||
|
# create an instance of ListOrganizations200Response from a dict
|
||||||
|
list_organizations200_response_from_dict = ListOrganizations200Response.from_dict(list_organizations200_response_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
# ListOrganizations200ResponseOrganizationsInner
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**organization_token** | **str** | | [optional]
|
||||||
|
**description** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.list_organizations200_response_organizations_inner import ListOrganizations200ResponseOrganizationsInner
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ListOrganizations200ResponseOrganizationsInner from a JSON string
|
||||||
|
list_organizations200_response_organizations_inner_instance = ListOrganizations200ResponseOrganizationsInner.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ListOrganizations200ResponseOrganizationsInner.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
list_organizations200_response_organizations_inner_dict = list_organizations200_response_organizations_inner_instance.to_dict()
|
||||||
|
# create an instance of ListOrganizations200ResponseOrganizationsInner from a dict
|
||||||
|
list_organizations200_response_organizations_inner_from_dict = ListOrganizations200ResponseOrganizationsInner.from_dict(list_organizations200_response_organizations_inner_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
30
sdk/python/src/docs/LoginRequest.md
Normal file
30
sdk/python/src/docs/LoginRequest.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# LoginRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**email** | **str** | | [optional]
|
||||||
|
**password** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.login_request import LoginRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of LoginRequest from a JSON string
|
||||||
|
login_request_instance = LoginRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(LoginRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
login_request_dict = login_request_instance.to_dict()
|
||||||
|
# create an instance of LoginRequest from a dict
|
||||||
|
login_request_from_dict = LoginRequest.from_dict(login_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
1171
sdk/python/src/docs/MetadataApi.md
Normal file
1171
sdk/python/src/docs/MetadataApi.md
Normal file
File diff suppressed because it is too large
Load Diff
32
sdk/python/src/docs/Metrics.md
Normal file
32
sdk/python/src/docs/Metrics.md
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# Metrics
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**scope** | **str** | | [optional]
|
||||||
|
**id** | **str** | | [optional]
|
||||||
|
**period** | **float** | | [optional]
|
||||||
|
**samples** | [**List[MetricsSample]**](MetricsSample.md) | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.metrics import Metrics
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of Metrics from a JSON string
|
||||||
|
metrics_instance = Metrics.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(Metrics.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
metrics_dict = metrics_instance.to_dict()
|
||||||
|
# create an instance of Metrics from a dict
|
||||||
|
metrics_from_dict = Metrics.from_dict(metrics_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
31
sdk/python/src/docs/MetricsSample.md
Normal file
31
sdk/python/src/docs/MetricsSample.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# MetricsSample
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**rx** | **float** | | [optional]
|
||||||
|
**tx** | **float** | | [optional]
|
||||||
|
**timestamp** | **float** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.metrics_sample import MetricsSample
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of MetricsSample from a JSON string
|
||||||
|
metrics_sample_instance = MetricsSample.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(MetricsSample.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
metrics_sample_dict = metrics_sample_instance.to_dict()
|
||||||
|
# create an instance of MetricsSample from a dict
|
||||||
|
metrics_sample_from_dict = MetricsSample.from_dict(metrics_sample_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
30
sdk/python/src/docs/Overview.md
Normal file
30
sdk/python/src/docs/Overview.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Overview
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**account_limited** | **bool** | | [optional]
|
||||||
|
**environments** | [**List[EnvironmentAndResources]**](EnvironmentAndResources.md) | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.overview import Overview
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of Overview from a JSON string
|
||||||
|
overview_instance = Overview.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(Overview.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
overview_dict = overview_instance.to_dict()
|
||||||
|
# create an instance of Overview from a dict
|
||||||
|
overview_from_dict = Overview.from_dict(overview_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
33
sdk/python/src/docs/Principal.md
Normal file
33
sdk/python/src/docs/Principal.md
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# Principal
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**id** | **int** | | [optional]
|
||||||
|
**email** | **str** | | [optional]
|
||||||
|
**token** | **str** | | [optional]
|
||||||
|
**limitless** | **bool** | | [optional]
|
||||||
|
**admin** | **bool** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.principal import Principal
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of Principal from a JSON string
|
||||||
|
principal_instance = Principal.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(Principal.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
principal_dict = principal_instance.to_dict()
|
||||||
|
# create an instance of Principal from a dict
|
||||||
|
principal_from_dict = Principal.from_dict(principal_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/RegenerateAccountToken200Response.md
Normal file
29
sdk/python/src/docs/RegenerateAccountToken200Response.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# RegenerateAccountToken200Response
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**account_token** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.regenerate_account_token200_response import RegenerateAccountToken200Response
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of RegenerateAccountToken200Response from a JSON string
|
||||||
|
regenerate_account_token200_response_instance = RegenerateAccountToken200Response.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(RegenerateAccountToken200Response.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
regenerate_account_token200_response_dict = regenerate_account_token200_response_instance.to_dict()
|
||||||
|
# create an instance of RegenerateAccountToken200Response from a dict
|
||||||
|
regenerate_account_token200_response_from_dict = RegenerateAccountToken200Response.from_dict(regenerate_account_token200_response_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/RegenerateAccountTokenRequest.md
Normal file
29
sdk/python/src/docs/RegenerateAccountTokenRequest.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# RegenerateAccountTokenRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**email_address** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.regenerate_account_token_request import RegenerateAccountTokenRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of RegenerateAccountTokenRequest from a JSON string
|
||||||
|
regenerate_account_token_request_instance = RegenerateAccountTokenRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(RegenerateAccountTokenRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
regenerate_account_token_request_dict = regenerate_account_token_request_instance.to_dict()
|
||||||
|
# create an instance of RegenerateAccountTokenRequest from a dict
|
||||||
|
regenerate_account_token_request_from_dict = RegenerateAccountTokenRequest.from_dict(regenerate_account_token_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
30
sdk/python/src/docs/RegisterRequest.md
Normal file
30
sdk/python/src/docs/RegisterRequest.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# RegisterRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**register_token** | **str** | | [optional]
|
||||||
|
**password** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.register_request import RegisterRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of RegisterRequest from a JSON string
|
||||||
|
register_request_instance = RegisterRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(RegisterRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
register_request_dict = register_request_instance.to_dict()
|
||||||
|
# create an instance of RegisterRequest from a dict
|
||||||
|
register_request_from_dict = RegisterRequest.from_dict(register_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
30
sdk/python/src/docs/RemoveOrganizationMemberRequest.md
Normal file
30
sdk/python/src/docs/RemoveOrganizationMemberRequest.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# RemoveOrganizationMemberRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**organization_token** | **str** | | [optional]
|
||||||
|
**email** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.remove_organization_member_request import RemoveOrganizationMemberRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of RemoveOrganizationMemberRequest from a JSON string
|
||||||
|
remove_organization_member_request_instance = RemoveOrganizationMemberRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(RemoveOrganizationMemberRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
remove_organization_member_request_dict = remove_organization_member_request_instance.to_dict()
|
||||||
|
# create an instance of RemoveOrganizationMemberRequest from a dict
|
||||||
|
remove_organization_member_request_from_dict = RemoveOrganizationMemberRequest.from_dict(remove_organization_member_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
30
sdk/python/src/docs/ResetPasswordRequest.md
Normal file
30
sdk/python/src/docs/ResetPasswordRequest.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# ResetPasswordRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**reset_token** | **str** | | [optional]
|
||||||
|
**password** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.reset_password_request import ResetPasswordRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ResetPasswordRequest from a JSON string
|
||||||
|
reset_password_request_instance = ResetPasswordRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ResetPasswordRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
reset_password_request_dict = reset_password_request_instance.to_dict()
|
||||||
|
# create an instance of ResetPasswordRequest from a dict
|
||||||
|
reset_password_request_from_dict = ResetPasswordRequest.from_dict(reset_password_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
40
sdk/python/src/docs/Share.md
Normal file
40
sdk/python/src/docs/Share.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# Share
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**share_token** | **str** | | [optional]
|
||||||
|
**z_id** | **str** | | [optional]
|
||||||
|
**share_mode** | **str** | | [optional]
|
||||||
|
**backend_mode** | **str** | | [optional]
|
||||||
|
**frontend_selection** | **str** | | [optional]
|
||||||
|
**frontend_endpoint** | **str** | | [optional]
|
||||||
|
**backend_proxy_endpoint** | **str** | | [optional]
|
||||||
|
**reserved** | **bool** | | [optional]
|
||||||
|
**activity** | [**List[SparkDataSample]**](SparkDataSample.md) | | [optional]
|
||||||
|
**limited** | **bool** | | [optional]
|
||||||
|
**created_at** | **int** | | [optional]
|
||||||
|
**updated_at** | **int** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.share import Share
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of Share from a JSON string
|
||||||
|
share_instance = Share.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(Share.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
share_dict = share_instance.to_dict()
|
||||||
|
# create an instance of Share from a dict
|
||||||
|
share_from_dict = Share.from_dict(share_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
473
sdk/python/src/docs/ShareApi.md
Normal file
473
sdk/python/src/docs/ShareApi.md
Normal file
@ -0,0 +1,473 @@
|
|||||||
|
# zrok_api.ShareApi
|
||||||
|
|
||||||
|
All URIs are relative to */api/v1*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**access**](ShareApi.md#access) | **POST** /access |
|
||||||
|
[**share**](ShareApi.md#share) | **POST** /share |
|
||||||
|
[**unaccess**](ShareApi.md#unaccess) | **DELETE** /unaccess |
|
||||||
|
[**unshare**](ShareApi.md#unshare) | **DELETE** /unshare |
|
||||||
|
[**update_access**](ShareApi.md#update_access) | **PATCH** /access |
|
||||||
|
[**update_share**](ShareApi.md#update_share) | **PATCH** /share |
|
||||||
|
|
||||||
|
|
||||||
|
# **access**
|
||||||
|
> Access201Response access(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
* Api Key Authentication (key):
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.access201_response import Access201Response
|
||||||
|
from zrok_api.models.access_request import AccessRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
# The client must configure the authentication and authorization parameters
|
||||||
|
# in accordance with the API server security policy.
|
||||||
|
# Examples for each auth method are provided below, use the example that
|
||||||
|
# satisfies your auth use case.
|
||||||
|
|
||||||
|
# Configure API key authorization: key
|
||||||
|
configuration.api_key['key'] = os.environ["API_KEY"]
|
||||||
|
|
||||||
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
# configuration.api_key_prefix['key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.ShareApi(api_client)
|
||||||
|
body = zrok_api.AccessRequest() # AccessRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_response = api_instance.access(body=body)
|
||||||
|
print("The response of ShareApi->access:\n")
|
||||||
|
pprint(api_response)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling ShareApi->access: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**AccessRequest**](AccessRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**Access201Response**](Access201Response.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[key](../README.md#key)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**201** | access created | - |
|
||||||
|
**401** | unauthorized | - |
|
||||||
|
**404** | not found | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **share**
|
||||||
|
> ShareResponse share(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
* Api Key Authentication (key):
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.share_request import ShareRequest
|
||||||
|
from zrok_api.models.share_response import ShareResponse
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
# The client must configure the authentication and authorization parameters
|
||||||
|
# in accordance with the API server security policy.
|
||||||
|
# Examples for each auth method are provided below, use the example that
|
||||||
|
# satisfies your auth use case.
|
||||||
|
|
||||||
|
# Configure API key authorization: key
|
||||||
|
configuration.api_key['key'] = os.environ["API_KEY"]
|
||||||
|
|
||||||
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
# configuration.api_key_prefix['key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.ShareApi(api_client)
|
||||||
|
body = zrok_api.ShareRequest() # ShareRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_response = api_instance.share(body=body)
|
||||||
|
print("The response of ShareApi->share:\n")
|
||||||
|
pprint(api_response)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling ShareApi->share: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**ShareRequest**](ShareRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**ShareResponse**](ShareResponse.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[key](../README.md#key)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**201** | share created | - |
|
||||||
|
**401** | unauthorized | - |
|
||||||
|
**404** | not found | - |
|
||||||
|
**409** | conflict | - |
|
||||||
|
**422** | unprocessable | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **unaccess**
|
||||||
|
> unaccess(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
* Api Key Authentication (key):
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.unaccess_request import UnaccessRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
# The client must configure the authentication and authorization parameters
|
||||||
|
# in accordance with the API server security policy.
|
||||||
|
# Examples for each auth method are provided below, use the example that
|
||||||
|
# satisfies your auth use case.
|
||||||
|
|
||||||
|
# Configure API key authorization: key
|
||||||
|
configuration.api_key['key'] = os.environ["API_KEY"]
|
||||||
|
|
||||||
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
# configuration.api_key_prefix['key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.ShareApi(api_client)
|
||||||
|
body = zrok_api.UnaccessRequest() # UnaccessRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_instance.unaccess(body=body)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling ShareApi->unaccess: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**UnaccessRequest**](UnaccessRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[key](../README.md#key)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | access removed | - |
|
||||||
|
**401** | unauthorized | - |
|
||||||
|
**404** | not found | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **unshare**
|
||||||
|
> unshare(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
* Api Key Authentication (key):
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.unshare_request import UnshareRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
# The client must configure the authentication and authorization parameters
|
||||||
|
# in accordance with the API server security policy.
|
||||||
|
# Examples for each auth method are provided below, use the example that
|
||||||
|
# satisfies your auth use case.
|
||||||
|
|
||||||
|
# Configure API key authorization: key
|
||||||
|
configuration.api_key['key'] = os.environ["API_KEY"]
|
||||||
|
|
||||||
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
# configuration.api_key_prefix['key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.ShareApi(api_client)
|
||||||
|
body = zrok_api.UnshareRequest() # UnshareRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_instance.unshare(body=body)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling ShareApi->unshare: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**UnshareRequest**](UnshareRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[key](../README.md#key)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: application/zrok.v1+json
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | share removed | - |
|
||||||
|
**401** | unauthorized | - |
|
||||||
|
**404** | not found | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **update_access**
|
||||||
|
> update_access(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
* Api Key Authentication (key):
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.update_access_request import UpdateAccessRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
# The client must configure the authentication and authorization parameters
|
||||||
|
# in accordance with the API server security policy.
|
||||||
|
# Examples for each auth method are provided below, use the example that
|
||||||
|
# satisfies your auth use case.
|
||||||
|
|
||||||
|
# Configure API key authorization: key
|
||||||
|
configuration.api_key['key'] = os.environ["API_KEY"]
|
||||||
|
|
||||||
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
# configuration.api_key_prefix['key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.ShareApi(api_client)
|
||||||
|
body = zrok_api.UpdateAccessRequest() # UpdateAccessRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_instance.update_access(body=body)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling ShareApi->update_access: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**UpdateAccessRequest**](UpdateAccessRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[key](../README.md#key)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | access updated | - |
|
||||||
|
**401** | unauthorized | - |
|
||||||
|
**404** | not found | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
# **update_share**
|
||||||
|
> update_share(body=body)
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
* Api Key Authentication (key):
|
||||||
|
|
||||||
|
```python
|
||||||
|
import zrok_api
|
||||||
|
from zrok_api.models.update_share_request import UpdateShareRequest
|
||||||
|
from zrok_api.rest import ApiException
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
# Defining the host is optional and defaults to /api/v1
|
||||||
|
# See configuration.py for a list of all supported configuration parameters.
|
||||||
|
configuration = zrok_api.Configuration(
|
||||||
|
host = "/api/v1"
|
||||||
|
)
|
||||||
|
|
||||||
|
# The client must configure the authentication and authorization parameters
|
||||||
|
# in accordance with the API server security policy.
|
||||||
|
# Examples for each auth method are provided below, use the example that
|
||||||
|
# satisfies your auth use case.
|
||||||
|
|
||||||
|
# Configure API key authorization: key
|
||||||
|
configuration.api_key['key'] = os.environ["API_KEY"]
|
||||||
|
|
||||||
|
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
# configuration.api_key_prefix['key'] = 'Bearer'
|
||||||
|
|
||||||
|
# Enter a context with an instance of the API client
|
||||||
|
with zrok_api.ApiClient(configuration) as api_client:
|
||||||
|
# Create an instance of the API class
|
||||||
|
api_instance = zrok_api.ShareApi(api_client)
|
||||||
|
body = zrok_api.UpdateShareRequest() # UpdateShareRequest | (optional)
|
||||||
|
|
||||||
|
try:
|
||||||
|
api_instance.update_share(body=body)
|
||||||
|
except Exception as e:
|
||||||
|
print("Exception when calling ShareApi->update_share: %s\n" % e)
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**UpdateShareRequest**](UpdateShareRequest.md)| | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[key](../README.md#key)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/zrok.v1+json
|
||||||
|
- **Accept**: Not defined
|
||||||
|
|
||||||
|
### HTTP response details
|
||||||
|
|
||||||
|
| Status code | Description | Response headers |
|
||||||
|
|-------------|-------------|------------------|
|
||||||
|
**200** | share updated | - |
|
||||||
|
**400** | bad request | - |
|
||||||
|
**401** | unauthorized | - |
|
||||||
|
**404** | not found | - |
|
||||||
|
**500** | internal server error | - |
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
42
sdk/python/src/docs/ShareRequest.md
Normal file
42
sdk/python/src/docs/ShareRequest.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# ShareRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**env_zid** | **str** | | [optional]
|
||||||
|
**share_mode** | **str** | | [optional]
|
||||||
|
**frontend_selection** | **List[str]** | | [optional]
|
||||||
|
**backend_mode** | **str** | | [optional]
|
||||||
|
**backend_proxy_endpoint** | **str** | | [optional]
|
||||||
|
**auth_scheme** | **str** | | [optional]
|
||||||
|
**auth_users** | [**List[AuthUser]**](AuthUser.md) | | [optional]
|
||||||
|
**oauth_provider** | **str** | | [optional]
|
||||||
|
**oauth_email_domains** | **List[str]** | | [optional]
|
||||||
|
**oauth_authorization_check_interval** | **str** | | [optional]
|
||||||
|
**reserved** | **bool** | | [optional]
|
||||||
|
**permission_mode** | **str** | | [optional]
|
||||||
|
**access_grants** | **List[str]** | | [optional]
|
||||||
|
**unique_name** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.share_request import ShareRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ShareRequest from a JSON string
|
||||||
|
share_request_instance = ShareRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ShareRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
share_request_dict = share_request_instance.to_dict()
|
||||||
|
# create an instance of ShareRequest from a dict
|
||||||
|
share_request_from_dict = ShareRequest.from_dict(share_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
30
sdk/python/src/docs/ShareResponse.md
Normal file
30
sdk/python/src/docs/ShareResponse.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# ShareResponse
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**frontend_proxy_endpoints** | **List[str]** | | [optional]
|
||||||
|
**share_token** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.share_response import ShareResponse
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of ShareResponse from a JSON string
|
||||||
|
share_response_instance = ShareResponse.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(ShareResponse.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
share_response_dict = share_response_instance.to_dict()
|
||||||
|
# create an instance of ShareResponse from a dict
|
||||||
|
share_response_from_dict = ShareResponse.from_dict(share_response_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
30
sdk/python/src/docs/SparkDataSample.md
Normal file
30
sdk/python/src/docs/SparkDataSample.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# SparkDataSample
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**rx** | **float** | | [optional]
|
||||||
|
**tx** | **float** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.spark_data_sample import SparkDataSample
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of SparkDataSample from a JSON string
|
||||||
|
spark_data_sample_instance = SparkDataSample.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(SparkDataSample.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
spark_data_sample_dict = spark_data_sample_instance.to_dict()
|
||||||
|
# create an instance of SparkDataSample from a dict
|
||||||
|
spark_data_sample_from_dict = SparkDataSample.from_dict(spark_data_sample_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
31
sdk/python/src/docs/UnaccessRequest.md
Normal file
31
sdk/python/src/docs/UnaccessRequest.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# UnaccessRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**frontend_token** | **str** | | [optional]
|
||||||
|
**env_zid** | **str** | | [optional]
|
||||||
|
**share_token** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.unaccess_request import UnaccessRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of UnaccessRequest from a JSON string
|
||||||
|
unaccess_request_instance = UnaccessRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(UnaccessRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
unaccess_request_dict = unaccess_request_instance.to_dict()
|
||||||
|
# create an instance of UnaccessRequest from a dict
|
||||||
|
unaccess_request_from_dict = UnaccessRequest.from_dict(unaccess_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
31
sdk/python/src/docs/UnshareRequest.md
Normal file
31
sdk/python/src/docs/UnshareRequest.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# UnshareRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**env_zid** | **str** | | [optional]
|
||||||
|
**share_token** | **str** | | [optional]
|
||||||
|
**reserved** | **bool** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.unshare_request import UnshareRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of UnshareRequest from a JSON string
|
||||||
|
unshare_request_instance = UnshareRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(UnshareRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
unshare_request_dict = unshare_request_instance.to_dict()
|
||||||
|
# create an instance of UnshareRequest from a dict
|
||||||
|
unshare_request_from_dict = UnshareRequest.from_dict(unshare_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
31
sdk/python/src/docs/UpdateAccessRequest.md
Normal file
31
sdk/python/src/docs/UpdateAccessRequest.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# UpdateAccessRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**frontend_token** | **str** | | [optional]
|
||||||
|
**bind_address** | **str** | | [optional]
|
||||||
|
**description** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.update_access_request import UpdateAccessRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of UpdateAccessRequest from a JSON string
|
||||||
|
update_access_request_instance = UpdateAccessRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(UpdateAccessRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
update_access_request_dict = update_access_request_instance.to_dict()
|
||||||
|
# create an instance of UpdateAccessRequest from a dict
|
||||||
|
update_access_request_from_dict = UpdateAccessRequest.from_dict(update_access_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
31
sdk/python/src/docs/UpdateFrontendRequest.md
Normal file
31
sdk/python/src/docs/UpdateFrontendRequest.md
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# UpdateFrontendRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**frontend_token** | **str** | | [optional]
|
||||||
|
**public_name** | **str** | | [optional]
|
||||||
|
**url_template** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.update_frontend_request import UpdateFrontendRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of UpdateFrontendRequest from a JSON string
|
||||||
|
update_frontend_request_instance = UpdateFrontendRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(UpdateFrontendRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
update_frontend_request_dict = update_frontend_request_instance.to_dict()
|
||||||
|
# create an instance of UpdateFrontendRequest from a dict
|
||||||
|
update_frontend_request_from_dict = UpdateFrontendRequest.from_dict(update_frontend_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
32
sdk/python/src/docs/UpdateShareRequest.md
Normal file
32
sdk/python/src/docs/UpdateShareRequest.md
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# UpdateShareRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**share_token** | **str** | | [optional]
|
||||||
|
**backend_proxy_endpoint** | **str** | | [optional]
|
||||||
|
**add_access_grants** | **List[str]** | | [optional]
|
||||||
|
**remove_access_grants** | **List[str]** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.update_share_request import UpdateShareRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of UpdateShareRequest from a JSON string
|
||||||
|
update_share_request_instance = UpdateShareRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(UpdateShareRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
update_share_request_dict = update_share_request_instance.to_dict()
|
||||||
|
# create an instance of UpdateShareRequest from a dict
|
||||||
|
update_share_request_from_dict = UpdateShareRequest.from_dict(update_share_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/Verify200Response.md
Normal file
29
sdk/python/src/docs/Verify200Response.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Verify200Response
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**email** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.verify200_response import Verify200Response
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of Verify200Response from a JSON string
|
||||||
|
verify200_response_instance = Verify200Response.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(Verify200Response.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
verify200_response_dict = verify200_response_instance.to_dict()
|
||||||
|
# create an instance of Verify200Response from a dict
|
||||||
|
verify200_response_from_dict = Verify200Response.from_dict(verify200_response_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/VerifyRequest.md
Normal file
29
sdk/python/src/docs/VerifyRequest.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# VerifyRequest
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**register_token** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.verify_request import VerifyRequest
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of VerifyRequest from a JSON string
|
||||||
|
verify_request_instance = VerifyRequest.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(VerifyRequest.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
verify_request_dict = verify_request_instance.to_dict()
|
||||||
|
# create an instance of VerifyRequest from a dict
|
||||||
|
verify_request_from_dict = VerifyRequest.from_dict(verify_request_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
29
sdk/python/src/docs/VersionInventory200Response.md
Normal file
29
sdk/python/src/docs/VersionInventory200Response.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# VersionInventory200Response
|
||||||
|
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**controller_version** | **str** | | [optional]
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
```python
|
||||||
|
from zrok_api.models.version_inventory200_response import VersionInventory200Response
|
||||||
|
|
||||||
|
# TODO update the JSON string below
|
||||||
|
json = "{}"
|
||||||
|
# create an instance of VersionInventory200Response from a JSON string
|
||||||
|
version_inventory200_response_instance = VersionInventory200Response.from_json(json)
|
||||||
|
# print the JSON string representation of the object
|
||||||
|
print(VersionInventory200Response.to_json())
|
||||||
|
|
||||||
|
# convert the object into a dict
|
||||||
|
version_inventory200_response_dict = version_inventory200_response_instance.to_dict()
|
||||||
|
# create an instance of VersionInventory200Response from a dict
|
||||||
|
version_inventory200_response_from_dict = VersionInventory200Response.from_dict(version_inventory200_response_dict)
|
||||||
|
```
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
0
sdk/python/src/test/__init__.py
Normal file
0
sdk/python/src/test/__init__.py
Normal file
52
sdk/python/src/test/test_access201_response.py
Normal file
52
sdk/python/src/test/test_access201_response.py
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.access201_response import Access201Response
|
||||||
|
|
||||||
|
class TestAccess201Response(unittest.TestCase):
|
||||||
|
"""Access201Response unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> Access201Response:
|
||||||
|
"""Test Access201Response
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `Access201Response`
|
||||||
|
"""
|
||||||
|
model = Access201Response()
|
||||||
|
if include_optional:
|
||||||
|
return Access201Response(
|
||||||
|
frontend_token = '',
|
||||||
|
backend_mode = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return Access201Response(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testAccess201Response(self):
|
||||||
|
"""Test Access201Response"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
54
sdk/python/src/test/test_access_request.py
Normal file
54
sdk/python/src/test/test_access_request.py
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.access_request import AccessRequest
|
||||||
|
|
||||||
|
class TestAccessRequest(unittest.TestCase):
|
||||||
|
"""AccessRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> AccessRequest:
|
||||||
|
"""Test AccessRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `AccessRequest`
|
||||||
|
"""
|
||||||
|
model = AccessRequest()
|
||||||
|
if include_optional:
|
||||||
|
return AccessRequest(
|
||||||
|
env_zid = '',
|
||||||
|
share_token = '',
|
||||||
|
bind_address = '',
|
||||||
|
description = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return AccessRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testAccessRequest(self):
|
||||||
|
"""Test AccessRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
79
sdk/python/src/test/test_account_api.py
Normal file
79
sdk/python/src/test/test_account_api.py
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.api.account_api import AccountApi
|
||||||
|
|
||||||
|
|
||||||
|
class TestAccountApi(unittest.TestCase):
|
||||||
|
"""AccountApi unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self) -> None:
|
||||||
|
self.api = AccountApi()
|
||||||
|
|
||||||
|
def tearDown(self) -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_change_password(self) -> None:
|
||||||
|
"""Test case for change_password
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_invite(self) -> None:
|
||||||
|
"""Test case for invite
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_login(self) -> None:
|
||||||
|
"""Test case for login
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_regenerate_account_token(self) -> None:
|
||||||
|
"""Test case for regenerate_account_token
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_register(self) -> None:
|
||||||
|
"""Test case for register
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_reset_password(self) -> None:
|
||||||
|
"""Test case for reset_password
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_reset_password_request(self) -> None:
|
||||||
|
"""Test case for reset_password_request
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_verify(self) -> None:
|
||||||
|
"""Test case for verify
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
53
sdk/python/src/test/test_add_organization_member_request.py
Normal file
53
sdk/python/src/test/test_add_organization_member_request.py
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.add_organization_member_request import AddOrganizationMemberRequest
|
||||||
|
|
||||||
|
class TestAddOrganizationMemberRequest(unittest.TestCase):
|
||||||
|
"""AddOrganizationMemberRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> AddOrganizationMemberRequest:
|
||||||
|
"""Test AddOrganizationMemberRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `AddOrganizationMemberRequest`
|
||||||
|
"""
|
||||||
|
model = AddOrganizationMemberRequest()
|
||||||
|
if include_optional:
|
||||||
|
return AddOrganizationMemberRequest(
|
||||||
|
organization_token = '',
|
||||||
|
email = '',
|
||||||
|
admin = True
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return AddOrganizationMemberRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testAddOrganizationMemberRequest(self):
|
||||||
|
"""Test AddOrganizationMemberRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
115
sdk/python/src/test/test_admin_api.py
Normal file
115
sdk/python/src/test/test_admin_api.py
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.api.admin_api import AdminApi
|
||||||
|
|
||||||
|
|
||||||
|
class TestAdminApi(unittest.TestCase):
|
||||||
|
"""AdminApi unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self) -> None:
|
||||||
|
self.api = AdminApi()
|
||||||
|
|
||||||
|
def tearDown(self) -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_add_organization_member(self) -> None:
|
||||||
|
"""Test case for add_organization_member
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_create_account(self) -> None:
|
||||||
|
"""Test case for create_account
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_create_frontend(self) -> None:
|
||||||
|
"""Test case for create_frontend
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_create_identity(self) -> None:
|
||||||
|
"""Test case for create_identity
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_create_organization(self) -> None:
|
||||||
|
"""Test case for create_organization
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_delete_frontend(self) -> None:
|
||||||
|
"""Test case for delete_frontend
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_delete_organization(self) -> None:
|
||||||
|
"""Test case for delete_organization
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_grants(self) -> None:
|
||||||
|
"""Test case for grants
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_invite_token_generate(self) -> None:
|
||||||
|
"""Test case for invite_token_generate
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_list_frontends(self) -> None:
|
||||||
|
"""Test case for list_frontends
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_list_organization_members(self) -> None:
|
||||||
|
"""Test case for list_organization_members
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_list_organizations(self) -> None:
|
||||||
|
"""Test case for list_organizations
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_remove_organization_member(self) -> None:
|
||||||
|
"""Test case for remove_organization_member
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_update_frontend(self) -> None:
|
||||||
|
"""Test case for update_frontend
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
52
sdk/python/src/test/test_auth_user.py
Normal file
52
sdk/python/src/test/test_auth_user.py
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.auth_user import AuthUser
|
||||||
|
|
||||||
|
class TestAuthUser(unittest.TestCase):
|
||||||
|
"""AuthUser unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> AuthUser:
|
||||||
|
"""Test AuthUser
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `AuthUser`
|
||||||
|
"""
|
||||||
|
model = AuthUser()
|
||||||
|
if include_optional:
|
||||||
|
return AuthUser(
|
||||||
|
username = '',
|
||||||
|
password = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return AuthUser(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testAuthUser(self):
|
||||||
|
"""Test AuthUser"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
53
sdk/python/src/test/test_change_password_request.py
Normal file
53
sdk/python/src/test/test_change_password_request.py
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.change_password_request import ChangePasswordRequest
|
||||||
|
|
||||||
|
class TestChangePasswordRequest(unittest.TestCase):
|
||||||
|
"""ChangePasswordRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> ChangePasswordRequest:
|
||||||
|
"""Test ChangePasswordRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `ChangePasswordRequest`
|
||||||
|
"""
|
||||||
|
model = ChangePasswordRequest()
|
||||||
|
if include_optional:
|
||||||
|
return ChangePasswordRequest(
|
||||||
|
email = '',
|
||||||
|
old_password = '',
|
||||||
|
new_password = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return ChangePasswordRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testChangePasswordRequest(self):
|
||||||
|
"""Test ChangePasswordRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
51
sdk/python/src/test/test_client_version_check_request.py
Normal file
51
sdk/python/src/test/test_client_version_check_request.py
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.client_version_check_request import ClientVersionCheckRequest
|
||||||
|
|
||||||
|
class TestClientVersionCheckRequest(unittest.TestCase):
|
||||||
|
"""ClientVersionCheckRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> ClientVersionCheckRequest:
|
||||||
|
"""Test ClientVersionCheckRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `ClientVersionCheckRequest`
|
||||||
|
"""
|
||||||
|
model = ClientVersionCheckRequest()
|
||||||
|
if include_optional:
|
||||||
|
return ClientVersionCheckRequest(
|
||||||
|
client_version = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return ClientVersionCheckRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testClientVersionCheckRequest(self):
|
||||||
|
"""Test ClientVersionCheckRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
55
sdk/python/src/test/test_configuration.py
Normal file
55
sdk/python/src/test/test_configuration.py
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.configuration import Configuration
|
||||||
|
|
||||||
|
class TestConfiguration(unittest.TestCase):
|
||||||
|
"""Configuration unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> Configuration:
|
||||||
|
"""Test Configuration
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `Configuration`
|
||||||
|
"""
|
||||||
|
model = Configuration()
|
||||||
|
if include_optional:
|
||||||
|
return Configuration(
|
||||||
|
version = '',
|
||||||
|
tou_link = '',
|
||||||
|
invites_open = True,
|
||||||
|
requires_invite_token = True,
|
||||||
|
invite_token_contact = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return Configuration(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testConfiguration(self):
|
||||||
|
"""Test Configuration"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
51
sdk/python/src/test/test_create_frontend201_response.py
Normal file
51
sdk/python/src/test/test_create_frontend201_response.py
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.create_frontend201_response import CreateFrontend201Response
|
||||||
|
|
||||||
|
class TestCreateFrontend201Response(unittest.TestCase):
|
||||||
|
"""CreateFrontend201Response unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> CreateFrontend201Response:
|
||||||
|
"""Test CreateFrontend201Response
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `CreateFrontend201Response`
|
||||||
|
"""
|
||||||
|
model = CreateFrontend201Response()
|
||||||
|
if include_optional:
|
||||||
|
return CreateFrontend201Response(
|
||||||
|
frontend_token = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return CreateFrontend201Response(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testCreateFrontend201Response(self):
|
||||||
|
"""Test CreateFrontend201Response"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
54
sdk/python/src/test/test_create_frontend_request.py
Normal file
54
sdk/python/src/test/test_create_frontend_request.py
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.create_frontend_request import CreateFrontendRequest
|
||||||
|
|
||||||
|
class TestCreateFrontendRequest(unittest.TestCase):
|
||||||
|
"""CreateFrontendRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> CreateFrontendRequest:
|
||||||
|
"""Test CreateFrontendRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `CreateFrontendRequest`
|
||||||
|
"""
|
||||||
|
model = CreateFrontendRequest()
|
||||||
|
if include_optional:
|
||||||
|
return CreateFrontendRequest(
|
||||||
|
z_id = '',
|
||||||
|
url_template = '',
|
||||||
|
public_name = '',
|
||||||
|
permission_mode = 'open'
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return CreateFrontendRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testCreateFrontendRequest(self):
|
||||||
|
"""Test CreateFrontendRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
52
sdk/python/src/test/test_create_identity201_response.py
Normal file
52
sdk/python/src/test/test_create_identity201_response.py
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.create_identity201_response import CreateIdentity201Response
|
||||||
|
|
||||||
|
class TestCreateIdentity201Response(unittest.TestCase):
|
||||||
|
"""CreateIdentity201Response unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> CreateIdentity201Response:
|
||||||
|
"""Test CreateIdentity201Response
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `CreateIdentity201Response`
|
||||||
|
"""
|
||||||
|
model = CreateIdentity201Response()
|
||||||
|
if include_optional:
|
||||||
|
return CreateIdentity201Response(
|
||||||
|
identity = '',
|
||||||
|
cfg = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return CreateIdentity201Response(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testCreateIdentity201Response(self):
|
||||||
|
"""Test CreateIdentity201Response"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
51
sdk/python/src/test/test_create_identity_request.py
Normal file
51
sdk/python/src/test/test_create_identity_request.py
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.create_identity_request import CreateIdentityRequest
|
||||||
|
|
||||||
|
class TestCreateIdentityRequest(unittest.TestCase):
|
||||||
|
"""CreateIdentityRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> CreateIdentityRequest:
|
||||||
|
"""Test CreateIdentityRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `CreateIdentityRequest`
|
||||||
|
"""
|
||||||
|
model = CreateIdentityRequest()
|
||||||
|
if include_optional:
|
||||||
|
return CreateIdentityRequest(
|
||||||
|
name = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return CreateIdentityRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testCreateIdentityRequest(self):
|
||||||
|
"""Test CreateIdentityRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
51
sdk/python/src/test/test_create_organization201_response.py
Normal file
51
sdk/python/src/test/test_create_organization201_response.py
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.create_organization201_response import CreateOrganization201Response
|
||||||
|
|
||||||
|
class TestCreateOrganization201Response(unittest.TestCase):
|
||||||
|
"""CreateOrganization201Response unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> CreateOrganization201Response:
|
||||||
|
"""Test CreateOrganization201Response
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `CreateOrganization201Response`
|
||||||
|
"""
|
||||||
|
model = CreateOrganization201Response()
|
||||||
|
if include_optional:
|
||||||
|
return CreateOrganization201Response(
|
||||||
|
organization_token = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return CreateOrganization201Response(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testCreateOrganization201Response(self):
|
||||||
|
"""Test CreateOrganization201Response"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
51
sdk/python/src/test/test_create_organization_request.py
Normal file
51
sdk/python/src/test/test_create_organization_request.py
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.create_organization_request import CreateOrganizationRequest
|
||||||
|
|
||||||
|
class TestCreateOrganizationRequest(unittest.TestCase):
|
||||||
|
"""CreateOrganizationRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> CreateOrganizationRequest:
|
||||||
|
"""Test CreateOrganizationRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `CreateOrganizationRequest`
|
||||||
|
"""
|
||||||
|
model = CreateOrganizationRequest()
|
||||||
|
if include_optional:
|
||||||
|
return CreateOrganizationRequest(
|
||||||
|
description = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return CreateOrganizationRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testCreateOrganizationRequest(self):
|
||||||
|
"""Test CreateOrganizationRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
51
sdk/python/src/test/test_disable_request.py
Normal file
51
sdk/python/src/test/test_disable_request.py
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.disable_request import DisableRequest
|
||||||
|
|
||||||
|
class TestDisableRequest(unittest.TestCase):
|
||||||
|
"""DisableRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> DisableRequest:
|
||||||
|
"""Test DisableRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `DisableRequest`
|
||||||
|
"""
|
||||||
|
model = DisableRequest()
|
||||||
|
if include_optional:
|
||||||
|
return DisableRequest(
|
||||||
|
identity = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return DisableRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testDisableRequest(self):
|
||||||
|
"""Test DisableRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
52
sdk/python/src/test/test_enable_request.py
Normal file
52
sdk/python/src/test/test_enable_request.py
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.enable_request import EnableRequest
|
||||||
|
|
||||||
|
class TestEnableRequest(unittest.TestCase):
|
||||||
|
"""EnableRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> EnableRequest:
|
||||||
|
"""Test EnableRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `EnableRequest`
|
||||||
|
"""
|
||||||
|
model = EnableRequest()
|
||||||
|
if include_optional:
|
||||||
|
return EnableRequest(
|
||||||
|
description = '',
|
||||||
|
host = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return EnableRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testEnableRequest(self):
|
||||||
|
"""Test EnableRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
62
sdk/python/src/test/test_environment.py
Normal file
62
sdk/python/src/test/test_environment.py
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.environment import Environment
|
||||||
|
|
||||||
|
class TestEnvironment(unittest.TestCase):
|
||||||
|
"""Environment unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> Environment:
|
||||||
|
"""Test Environment
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `Environment`
|
||||||
|
"""
|
||||||
|
model = Environment()
|
||||||
|
if include_optional:
|
||||||
|
return Environment(
|
||||||
|
description = '',
|
||||||
|
host = '',
|
||||||
|
address = '',
|
||||||
|
z_id = '',
|
||||||
|
activity = [
|
||||||
|
zrok_api.models.spark_data_sample.sparkDataSample(
|
||||||
|
rx = 1.337,
|
||||||
|
tx = 1.337, )
|
||||||
|
],
|
||||||
|
limited = True,
|
||||||
|
created_at = 56,
|
||||||
|
updated_at = 56
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return Environment(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testEnvironment(self):
|
||||||
|
"""Test Environment"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
94
sdk/python/src/test/test_environment_and_resources.py
Normal file
94
sdk/python/src/test/test_environment_and_resources.py
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.environment_and_resources import EnvironmentAndResources
|
||||||
|
|
||||||
|
class TestEnvironmentAndResources(unittest.TestCase):
|
||||||
|
"""EnvironmentAndResources unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> EnvironmentAndResources:
|
||||||
|
"""Test EnvironmentAndResources
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `EnvironmentAndResources`
|
||||||
|
"""
|
||||||
|
model = EnvironmentAndResources()
|
||||||
|
if include_optional:
|
||||||
|
return EnvironmentAndResources(
|
||||||
|
environment = zrok_api.models.environment.environment(
|
||||||
|
description = '',
|
||||||
|
host = '',
|
||||||
|
address = '',
|
||||||
|
z_id = '',
|
||||||
|
activity = [
|
||||||
|
zrok_api.models.spark_data_sample.sparkDataSample(
|
||||||
|
rx = 1.337,
|
||||||
|
tx = 1.337, )
|
||||||
|
],
|
||||||
|
limited = True,
|
||||||
|
created_at = 56,
|
||||||
|
updated_at = 56, ),
|
||||||
|
frontends = [
|
||||||
|
zrok_api.models.frontend.frontend(
|
||||||
|
id = 56,
|
||||||
|
frontend_token = '',
|
||||||
|
share_token = '',
|
||||||
|
backend_mode = '',
|
||||||
|
bind_address = '',
|
||||||
|
description = '',
|
||||||
|
z_id = '',
|
||||||
|
created_at = 56,
|
||||||
|
updated_at = 56, )
|
||||||
|
],
|
||||||
|
shares = [
|
||||||
|
zrok_api.models.share.share(
|
||||||
|
share_token = '',
|
||||||
|
z_id = '',
|
||||||
|
share_mode = '',
|
||||||
|
backend_mode = '',
|
||||||
|
frontend_selection = '',
|
||||||
|
frontend_endpoint = '',
|
||||||
|
backend_proxy_endpoint = '',
|
||||||
|
reserved = True,
|
||||||
|
activity = [
|
||||||
|
zrok_api.models.spark_data_sample.sparkDataSample(
|
||||||
|
rx = 1.337,
|
||||||
|
tx = 1.337, )
|
||||||
|
],
|
||||||
|
limited = True,
|
||||||
|
created_at = 56,
|
||||||
|
updated_at = 56, )
|
||||||
|
]
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return EnvironmentAndResources(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testEnvironmentAndResources(self):
|
||||||
|
"""Test EnvironmentAndResources"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
43
sdk/python/src/test/test_environment_api.py
Normal file
43
sdk/python/src/test/test_environment_api.py
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.api.environment_api import EnvironmentApi
|
||||||
|
|
||||||
|
|
||||||
|
class TestEnvironmentApi(unittest.TestCase):
|
||||||
|
"""EnvironmentApi unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self) -> None:
|
||||||
|
self.api = EnvironmentApi()
|
||||||
|
|
||||||
|
def tearDown(self) -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_disable(self) -> None:
|
||||||
|
"""Test case for disable
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_enable(self) -> None:
|
||||||
|
"""Test case for enable
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
59
sdk/python/src/test/test_frontend.py
Normal file
59
sdk/python/src/test/test_frontend.py
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.frontend import Frontend
|
||||||
|
|
||||||
|
class TestFrontend(unittest.TestCase):
|
||||||
|
"""Frontend unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> Frontend:
|
||||||
|
"""Test Frontend
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `Frontend`
|
||||||
|
"""
|
||||||
|
model = Frontend()
|
||||||
|
if include_optional:
|
||||||
|
return Frontend(
|
||||||
|
id = 56,
|
||||||
|
frontend_token = '',
|
||||||
|
share_token = '',
|
||||||
|
backend_mode = '',
|
||||||
|
bind_address = '',
|
||||||
|
description = '',
|
||||||
|
z_id = '',
|
||||||
|
created_at = 56,
|
||||||
|
updated_at = 56
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return Frontend(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testFrontend(self):
|
||||||
|
"""Test Frontend"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
62
sdk/python/src/test/test_get_sparklines200_response.py
Normal file
62
sdk/python/src/test/test_get_sparklines200_response.py
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.get_sparklines200_response import GetSparklines200Response
|
||||||
|
|
||||||
|
class TestGetSparklines200Response(unittest.TestCase):
|
||||||
|
"""GetSparklines200Response unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> GetSparklines200Response:
|
||||||
|
"""Test GetSparklines200Response
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `GetSparklines200Response`
|
||||||
|
"""
|
||||||
|
model = GetSparklines200Response()
|
||||||
|
if include_optional:
|
||||||
|
return GetSparklines200Response(
|
||||||
|
sparklines = [
|
||||||
|
zrok_api.models.metrics.metrics(
|
||||||
|
scope = '',
|
||||||
|
id = '',
|
||||||
|
period = 1.337,
|
||||||
|
samples = [
|
||||||
|
zrok_api.models.metrics_sample.metricsSample(
|
||||||
|
rx = 1.337,
|
||||||
|
tx = 1.337,
|
||||||
|
timestamp = 1.337, )
|
||||||
|
], )
|
||||||
|
]
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return GetSparklines200Response(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testGetSparklines200Response(self):
|
||||||
|
"""Test GetSparklines200Response"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
57
sdk/python/src/test/test_get_sparklines_request.py
Normal file
57
sdk/python/src/test/test_get_sparklines_request.py
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.get_sparklines_request import GetSparklinesRequest
|
||||||
|
|
||||||
|
class TestGetSparklinesRequest(unittest.TestCase):
|
||||||
|
"""GetSparklinesRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> GetSparklinesRequest:
|
||||||
|
"""Test GetSparklinesRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `GetSparklinesRequest`
|
||||||
|
"""
|
||||||
|
model = GetSparklinesRequest()
|
||||||
|
if include_optional:
|
||||||
|
return GetSparklinesRequest(
|
||||||
|
account = True,
|
||||||
|
environments = [
|
||||||
|
''
|
||||||
|
],
|
||||||
|
shares = [
|
||||||
|
''
|
||||||
|
]
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return GetSparklinesRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testGetSparklinesRequest(self):
|
||||||
|
"""Test GetSparklinesRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
52
sdk/python/src/test/test_invite_request.py
Normal file
52
sdk/python/src/test/test_invite_request.py
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.invite_request import InviteRequest
|
||||||
|
|
||||||
|
class TestInviteRequest(unittest.TestCase):
|
||||||
|
"""InviteRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> InviteRequest:
|
||||||
|
"""Test InviteRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `InviteRequest`
|
||||||
|
"""
|
||||||
|
model = InviteRequest()
|
||||||
|
if include_optional:
|
||||||
|
return InviteRequest(
|
||||||
|
email = '',
|
||||||
|
invite_token = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return InviteRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testInviteRequest(self):
|
||||||
|
"""Test InviteRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
53
sdk/python/src/test/test_invite_token_generate_request.py
Normal file
53
sdk/python/src/test/test_invite_token_generate_request.py
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.invite_token_generate_request import InviteTokenGenerateRequest
|
||||||
|
|
||||||
|
class TestInviteTokenGenerateRequest(unittest.TestCase):
|
||||||
|
"""InviteTokenGenerateRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> InviteTokenGenerateRequest:
|
||||||
|
"""Test InviteTokenGenerateRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `InviteTokenGenerateRequest`
|
||||||
|
"""
|
||||||
|
model = InviteTokenGenerateRequest()
|
||||||
|
if include_optional:
|
||||||
|
return InviteTokenGenerateRequest(
|
||||||
|
invite_tokens = [
|
||||||
|
''
|
||||||
|
]
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return InviteTokenGenerateRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testInviteTokenGenerateRequest(self):
|
||||||
|
"""Test InviteTokenGenerateRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
56
sdk/python/src/test/test_list_frontends200_response_inner.py
Normal file
56
sdk/python/src/test/test_list_frontends200_response_inner.py
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.list_frontends200_response_inner import ListFrontends200ResponseInner
|
||||||
|
|
||||||
|
class TestListFrontends200ResponseInner(unittest.TestCase):
|
||||||
|
"""ListFrontends200ResponseInner unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> ListFrontends200ResponseInner:
|
||||||
|
"""Test ListFrontends200ResponseInner
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `ListFrontends200ResponseInner`
|
||||||
|
"""
|
||||||
|
model = ListFrontends200ResponseInner()
|
||||||
|
if include_optional:
|
||||||
|
return ListFrontends200ResponseInner(
|
||||||
|
frontend_token = '',
|
||||||
|
z_id = '',
|
||||||
|
url_template = '',
|
||||||
|
public_name = '',
|
||||||
|
created_at = 56,
|
||||||
|
updated_at = 56
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return ListFrontends200ResponseInner(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testListFrontends200ResponseInner(self):
|
||||||
|
"""Test ListFrontends200ResponseInner"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
56
sdk/python/src/test/test_list_memberships200_response.py
Normal file
56
sdk/python/src/test/test_list_memberships200_response.py
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.list_memberships200_response import ListMemberships200Response
|
||||||
|
|
||||||
|
class TestListMemberships200Response(unittest.TestCase):
|
||||||
|
"""ListMemberships200Response unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> ListMemberships200Response:
|
||||||
|
"""Test ListMemberships200Response
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `ListMemberships200Response`
|
||||||
|
"""
|
||||||
|
model = ListMemberships200Response()
|
||||||
|
if include_optional:
|
||||||
|
return ListMemberships200Response(
|
||||||
|
memberships = [
|
||||||
|
zrok_api.models.list_memberships_200_response_memberships_inner.listMemberships_200_response_memberships_inner(
|
||||||
|
organization_token = '',
|
||||||
|
description = '',
|
||||||
|
admin = True, )
|
||||||
|
]
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return ListMemberships200Response(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testListMemberships200Response(self):
|
||||||
|
"""Test ListMemberships200Response"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
@ -0,0 +1,53 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.list_memberships200_response_memberships_inner import ListMemberships200ResponseMembershipsInner
|
||||||
|
|
||||||
|
class TestListMemberships200ResponseMembershipsInner(unittest.TestCase):
|
||||||
|
"""ListMemberships200ResponseMembershipsInner unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> ListMemberships200ResponseMembershipsInner:
|
||||||
|
"""Test ListMemberships200ResponseMembershipsInner
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `ListMemberships200ResponseMembershipsInner`
|
||||||
|
"""
|
||||||
|
model = ListMemberships200ResponseMembershipsInner()
|
||||||
|
if include_optional:
|
||||||
|
return ListMemberships200ResponseMembershipsInner(
|
||||||
|
organization_token = '',
|
||||||
|
description = '',
|
||||||
|
admin = True
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return ListMemberships200ResponseMembershipsInner(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testListMemberships200ResponseMembershipsInner(self):
|
||||||
|
"""Test ListMemberships200ResponseMembershipsInner"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
@ -0,0 +1,55 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.list_organization_members200_response import ListOrganizationMembers200Response
|
||||||
|
|
||||||
|
class TestListOrganizationMembers200Response(unittest.TestCase):
|
||||||
|
"""ListOrganizationMembers200Response unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> ListOrganizationMembers200Response:
|
||||||
|
"""Test ListOrganizationMembers200Response
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `ListOrganizationMembers200Response`
|
||||||
|
"""
|
||||||
|
model = ListOrganizationMembers200Response()
|
||||||
|
if include_optional:
|
||||||
|
return ListOrganizationMembers200Response(
|
||||||
|
members = [
|
||||||
|
zrok_api.models.list_organization_members_200_response_members_inner.listOrganizationMembers_200_response_members_inner(
|
||||||
|
email = '',
|
||||||
|
admin = True, )
|
||||||
|
]
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return ListOrganizationMembers200Response(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testListOrganizationMembers200Response(self):
|
||||||
|
"""Test ListOrganizationMembers200Response"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
@ -0,0 +1,52 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.list_organization_members200_response_members_inner import ListOrganizationMembers200ResponseMembersInner
|
||||||
|
|
||||||
|
class TestListOrganizationMembers200ResponseMembersInner(unittest.TestCase):
|
||||||
|
"""ListOrganizationMembers200ResponseMembersInner unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> ListOrganizationMembers200ResponseMembersInner:
|
||||||
|
"""Test ListOrganizationMembers200ResponseMembersInner
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `ListOrganizationMembers200ResponseMembersInner`
|
||||||
|
"""
|
||||||
|
model = ListOrganizationMembers200ResponseMembersInner()
|
||||||
|
if include_optional:
|
||||||
|
return ListOrganizationMembers200ResponseMembersInner(
|
||||||
|
email = '',
|
||||||
|
admin = True
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return ListOrganizationMembers200ResponseMembersInner(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testListOrganizationMembers200ResponseMembersInner(self):
|
||||||
|
"""Test ListOrganizationMembers200ResponseMembersInner"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
55
sdk/python/src/test/test_list_organizations200_response.py
Normal file
55
sdk/python/src/test/test_list_organizations200_response.py
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.list_organizations200_response import ListOrganizations200Response
|
||||||
|
|
||||||
|
class TestListOrganizations200Response(unittest.TestCase):
|
||||||
|
"""ListOrganizations200Response unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> ListOrganizations200Response:
|
||||||
|
"""Test ListOrganizations200Response
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `ListOrganizations200Response`
|
||||||
|
"""
|
||||||
|
model = ListOrganizations200Response()
|
||||||
|
if include_optional:
|
||||||
|
return ListOrganizations200Response(
|
||||||
|
organizations = [
|
||||||
|
zrok_api.models.list_organizations_200_response_organizations_inner.listOrganizations_200_response_organizations_inner(
|
||||||
|
organization_token = '',
|
||||||
|
description = '', )
|
||||||
|
]
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return ListOrganizations200Response(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testListOrganizations200Response(self):
|
||||||
|
"""Test ListOrganizations200Response"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
@ -0,0 +1,52 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.list_organizations200_response_organizations_inner import ListOrganizations200ResponseOrganizationsInner
|
||||||
|
|
||||||
|
class TestListOrganizations200ResponseOrganizationsInner(unittest.TestCase):
|
||||||
|
"""ListOrganizations200ResponseOrganizationsInner unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> ListOrganizations200ResponseOrganizationsInner:
|
||||||
|
"""Test ListOrganizations200ResponseOrganizationsInner
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `ListOrganizations200ResponseOrganizationsInner`
|
||||||
|
"""
|
||||||
|
model = ListOrganizations200ResponseOrganizationsInner()
|
||||||
|
if include_optional:
|
||||||
|
return ListOrganizations200ResponseOrganizationsInner(
|
||||||
|
organization_token = '',
|
||||||
|
description = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return ListOrganizations200ResponseOrganizationsInner(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testListOrganizations200ResponseOrganizationsInner(self):
|
||||||
|
"""Test ListOrganizations200ResponseOrganizationsInner"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
52
sdk/python/src/test/test_login_request.py
Normal file
52
sdk/python/src/test/test_login_request.py
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.login_request import LoginRequest
|
||||||
|
|
||||||
|
class TestLoginRequest(unittest.TestCase):
|
||||||
|
"""LoginRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> LoginRequest:
|
||||||
|
"""Test LoginRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `LoginRequest`
|
||||||
|
"""
|
||||||
|
model = LoginRequest()
|
||||||
|
if include_optional:
|
||||||
|
return LoginRequest(
|
||||||
|
email = '',
|
||||||
|
password = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return LoginRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testLoginRequest(self):
|
||||||
|
"""Test LoginRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
127
sdk/python/src/test/test_metadata_api.py
Normal file
127
sdk/python/src/test/test_metadata_api.py
Normal file
@ -0,0 +1,127 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.api.metadata_api import MetadataApi
|
||||||
|
|
||||||
|
|
||||||
|
class TestMetadataApi(unittest.TestCase):
|
||||||
|
"""MetadataApi unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self) -> None:
|
||||||
|
self.api = MetadataApi()
|
||||||
|
|
||||||
|
def tearDown(self) -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_client_version_check(self) -> None:
|
||||||
|
"""Test case for client_version_check
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_configuration(self) -> None:
|
||||||
|
"""Test case for configuration
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_get_account_detail(self) -> None:
|
||||||
|
"""Test case for get_account_detail
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_get_account_metrics(self) -> None:
|
||||||
|
"""Test case for get_account_metrics
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_get_environment_detail(self) -> None:
|
||||||
|
"""Test case for get_environment_detail
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_get_environment_metrics(self) -> None:
|
||||||
|
"""Test case for get_environment_metrics
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_get_frontend_detail(self) -> None:
|
||||||
|
"""Test case for get_frontend_detail
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_get_share_detail(self) -> None:
|
||||||
|
"""Test case for get_share_detail
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_get_share_metrics(self) -> None:
|
||||||
|
"""Test case for get_share_metrics
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_get_sparklines(self) -> None:
|
||||||
|
"""Test case for get_sparklines
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_list_memberships(self) -> None:
|
||||||
|
"""Test case for list_memberships
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_list_org_members(self) -> None:
|
||||||
|
"""Test case for list_org_members
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_org_account_overview(self) -> None:
|
||||||
|
"""Test case for org_account_overview
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_overview(self) -> None:
|
||||||
|
"""Test case for overview
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_version(self) -> None:
|
||||||
|
"""Test case for version
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
def test_version_inventory(self) -> None:
|
||||||
|
"""Test case for version_inventory
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
59
sdk/python/src/test/test_metrics.py
Normal file
59
sdk/python/src/test/test_metrics.py
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.metrics import Metrics
|
||||||
|
|
||||||
|
class TestMetrics(unittest.TestCase):
|
||||||
|
"""Metrics unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> Metrics:
|
||||||
|
"""Test Metrics
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `Metrics`
|
||||||
|
"""
|
||||||
|
model = Metrics()
|
||||||
|
if include_optional:
|
||||||
|
return Metrics(
|
||||||
|
scope = '',
|
||||||
|
id = '',
|
||||||
|
period = 1.337,
|
||||||
|
samples = [
|
||||||
|
zrok_api.models.metrics_sample.metricsSample(
|
||||||
|
rx = 1.337,
|
||||||
|
tx = 1.337,
|
||||||
|
timestamp = 1.337, )
|
||||||
|
]
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return Metrics(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testMetrics(self):
|
||||||
|
"""Test Metrics"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
53
sdk/python/src/test/test_metrics_sample.py
Normal file
53
sdk/python/src/test/test_metrics_sample.py
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.metrics_sample import MetricsSample
|
||||||
|
|
||||||
|
class TestMetricsSample(unittest.TestCase):
|
||||||
|
"""MetricsSample unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> MetricsSample:
|
||||||
|
"""Test MetricsSample
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `MetricsSample`
|
||||||
|
"""
|
||||||
|
model = MetricsSample()
|
||||||
|
if include_optional:
|
||||||
|
return MetricsSample(
|
||||||
|
rx = 1.337,
|
||||||
|
tx = 1.337,
|
||||||
|
timestamp = 1.337
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return MetricsSample(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testMetricsSample(self):
|
||||||
|
"""Test MetricsSample"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
93
sdk/python/src/test/test_overview.py
Normal file
93
sdk/python/src/test/test_overview.py
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.overview import Overview
|
||||||
|
|
||||||
|
class TestOverview(unittest.TestCase):
|
||||||
|
"""Overview unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> Overview:
|
||||||
|
"""Test Overview
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `Overview`
|
||||||
|
"""
|
||||||
|
model = Overview()
|
||||||
|
if include_optional:
|
||||||
|
return Overview(
|
||||||
|
account_limited = True,
|
||||||
|
environments = [
|
||||||
|
zrok_api.models.environment_and_resources.environmentAndResources(
|
||||||
|
environment = zrok_api.models.environment.environment(
|
||||||
|
description = '',
|
||||||
|
host = '',
|
||||||
|
address = '',
|
||||||
|
z_id = '',
|
||||||
|
activity = [
|
||||||
|
zrok_api.models.spark_data_sample.sparkDataSample(
|
||||||
|
rx = 1.337,
|
||||||
|
tx = 1.337, )
|
||||||
|
],
|
||||||
|
limited = True,
|
||||||
|
created_at = 56,
|
||||||
|
updated_at = 56, ),
|
||||||
|
frontends = [
|
||||||
|
zrok_api.models.frontend.frontend(
|
||||||
|
id = 56,
|
||||||
|
frontend_token = '',
|
||||||
|
share_token = '',
|
||||||
|
backend_mode = '',
|
||||||
|
bind_address = '',
|
||||||
|
description = '',
|
||||||
|
z_id = '',
|
||||||
|
created_at = 56,
|
||||||
|
updated_at = 56, )
|
||||||
|
],
|
||||||
|
shares = [
|
||||||
|
zrok_api.models.share.share(
|
||||||
|
share_token = '',
|
||||||
|
z_id = '',
|
||||||
|
share_mode = '',
|
||||||
|
backend_mode = '',
|
||||||
|
frontend_selection = '',
|
||||||
|
frontend_endpoint = '',
|
||||||
|
backend_proxy_endpoint = '',
|
||||||
|
reserved = True,
|
||||||
|
limited = True,
|
||||||
|
created_at = 56,
|
||||||
|
updated_at = 56, )
|
||||||
|
], )
|
||||||
|
]
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return Overview(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testOverview(self):
|
||||||
|
"""Test Overview"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
55
sdk/python/src/test/test_principal.py
Normal file
55
sdk/python/src/test/test_principal.py
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.principal import Principal
|
||||||
|
|
||||||
|
class TestPrincipal(unittest.TestCase):
|
||||||
|
"""Principal unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> Principal:
|
||||||
|
"""Test Principal
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `Principal`
|
||||||
|
"""
|
||||||
|
model = Principal()
|
||||||
|
if include_optional:
|
||||||
|
return Principal(
|
||||||
|
id = 56,
|
||||||
|
email = '',
|
||||||
|
token = '',
|
||||||
|
limitless = True,
|
||||||
|
admin = True
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return Principal(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testPrincipal(self):
|
||||||
|
"""Test Principal"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
@ -0,0 +1,51 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.regenerate_account_token200_response import RegenerateAccountToken200Response
|
||||||
|
|
||||||
|
class TestRegenerateAccountToken200Response(unittest.TestCase):
|
||||||
|
"""RegenerateAccountToken200Response unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> RegenerateAccountToken200Response:
|
||||||
|
"""Test RegenerateAccountToken200Response
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `RegenerateAccountToken200Response`
|
||||||
|
"""
|
||||||
|
model = RegenerateAccountToken200Response()
|
||||||
|
if include_optional:
|
||||||
|
return RegenerateAccountToken200Response(
|
||||||
|
account_token = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return RegenerateAccountToken200Response(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testRegenerateAccountToken200Response(self):
|
||||||
|
"""Test RegenerateAccountToken200Response"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
51
sdk/python/src/test/test_regenerate_account_token_request.py
Normal file
51
sdk/python/src/test/test_regenerate_account_token_request.py
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.regenerate_account_token_request import RegenerateAccountTokenRequest
|
||||||
|
|
||||||
|
class TestRegenerateAccountTokenRequest(unittest.TestCase):
|
||||||
|
"""RegenerateAccountTokenRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> RegenerateAccountTokenRequest:
|
||||||
|
"""Test RegenerateAccountTokenRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `RegenerateAccountTokenRequest`
|
||||||
|
"""
|
||||||
|
model = RegenerateAccountTokenRequest()
|
||||||
|
if include_optional:
|
||||||
|
return RegenerateAccountTokenRequest(
|
||||||
|
email_address = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return RegenerateAccountTokenRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testRegenerateAccountTokenRequest(self):
|
||||||
|
"""Test RegenerateAccountTokenRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
52
sdk/python/src/test/test_register_request.py
Normal file
52
sdk/python/src/test/test_register_request.py
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
zrok
|
||||||
|
|
||||||
|
zrok client access
|
||||||
|
|
||||||
|
The version of the OpenAPI document: 1.0.0
|
||||||
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
|
Do not edit the class manually.
|
||||||
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from zrok_api.models.register_request import RegisterRequest
|
||||||
|
|
||||||
|
class TestRegisterRequest(unittest.TestCase):
|
||||||
|
"""RegisterRequest unit test stubs"""
|
||||||
|
|
||||||
|
def setUp(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def make_instance(self, include_optional) -> RegisterRequest:
|
||||||
|
"""Test RegisterRequest
|
||||||
|
include_optional is a boolean, when False only required
|
||||||
|
params are included, when True both required and
|
||||||
|
optional params are included """
|
||||||
|
# uncomment below to create an instance of `RegisterRequest`
|
||||||
|
"""
|
||||||
|
model = RegisterRequest()
|
||||||
|
if include_optional:
|
||||||
|
return RegisterRequest(
|
||||||
|
register_token = '',
|
||||||
|
password = ''
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
return RegisterRequest(
|
||||||
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
|
def testRegisterRequest(self):
|
||||||
|
"""Test RegisterRequest"""
|
||||||
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user