diff --git a/sdk/python/sdk/zrok/.gitignore b/sdk/python/sdk/zrok/.gitignore
deleted file mode 100644
index 43995bd4..00000000
--- a/sdk/python/sdk/zrok/.gitignore
+++ /dev/null
@@ -1,66 +0,0 @@
-# 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
diff --git a/sdk/python/sdk/zrok/README.md b/sdk/python/sdk/zrok/README.md
deleted file mode 100644
index 25ad2fe6..00000000
--- a/sdk/python/sdk/zrok/README.md
+++ /dev/null
@@ -1,215 +0,0 @@
-# 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)
-
-
-
-## Documentation For Authorization
-
-
-Authentication schemes defined for the API:
-
-### key
-
-- **Type**: API key
-- **API key parameter name**: x-token
-- **Location**: HTTP header
-
-
-## Author
-
-
-
-
diff --git a/sdk/python/sdk/zrok/docs/Access201Response.md b/sdk/python/sdk/zrok/docs/Access201Response.md
deleted file mode 100644
index bc12a97a..00000000
--- a/sdk/python/sdk/zrok/docs/Access201Response.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/AccessRequest.md b/sdk/python/sdk/zrok/docs/AccessRequest.md
deleted file mode 100644
index 288b82ae..00000000
--- a/sdk/python/sdk/zrok/docs/AccessRequest.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/AccountApi.md b/sdk/python/sdk/zrok/docs/AccountApi.md
deleted file mode 100644
index cb6a3e97..00000000
--- a/sdk/python/sdk/zrok/docs/AccountApi.md
+++ /dev/null
@@ -1,557 +0,0 @@
-# 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)
-
diff --git a/sdk/python/sdk/zrok/docs/AddOrganizationMemberRequest.md b/sdk/python/sdk/zrok/docs/AddOrganizationMemberRequest.md
deleted file mode 100644
index c866784a..00000000
--- a/sdk/python/sdk/zrok/docs/AddOrganizationMemberRequest.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/AdminApi.md b/sdk/python/sdk/zrok/docs/AdminApi.md
deleted file mode 100644
index 7eec6028..00000000
--- a/sdk/python/sdk/zrok/docs/AdminApi.md
+++ /dev/null
@@ -1,1079 +0,0 @@
-# zrok_api.AdminApi
-
-All URIs are relative to */api/v1*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**add_organization_member**](AdminApi.md#add_organization_member) | **POST** /organization/add |
-[**create_account**](AdminApi.md#create_account) | **POST** /account |
-[**create_frontend**](AdminApi.md#create_frontend) | **POST** /frontend |
-[**create_identity**](AdminApi.md#create_identity) | **POST** /identity |
-[**create_organization**](AdminApi.md#create_organization) | **POST** /organization |
-[**delete_frontend**](AdminApi.md#delete_frontend) | **DELETE** /frontend |
-[**delete_organization**](AdminApi.md#delete_organization) | **DELETE** /organization |
-[**grants**](AdminApi.md#grants) | **POST** /grants |
-[**invite_token_generate**](AdminApi.md#invite_token_generate) | **POST** /invite/token/generate |
-[**list_frontends**](AdminApi.md#list_frontends) | **GET** /frontends |
-[**list_organization_members**](AdminApi.md#list_organization_members) | **POST** /organization/list |
-[**list_organizations**](AdminApi.md#list_organizations) | **GET** /organizations |
-[**remove_organization_member**](AdminApi.md#remove_organization_member) | **POST** /organization/remove |
-[**update_frontend**](AdminApi.md#update_frontend) | **PATCH** /frontend |
-
-
-# **add_organization_member**
-> add_organization_member(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.add_organization_member_request import AddOrganizationMemberRequest
-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.AdminApi(api_client)
- body = zrok_api.AddOrganizationMemberRequest() # AddOrganizationMemberRequest | (optional)
-
- try:
- api_instance.add_organization_member(body=body)
- except Exception as e:
- print("Exception when calling AdminApi->add_organization_member: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**AddOrganizationMemberRequest**](AddOrganizationMemberRequest.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 |
-|-------------|-------------|------------------|
-**201** | member added | - |
-**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)
-
-# **create_account**
-> RegenerateAccountToken200Response create_account(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.login_request import LoginRequest
-from zrok_api.models.regenerate_account_token200_response import RegenerateAccountToken200Response
-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.AdminApi(api_client)
- body = zrok_api.LoginRequest() # LoginRequest | (optional)
-
- try:
- api_response = api_instance.create_account(body=body)
- print("The response of AdminApi->create_account:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling AdminApi->create_account: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**LoginRequest**](LoginRequest.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 |
-|-------------|-------------|------------------|
-**201** | created | - |
-**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)
-
-# **create_frontend**
-> CreateFrontend201Response create_frontend(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.create_frontend201_response import CreateFrontend201Response
-from zrok_api.models.create_frontend_request import CreateFrontendRequest
-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.AdminApi(api_client)
- body = zrok_api.CreateFrontendRequest() # CreateFrontendRequest | (optional)
-
- try:
- api_response = api_instance.create_frontend(body=body)
- print("The response of AdminApi->create_frontend:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling AdminApi->create_frontend: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**CreateFrontendRequest**](CreateFrontendRequest.md)| | [optional]
-
-### Return type
-
-[**CreateFrontend201Response**](CreateFrontend201Response.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** | frontend created | - |
-**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)
-
-# **create_identity**
-> CreateIdentity201Response create_identity(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.create_identity201_response import CreateIdentity201Response
-from zrok_api.models.create_identity_request import CreateIdentityRequest
-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.AdminApi(api_client)
- body = zrok_api.CreateIdentityRequest() # CreateIdentityRequest | (optional)
-
- try:
- api_response = api_instance.create_identity(body=body)
- print("The response of AdminApi->create_identity:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling AdminApi->create_identity: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**CreateIdentityRequest**](CreateIdentityRequest.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** | created | - |
-**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)
-
-# **create_organization**
-> CreateOrganization201Response create_organization(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.create_organization201_response import CreateOrganization201Response
-from zrok_api.models.create_organization_request import CreateOrganizationRequest
-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.AdminApi(api_client)
- body = zrok_api.CreateOrganizationRequest() # CreateOrganizationRequest | (optional)
-
- try:
- api_response = api_instance.create_organization(body=body)
- print("The response of AdminApi->create_organization:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling AdminApi->create_organization: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**CreateOrganizationRequest**](CreateOrganizationRequest.md)| | [optional]
-
-### Return type
-
-[**CreateOrganization201Response**](CreateOrganization201Response.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** | organization created | - |
-**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)
-
-# **delete_frontend**
-> delete_frontend(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.create_frontend201_response import CreateFrontend201Response
-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.AdminApi(api_client)
- body = zrok_api.CreateFrontend201Response() # CreateFrontend201Response | (optional)
-
- try:
- api_instance.delete_frontend(body=body)
- except Exception as e:
- print("Exception when calling AdminApi->delete_frontend: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**CreateFrontend201Response**](CreateFrontend201Response.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** | frontend deleted | - |
-**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)
-
-# **delete_organization**
-> delete_organization(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.create_organization201_response import CreateOrganization201Response
-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.AdminApi(api_client)
- body = zrok_api.CreateOrganization201Response() # CreateOrganization201Response | (optional)
-
- try:
- api_instance.delete_organization(body=body)
- except Exception as e:
- print("Exception when calling AdminApi->delete_organization: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**CreateOrganization201Response**](CreateOrganization201Response.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** | organization deleted | - |
-**401** | unauthorized | - |
-**404** | organization 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)
-
-# **grants**
-> grants(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.verify200_response import Verify200Response
-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.AdminApi(api_client)
- body = zrok_api.Verify200Response() # Verify200Response | (optional)
-
- try:
- api_instance.grants(body=body)
- except Exception as e:
- print("Exception when calling AdminApi->grants: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**Verify200Response**](Verify200Response.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** | ok | - |
-**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)
-
-# **invite_token_generate**
-> invite_token_generate(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.invite_token_generate_request import InviteTokenGenerateRequest
-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.AdminApi(api_client)
- body = zrok_api.InviteTokenGenerateRequest() # InviteTokenGenerateRequest | (optional)
-
- try:
- api_instance.invite_token_generate(body=body)
- except Exception as e:
- print("Exception when calling AdminApi->invite_token_generate: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**InviteTokenGenerateRequest**](InviteTokenGenerateRequest.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 |
-|-------------|-------------|------------------|
-**201** | invite tokens created | - |
-**400** | invite tokens not created | - |
-**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)
-
-# **list_frontends**
-> List[ListFrontends200ResponseInner] list_frontends()
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.list_frontends200_response_inner import ListFrontends200ResponseInner
-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.AdminApi(api_client)
-
- try:
- api_response = api_instance.list_frontends()
- print("The response of AdminApi->list_frontends:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling AdminApi->list_frontends: %s\n" % e)
-```
-
-
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-[**List[ListFrontends200ResponseInner]**](ListFrontends200ResponseInner.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | ok | - |
-**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)
-
-# **list_organization_members**
-> ListOrganizationMembers200Response list_organization_members(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.create_organization201_response import CreateOrganization201Response
-from zrok_api.models.list_organization_members200_response import ListOrganizationMembers200Response
-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.AdminApi(api_client)
- body = zrok_api.CreateOrganization201Response() # CreateOrganization201Response | (optional)
-
- try:
- api_response = api_instance.list_organization_members(body=body)
- print("The response of AdminApi->list_organization_members:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling AdminApi->list_organization_members: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**CreateOrganization201Response**](CreateOrganization201Response.md)| | [optional]
-
-### Return type
-
-[**ListOrganizationMembers200Response**](ListOrganizationMembers200Response.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** | list organization members | - |
-**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)
-
-# **list_organizations**
-> ListOrganizations200Response list_organizations()
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.list_organizations200_response import ListOrganizations200Response
-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.AdminApi(api_client)
-
- try:
- api_response = api_instance.list_organizations()
- print("The response of AdminApi->list_organizations:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling AdminApi->list_organizations: %s\n" % e)
-```
-
-
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-[**ListOrganizations200Response**](ListOrganizations200Response.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | ok | - |
-**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)
-
-# **remove_organization_member**
-> remove_organization_member(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.remove_organization_member_request import RemoveOrganizationMemberRequest
-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.AdminApi(api_client)
- body = zrok_api.RemoveOrganizationMemberRequest() # RemoveOrganizationMemberRequest | (optional)
-
- try:
- api_instance.remove_organization_member(body=body)
- except Exception as e:
- print("Exception when calling AdminApi->remove_organization_member: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**RemoveOrganizationMemberRequest**](RemoveOrganizationMemberRequest.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** | member 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_frontend**
-> update_frontend(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.update_frontend_request import UpdateFrontendRequest
-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.AdminApi(api_client)
- body = zrok_api.UpdateFrontendRequest() # UpdateFrontendRequest | (optional)
-
- try:
- api_instance.update_frontend(body=body)
- except Exception as e:
- print("Exception when calling AdminApi->update_frontend: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**UpdateFrontendRequest**](UpdateFrontendRequest.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** | frontend 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)
-
diff --git a/sdk/python/sdk/zrok/docs/AuthUser.md b/sdk/python/sdk/zrok/docs/AuthUser.md
deleted file mode 100644
index 99960687..00000000
--- a/sdk/python/sdk/zrok/docs/AuthUser.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/ChangePasswordRequest.md b/sdk/python/sdk/zrok/docs/ChangePasswordRequest.md
deleted file mode 100644
index 5fea099e..00000000
--- a/sdk/python/sdk/zrok/docs/ChangePasswordRequest.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/ClientVersionCheckRequest.md b/sdk/python/sdk/zrok/docs/ClientVersionCheckRequest.md
deleted file mode 100644
index 53d9e16e..00000000
--- a/sdk/python/sdk/zrok/docs/ClientVersionCheckRequest.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/Configuration.md b/sdk/python/sdk/zrok/docs/Configuration.md
deleted file mode 100644
index 07eec945..00000000
--- a/sdk/python/sdk/zrok/docs/Configuration.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/CreateFrontend201Response.md b/sdk/python/sdk/zrok/docs/CreateFrontend201Response.md
deleted file mode 100644
index 7239add1..00000000
--- a/sdk/python/sdk/zrok/docs/CreateFrontend201Response.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/CreateFrontendRequest.md b/sdk/python/sdk/zrok/docs/CreateFrontendRequest.md
deleted file mode 100644
index 63fe8779..00000000
--- a/sdk/python/sdk/zrok/docs/CreateFrontendRequest.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/CreateIdentity201Response.md b/sdk/python/sdk/zrok/docs/CreateIdentity201Response.md
deleted file mode 100644
index 245275e2..00000000
--- a/sdk/python/sdk/zrok/docs/CreateIdentity201Response.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/CreateIdentityRequest.md b/sdk/python/sdk/zrok/docs/CreateIdentityRequest.md
deleted file mode 100644
index 50cb9457..00000000
--- a/sdk/python/sdk/zrok/docs/CreateIdentityRequest.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/CreateOrganization201Response.md b/sdk/python/sdk/zrok/docs/CreateOrganization201Response.md
deleted file mode 100644
index 26bc640c..00000000
--- a/sdk/python/sdk/zrok/docs/CreateOrganization201Response.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/CreateOrganizationRequest.md b/sdk/python/sdk/zrok/docs/CreateOrganizationRequest.md
deleted file mode 100644
index 458e339b..00000000
--- a/sdk/python/sdk/zrok/docs/CreateOrganizationRequest.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/DisableRequest.md b/sdk/python/sdk/zrok/docs/DisableRequest.md
deleted file mode 100644
index 4e4490f1..00000000
--- a/sdk/python/sdk/zrok/docs/DisableRequest.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/EnableRequest.md b/sdk/python/sdk/zrok/docs/EnableRequest.md
deleted file mode 100644
index 7720b3b9..00000000
--- a/sdk/python/sdk/zrok/docs/EnableRequest.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/Environment.md b/sdk/python/sdk/zrok/docs/Environment.md
deleted file mode 100644
index 44a9356b..00000000
--- a/sdk/python/sdk/zrok/docs/Environment.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/EnvironmentAndResources.md b/sdk/python/sdk/zrok/docs/EnvironmentAndResources.md
deleted file mode 100644
index a218ae3c..00000000
--- a/sdk/python/sdk/zrok/docs/EnvironmentAndResources.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/EnvironmentApi.md b/sdk/python/sdk/zrok/docs/EnvironmentApi.md
deleted file mode 100644
index a50ae1d3..00000000
--- a/sdk/python/sdk/zrok/docs/EnvironmentApi.md
+++ /dev/null
@@ -1,162 +0,0 @@
-# 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)
-
diff --git a/sdk/python/sdk/zrok/docs/Frontend.md b/sdk/python/sdk/zrok/docs/Frontend.md
deleted file mode 100644
index ce41a9b7..00000000
--- a/sdk/python/sdk/zrok/docs/Frontend.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/GetSparklines200Response.md b/sdk/python/sdk/zrok/docs/GetSparklines200Response.md
deleted file mode 100644
index 66528c7e..00000000
--- a/sdk/python/sdk/zrok/docs/GetSparklines200Response.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/GetSparklinesRequest.md b/sdk/python/sdk/zrok/docs/GetSparklinesRequest.md
deleted file mode 100644
index 29369ebc..00000000
--- a/sdk/python/sdk/zrok/docs/GetSparklinesRequest.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/InviteRequest.md b/sdk/python/sdk/zrok/docs/InviteRequest.md
deleted file mode 100644
index 039132e8..00000000
--- a/sdk/python/sdk/zrok/docs/InviteRequest.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/InviteTokenGenerateRequest.md b/sdk/python/sdk/zrok/docs/InviteTokenGenerateRequest.md
deleted file mode 100644
index 33a20d70..00000000
--- a/sdk/python/sdk/zrok/docs/InviteTokenGenerateRequest.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/ListFrontends200ResponseInner.md b/sdk/python/sdk/zrok/docs/ListFrontends200ResponseInner.md
deleted file mode 100644
index 625ea343..00000000
--- a/sdk/python/sdk/zrok/docs/ListFrontends200ResponseInner.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/ListMemberships200Response.md b/sdk/python/sdk/zrok/docs/ListMemberships200Response.md
deleted file mode 100644
index 48e19dbf..00000000
--- a/sdk/python/sdk/zrok/docs/ListMemberships200Response.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/ListMemberships200ResponseMembershipsInner.md b/sdk/python/sdk/zrok/docs/ListMemberships200ResponseMembershipsInner.md
deleted file mode 100644
index e85c7440..00000000
--- a/sdk/python/sdk/zrok/docs/ListMemberships200ResponseMembershipsInner.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/ListOrganizationMembers200Response.md b/sdk/python/sdk/zrok/docs/ListOrganizationMembers200Response.md
deleted file mode 100644
index e05a28bf..00000000
--- a/sdk/python/sdk/zrok/docs/ListOrganizationMembers200Response.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/ListOrganizationMembers200ResponseMembersInner.md b/sdk/python/sdk/zrok/docs/ListOrganizationMembers200ResponseMembersInner.md
deleted file mode 100644
index 8ebbb35e..00000000
--- a/sdk/python/sdk/zrok/docs/ListOrganizationMembers200ResponseMembersInner.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/ListOrganizations200Response.md b/sdk/python/sdk/zrok/docs/ListOrganizations200Response.md
deleted file mode 100644
index 46fe4d60..00000000
--- a/sdk/python/sdk/zrok/docs/ListOrganizations200Response.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/ListOrganizations200ResponseOrganizationsInner.md b/sdk/python/sdk/zrok/docs/ListOrganizations200ResponseOrganizationsInner.md
deleted file mode 100644
index 468447f2..00000000
--- a/sdk/python/sdk/zrok/docs/ListOrganizations200ResponseOrganizationsInner.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/LoginRequest.md b/sdk/python/sdk/zrok/docs/LoginRequest.md
deleted file mode 100644
index 05728618..00000000
--- a/sdk/python/sdk/zrok/docs/LoginRequest.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/MetadataApi.md b/sdk/python/sdk/zrok/docs/MetadataApi.md
deleted file mode 100644
index ecb0cf8b..00000000
--- a/sdk/python/sdk/zrok/docs/MetadataApi.md
+++ /dev/null
@@ -1,1171 +0,0 @@
-# zrok_api.MetadataApi
-
-All URIs are relative to */api/v1*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**client_version_check**](MetadataApi.md#client_version_check) | **POST** /clientVersionCheck |
-[**configuration**](MetadataApi.md#configuration) | **GET** /configuration |
-[**get_account_detail**](MetadataApi.md#get_account_detail) | **GET** /detail/account |
-[**get_account_metrics**](MetadataApi.md#get_account_metrics) | **GET** /metrics/account |
-[**get_environment_detail**](MetadataApi.md#get_environment_detail) | **GET** /detail/environment/{envZId} |
-[**get_environment_metrics**](MetadataApi.md#get_environment_metrics) | **GET** /metrics/environment/{envId} |
-[**get_frontend_detail**](MetadataApi.md#get_frontend_detail) | **GET** /detail/frontend/{frontendId} |
-[**get_share_detail**](MetadataApi.md#get_share_detail) | **GET** /detail/share/{shareToken} |
-[**get_share_metrics**](MetadataApi.md#get_share_metrics) | **GET** /metrics/share/{shareToken} |
-[**get_sparklines**](MetadataApi.md#get_sparklines) | **POST** /sparklines |
-[**list_memberships**](MetadataApi.md#list_memberships) | **GET** /memberships |
-[**list_org_members**](MetadataApi.md#list_org_members) | **GET** /members/{organizationToken} |
-[**org_account_overview**](MetadataApi.md#org_account_overview) | **GET** /overview/{organizationToken}/{accountEmail} |
-[**overview**](MetadataApi.md#overview) | **GET** /overview |
-[**version**](MetadataApi.md#version) | **GET** /version |
-[**version_inventory**](MetadataApi.md#version_inventory) | **GET** /versions |
-
-
-# **client_version_check**
-> client_version_check(body=body)
-
-### Example
-
-
-```python
-import zrok_api
-from zrok_api.models.client_version_check_request import ClientVersionCheckRequest
-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.MetadataApi(api_client)
- body = zrok_api.ClientVersionCheckRequest() # ClientVersionCheckRequest | (optional)
-
- try:
- api_instance.client_version_check(body=body)
- except Exception as e:
- print("Exception when calling MetadataApi->client_version_check: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**ClientVersionCheckRequest**](ClientVersionCheckRequest.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** | compatible | - |
-**400** | not compatible | - |
-
-[[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)
-
-# **configuration**
-> Configuration configuration()
-
-### Example
-
-
-```python
-import zrok_api
-from zrok_api.models.configuration import Configuration
-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.MetadataApi(api_client)
-
- try:
- api_response = api_instance.configuration()
- print("The response of MetadataApi->configuration:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->configuration: %s\n" % e)
-```
-
-
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-[**Configuration**](Configuration.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | current configuration | - |
-
-[[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)
-
-# **get_account_detail**
-> List[Environment] get_account_detail()
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.environment import Environment
-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.MetadataApi(api_client)
-
- try:
- api_response = api_instance.get_account_detail()
- print("The response of MetadataApi->get_account_detail:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->get_account_detail: %s\n" % e)
-```
-
-
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-[**List[Environment]**](Environment.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | ok | - |
-**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)
-
-# **get_account_metrics**
-> Metrics get_account_metrics(duration=duration)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.metrics import Metrics
-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.MetadataApi(api_client)
- duration = 'duration_example' # str | (optional)
-
- try:
- api_response = api_instance.get_account_metrics(duration=duration)
- print("The response of MetadataApi->get_account_metrics:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->get_account_metrics: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **duration** | **str**| | [optional]
-
-### Return type
-
-[**Metrics**](Metrics.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | account metrics | - |
-**400** | bad request | - |
-**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)
-
-# **get_environment_detail**
-> EnvironmentAndResources get_environment_detail(env_zid)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.environment_and_resources import EnvironmentAndResources
-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.MetadataApi(api_client)
- env_zid = 'env_zid_example' # str |
-
- try:
- api_response = api_instance.get_environment_detail(env_zid)
- print("The response of MetadataApi->get_environment_detail:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->get_environment_detail: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **env_zid** | **str**| |
-
-### Return type
-
-[**EnvironmentAndResources**](EnvironmentAndResources.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | ok | - |
-**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)
-
-# **get_environment_metrics**
-> Metrics get_environment_metrics(env_id, duration=duration)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.metrics import Metrics
-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.MetadataApi(api_client)
- env_id = 'env_id_example' # str |
- duration = 'duration_example' # str | (optional)
-
- try:
- api_response = api_instance.get_environment_metrics(env_id, duration=duration)
- print("The response of MetadataApi->get_environment_metrics:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->get_environment_metrics: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **env_id** | **str**| |
- **duration** | **str**| | [optional]
-
-### Return type
-
-[**Metrics**](Metrics.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | environment metrics | - |
-**400** | bad request | - |
-**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)
-
-# **get_frontend_detail**
-> Frontend get_frontend_detail(frontend_id)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.frontend import Frontend
-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.MetadataApi(api_client)
- frontend_id = 56 # int |
-
- try:
- api_response = api_instance.get_frontend_detail(frontend_id)
- print("The response of MetadataApi->get_frontend_detail:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->get_frontend_detail: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **frontend_id** | **int**| |
-
-### Return type
-
-[**Frontend**](Frontend.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | ok | - |
-**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)
-
-# **get_share_detail**
-> Share get_share_detail(share_token)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.share import Share
-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.MetadataApi(api_client)
- share_token = 'share_token_example' # str |
-
- try:
- api_response = api_instance.get_share_detail(share_token)
- print("The response of MetadataApi->get_share_detail:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->get_share_detail: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **share_token** | **str**| |
-
-### Return type
-
-[**Share**](Share.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | ok | - |
-**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)
-
-# **get_share_metrics**
-> Metrics get_share_metrics(share_token, duration=duration)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.metrics import Metrics
-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.MetadataApi(api_client)
- share_token = 'share_token_example' # str |
- duration = 'duration_example' # str | (optional)
-
- try:
- api_response = api_instance.get_share_metrics(share_token, duration=duration)
- print("The response of MetadataApi->get_share_metrics:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->get_share_metrics: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **share_token** | **str**| |
- **duration** | **str**| | [optional]
-
-### Return type
-
-[**Metrics**](Metrics.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | share metrics | - |
-**400** | bad request | - |
-**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)
-
-# **get_sparklines**
-> GetSparklines200Response get_sparklines(body=body)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.get_sparklines200_response import GetSparklines200Response
-from zrok_api.models.get_sparklines_request import GetSparklinesRequest
-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.MetadataApi(api_client)
- body = zrok_api.GetSparklinesRequest() # GetSparklinesRequest | (optional)
-
- try:
- api_response = api_instance.get_sparklines(body=body)
- print("The response of MetadataApi->get_sparklines:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->get_sparklines: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**GetSparklinesRequest**](GetSparklinesRequest.md)| | [optional]
-
-### Return type
-
-[**GetSparklines200Response**](GetSparklines200Response.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** | sparklines data | - |
-**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)
-
-# **list_memberships**
-> ListMemberships200Response list_memberships()
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.list_memberships200_response import ListMemberships200Response
-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.MetadataApi(api_client)
-
- try:
- api_response = api_instance.list_memberships()
- print("The response of MetadataApi->list_memberships:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->list_memberships: %s\n" % e)
-```
-
-
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-[**ListMemberships200Response**](ListMemberships200Response.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | ok | - |
-**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)
-
-# **list_org_members**
-> ListOrganizationMembers200Response list_org_members(organization_token)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.list_organization_members200_response import ListOrganizationMembers200Response
-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.MetadataApi(api_client)
- organization_token = 'organization_token_example' # str |
-
- try:
- api_response = api_instance.list_org_members(organization_token)
- print("The response of MetadataApi->list_org_members:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->list_org_members: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **organization_token** | **str**| |
-
-### Return type
-
-[**ListOrganizationMembers200Response**](ListOrganizationMembers200Response.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | ok | - |
-**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)
-
-# **org_account_overview**
-> Overview org_account_overview(organization_token, account_email)
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.overview import Overview
-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.MetadataApi(api_client)
- organization_token = 'organization_token_example' # str |
- account_email = 'account_email_example' # str |
-
- try:
- api_response = api_instance.org_account_overview(organization_token, account_email)
- print("The response of MetadataApi->org_account_overview:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->org_account_overview: %s\n" % e)
-```
-
-
-
-### Parameters
-
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **organization_token** | **str**| |
- **account_email** | **str**| |
-
-### Return type
-
-[**Overview**](Overview.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | ok | - |
-**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)
-
-# **overview**
-> Overview overview()
-
-### Example
-
-* Api Key Authentication (key):
-
-```python
-import zrok_api
-from zrok_api.models.overview import Overview
-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.MetadataApi(api_client)
-
- try:
- api_response = api_instance.overview()
- print("The response of MetadataApi->overview:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->overview: %s\n" % e)
-```
-
-
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-[**Overview**](Overview.md)
-
-### Authorization
-
-[key](../README.md#key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | overview returned | - |
-**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)
-
-# **version**
-> str version()
-
-### Example
-
-
-```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"
-)
-
-
-# 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.MetadataApi(api_client)
-
- try:
- api_response = api_instance.version()
- print("The response of MetadataApi->version:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->version: %s\n" % e)
-```
-
-
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-**str**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | legacy upgrade required | - |
-
-[[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)
-
-# **version_inventory**
-> VersionInventory200Response version_inventory()
-
-### Example
-
-
-```python
-import zrok_api
-from zrok_api.models.version_inventory200_response import VersionInventory200Response
-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.MetadataApi(api_client)
-
- try:
- api_response = api_instance.version_inventory()
- print("The response of MetadataApi->version_inventory:\n")
- pprint(api_response)
- except Exception as e:
- print("Exception when calling MetadataApi->version_inventory: %s\n" % e)
-```
-
-
-
-### Parameters
-
-This endpoint does not need any parameter.
-
-### Return type
-
-[**VersionInventory200Response**](VersionInventory200Response.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/zrok.v1+json
-
-### HTTP response details
-
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | ok | - |
-
-[[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)
-
diff --git a/sdk/python/sdk/zrok/docs/Metrics.md b/sdk/python/sdk/zrok/docs/Metrics.md
deleted file mode 100644
index 9216f700..00000000
--- a/sdk/python/sdk/zrok/docs/Metrics.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/MetricsSample.md b/sdk/python/sdk/zrok/docs/MetricsSample.md
deleted file mode 100644
index 96c1d94e..00000000
--- a/sdk/python/sdk/zrok/docs/MetricsSample.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/Overview.md b/sdk/python/sdk/zrok/docs/Overview.md
deleted file mode 100644
index f50d6232..00000000
--- a/sdk/python/sdk/zrok/docs/Overview.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/Principal.md b/sdk/python/sdk/zrok/docs/Principal.md
deleted file mode 100644
index 0a6d399c..00000000
--- a/sdk/python/sdk/zrok/docs/Principal.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/RegenerateAccountToken200Response.md b/sdk/python/sdk/zrok/docs/RegenerateAccountToken200Response.md
deleted file mode 100644
index e86cc294..00000000
--- a/sdk/python/sdk/zrok/docs/RegenerateAccountToken200Response.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/RegenerateAccountTokenRequest.md b/sdk/python/sdk/zrok/docs/RegenerateAccountTokenRequest.md
deleted file mode 100644
index 113262a6..00000000
--- a/sdk/python/sdk/zrok/docs/RegenerateAccountTokenRequest.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/RegisterRequest.md b/sdk/python/sdk/zrok/docs/RegisterRequest.md
deleted file mode 100644
index 6e268aff..00000000
--- a/sdk/python/sdk/zrok/docs/RegisterRequest.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/RemoveOrganizationMemberRequest.md b/sdk/python/sdk/zrok/docs/RemoveOrganizationMemberRequest.md
deleted file mode 100644
index 75743291..00000000
--- a/sdk/python/sdk/zrok/docs/RemoveOrganizationMemberRequest.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/ResetPasswordRequest.md b/sdk/python/sdk/zrok/docs/ResetPasswordRequest.md
deleted file mode 100644
index e91e841a..00000000
--- a/sdk/python/sdk/zrok/docs/ResetPasswordRequest.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/Share.md b/sdk/python/sdk/zrok/docs/Share.md
deleted file mode 100644
index 4fbfc430..00000000
--- a/sdk/python/sdk/zrok/docs/Share.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/ShareApi.md b/sdk/python/sdk/zrok/docs/ShareApi.md
deleted file mode 100644
index 2831f1d2..00000000
--- a/sdk/python/sdk/zrok/docs/ShareApi.md
+++ /dev/null
@@ -1,473 +0,0 @@
-# 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)
-
diff --git a/sdk/python/sdk/zrok/docs/ShareRequest.md b/sdk/python/sdk/zrok/docs/ShareRequest.md
deleted file mode 100644
index eb92f07a..00000000
--- a/sdk/python/sdk/zrok/docs/ShareRequest.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/ShareResponse.md b/sdk/python/sdk/zrok/docs/ShareResponse.md
deleted file mode 100644
index 9bbedd0c..00000000
--- a/sdk/python/sdk/zrok/docs/ShareResponse.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/SparkDataSample.md b/sdk/python/sdk/zrok/docs/SparkDataSample.md
deleted file mode 100644
index 6479404c..00000000
--- a/sdk/python/sdk/zrok/docs/SparkDataSample.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/UnaccessRequest.md b/sdk/python/sdk/zrok/docs/UnaccessRequest.md
deleted file mode 100644
index c7d57fd8..00000000
--- a/sdk/python/sdk/zrok/docs/UnaccessRequest.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/UnshareRequest.md b/sdk/python/sdk/zrok/docs/UnshareRequest.md
deleted file mode 100644
index d376f008..00000000
--- a/sdk/python/sdk/zrok/docs/UnshareRequest.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/UpdateAccessRequest.md b/sdk/python/sdk/zrok/docs/UpdateAccessRequest.md
deleted file mode 100644
index 7d9027da..00000000
--- a/sdk/python/sdk/zrok/docs/UpdateAccessRequest.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/UpdateFrontendRequest.md b/sdk/python/sdk/zrok/docs/UpdateFrontendRequest.md
deleted file mode 100644
index 754bf4b6..00000000
--- a/sdk/python/sdk/zrok/docs/UpdateFrontendRequest.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/UpdateShareRequest.md b/sdk/python/sdk/zrok/docs/UpdateShareRequest.md
deleted file mode 100644
index 8719ab10..00000000
--- a/sdk/python/sdk/zrok/docs/UpdateShareRequest.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/Verify200Response.md b/sdk/python/sdk/zrok/docs/Verify200Response.md
deleted file mode 100644
index 5ca1769d..00000000
--- a/sdk/python/sdk/zrok/docs/Verify200Response.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/VerifyRequest.md b/sdk/python/sdk/zrok/docs/VerifyRequest.md
deleted file mode 100644
index da6a0728..00000000
--- a/sdk/python/sdk/zrok/docs/VerifyRequest.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/docs/VersionInventory200Response.md b/sdk/python/sdk/zrok/docs/VersionInventory200Response.md
deleted file mode 100644
index 2c08de2c..00000000
--- a/sdk/python/sdk/zrok/docs/VersionInventory200Response.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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)
-
-
diff --git a/sdk/python/sdk/zrok/requirements.txt b/sdk/python/sdk/zrok/requirements.txt
deleted file mode 100644
index 67f7f68d..00000000
--- a/sdk/python/sdk/zrok/requirements.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-urllib3 >= 1.25.3, < 3.0.0
-python_dateutil >= 2.8.2
-pydantic >= 2
-typing-extensions >= 4.7.1
diff --git a/sdk/python/sdk/zrok/test/__init__.py b/sdk/python/sdk/zrok/test/__init__.py
deleted file mode 100644
index e69de29b..00000000
diff --git a/sdk/python/sdk/zrok/test/test_access201_response.py b/sdk/python/sdk/zrok/test/test_access201_response.py
deleted file mode 100644
index 9b698d1c..00000000
--- a/sdk/python/sdk/zrok/test/test_access201_response.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_access_request.py b/sdk/python/sdk/zrok/test/test_access_request.py
deleted file mode 100644
index 070903e9..00000000
--- a/sdk/python/sdk/zrok/test/test_access_request.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_account_api.py b/sdk/python/sdk/zrok/test/test_account_api.py
deleted file mode 100644
index 419e1f1b..00000000
--- a/sdk/python/sdk/zrok/test/test_account_api.py
+++ /dev/null
@@ -1,79 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_add_organization_member_request.py b/sdk/python/sdk/zrok/test/test_add_organization_member_request.py
deleted file mode 100644
index 7a08de67..00000000
--- a/sdk/python/sdk/zrok/test/test_add_organization_member_request.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_admin_api.py b/sdk/python/sdk/zrok/test/test_admin_api.py
deleted file mode 100644
index 720e8832..00000000
--- a/sdk/python/sdk/zrok/test/test_admin_api.py
+++ /dev/null
@@ -1,115 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_auth_user.py b/sdk/python/sdk/zrok/test/test_auth_user.py
deleted file mode 100644
index e5d70b26..00000000
--- a/sdk/python/sdk/zrok/test/test_auth_user.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_change_password_request.py b/sdk/python/sdk/zrok/test/test_change_password_request.py
deleted file mode 100644
index 592e8be1..00000000
--- a/sdk/python/sdk/zrok/test/test_change_password_request.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_client_version_check_request.py b/sdk/python/sdk/zrok/test/test_client_version_check_request.py
deleted file mode 100644
index 169017d6..00000000
--- a/sdk/python/sdk/zrok/test/test_client_version_check_request.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_configuration.py b/sdk/python/sdk/zrok/test/test_configuration.py
deleted file mode 100644
index bf80210e..00000000
--- a/sdk/python/sdk/zrok/test/test_configuration.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_create_frontend201_response.py b/sdk/python/sdk/zrok/test/test_create_frontend201_response.py
deleted file mode 100644
index 3f983a1a..00000000
--- a/sdk/python/sdk/zrok/test/test_create_frontend201_response.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_create_frontend_request.py b/sdk/python/sdk/zrok/test/test_create_frontend_request.py
deleted file mode 100644
index 8fc35754..00000000
--- a/sdk/python/sdk/zrok/test/test_create_frontend_request.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_create_identity201_response.py b/sdk/python/sdk/zrok/test/test_create_identity201_response.py
deleted file mode 100644
index 2a9c8f2b..00000000
--- a/sdk/python/sdk/zrok/test/test_create_identity201_response.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_create_identity_request.py b/sdk/python/sdk/zrok/test/test_create_identity_request.py
deleted file mode 100644
index 9bf33031..00000000
--- a/sdk/python/sdk/zrok/test/test_create_identity_request.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_create_organization201_response.py b/sdk/python/sdk/zrok/test/test_create_organization201_response.py
deleted file mode 100644
index d4dc7c81..00000000
--- a/sdk/python/sdk/zrok/test/test_create_organization201_response.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_create_organization_request.py b/sdk/python/sdk/zrok/test/test_create_organization_request.py
deleted file mode 100644
index da880237..00000000
--- a/sdk/python/sdk/zrok/test/test_create_organization_request.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_disable_request.py b/sdk/python/sdk/zrok/test/test_disable_request.py
deleted file mode 100644
index c4837b4b..00000000
--- a/sdk/python/sdk/zrok/test/test_disable_request.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_enable_request.py b/sdk/python/sdk/zrok/test/test_enable_request.py
deleted file mode 100644
index 49689df4..00000000
--- a/sdk/python/sdk/zrok/test/test_enable_request.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_environment.py b/sdk/python/sdk/zrok/test/test_environment.py
deleted file mode 100644
index d2e28280..00000000
--- a/sdk/python/sdk/zrok/test/test_environment.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_environment_and_resources.py b/sdk/python/sdk/zrok/test/test_environment_and_resources.py
deleted file mode 100644
index 56cafdac..00000000
--- a/sdk/python/sdk/zrok/test/test_environment_and_resources.py
+++ /dev/null
@@ -1,94 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_environment_api.py b/sdk/python/sdk/zrok/test/test_environment_api.py
deleted file mode 100644
index 83aeacd8..00000000
--- a/sdk/python/sdk/zrok/test/test_environment_api.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_frontend.py b/sdk/python/sdk/zrok/test/test_frontend.py
deleted file mode 100644
index eba715d9..00000000
--- a/sdk/python/sdk/zrok/test/test_frontend.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_get_sparklines200_response.py b/sdk/python/sdk/zrok/test/test_get_sparklines200_response.py
deleted file mode 100644
index 8367cc34..00000000
--- a/sdk/python/sdk/zrok/test/test_get_sparklines200_response.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_get_sparklines_request.py b/sdk/python/sdk/zrok/test/test_get_sparklines_request.py
deleted file mode 100644
index cd46979b..00000000
--- a/sdk/python/sdk/zrok/test/test_get_sparklines_request.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_invite_request.py b/sdk/python/sdk/zrok/test/test_invite_request.py
deleted file mode 100644
index a181ad3b..00000000
--- a/sdk/python/sdk/zrok/test/test_invite_request.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_invite_token_generate_request.py b/sdk/python/sdk/zrok/test/test_invite_token_generate_request.py
deleted file mode 100644
index 1a8c2c10..00000000
--- a/sdk/python/sdk/zrok/test/test_invite_token_generate_request.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_list_frontends200_response_inner.py b/sdk/python/sdk/zrok/test/test_list_frontends200_response_inner.py
deleted file mode 100644
index 2e21b24d..00000000
--- a/sdk/python/sdk/zrok/test/test_list_frontends200_response_inner.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_list_memberships200_response.py b/sdk/python/sdk/zrok/test/test_list_memberships200_response.py
deleted file mode 100644
index d23ac2dd..00000000
--- a/sdk/python/sdk/zrok/test/test_list_memberships200_response.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_list_memberships200_response_memberships_inner.py b/sdk/python/sdk/zrok/test/test_list_memberships200_response_memberships_inner.py
deleted file mode 100644
index 2f7cf7ff..00000000
--- a/sdk/python/sdk/zrok/test/test_list_memberships200_response_memberships_inner.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_list_organization_members200_response.py b/sdk/python/sdk/zrok/test/test_list_organization_members200_response.py
deleted file mode 100644
index 8020c6c7..00000000
--- a/sdk/python/sdk/zrok/test/test_list_organization_members200_response.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_list_organization_members200_response_members_inner.py b/sdk/python/sdk/zrok/test/test_list_organization_members200_response_members_inner.py
deleted file mode 100644
index 28cea33f..00000000
--- a/sdk/python/sdk/zrok/test/test_list_organization_members200_response_members_inner.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_list_organizations200_response.py b/sdk/python/sdk/zrok/test/test_list_organizations200_response.py
deleted file mode 100644
index 7133529e..00000000
--- a/sdk/python/sdk/zrok/test/test_list_organizations200_response.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_list_organizations200_response_organizations_inner.py b/sdk/python/sdk/zrok/test/test_list_organizations200_response_organizations_inner.py
deleted file mode 100644
index 6d857ae1..00000000
--- a/sdk/python/sdk/zrok/test/test_list_organizations200_response_organizations_inner.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_login_request.py b/sdk/python/sdk/zrok/test/test_login_request.py
deleted file mode 100644
index 1a4c2642..00000000
--- a/sdk/python/sdk/zrok/test/test_login_request.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_metadata_api.py b/sdk/python/sdk/zrok/test/test_metadata_api.py
deleted file mode 100644
index 2424ae4c..00000000
--- a/sdk/python/sdk/zrok/test/test_metadata_api.py
+++ /dev/null
@@ -1,127 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_metrics.py b/sdk/python/sdk/zrok/test/test_metrics.py
deleted file mode 100644
index 04179009..00000000
--- a/sdk/python/sdk/zrok/test/test_metrics.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_metrics_sample.py b/sdk/python/sdk/zrok/test/test_metrics_sample.py
deleted file mode 100644
index 0b58e38d..00000000
--- a/sdk/python/sdk/zrok/test/test_metrics_sample.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_overview.py b/sdk/python/sdk/zrok/test/test_overview.py
deleted file mode 100644
index 804007cd..00000000
--- a/sdk/python/sdk/zrok/test/test_overview.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_principal.py b/sdk/python/sdk/zrok/test/test_principal.py
deleted file mode 100644
index f92c159c..00000000
--- a/sdk/python/sdk/zrok/test/test_principal.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_regenerate_account_token200_response.py b/sdk/python/sdk/zrok/test/test_regenerate_account_token200_response.py
deleted file mode 100644
index a94c4678..00000000
--- a/sdk/python/sdk/zrok/test/test_regenerate_account_token200_response.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_regenerate_account_token_request.py b/sdk/python/sdk/zrok/test/test_regenerate_account_token_request.py
deleted file mode 100644
index b6e0b4bd..00000000
--- a/sdk/python/sdk/zrok/test/test_regenerate_account_token_request.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_register_request.py b/sdk/python/sdk/zrok/test/test_register_request.py
deleted file mode 100644
index e026b200..00000000
--- a/sdk/python/sdk/zrok/test/test_register_request.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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()
diff --git a/sdk/python/sdk/zrok/test/test_remove_organization_member_request.py b/sdk/python/sdk/zrok/test/test_remove_organization_member_request.py
deleted file mode 100644
index abf89606..00000000
--- a/sdk/python/sdk/zrok/test/test_remove_organization_member_request.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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.remove_organization_member_request import RemoveOrganizationMemberRequest
-
-class TestRemoveOrganizationMemberRequest(unittest.TestCase):
- """RemoveOrganizationMemberRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> RemoveOrganizationMemberRequest:
- """Test RemoveOrganizationMemberRequest
- 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 `RemoveOrganizationMemberRequest`
- """
- model = RemoveOrganizationMemberRequest()
- if include_optional:
- return RemoveOrganizationMemberRequest(
- organization_token = '',
- email = ''
- )
- else:
- return RemoveOrganizationMemberRequest(
- )
- """
-
- def testRemoveOrganizationMemberRequest(self):
- """Test RemoveOrganizationMemberRequest"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_reset_password_request.py b/sdk/python/sdk/zrok/test/test_reset_password_request.py
deleted file mode 100644
index 2c047502..00000000
--- a/sdk/python/sdk/zrok/test/test_reset_password_request.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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.reset_password_request import ResetPasswordRequest
-
-class TestResetPasswordRequest(unittest.TestCase):
- """ResetPasswordRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ResetPasswordRequest:
- """Test ResetPasswordRequest
- 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 `ResetPasswordRequest`
- """
- model = ResetPasswordRequest()
- if include_optional:
- return ResetPasswordRequest(
- reset_token = '',
- password = ''
- )
- else:
- return ResetPasswordRequest(
- )
- """
-
- def testResetPasswordRequest(self):
- """Test ResetPasswordRequest"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_share.py b/sdk/python/sdk/zrok/test/test_share.py
deleted file mode 100644
index ed498dc0..00000000
--- a/sdk/python/sdk/zrok/test/test_share.py
+++ /dev/null
@@ -1,66 +0,0 @@
-# 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.share import Share
-
-class TestShare(unittest.TestCase):
- """Share unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> Share:
- """Test Share
- 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 `Share`
- """
- model = Share()
- if include_optional:
- return 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 Share(
- )
- """
-
- def testShare(self):
- """Test Share"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_share_api.py b/sdk/python/sdk/zrok/test/test_share_api.py
deleted file mode 100644
index a22ef8bf..00000000
--- a/sdk/python/sdk/zrok/test/test_share_api.py
+++ /dev/null
@@ -1,67 +0,0 @@
-# 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.share_api import ShareApi
-
-
-class TestShareApi(unittest.TestCase):
- """ShareApi unit test stubs"""
-
- def setUp(self) -> None:
- self.api = ShareApi()
-
- def tearDown(self) -> None:
- pass
-
- def test_access(self) -> None:
- """Test case for access
-
- """
- pass
-
- def test_share(self) -> None:
- """Test case for share
-
- """
- pass
-
- def test_unaccess(self) -> None:
- """Test case for unaccess
-
- """
- pass
-
- def test_unshare(self) -> None:
- """Test case for unshare
-
- """
- pass
-
- def test_update_access(self) -> None:
- """Test case for update_access
-
- """
- pass
-
- def test_update_share(self) -> None:
- """Test case for update_share
-
- """
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_share_request.py b/sdk/python/sdk/zrok/test/test_share_request.py
deleted file mode 100644
index c543ae26..00000000
--- a/sdk/python/sdk/zrok/test/test_share_request.py
+++ /dev/null
@@ -1,74 +0,0 @@
-# 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.share_request import ShareRequest
-
-class TestShareRequest(unittest.TestCase):
- """ShareRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ShareRequest:
- """Test ShareRequest
- 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 `ShareRequest`
- """
- model = ShareRequest()
- if include_optional:
- return ShareRequest(
- env_zid = '',
- share_mode = 'public',
- frontend_selection = [
- ''
- ],
- backend_mode = 'proxy',
- backend_proxy_endpoint = '',
- auth_scheme = '',
- auth_users = [
- zrok_api.models.auth_user.authUser(
- username = '',
- password = '', )
- ],
- oauth_provider = 'github',
- oauth_email_domains = [
- ''
- ],
- oauth_authorization_check_interval = '',
- reserved = True,
- permission_mode = 'open',
- access_grants = [
- ''
- ],
- unique_name = ''
- )
- else:
- return ShareRequest(
- )
- """
-
- def testShareRequest(self):
- """Test ShareRequest"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_share_response.py b/sdk/python/sdk/zrok/test/test_share_response.py
deleted file mode 100644
index 46bb5af5..00000000
--- a/sdk/python/sdk/zrok/test/test_share_response.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# 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.share_response import ShareResponse
-
-class TestShareResponse(unittest.TestCase):
- """ShareResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ShareResponse:
- """Test ShareResponse
- 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 `ShareResponse`
- """
- model = ShareResponse()
- if include_optional:
- return ShareResponse(
- frontend_proxy_endpoints = [
- ''
- ],
- share_token = ''
- )
- else:
- return ShareResponse(
- )
- """
-
- def testShareResponse(self):
- """Test ShareResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_spark_data_sample.py b/sdk/python/sdk/zrok/test/test_spark_data_sample.py
deleted file mode 100644
index 421d5dcd..00000000
--- a/sdk/python/sdk/zrok/test/test_spark_data_sample.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# 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.spark_data_sample import SparkDataSample
-
-class TestSparkDataSample(unittest.TestCase):
- """SparkDataSample unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> SparkDataSample:
- """Test SparkDataSample
- 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 `SparkDataSample`
- """
- model = SparkDataSample()
- if include_optional:
- return SparkDataSample(
- rx = 1.337,
- tx = 1.337
- )
- else:
- return SparkDataSample(
- )
- """
-
- def testSparkDataSample(self):
- """Test SparkDataSample"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_unaccess_request.py b/sdk/python/sdk/zrok/test/test_unaccess_request.py
deleted file mode 100644
index ade50dff..00000000
--- a/sdk/python/sdk/zrok/test/test_unaccess_request.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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.unaccess_request import UnaccessRequest
-
-class TestUnaccessRequest(unittest.TestCase):
- """UnaccessRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> UnaccessRequest:
- """Test UnaccessRequest
- 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 `UnaccessRequest`
- """
- model = UnaccessRequest()
- if include_optional:
- return UnaccessRequest(
- frontend_token = '',
- env_zid = '',
- share_token = ''
- )
- else:
- return UnaccessRequest(
- )
- """
-
- def testUnaccessRequest(self):
- """Test UnaccessRequest"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_unshare_request.py b/sdk/python/sdk/zrok/test/test_unshare_request.py
deleted file mode 100644
index f0eccf47..00000000
--- a/sdk/python/sdk/zrok/test/test_unshare_request.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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.unshare_request import UnshareRequest
-
-class TestUnshareRequest(unittest.TestCase):
- """UnshareRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> UnshareRequest:
- """Test UnshareRequest
- 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 `UnshareRequest`
- """
- model = UnshareRequest()
- if include_optional:
- return UnshareRequest(
- env_zid = '',
- share_token = '',
- reserved = True
- )
- else:
- return UnshareRequest(
- )
- """
-
- def testUnshareRequest(self):
- """Test UnshareRequest"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_update_access_request.py b/sdk/python/sdk/zrok/test/test_update_access_request.py
deleted file mode 100644
index 02c028bf..00000000
--- a/sdk/python/sdk/zrok/test/test_update_access_request.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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.update_access_request import UpdateAccessRequest
-
-class TestUpdateAccessRequest(unittest.TestCase):
- """UpdateAccessRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> UpdateAccessRequest:
- """Test UpdateAccessRequest
- 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 `UpdateAccessRequest`
- """
- model = UpdateAccessRequest()
- if include_optional:
- return UpdateAccessRequest(
- frontend_token = '',
- bind_address = '',
- description = ''
- )
- else:
- return UpdateAccessRequest(
- )
- """
-
- def testUpdateAccessRequest(self):
- """Test UpdateAccessRequest"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_update_frontend_request.py b/sdk/python/sdk/zrok/test/test_update_frontend_request.py
deleted file mode 100644
index 9546bbac..00000000
--- a/sdk/python/sdk/zrok/test/test_update_frontend_request.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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.update_frontend_request import UpdateFrontendRequest
-
-class TestUpdateFrontendRequest(unittest.TestCase):
- """UpdateFrontendRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> UpdateFrontendRequest:
- """Test UpdateFrontendRequest
- 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 `UpdateFrontendRequest`
- """
- model = UpdateFrontendRequest()
- if include_optional:
- return UpdateFrontendRequest(
- frontend_token = '',
- public_name = '',
- url_template = ''
- )
- else:
- return UpdateFrontendRequest(
- )
- """
-
- def testUpdateFrontendRequest(self):
- """Test UpdateFrontendRequest"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_update_share_request.py b/sdk/python/sdk/zrok/test/test_update_share_request.py
deleted file mode 100644
index 1d8df185..00000000
--- a/sdk/python/sdk/zrok/test/test_update_share_request.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# 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.update_share_request import UpdateShareRequest
-
-class TestUpdateShareRequest(unittest.TestCase):
- """UpdateShareRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> UpdateShareRequest:
- """Test UpdateShareRequest
- 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 `UpdateShareRequest`
- """
- model = UpdateShareRequest()
- if include_optional:
- return UpdateShareRequest(
- share_token = '',
- backend_proxy_endpoint = '',
- add_access_grants = [
- ''
- ],
- remove_access_grants = [
- ''
- ]
- )
- else:
- return UpdateShareRequest(
- )
- """
-
- def testUpdateShareRequest(self):
- """Test UpdateShareRequest"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_verify200_response.py b/sdk/python/sdk/zrok/test/test_verify200_response.py
deleted file mode 100644
index bf257b65..00000000
--- a/sdk/python/sdk/zrok/test/test_verify200_response.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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.verify200_response import Verify200Response
-
-class TestVerify200Response(unittest.TestCase):
- """Verify200Response unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> Verify200Response:
- """Test Verify200Response
- 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 `Verify200Response`
- """
- model = Verify200Response()
- if include_optional:
- return Verify200Response(
- email = ''
- )
- else:
- return Verify200Response(
- )
- """
-
- def testVerify200Response(self):
- """Test Verify200Response"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_verify_request.py b/sdk/python/sdk/zrok/test/test_verify_request.py
deleted file mode 100644
index c6f45d94..00000000
--- a/sdk/python/sdk/zrok/test/test_verify_request.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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.verify_request import VerifyRequest
-
-class TestVerifyRequest(unittest.TestCase):
- """VerifyRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> VerifyRequest:
- """Test VerifyRequest
- 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 `VerifyRequest`
- """
- model = VerifyRequest()
- if include_optional:
- return VerifyRequest(
- register_token = ''
- )
- else:
- return VerifyRequest(
- )
- """
-
- def testVerifyRequest(self):
- """Test VerifyRequest"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/test/test_version_inventory200_response.py b/sdk/python/sdk/zrok/test/test_version_inventory200_response.py
deleted file mode 100644
index 7343fd1f..00000000
--- a/sdk/python/sdk/zrok/test/test_version_inventory200_response.py
+++ /dev/null
@@ -1,51 +0,0 @@
-# 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.version_inventory200_response import VersionInventory200Response
-
-class TestVersionInventory200Response(unittest.TestCase):
- """VersionInventory200Response unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> VersionInventory200Response:
- """Test VersionInventory200Response
- 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 `VersionInventory200Response`
- """
- model = VersionInventory200Response()
- if include_optional:
- return VersionInventory200Response(
- controller_version = ''
- )
- else:
- return VersionInventory200Response(
- )
- """
-
- def testVersionInventory200Response(self):
- """Test VersionInventory200Response"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/sdk/python/sdk/zrok/zrok/api_client_wrapper.py b/sdk/python/sdk/zrok/zrok/api_client_wrapper.py
deleted file mode 100644
index 801608cc..00000000
--- a/sdk/python/sdk/zrok/zrok/api_client_wrapper.py
+++ /dev/null
@@ -1,50 +0,0 @@
-"""
-Custom API client wrapper for zrok_api that handles zrok-specific content types.
-"""
-
-import json
-import re
-from typing import Dict, Optional, Any, List, Tuple, Union
-
-from zrok_api.api_client import ApiClient
-from zrok_api.api_response import ApiResponse
-from zrok_api.rest import RESTResponse
-from zrok_api.exceptions import ApiException
-
-class ZrokApiClient(ApiClient):
- """
- Custom API client that extends the generated ApiClient to handle zrok-specific content types.
- """
-
- def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
- """
- Overrides the default deserialize method to handle zrok-specific content types.
- """
- # Handle application/zrok.v1+json as if it were application/json
- if content_type and content_type.startswith("application/zrok.v1+json"):
- if response_text == "":
- data = ""
- else:
- try:
- data = json.loads(response_text)
- except ValueError:
- data = response_text
- elif content_type is None:
- try:
- data = json.loads(response_text)
- except ValueError:
- data = response_text
- elif content_type.startswith("application/json"):
- if response_text == "":
- data = ""
- else:
- data = json.loads(response_text)
- elif content_type.startswith("text/plain"):
- data = response_text
- else:
- raise ApiException(
- status=0,
- reason="Unsupported content type: {0}".format(content_type)
- )
-
- return self._ApiClient__deserialize(data, response_type) # Access private method using name mangling
diff --git a/sdk/python/sdk/zrok/zrok_api/__init__.py b/sdk/python/sdk/zrok/zrok_api/__init__.py
deleted file mode 100644
index bf54fba9..00000000
--- a/sdk/python/sdk/zrok/zrok_api/__init__.py
+++ /dev/null
@@ -1,88 +0,0 @@
-# coding: utf-8
-
-# flake8: noqa
-
-"""
- 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
-
-
-__version__ = "1.0.0"
-
-# import apis into sdk package
-from zrok_api.api.account_api import AccountApi
-from zrok_api.api.admin_api import AdminApi
-from zrok_api.api.environment_api import EnvironmentApi
-from zrok_api.api.metadata_api import MetadataApi
-from zrok_api.api.share_api import ShareApi
-
-# import ApiClient
-from zrok_api.api_response import ApiResponse
-from zrok_api.api_client import ApiClient
-from zrok_api.configuration import Configuration
-from zrok_api.exceptions import OpenApiException
-from zrok_api.exceptions import ApiTypeError
-from zrok_api.exceptions import ApiValueError
-from zrok_api.exceptions import ApiKeyError
-from zrok_api.exceptions import ApiAttributeError
-from zrok_api.exceptions import ApiException
-
-# import models into sdk package
-from zrok_api.models.access201_response import Access201Response
-from zrok_api.models.access_request import AccessRequest
-from zrok_api.models.add_organization_member_request import AddOrganizationMemberRequest
-from zrok_api.models.auth_user import AuthUser
-from zrok_api.models.change_password_request import ChangePasswordRequest
-from zrok_api.models.client_version_check_request import ClientVersionCheckRequest
-from zrok_api.models.configuration import Configuration
-from zrok_api.models.create_frontend201_response import CreateFrontend201Response
-from zrok_api.models.create_frontend_request import CreateFrontendRequest
-from zrok_api.models.create_identity201_response import CreateIdentity201Response
-from zrok_api.models.create_identity_request import CreateIdentityRequest
-from zrok_api.models.create_organization201_response import CreateOrganization201Response
-from zrok_api.models.create_organization_request import CreateOrganizationRequest
-from zrok_api.models.disable_request import DisableRequest
-from zrok_api.models.enable_request import EnableRequest
-from zrok_api.models.environment import Environment
-from zrok_api.models.environment_and_resources import EnvironmentAndResources
-from zrok_api.models.frontend import Frontend
-from zrok_api.models.get_sparklines200_response import GetSparklines200Response
-from zrok_api.models.get_sparklines_request import GetSparklinesRequest
-from zrok_api.models.invite_request import InviteRequest
-from zrok_api.models.invite_token_generate_request import InviteTokenGenerateRequest
-from zrok_api.models.list_frontends200_response_inner import ListFrontends200ResponseInner
-from zrok_api.models.list_memberships200_response import ListMemberships200Response
-from zrok_api.models.list_memberships200_response_memberships_inner import ListMemberships200ResponseMembershipsInner
-from zrok_api.models.list_organization_members200_response import ListOrganizationMembers200Response
-from zrok_api.models.list_organization_members200_response_members_inner import ListOrganizationMembers200ResponseMembersInner
-from zrok_api.models.list_organizations200_response import ListOrganizations200Response
-from zrok_api.models.list_organizations200_response_organizations_inner import ListOrganizations200ResponseOrganizationsInner
-from zrok_api.models.login_request import LoginRequest
-from zrok_api.models.metrics import Metrics
-from zrok_api.models.metrics_sample import MetricsSample
-from zrok_api.models.overview import Overview
-from zrok_api.models.principal import Principal
-from zrok_api.models.regenerate_account_token200_response import RegenerateAccountToken200Response
-from zrok_api.models.regenerate_account_token_request import RegenerateAccountTokenRequest
-from zrok_api.models.register_request import RegisterRequest
-from zrok_api.models.remove_organization_member_request import RemoveOrganizationMemberRequest
-from zrok_api.models.reset_password_request import ResetPasswordRequest
-from zrok_api.models.share import Share
-from zrok_api.models.share_request import ShareRequest
-from zrok_api.models.share_response import ShareResponse
-from zrok_api.models.spark_data_sample import SparkDataSample
-from zrok_api.models.unaccess_request import UnaccessRequest
-from zrok_api.models.unshare_request import UnshareRequest
-from zrok_api.models.update_access_request import UpdateAccessRequest
-from zrok_api.models.update_frontend_request import UpdateFrontendRequest
-from zrok_api.models.update_share_request import UpdateShareRequest
-from zrok_api.models.verify200_response import Verify200Response
-from zrok_api.models.verify_request import VerifyRequest
-from zrok_api.models.version_inventory200_response import VersionInventory200Response
diff --git a/sdk/python/sdk/zrok/zrok_api/api/__init__.py b/sdk/python/sdk/zrok/zrok_api/api/__init__.py
deleted file mode 100644
index 714f0a37..00000000
--- a/sdk/python/sdk/zrok/zrok_api/api/__init__.py
+++ /dev/null
@@ -1,9 +0,0 @@
-# flake8: noqa
-
-# import apis into api package
-from zrok_api.api.account_api import AccountApi
-from zrok_api.api.admin_api import AdminApi
-from zrok_api.api.environment_api import EnvironmentApi
-from zrok_api.api.metadata_api import MetadataApi
-from zrok_api.api.share_api import ShareApi
-
diff --git a/sdk/python/sdk/zrok/zrok_api/api/account_api.py b/sdk/python/sdk/zrok/zrok_api/api/account_api.py
deleted file mode 100644
index d6a93a82..00000000
--- a/sdk/python/sdk/zrok/zrok_api/api/account_api.py
+++ /dev/null
@@ -1,2261 +0,0 @@
-# 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 warnings
-from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
-from typing import Any, Dict, List, Optional, Tuple, Union
-from typing_extensions import Annotated
-
-from pydantic import StrictStr
-from typing import Optional
-from zrok_api.models.change_password_request import ChangePasswordRequest
-from zrok_api.models.invite_request import InviteRequest
-from zrok_api.models.login_request import LoginRequest
-from zrok_api.models.regenerate_account_token200_response import RegenerateAccountToken200Response
-from zrok_api.models.regenerate_account_token_request import RegenerateAccountTokenRequest
-from zrok_api.models.register_request import RegisterRequest
-from zrok_api.models.reset_password_request import ResetPasswordRequest
-from zrok_api.models.verify200_response import Verify200Response
-from zrok_api.models.verify_request import VerifyRequest
-
-from zrok_api.api_client import ApiClient, RequestSerialized
-from zrok_api.api_response import ApiResponse
-from zrok_api.rest import RESTResponseType
-
-
-class AccountApi:
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None) -> None:
- if api_client is None:
- api_client = ApiClient.get_default()
- self.api_client = api_client
-
-
- @validate_call
- def change_password(
- self,
- body: Optional[ChangePasswordRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """change_password
-
-
- :param body:
- :type body: ChangePasswordRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._change_password_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '400': None,
- '401': None,
- '422': "str",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def change_password_with_http_info(
- self,
- body: Optional[ChangePasswordRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """change_password
-
-
- :param body:
- :type body: ChangePasswordRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._change_password_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '400': None,
- '401': None,
- '422': "str",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def change_password_without_preload_content(
- self,
- body: Optional[ChangePasswordRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """change_password
-
-
- :param body:
- :type body: ChangePasswordRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._change_password_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '400': None,
- '401': None,
- '422': "str",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _change_password_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/changePassword',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def invite(
- self,
- body: Optional[InviteRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """invite
-
-
- :param body:
- :type body: InviteRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._invite_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': None,
- '400': "str",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def invite_with_http_info(
- self,
- body: Optional[InviteRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """invite
-
-
- :param body:
- :type body: InviteRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._invite_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': None,
- '400': "str",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def invite_without_preload_content(
- self,
- body: Optional[InviteRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """invite
-
-
- :param body:
- :type body: InviteRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._invite_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': None,
- '400': "str",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _invite_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/invite',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def login(
- self,
- body: Optional[LoginRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> str:
- """login
-
-
- :param body:
- :type body: LoginRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._login_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "str",
- '401': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def login_with_http_info(
- self,
- body: Optional[LoginRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[str]:
- """login
-
-
- :param body:
- :type body: LoginRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._login_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "str",
- '401': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def login_without_preload_content(
- self,
- body: Optional[LoginRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """login
-
-
- :param body:
- :type body: LoginRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._login_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "str",
- '401': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _login_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/login',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def regenerate_account_token(
- self,
- body: Optional[RegenerateAccountTokenRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RegenerateAccountToken200Response:
- """regenerate_account_token
-
-
- :param body:
- :type body: RegenerateAccountTokenRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._regenerate_account_token_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "RegenerateAccountToken200Response",
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def regenerate_account_token_with_http_info(
- self,
- body: Optional[RegenerateAccountTokenRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[RegenerateAccountToken200Response]:
- """regenerate_account_token
-
-
- :param body:
- :type body: RegenerateAccountTokenRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._regenerate_account_token_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "RegenerateAccountToken200Response",
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def regenerate_account_token_without_preload_content(
- self,
- body: Optional[RegenerateAccountTokenRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """regenerate_account_token
-
-
- :param body:
- :type body: RegenerateAccountTokenRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._regenerate_account_token_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "RegenerateAccountToken200Response",
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _regenerate_account_token_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/regenerateAccountToken',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def register(
- self,
- body: Optional[RegisterRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RegenerateAccountToken200Response:
- """register
-
-
- :param body:
- :type body: RegisterRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._register_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "RegenerateAccountToken200Response",
- '404': None,
- '422': "str",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def register_with_http_info(
- self,
- body: Optional[RegisterRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[RegenerateAccountToken200Response]:
- """register
-
-
- :param body:
- :type body: RegisterRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._register_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "RegenerateAccountToken200Response",
- '404': None,
- '422': "str",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def register_without_preload_content(
- self,
- body: Optional[RegisterRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """register
-
-
- :param body:
- :type body: RegisterRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._register_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "RegenerateAccountToken200Response",
- '404': None,
- '422': "str",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _register_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/register',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def reset_password(
- self,
- body: Optional[ResetPasswordRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """reset_password
-
-
- :param body:
- :type body: ResetPasswordRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._reset_password_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '404': None,
- '422': "str",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def reset_password_with_http_info(
- self,
- body: Optional[ResetPasswordRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """reset_password
-
-
- :param body:
- :type body: ResetPasswordRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._reset_password_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '404': None,
- '422': "str",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def reset_password_without_preload_content(
- self,
- body: Optional[ResetPasswordRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """reset_password
-
-
- :param body:
- :type body: ResetPasswordRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._reset_password_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '404': None,
- '422': "str",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _reset_password_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/resetPassword',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def reset_password_request(
- self,
- body: Optional[RegenerateAccountTokenRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """reset_password_request
-
-
- :param body:
- :type body: RegenerateAccountTokenRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._reset_password_request_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': None,
- '400': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def reset_password_request_with_http_info(
- self,
- body: Optional[RegenerateAccountTokenRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """reset_password_request
-
-
- :param body:
- :type body: RegenerateAccountTokenRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._reset_password_request_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': None,
- '400': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def reset_password_request_without_preload_content(
- self,
- body: Optional[RegenerateAccountTokenRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """reset_password_request
-
-
- :param body:
- :type body: RegenerateAccountTokenRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._reset_password_request_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': None,
- '400': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _reset_password_request_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/resetPasswordRequest',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def verify(
- self,
- body: Optional[VerifyRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Verify200Response:
- """verify
-
-
- :param body:
- :type body: VerifyRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._verify_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Verify200Response",
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def verify_with_http_info(
- self,
- body: Optional[VerifyRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Verify200Response]:
- """verify
-
-
- :param body:
- :type body: VerifyRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._verify_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Verify200Response",
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def verify_without_preload_content(
- self,
- body: Optional[VerifyRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """verify
-
-
- :param body:
- :type body: VerifyRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._verify_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Verify200Response",
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _verify_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/verify',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/api/admin_api.py b/sdk/python/sdk/zrok/zrok_api/api/admin_api.py
deleted file mode 100644
index 6e0952fe..00000000
--- a/sdk/python/sdk/zrok/zrok_api/api/admin_api.py
+++ /dev/null
@@ -1,3855 +0,0 @@
-# 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 warnings
-from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
-from typing import Any, Dict, List, Optional, Tuple, Union
-from typing_extensions import Annotated
-
-from typing import List, Optional
-from zrok_api.models.add_organization_member_request import AddOrganizationMemberRequest
-from zrok_api.models.create_frontend201_response import CreateFrontend201Response
-from zrok_api.models.create_frontend_request import CreateFrontendRequest
-from zrok_api.models.create_identity201_response import CreateIdentity201Response
-from zrok_api.models.create_identity_request import CreateIdentityRequest
-from zrok_api.models.create_organization201_response import CreateOrganization201Response
-from zrok_api.models.create_organization_request import CreateOrganizationRequest
-from zrok_api.models.invite_token_generate_request import InviteTokenGenerateRequest
-from zrok_api.models.list_frontends200_response_inner import ListFrontends200ResponseInner
-from zrok_api.models.list_organization_members200_response import ListOrganizationMembers200Response
-from zrok_api.models.list_organizations200_response import ListOrganizations200Response
-from zrok_api.models.login_request import LoginRequest
-from zrok_api.models.regenerate_account_token200_response import RegenerateAccountToken200Response
-from zrok_api.models.remove_organization_member_request import RemoveOrganizationMemberRequest
-from zrok_api.models.update_frontend_request import UpdateFrontendRequest
-from zrok_api.models.verify200_response import Verify200Response
-
-from zrok_api.api_client import ApiClient, RequestSerialized
-from zrok_api.api_response import ApiResponse
-from zrok_api.rest import RESTResponseType
-
-
-class AdminApi:
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None) -> None:
- if api_client is None:
- api_client = ApiClient.get_default()
- self.api_client = api_client
-
-
- @validate_call
- def add_organization_member(
- self,
- body: Optional[AddOrganizationMemberRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """add_organization_member
-
-
- :param body:
- :type body: AddOrganizationMemberRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._add_organization_member_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def add_organization_member_with_http_info(
- self,
- body: Optional[AddOrganizationMemberRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """add_organization_member
-
-
- :param body:
- :type body: AddOrganizationMemberRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._add_organization_member_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def add_organization_member_without_preload_content(
- self,
- body: Optional[AddOrganizationMemberRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """add_organization_member
-
-
- :param body:
- :type body: AddOrganizationMemberRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._add_organization_member_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _add_organization_member_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/organization/add',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def create_account(
- self,
- body: Optional[LoginRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RegenerateAccountToken200Response:
- """create_account
-
-
- :param body:
- :type body: LoginRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._create_account_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "RegenerateAccountToken200Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def create_account_with_http_info(
- self,
- body: Optional[LoginRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[RegenerateAccountToken200Response]:
- """create_account
-
-
- :param body:
- :type body: LoginRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._create_account_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "RegenerateAccountToken200Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def create_account_without_preload_content(
- self,
- body: Optional[LoginRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """create_account
-
-
- :param body:
- :type body: LoginRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._create_account_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "RegenerateAccountToken200Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _create_account_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/account',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def create_frontend(
- self,
- body: Optional[CreateFrontendRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> CreateFrontend201Response:
- """create_frontend
-
-
- :param body:
- :type body: CreateFrontendRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._create_frontend_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateFrontend201Response",
- '400': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def create_frontend_with_http_info(
- self,
- body: Optional[CreateFrontendRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[CreateFrontend201Response]:
- """create_frontend
-
-
- :param body:
- :type body: CreateFrontendRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._create_frontend_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateFrontend201Response",
- '400': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def create_frontend_without_preload_content(
- self,
- body: Optional[CreateFrontendRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """create_frontend
-
-
- :param body:
- :type body: CreateFrontendRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._create_frontend_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateFrontend201Response",
- '400': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _create_frontend_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/frontend',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def create_identity(
- self,
- body: Optional[CreateIdentityRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> CreateIdentity201Response:
- """create_identity
-
-
- :param body:
- :type body: CreateIdentityRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._create_identity_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateIdentity201Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def create_identity_with_http_info(
- self,
- body: Optional[CreateIdentityRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[CreateIdentity201Response]:
- """create_identity
-
-
- :param body:
- :type body: CreateIdentityRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._create_identity_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateIdentity201Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def create_identity_without_preload_content(
- self,
- body: Optional[CreateIdentityRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """create_identity
-
-
- :param body:
- :type body: CreateIdentityRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._create_identity_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateIdentity201Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _create_identity_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/identity',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def create_organization(
- self,
- body: Optional[CreateOrganizationRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> CreateOrganization201Response:
- """create_organization
-
-
- :param body:
- :type body: CreateOrganizationRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._create_organization_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateOrganization201Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def create_organization_with_http_info(
- self,
- body: Optional[CreateOrganizationRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[CreateOrganization201Response]:
- """create_organization
-
-
- :param body:
- :type body: CreateOrganizationRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._create_organization_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateOrganization201Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def create_organization_without_preload_content(
- self,
- body: Optional[CreateOrganizationRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """create_organization
-
-
- :param body:
- :type body: CreateOrganizationRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._create_organization_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateOrganization201Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _create_organization_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/organization',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def delete_frontend(
- self,
- body: Optional[CreateFrontend201Response] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """delete_frontend
-
-
- :param body:
- :type body: CreateFrontend201Response
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._delete_frontend_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def delete_frontend_with_http_info(
- self,
- body: Optional[CreateFrontend201Response] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """delete_frontend
-
-
- :param body:
- :type body: CreateFrontend201Response
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._delete_frontend_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def delete_frontend_without_preload_content(
- self,
- body: Optional[CreateFrontend201Response] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """delete_frontend
-
-
- :param body:
- :type body: CreateFrontend201Response
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._delete_frontend_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _delete_frontend_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='DELETE',
- resource_path='/frontend',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def delete_organization(
- self,
- body: Optional[CreateOrganization201Response] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """delete_organization
-
-
- :param body:
- :type body: CreateOrganization201Response
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._delete_organization_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def delete_organization_with_http_info(
- self,
- body: Optional[CreateOrganization201Response] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """delete_organization
-
-
- :param body:
- :type body: CreateOrganization201Response
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._delete_organization_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def delete_organization_without_preload_content(
- self,
- body: Optional[CreateOrganization201Response] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """delete_organization
-
-
- :param body:
- :type body: CreateOrganization201Response
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._delete_organization_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _delete_organization_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='DELETE',
- resource_path='/organization',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def grants(
- self,
- body: Optional[Verify200Response] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """grants
-
-
- :param body:
- :type body: Verify200Response
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._grants_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def grants_with_http_info(
- self,
- body: Optional[Verify200Response] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """grants
-
-
- :param body:
- :type body: Verify200Response
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._grants_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def grants_without_preload_content(
- self,
- body: Optional[Verify200Response] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """grants
-
-
- :param body:
- :type body: Verify200Response
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._grants_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _grants_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/grants',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def invite_token_generate(
- self,
- body: Optional[InviteTokenGenerateRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """invite_token_generate
-
-
- :param body:
- :type body: InviteTokenGenerateRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._invite_token_generate_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': None,
- '400': None,
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def invite_token_generate_with_http_info(
- self,
- body: Optional[InviteTokenGenerateRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """invite_token_generate
-
-
- :param body:
- :type body: InviteTokenGenerateRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._invite_token_generate_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': None,
- '400': None,
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def invite_token_generate_without_preload_content(
- self,
- body: Optional[InviteTokenGenerateRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """invite_token_generate
-
-
- :param body:
- :type body: InviteTokenGenerateRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._invite_token_generate_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': None,
- '400': None,
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _invite_token_generate_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/invite/token/generate',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def list_frontends(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> List[ListFrontends200ResponseInner]:
- """list_frontends
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_frontends_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "List[ListFrontends200ResponseInner]",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def list_frontends_with_http_info(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[List[ListFrontends200ResponseInner]]:
- """list_frontends
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_frontends_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "List[ListFrontends200ResponseInner]",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def list_frontends_without_preload_content(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """list_frontends
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_frontends_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "List[ListFrontends200ResponseInner]",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _list_frontends_serialize(
- self,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/frontends',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def list_organization_members(
- self,
- body: Optional[CreateOrganization201Response] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListOrganizationMembers200Response:
- """list_organization_members
-
-
- :param body:
- :type body: CreateOrganization201Response
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_organization_members_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "ListOrganizationMembers200Response",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def list_organization_members_with_http_info(
- self,
- body: Optional[CreateOrganization201Response] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListOrganizationMembers200Response]:
- """list_organization_members
-
-
- :param body:
- :type body: CreateOrganization201Response
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_organization_members_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "ListOrganizationMembers200Response",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def list_organization_members_without_preload_content(
- self,
- body: Optional[CreateOrganization201Response] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """list_organization_members
-
-
- :param body:
- :type body: CreateOrganization201Response
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_organization_members_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "ListOrganizationMembers200Response",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _list_organization_members_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/organization/list',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def list_organizations(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListOrganizations200Response:
- """list_organizations
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_organizations_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "ListOrganizations200Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def list_organizations_with_http_info(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListOrganizations200Response]:
- """list_organizations
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_organizations_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "ListOrganizations200Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def list_organizations_without_preload_content(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """list_organizations
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_organizations_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "ListOrganizations200Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _list_organizations_serialize(
- self,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/organizations',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def remove_organization_member(
- self,
- body: Optional[RemoveOrganizationMemberRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """remove_organization_member
-
-
- :param body:
- :type body: RemoveOrganizationMemberRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._remove_organization_member_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def remove_organization_member_with_http_info(
- self,
- body: Optional[RemoveOrganizationMemberRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """remove_organization_member
-
-
- :param body:
- :type body: RemoveOrganizationMemberRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._remove_organization_member_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def remove_organization_member_without_preload_content(
- self,
- body: Optional[RemoveOrganizationMemberRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """remove_organization_member
-
-
- :param body:
- :type body: RemoveOrganizationMemberRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._remove_organization_member_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _remove_organization_member_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/organization/remove',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def update_frontend(
- self,
- body: Optional[UpdateFrontendRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """update_frontend
-
-
- :param body:
- :type body: UpdateFrontendRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._update_frontend_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def update_frontend_with_http_info(
- self,
- body: Optional[UpdateFrontendRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """update_frontend
-
-
- :param body:
- :type body: UpdateFrontendRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._update_frontend_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def update_frontend_without_preload_content(
- self,
- body: Optional[UpdateFrontendRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """update_frontend
-
-
- :param body:
- :type body: UpdateFrontendRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._update_frontend_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _update_frontend_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='PATCH',
- resource_path='/frontend',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/api/environment_api.py b/sdk/python/sdk/zrok/zrok_api/api/environment_api.py
deleted file mode 100644
index 4495d736..00000000
--- a/sdk/python/sdk/zrok/zrok_api/api/environment_api.py
+++ /dev/null
@@ -1,589 +0,0 @@
-# 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 warnings
-from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
-from typing import Any, Dict, List, Optional, Tuple, Union
-from typing_extensions import Annotated
-
-from typing import Optional
-from zrok_api.models.create_identity201_response import CreateIdentity201Response
-from zrok_api.models.disable_request import DisableRequest
-from zrok_api.models.enable_request import EnableRequest
-
-from zrok_api.api_client import ApiClient, RequestSerialized
-from zrok_api.api_response import ApiResponse
-from zrok_api.rest import RESTResponseType
-
-
-class EnvironmentApi:
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None) -> None:
- if api_client is None:
- api_client = ApiClient.get_default()
- self.api_client = api_client
-
-
- @validate_call
- def disable(
- self,
- body: Optional[DisableRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """disable
-
-
- :param body:
- :type body: DisableRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._disable_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def disable_with_http_info(
- self,
- body: Optional[DisableRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """disable
-
-
- :param body:
- :type body: DisableRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._disable_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def disable_without_preload_content(
- self,
- body: Optional[DisableRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """disable
-
-
- :param body:
- :type body: DisableRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._disable_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _disable_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/disable',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def enable(
- self,
- body: Optional[EnableRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> CreateIdentity201Response:
- """enable
-
-
- :param body:
- :type body: EnableRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._enable_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateIdentity201Response",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def enable_with_http_info(
- self,
- body: Optional[EnableRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[CreateIdentity201Response]:
- """enable
-
-
- :param body:
- :type body: EnableRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._enable_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateIdentity201Response",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def enable_without_preload_content(
- self,
- body: Optional[EnableRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """enable
-
-
- :param body:
- :type body: EnableRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._enable_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateIdentity201Response",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _enable_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/enable',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/api/metadata_api.py b/sdk/python/sdk/zrok/zrok_api/api/metadata_api.py
deleted file mode 100644
index ae780e05..00000000
--- a/sdk/python/sdk/zrok/zrok_api/api/metadata_api.py
+++ /dev/null
@@ -1,4242 +0,0 @@
-# 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 warnings
-from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
-from typing import Any, Dict, List, Optional, Tuple, Union
-from typing_extensions import Annotated
-
-from pydantic import StrictInt, StrictStr
-from typing import List, Optional
-from zrok_api.models.client_version_check_request import ClientVersionCheckRequest
-from zrok_api.models.configuration import Configuration
-from zrok_api.models.environment import Environment
-from zrok_api.models.environment_and_resources import EnvironmentAndResources
-from zrok_api.models.frontend import Frontend
-from zrok_api.models.get_sparklines200_response import GetSparklines200Response
-from zrok_api.models.get_sparklines_request import GetSparklinesRequest
-from zrok_api.models.list_memberships200_response import ListMemberships200Response
-from zrok_api.models.list_organization_members200_response import ListOrganizationMembers200Response
-from zrok_api.models.metrics import Metrics
-from zrok_api.models.overview import Overview
-from zrok_api.models.share import Share
-from zrok_api.models.version_inventory200_response import VersionInventory200Response
-
-from zrok_api.api_client import ApiClient, RequestSerialized
-from zrok_api.api_response import ApiResponse
-from zrok_api.rest import RESTResponseType
-
-
-class MetadataApi:
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None) -> None:
- if api_client is None:
- api_client = ApiClient.get_default()
- self.api_client = api_client
-
-
- @validate_call
- def client_version_check(
- self,
- body: Optional[ClientVersionCheckRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """client_version_check
-
-
- :param body:
- :type body: ClientVersionCheckRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._client_version_check_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '400': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def client_version_check_with_http_info(
- self,
- body: Optional[ClientVersionCheckRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """client_version_check
-
-
- :param body:
- :type body: ClientVersionCheckRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._client_version_check_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '400': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def client_version_check_without_preload_content(
- self,
- body: Optional[ClientVersionCheckRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """client_version_check
-
-
- :param body:
- :type body: ClientVersionCheckRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._client_version_check_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '400': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _client_version_check_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/clientVersionCheck',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def configuration(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Configuration:
- """configuration
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._configuration_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Configuration",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def configuration_with_http_info(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Configuration]:
- """configuration
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._configuration_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Configuration",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def configuration_without_preload_content(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """configuration
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._configuration_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Configuration",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _configuration_serialize(
- self,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/configuration',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def get_account_detail(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> List[Environment]:
- """get_account_detail
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_account_detail_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "List[Environment]",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def get_account_detail_with_http_info(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[List[Environment]]:
- """get_account_detail
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_account_detail_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "List[Environment]",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def get_account_detail_without_preload_content(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """get_account_detail
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_account_detail_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "List[Environment]",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _get_account_detail_serialize(
- self,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/detail/account',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def get_account_metrics(
- self,
- duration: Optional[StrictStr] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Metrics:
- """get_account_metrics
-
-
- :param duration:
- :type duration: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_account_metrics_serialize(
- duration=duration,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Metrics",
- '400': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def get_account_metrics_with_http_info(
- self,
- duration: Optional[StrictStr] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Metrics]:
- """get_account_metrics
-
-
- :param duration:
- :type duration: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_account_metrics_serialize(
- duration=duration,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Metrics",
- '400': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def get_account_metrics_without_preload_content(
- self,
- duration: Optional[StrictStr] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """get_account_metrics
-
-
- :param duration:
- :type duration: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_account_metrics_serialize(
- duration=duration,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Metrics",
- '400': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _get_account_metrics_serialize(
- self,
- duration,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- if duration is not None:
-
- _query_params.append(('duration', duration))
-
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/metrics/account',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def get_environment_detail(
- self,
- env_zid: StrictStr,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> EnvironmentAndResources:
- """get_environment_detail
-
-
- :param env_zid: (required)
- :type env_zid: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_environment_detail_serialize(
- env_zid=env_zid,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "EnvironmentAndResources",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def get_environment_detail_with_http_info(
- self,
- env_zid: StrictStr,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[EnvironmentAndResources]:
- """get_environment_detail
-
-
- :param env_zid: (required)
- :type env_zid: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_environment_detail_serialize(
- env_zid=env_zid,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "EnvironmentAndResources",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def get_environment_detail_without_preload_content(
- self,
- env_zid: StrictStr,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """get_environment_detail
-
-
- :param env_zid: (required)
- :type env_zid: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_environment_detail_serialize(
- env_zid=env_zid,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "EnvironmentAndResources",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _get_environment_detail_serialize(
- self,
- env_zid,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- if env_zid is not None:
- _path_params['envZId'] = env_zid
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/detail/environment/{envZId}',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def get_environment_metrics(
- self,
- env_id: StrictStr,
- duration: Optional[StrictStr] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Metrics:
- """get_environment_metrics
-
-
- :param env_id: (required)
- :type env_id: str
- :param duration:
- :type duration: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_environment_metrics_serialize(
- env_id=env_id,
- duration=duration,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Metrics",
- '400': None,
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def get_environment_metrics_with_http_info(
- self,
- env_id: StrictStr,
- duration: Optional[StrictStr] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Metrics]:
- """get_environment_metrics
-
-
- :param env_id: (required)
- :type env_id: str
- :param duration:
- :type duration: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_environment_metrics_serialize(
- env_id=env_id,
- duration=duration,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Metrics",
- '400': None,
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def get_environment_metrics_without_preload_content(
- self,
- env_id: StrictStr,
- duration: Optional[StrictStr] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """get_environment_metrics
-
-
- :param env_id: (required)
- :type env_id: str
- :param duration:
- :type duration: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_environment_metrics_serialize(
- env_id=env_id,
- duration=duration,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Metrics",
- '400': None,
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _get_environment_metrics_serialize(
- self,
- env_id,
- duration,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- if env_id is not None:
- _path_params['envId'] = env_id
- # process the query parameters
- if duration is not None:
-
- _query_params.append(('duration', duration))
-
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/metrics/environment/{envId}',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def get_frontend_detail(
- self,
- frontend_id: StrictInt,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Frontend:
- """get_frontend_detail
-
-
- :param frontend_id: (required)
- :type frontend_id: int
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_frontend_detail_serialize(
- frontend_id=frontend_id,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Frontend",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def get_frontend_detail_with_http_info(
- self,
- frontend_id: StrictInt,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Frontend]:
- """get_frontend_detail
-
-
- :param frontend_id: (required)
- :type frontend_id: int
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_frontend_detail_serialize(
- frontend_id=frontend_id,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Frontend",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def get_frontend_detail_without_preload_content(
- self,
- frontend_id: StrictInt,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """get_frontend_detail
-
-
- :param frontend_id: (required)
- :type frontend_id: int
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_frontend_detail_serialize(
- frontend_id=frontend_id,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Frontend",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _get_frontend_detail_serialize(
- self,
- frontend_id,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- if frontend_id is not None:
- _path_params['frontendId'] = frontend_id
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/detail/frontend/{frontendId}',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def get_share_detail(
- self,
- share_token: StrictStr,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Share:
- """get_share_detail
-
-
- :param share_token: (required)
- :type share_token: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_share_detail_serialize(
- share_token=share_token,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Share",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def get_share_detail_with_http_info(
- self,
- share_token: StrictStr,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Share]:
- """get_share_detail
-
-
- :param share_token: (required)
- :type share_token: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_share_detail_serialize(
- share_token=share_token,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Share",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def get_share_detail_without_preload_content(
- self,
- share_token: StrictStr,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """get_share_detail
-
-
- :param share_token: (required)
- :type share_token: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_share_detail_serialize(
- share_token=share_token,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Share",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _get_share_detail_serialize(
- self,
- share_token,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- if share_token is not None:
- _path_params['shareToken'] = share_token
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/detail/share/{shareToken}',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def get_share_metrics(
- self,
- share_token: StrictStr,
- duration: Optional[StrictStr] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Metrics:
- """get_share_metrics
-
-
- :param share_token: (required)
- :type share_token: str
- :param duration:
- :type duration: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_share_metrics_serialize(
- share_token=share_token,
- duration=duration,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Metrics",
- '400': None,
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def get_share_metrics_with_http_info(
- self,
- share_token: StrictStr,
- duration: Optional[StrictStr] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Metrics]:
- """get_share_metrics
-
-
- :param share_token: (required)
- :type share_token: str
- :param duration:
- :type duration: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_share_metrics_serialize(
- share_token=share_token,
- duration=duration,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Metrics",
- '400': None,
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def get_share_metrics_without_preload_content(
- self,
- share_token: StrictStr,
- duration: Optional[StrictStr] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """get_share_metrics
-
-
- :param share_token: (required)
- :type share_token: str
- :param duration:
- :type duration: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_share_metrics_serialize(
- share_token=share_token,
- duration=duration,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Metrics",
- '400': None,
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _get_share_metrics_serialize(
- self,
- share_token,
- duration,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- if share_token is not None:
- _path_params['shareToken'] = share_token
- # process the query parameters
- if duration is not None:
-
- _query_params.append(('duration', duration))
-
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/metrics/share/{shareToken}',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def get_sparklines(
- self,
- body: Optional[GetSparklinesRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> GetSparklines200Response:
- """get_sparklines
-
-
- :param body:
- :type body: GetSparklinesRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_sparklines_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "GetSparklines200Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def get_sparklines_with_http_info(
- self,
- body: Optional[GetSparklinesRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[GetSparklines200Response]:
- """get_sparklines
-
-
- :param body:
- :type body: GetSparklinesRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_sparklines_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "GetSparklines200Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def get_sparklines_without_preload_content(
- self,
- body: Optional[GetSparklinesRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """get_sparklines
-
-
- :param body:
- :type body: GetSparklinesRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._get_sparklines_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "GetSparklines200Response",
- '401': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _get_sparklines_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/sparklines',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def list_memberships(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListMemberships200Response:
- """list_memberships
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_memberships_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "ListMemberships200Response",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def list_memberships_with_http_info(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListMemberships200Response]:
- """list_memberships
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_memberships_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "ListMemberships200Response",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def list_memberships_without_preload_content(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """list_memberships
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_memberships_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "ListMemberships200Response",
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _list_memberships_serialize(
- self,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/memberships',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def list_org_members(
- self,
- organization_token: StrictStr,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ListOrganizationMembers200Response:
- """list_org_members
-
-
- :param organization_token: (required)
- :type organization_token: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_org_members_serialize(
- organization_token=organization_token,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "ListOrganizationMembers200Response",
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def list_org_members_with_http_info(
- self,
- organization_token: StrictStr,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ListOrganizationMembers200Response]:
- """list_org_members
-
-
- :param organization_token: (required)
- :type organization_token: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_org_members_serialize(
- organization_token=organization_token,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "ListOrganizationMembers200Response",
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def list_org_members_without_preload_content(
- self,
- organization_token: StrictStr,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """list_org_members
-
-
- :param organization_token: (required)
- :type organization_token: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._list_org_members_serialize(
- organization_token=organization_token,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "ListOrganizationMembers200Response",
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _list_org_members_serialize(
- self,
- organization_token,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- if organization_token is not None:
- _path_params['organizationToken'] = organization_token
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/members/{organizationToken}',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def org_account_overview(
- self,
- organization_token: StrictStr,
- account_email: StrictStr,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Overview:
- """org_account_overview
-
-
- :param organization_token: (required)
- :type organization_token: str
- :param account_email: (required)
- :type account_email: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._org_account_overview_serialize(
- organization_token=organization_token,
- account_email=account_email,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Overview",
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def org_account_overview_with_http_info(
- self,
- organization_token: StrictStr,
- account_email: StrictStr,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Overview]:
- """org_account_overview
-
-
- :param organization_token: (required)
- :type organization_token: str
- :param account_email: (required)
- :type account_email: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._org_account_overview_serialize(
- organization_token=organization_token,
- account_email=account_email,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Overview",
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def org_account_overview_without_preload_content(
- self,
- organization_token: StrictStr,
- account_email: StrictStr,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """org_account_overview
-
-
- :param organization_token: (required)
- :type organization_token: str
- :param account_email: (required)
- :type account_email: str
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._org_account_overview_serialize(
- organization_token=organization_token,
- account_email=account_email,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Overview",
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _org_account_overview_serialize(
- self,
- organization_token,
- account_email,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- if organization_token is not None:
- _path_params['organizationToken'] = organization_token
- if account_email is not None:
- _path_params['accountEmail'] = account_email
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/overview/{organizationToken}/{accountEmail}',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def overview(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Overview:
- """overview
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._overview_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Overview",
- '500': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def overview_with_http_info(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Overview]:
- """overview
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._overview_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Overview",
- '500': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def overview_without_preload_content(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """overview
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._overview_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "Overview",
- '500': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _overview_serialize(
- self,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/overview',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def version(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> str:
- """version
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._version_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def version_with_http_info(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[str]:
- """version
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._version_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def version_without_preload_content(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """version
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._version_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _version_serialize(
- self,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/version',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def version_inventory(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> VersionInventory200Response:
- """version_inventory
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._version_inventory_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "VersionInventory200Response",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def version_inventory_with_http_info(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[VersionInventory200Response]:
- """version_inventory
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._version_inventory_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "VersionInventory200Response",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def version_inventory_without_preload_content(
- self,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """version_inventory
-
-
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._version_inventory_serialize(
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': "VersionInventory200Response",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _version_inventory_serialize(
- self,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
-
- # authentication setting
- _auth_settings: List[str] = [
- ]
-
- return self.api_client.param_serialize(
- method='GET',
- resource_path='/versions',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/api/share_api.py b/sdk/python/sdk/zrok/zrok_api/api/share_api.py
deleted file mode 100644
index 626035ee..00000000
--- a/sdk/python/sdk/zrok/zrok_api/api/share_api.py
+++ /dev/null
@@ -1,1712 +0,0 @@
-# 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 warnings
-from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
-from typing import Any, Dict, List, Optional, Tuple, Union
-from typing_extensions import Annotated
-
-from typing import Optional
-from zrok_api.models.access201_response import Access201Response
-from zrok_api.models.access_request import AccessRequest
-from zrok_api.models.share_request import ShareRequest
-from zrok_api.models.share_response import ShareResponse
-from zrok_api.models.unaccess_request import UnaccessRequest
-from zrok_api.models.unshare_request import UnshareRequest
-from zrok_api.models.update_access_request import UpdateAccessRequest
-from zrok_api.models.update_share_request import UpdateShareRequest
-
-from zrok_api.api_client import ApiClient, RequestSerialized
-from zrok_api.api_response import ApiResponse
-from zrok_api.rest import RESTResponseType
-
-
-class ShareApi:
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None) -> None:
- if api_client is None:
- api_client = ApiClient.get_default()
- self.api_client = api_client
-
-
- @validate_call
- def access(
- self,
- body: Optional[AccessRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Access201Response:
- """access
-
-
- :param body:
- :type body: AccessRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._access_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "Access201Response",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def access_with_http_info(
- self,
- body: Optional[AccessRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Access201Response]:
- """access
-
-
- :param body:
- :type body: AccessRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._access_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "Access201Response",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def access_without_preload_content(
- self,
- body: Optional[AccessRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """access
-
-
- :param body:
- :type body: AccessRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._access_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "Access201Response",
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _access_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/access',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def share(
- self,
- body: Optional[ShareRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ShareResponse:
- """share
-
-
- :param body:
- :type body: ShareRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._share_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "ShareResponse",
- '401': None,
- '404': None,
- '409': None,
- '422': None,
- '500': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def share_with_http_info(
- self,
- body: Optional[ShareRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ShareResponse]:
- """share
-
-
- :param body:
- :type body: ShareRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._share_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "ShareResponse",
- '401': None,
- '404': None,
- '409': None,
- '422': None,
- '500': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def share_without_preload_content(
- self,
- body: Optional[ShareRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """share
-
-
- :param body:
- :type body: ShareRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._share_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '201': "ShareResponse",
- '401': None,
- '404': None,
- '409': None,
- '422': None,
- '500': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _share_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='POST',
- resource_path='/share',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def unaccess(
- self,
- body: Optional[UnaccessRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """unaccess
-
-
- :param body:
- :type body: UnaccessRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._unaccess_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def unaccess_with_http_info(
- self,
- body: Optional[UnaccessRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """unaccess
-
-
- :param body:
- :type body: UnaccessRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._unaccess_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def unaccess_without_preload_content(
- self,
- body: Optional[UnaccessRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """unaccess
-
-
- :param body:
- :type body: UnaccessRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._unaccess_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _unaccess_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='DELETE',
- resource_path='/unaccess',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def unshare(
- self,
- body: Optional[UnshareRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """unshare
-
-
- :param body:
- :type body: UnshareRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._unshare_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def unshare_with_http_info(
- self,
- body: Optional[UnshareRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """unshare
-
-
- :param body:
- :type body: UnshareRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._unshare_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def unshare_without_preload_content(
- self,
- body: Optional[UnshareRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """unshare
-
-
- :param body:
- :type body: UnshareRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._unshare_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': "str",
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _unshare_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
- # set the HTTP header `Accept`
- if 'Accept' not in _header_params:
- _header_params['Accept'] = self.api_client.select_header_accept(
- [
- 'application/zrok.v1+json'
- ]
- )
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='DELETE',
- resource_path='/unshare',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def update_access(
- self,
- body: Optional[UpdateAccessRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """update_access
-
-
- :param body:
- :type body: UpdateAccessRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._update_access_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def update_access_with_http_info(
- self,
- body: Optional[UpdateAccessRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """update_access
-
-
- :param body:
- :type body: UpdateAccessRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._update_access_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def update_access_without_preload_content(
- self,
- body: Optional[UpdateAccessRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """update_access
-
-
- :param body:
- :type body: UpdateAccessRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._update_access_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _update_access_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='PATCH',
- resource_path='/access',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
-
-
- @validate_call
- def update_share(
- self,
- body: Optional[UpdateShareRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """update_share
-
-
- :param body:
- :type body: UpdateShareRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._update_share_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '400': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- ).data
-
-
- @validate_call
- def update_share_with_http_info(
- self,
- body: Optional[UpdateShareRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """update_share
-
-
- :param body:
- :type body: UpdateShareRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._update_share_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '400': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- response_data.read()
- return self.api_client.response_deserialize(
- response_data=response_data,
- response_types_map=_response_types_map,
- )
-
-
- @validate_call
- def update_share_without_preload_content(
- self,
- body: Optional[UpdateShareRequest] = None,
- _request_timeout: Union[
- None,
- Annotated[StrictFloat, Field(gt=0)],
- Tuple[
- Annotated[StrictFloat, Field(gt=0)],
- Annotated[StrictFloat, Field(gt=0)]
- ]
- ] = None,
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
- _content_type: Optional[StrictStr] = None,
- _headers: Optional[Dict[StrictStr, Any]] = None,
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> RESTResponseType:
- """update_share
-
-
- :param body:
- :type body: UpdateShareRequest
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :type _request_timeout: int, tuple(int, int), optional
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the
- authentication in the spec for a single request.
- :type _request_auth: dict, optional
- :param _content_type: force content-type for the request.
- :type _content_type: str, Optional
- :param _headers: set to override the headers for a single
- request; this effectively ignores the headers
- in the spec for a single request.
- :type _headers: dict, optional
- :param _host_index: set to override the host_index for a single
- request; this effectively ignores the host_index
- in the spec for a single request.
- :type _host_index: int, optional
- :return: Returns the result object.
- """ # noqa: E501
-
- _param = self._update_share_serialize(
- body=body,
- _request_auth=_request_auth,
- _content_type=_content_type,
- _headers=_headers,
- _host_index=_host_index
- )
-
- _response_types_map: Dict[str, Optional[str]] = {
- '200': None,
- '400': None,
- '401': None,
- '404': None,
- '500': None,
- }
- response_data = self.api_client.call_api(
- *_param,
- _request_timeout=_request_timeout
- )
- return response_data.response
-
-
- def _update_share_serialize(
- self,
- body,
- _request_auth,
- _content_type,
- _headers,
- _host_index,
- ) -> RequestSerialized:
-
- _host = None
-
- _collection_formats: Dict[str, str] = {
- }
-
- _path_params: Dict[str, str] = {}
- _query_params: List[Tuple[str, str]] = []
- _header_params: Dict[str, Optional[str]] = _headers or {}
- _form_params: List[Tuple[str, str]] = []
- _files: Dict[
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
- ] = {}
- _body_params: Optional[bytes] = None
-
- # process the path parameters
- # process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
- if body is not None:
- _body_params = body
-
-
-
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/zrok.v1+json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
-
- # authentication setting
- _auth_settings: List[str] = [
- 'key'
- ]
-
- return self.api_client.param_serialize(
- method='PATCH',
- resource_path='/share',
- path_params=_path_params,
- query_params=_query_params,
- header_params=_header_params,
- body=_body_params,
- post_params=_form_params,
- files=_files,
- auth_settings=_auth_settings,
- collection_formats=_collection_formats,
- _host=_host,
- _request_auth=_request_auth
- )
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/api_client.py b/sdk/python/sdk/zrok/zrok_api/api_client.py
deleted file mode 100644
index 7b417812..00000000
--- a/sdk/python/sdk/zrok/zrok_api/api_client.py
+++ /dev/null
@@ -1,797 +0,0 @@
-# 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 datetime
-from dateutil.parser import parse
-from enum import Enum
-import decimal
-import json
-import mimetypes
-import os
-import re
-import tempfile
-
-from urllib.parse import quote
-from typing import Tuple, Optional, List, Dict, Union
-from pydantic import SecretStr
-
-from zrok_api.configuration import Configuration
-from zrok_api.api_response import ApiResponse, T as ApiResponseT
-import zrok_api.models
-from zrok_api import rest
-from zrok_api.exceptions import (
- ApiValueError,
- ApiException,
- BadRequestException,
- UnauthorizedException,
- ForbiddenException,
- NotFoundException,
- ServiceException
-)
-
-RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
-
-class ApiClient:
- """Generic API client for OpenAPI client library builds.
-
- OpenAPI generic API client. This client handles the client-
- server communication, and is invariant across implementations. Specifics of
- the methods and models for each application are generated from the OpenAPI
- templates.
-
- :param configuration: .Configuration object for this client
- :param header_name: a header to pass when making calls to the API.
- :param header_value: a header value to pass when making calls to
- the API.
- :param cookie: a cookie to include in the header when making calls
- to the API
- """
-
- PRIMITIVE_TYPES = (float, bool, bytes, str, int)
- NATIVE_TYPES_MAPPING = {
- 'int': int,
- 'long': int, # TODO remove as only py3 is supported?
- 'float': float,
- 'str': str,
- 'bool': bool,
- 'date': datetime.date,
- 'datetime': datetime.datetime,
- 'decimal': decimal.Decimal,
- 'object': object,
- }
- _pool = None
-
- def __init__(
- self,
- configuration=None,
- header_name=None,
- header_value=None,
- cookie=None
- ) -> None:
- # use default configuration if none is provided
- if configuration is None:
- configuration = Configuration.get_default()
- self.configuration = configuration
-
- self.rest_client = rest.RESTClientObject(configuration)
- self.default_headers = {}
- if header_name is not None:
- self.default_headers[header_name] = header_value
- self.cookie = cookie
- # Set default User-Agent.
- self.user_agent = 'OpenAPI-Generator/1.0.0/python'
- self.client_side_validation = configuration.client_side_validation
-
- def __enter__(self):
- return self
-
- def __exit__(self, exc_type, exc_value, traceback):
- pass
-
- @property
- def user_agent(self):
- """User agent for this API client"""
- return self.default_headers['User-Agent']
-
- @user_agent.setter
- def user_agent(self, value):
- self.default_headers['User-Agent'] = value
-
- def set_default_header(self, header_name, header_value):
- self.default_headers[header_name] = header_value
-
-
- _default = None
-
- @classmethod
- def get_default(cls):
- """Return new instance of ApiClient.
-
- This method returns newly created, based on default constructor,
- object of ApiClient class or returns a copy of default
- ApiClient.
-
- :return: The ApiClient object.
- """
- if cls._default is None:
- cls._default = ApiClient()
- return cls._default
-
- @classmethod
- def set_default(cls, default):
- """Set default instance of ApiClient.
-
- It stores default ApiClient.
-
- :param default: object of ApiClient.
- """
- cls._default = default
-
- def param_serialize(
- self,
- method,
- resource_path,
- path_params=None,
- query_params=None,
- header_params=None,
- body=None,
- post_params=None,
- files=None, auth_settings=None,
- collection_formats=None,
- _host=None,
- _request_auth=None
- ) -> RequestSerialized:
-
- """Builds the HTTP request params needed by the request.
- :param method: Method to call.
- :param resource_path: Path to method endpoint.
- :param path_params: Path parameters in the url.
- :param query_params: Query parameters in the url.
- :param header_params: Header parameters to be
- placed in the request header.
- :param body: Request body.
- :param post_params dict: Request post form parameters,
- for `application/x-www-form-urlencoded`, `multipart/form-data`.
- :param auth_settings list: Auth Settings names for the request.
- :param files dict: key -> filename, value -> filepath,
- for `multipart/form-data`.
- :param collection_formats: dict of collection formats for path, query,
- header, and post parameters.
- :param _request_auth: set to override the auth_settings for an a single
- request; this effectively ignores the authentication
- in the spec for a single request.
- :return: tuple of form (path, http_method, query_params, header_params,
- body, post_params, files)
- """
-
- config = self.configuration
-
- # header parameters
- header_params = header_params or {}
- header_params.update(self.default_headers)
- if self.cookie:
- header_params['Cookie'] = self.cookie
- if header_params:
- header_params = self.sanitize_for_serialization(header_params)
- header_params = dict(
- self.parameters_to_tuples(header_params,collection_formats)
- )
-
- # path parameters
- if path_params:
- path_params = self.sanitize_for_serialization(path_params)
- path_params = self.parameters_to_tuples(
- path_params,
- collection_formats
- )
- for k, v in path_params:
- # specified safe chars, encode everything
- resource_path = resource_path.replace(
- '{%s}' % k,
- quote(str(v), safe=config.safe_chars_for_path_param)
- )
-
- # post parameters
- if post_params or files:
- post_params = post_params if post_params else []
- post_params = self.sanitize_for_serialization(post_params)
- post_params = self.parameters_to_tuples(
- post_params,
- collection_formats
- )
- if files:
- post_params.extend(self.files_parameters(files))
-
- # auth setting
- self.update_params_for_auth(
- header_params,
- query_params,
- auth_settings,
- resource_path,
- method,
- body,
- request_auth=_request_auth
- )
-
- # body
- if body:
- body = self.sanitize_for_serialization(body)
-
- # request url
- if _host is None or self.configuration.ignore_operation_servers:
- url = self.configuration.host + resource_path
- else:
- # use server/host defined in path or operation instead
- url = _host + resource_path
-
- # query parameters
- if query_params:
- query_params = self.sanitize_for_serialization(query_params)
- url_query = self.parameters_to_url_query(
- query_params,
- collection_formats
- )
- url += "?" + url_query
-
- return method, url, header_params, body, post_params
-
-
- def call_api(
- self,
- method,
- url,
- header_params=None,
- body=None,
- post_params=None,
- _request_timeout=None
- ) -> rest.RESTResponse:
- """Makes the HTTP request (synchronous)
- :param method: Method to call.
- :param url: Path to method endpoint.
- :param header_params: Header parameters to be
- placed in the request header.
- :param body: Request body.
- :param post_params dict: Request post form parameters,
- for `application/x-www-form-urlencoded`, `multipart/form-data`.
- :param _request_timeout: timeout setting for this request.
- :return: RESTResponse
- """
-
- try:
- # perform request and return response
- response_data = self.rest_client.request(
- method, url,
- headers=header_params,
- body=body, post_params=post_params,
- _request_timeout=_request_timeout
- )
-
- except ApiException as e:
- raise e
-
- return response_data
-
- def response_deserialize(
- self,
- response_data: rest.RESTResponse,
- response_types_map: Optional[Dict[str, ApiResponseT]]=None
- ) -> ApiResponse[ApiResponseT]:
- """Deserializes response into an object.
- :param response_data: RESTResponse object to be deserialized.
- :param response_types_map: dict of response types.
- :return: ApiResponse
- """
-
- msg = "RESTResponse.read() must be called before passing it to response_deserialize()"
- assert response_data.data is not None, msg
-
- response_type = response_types_map.get(str(response_data.status), None)
- if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599:
- # if not found, look for '1XX', '2XX', etc.
- response_type = response_types_map.get(str(response_data.status)[0] + "XX", None)
-
- # deserialize response data
- response_text = None
- return_data = None
- try:
- if response_type == "bytearray":
- return_data = response_data.data
- elif response_type == "file":
- return_data = self.__deserialize_file(response_data)
- elif response_type is not None:
- match = None
- content_type = response_data.getheader('content-type')
- if content_type is not None:
- match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type)
- encoding = match.group(1) if match else "utf-8"
- response_text = response_data.data.decode(encoding)
- return_data = self.deserialize(response_text, response_type, content_type)
- finally:
- if not 200 <= response_data.status <= 299:
- raise ApiException.from_response(
- http_resp=response_data,
- body=response_text,
- data=return_data,
- )
-
- return ApiResponse(
- status_code = response_data.status,
- data = return_data,
- headers = response_data.getheaders(),
- raw_data = response_data.data
- )
-
- def sanitize_for_serialization(self, obj):
- """Builds a JSON POST object.
-
- If obj is None, return None.
- If obj is SecretStr, return obj.get_secret_value()
- If obj is str, int, long, float, bool, return directly.
- If obj is datetime.datetime, datetime.date
- convert to string in iso8601 format.
- If obj is decimal.Decimal return string representation.
- If obj is list, sanitize each element in the list.
- If obj is dict, return the dict.
- If obj is OpenAPI model, return the properties dict.
-
- :param obj: The data to serialize.
- :return: The serialized form of data.
- """
- if obj is None:
- return None
- elif isinstance(obj, Enum):
- return obj.value
- elif isinstance(obj, SecretStr):
- return obj.get_secret_value()
- elif isinstance(obj, self.PRIMITIVE_TYPES):
- return obj
- elif isinstance(obj, list):
- return [
- self.sanitize_for_serialization(sub_obj) for sub_obj in obj
- ]
- elif isinstance(obj, tuple):
- return tuple(
- self.sanitize_for_serialization(sub_obj) for sub_obj in obj
- )
- elif isinstance(obj, (datetime.datetime, datetime.date)):
- return obj.isoformat()
- elif isinstance(obj, decimal.Decimal):
- return str(obj)
-
- elif isinstance(obj, dict):
- obj_dict = obj
- else:
- # Convert model obj to dict except
- # attributes `openapi_types`, `attribute_map`
- # and attributes which value is not None.
- # Convert attribute name to json key in
- # model definition for request.
- if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')):
- obj_dict = obj.to_dict()
- else:
- obj_dict = obj.__dict__
-
- return {
- key: self.sanitize_for_serialization(val)
- for key, val in obj_dict.items()
- }
-
- def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
- """Deserializes response into an object.
-
- :param response: RESTResponse object to be deserialized.
- :param response_type: class literal for
- deserialized object, or string of class name.
- :param content_type: content type of response.
-
- :return: deserialized object.
- """
-
- # fetch data from response object
- if content_type is None:
- try:
- data = json.loads(response_text)
- except ValueError:
- data = response_text
- elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
- if response_text == "":
- data = ""
- else:
- data = json.loads(response_text)
- elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE):
- data = response_text
- else:
- raise ApiException(
- status=0,
- reason="Unsupported content type: {0}".format(content_type)
- )
-
- return self.__deserialize(data, response_type)
-
- def __deserialize(self, data, klass):
- """Deserializes dict, list, str into an object.
-
- :param data: dict, list or str.
- :param klass: class literal, or string of class name.
-
- :return: object.
- """
- if data is None:
- return None
-
- if isinstance(klass, str):
- if klass.startswith('List['):
- m = re.match(r'List\[(.*)]', klass)
- assert m is not None, "Malformed List type definition"
- sub_kls = m.group(1)
- return [self.__deserialize(sub_data, sub_kls)
- for sub_data in data]
-
- if klass.startswith('Dict['):
- m = re.match(r'Dict\[([^,]*), (.*)]', klass)
- assert m is not None, "Malformed Dict type definition"
- sub_kls = m.group(2)
- return {k: self.__deserialize(v, sub_kls)
- for k, v in data.items()}
-
- # convert str to class
- if klass in self.NATIVE_TYPES_MAPPING:
- klass = self.NATIVE_TYPES_MAPPING[klass]
- else:
- klass = getattr(zrok_api.models, klass)
-
- if klass in self.PRIMITIVE_TYPES:
- return self.__deserialize_primitive(data, klass)
- elif klass == object:
- return self.__deserialize_object(data)
- elif klass == datetime.date:
- return self.__deserialize_date(data)
- elif klass == datetime.datetime:
- return self.__deserialize_datetime(data)
- elif klass == decimal.Decimal:
- return decimal.Decimal(data)
- elif issubclass(klass, Enum):
- return self.__deserialize_enum(data, klass)
- else:
- return self.__deserialize_model(data, klass)
-
- def parameters_to_tuples(self, params, collection_formats):
- """Get parameters as list of tuples, formatting collections.
-
- :param params: Parameters as dict or list of two-tuples
- :param dict collection_formats: Parameter collection formats
- :return: Parameters as list of tuples, collections formatted
- """
- new_params: List[Tuple[str, str]] = []
- if collection_formats is None:
- collection_formats = {}
- for k, v in params.items() if isinstance(params, dict) else params:
- if k in collection_formats:
- collection_format = collection_formats[k]
- if collection_format == 'multi':
- new_params.extend((k, value) for value in v)
- else:
- if collection_format == 'ssv':
- delimiter = ' '
- elif collection_format == 'tsv':
- delimiter = '\t'
- elif collection_format == 'pipes':
- delimiter = '|'
- else: # csv is the default
- delimiter = ','
- new_params.append(
- (k, delimiter.join(str(value) for value in v)))
- else:
- new_params.append((k, v))
- return new_params
-
- def parameters_to_url_query(self, params, collection_formats):
- """Get parameters as list of tuples, formatting collections.
-
- :param params: Parameters as dict or list of two-tuples
- :param dict collection_formats: Parameter collection formats
- :return: URL query string (e.g. a=Hello%20World&b=123)
- """
- new_params: List[Tuple[str, str]] = []
- if collection_formats is None:
- collection_formats = {}
- for k, v in params.items() if isinstance(params, dict) else params:
- if isinstance(v, bool):
- v = str(v).lower()
- if isinstance(v, (int, float)):
- v = str(v)
- if isinstance(v, dict):
- v = json.dumps(v)
-
- if k in collection_formats:
- collection_format = collection_formats[k]
- if collection_format == 'multi':
- new_params.extend((k, quote(str(value))) for value in v)
- else:
- if collection_format == 'ssv':
- delimiter = ' '
- elif collection_format == 'tsv':
- delimiter = '\t'
- elif collection_format == 'pipes':
- delimiter = '|'
- else: # csv is the default
- delimiter = ','
- new_params.append(
- (k, delimiter.join(quote(str(value)) for value in v))
- )
- else:
- new_params.append((k, quote(str(v))))
-
- return "&".join(["=".join(map(str, item)) for item in new_params])
-
- def files_parameters(
- self,
- files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]],
- ):
- """Builds form parameters.
-
- :param files: File parameters.
- :return: Form parameters with files.
- """
- params = []
- for k, v in files.items():
- if isinstance(v, str):
- with open(v, 'rb') as f:
- filename = os.path.basename(f.name)
- filedata = f.read()
- elif isinstance(v, bytes):
- filename = k
- filedata = v
- elif isinstance(v, tuple):
- filename, filedata = v
- elif isinstance(v, list):
- for file_param in v:
- params.extend(self.files_parameters({k: file_param}))
- continue
- else:
- raise ValueError("Unsupported file value")
- mimetype = (
- mimetypes.guess_type(filename)[0]
- or 'application/octet-stream'
- )
- params.append(
- tuple([k, tuple([filename, filedata, mimetype])])
- )
- return params
-
- def select_header_accept(self, accepts: List[str]) -> Optional[str]:
- """Returns `Accept` based on an array of accepts provided.
-
- :param accepts: List of headers.
- :return: Accept (e.g. application/json).
- """
- if not accepts:
- return None
-
- for accept in accepts:
- if re.search('json', accept, re.IGNORECASE):
- return accept
-
- return accepts[0]
-
- def select_header_content_type(self, content_types):
- """Returns `Content-Type` based on an array of content_types provided.
-
- :param content_types: List of content-types.
- :return: Content-Type (e.g. application/json).
- """
- if not content_types:
- return None
-
- for content_type in content_types:
- if re.search('json', content_type, re.IGNORECASE):
- return content_type
-
- return content_types[0]
-
- def update_params_for_auth(
- self,
- headers,
- queries,
- auth_settings,
- resource_path,
- method,
- body,
- request_auth=None
- ) -> None:
- """Updates header and query params based on authentication setting.
-
- :param headers: Header parameters dict to be updated.
- :param queries: Query parameters tuple list to be updated.
- :param auth_settings: Authentication setting identifiers list.
- :resource_path: A string representation of the HTTP request resource path.
- :method: A string representation of the HTTP request method.
- :body: A object representing the body of the HTTP request.
- The object type is the return value of sanitize_for_serialization().
- :param request_auth: if set, the provided settings will
- override the token in the configuration.
- """
- if not auth_settings:
- return
-
- if request_auth:
- self._apply_auth_params(
- headers,
- queries,
- resource_path,
- method,
- body,
- request_auth
- )
- else:
- for auth in auth_settings:
- auth_setting = self.configuration.auth_settings().get(auth)
- if auth_setting:
- self._apply_auth_params(
- headers,
- queries,
- resource_path,
- method,
- body,
- auth_setting
- )
-
- def _apply_auth_params(
- self,
- headers,
- queries,
- resource_path,
- method,
- body,
- auth_setting
- ) -> None:
- """Updates the request parameters based on a single auth_setting
-
- :param headers: Header parameters dict to be updated.
- :param queries: Query parameters tuple list to be updated.
- :resource_path: A string representation of the HTTP request resource path.
- :method: A string representation of the HTTP request method.
- :body: A object representing the body of the HTTP request.
- The object type is the return value of sanitize_for_serialization().
- :param auth_setting: auth settings for the endpoint
- """
- if auth_setting['in'] == 'cookie':
- headers['Cookie'] = auth_setting['value']
- elif auth_setting['in'] == 'header':
- if auth_setting['type'] != 'http-signature':
- headers[auth_setting['key']] = auth_setting['value']
- elif auth_setting['in'] == 'query':
- queries.append((auth_setting['key'], auth_setting['value']))
- else:
- raise ApiValueError(
- 'Authentication token must be in `query` or `header`'
- )
-
- def __deserialize_file(self, response):
- """Deserializes body to file
-
- Saves response body into a file in a temporary folder,
- using the filename from the `Content-Disposition` header if provided.
-
- handle file downloading
- save response body into a tmp file and return the instance
-
- :param response: RESTResponse.
- :return: file path.
- """
- fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path)
- os.close(fd)
- os.remove(path)
-
- content_disposition = response.getheader("Content-Disposition")
- if content_disposition:
- m = re.search(
- r'filename=[\'"]?([^\'"\s]+)[\'"]?',
- content_disposition
- )
- assert m is not None, "Unexpected 'content-disposition' header value"
- filename = m.group(1)
- path = os.path.join(os.path.dirname(path), filename)
-
- with open(path, "wb") as f:
- f.write(response.data)
-
- return path
-
- def __deserialize_primitive(self, data, klass):
- """Deserializes string to primitive type.
-
- :param data: str.
- :param klass: class literal.
-
- :return: int, long, float, str, bool.
- """
- try:
- return klass(data)
- except UnicodeEncodeError:
- return str(data)
- except TypeError:
- return data
-
- def __deserialize_object(self, value):
- """Return an original value.
-
- :return: object.
- """
- return value
-
- def __deserialize_date(self, string):
- """Deserializes string to date.
-
- :param string: str.
- :return: date.
- """
- try:
- return parse(string).date()
- except ImportError:
- return string
- except ValueError:
- raise rest.ApiException(
- status=0,
- reason="Failed to parse `{0}` as date object".format(string)
- )
-
- def __deserialize_datetime(self, string):
- """Deserializes string to datetime.
-
- The string should be in iso8601 datetime format.
-
- :param string: str.
- :return: datetime.
- """
- try:
- return parse(string)
- except ImportError:
- return string
- except ValueError:
- raise rest.ApiException(
- status=0,
- reason=(
- "Failed to parse `{0}` as datetime object"
- .format(string)
- )
- )
-
- def __deserialize_enum(self, data, klass):
- """Deserializes primitive type to enum.
-
- :param data: primitive type.
- :param klass: class literal.
- :return: enum value.
- """
- try:
- return klass(data)
- except ValueError:
- raise rest.ApiException(
- status=0,
- reason=(
- "Failed to parse `{0}` as `{1}`"
- .format(data, klass)
- )
- )
-
- def __deserialize_model(self, data, klass):
- """Deserializes list or dict to model.
-
- :param data: dict, list.
- :param klass: class literal.
- :return: model object.
- """
-
- return klass.from_dict(data)
diff --git a/sdk/python/sdk/zrok/zrok_api/api_response.py b/sdk/python/sdk/zrok/zrok_api/api_response.py
deleted file mode 100644
index 9bc7c11f..00000000
--- a/sdk/python/sdk/zrok/zrok_api/api_response.py
+++ /dev/null
@@ -1,21 +0,0 @@
-"""API response object."""
-
-from __future__ import annotations
-from typing import Optional, Generic, Mapping, TypeVar
-from pydantic import Field, StrictInt, StrictBytes, BaseModel
-
-T = TypeVar("T")
-
-class ApiResponse(BaseModel, Generic[T]):
- """
- API response object
- """
-
- status_code: StrictInt = Field(description="HTTP status code")
- headers: Optional[Mapping[str, str]] = Field(None, description="HTTP headers")
- data: T = Field(description="Deserialized data given the data type")
- raw_data: StrictBytes = Field(description="Raw data (HTTP response body)")
-
- model_config = {
- "arbitrary_types_allowed": True
- }
diff --git a/sdk/python/sdk/zrok/zrok_api/configuration.py b/sdk/python/sdk/zrok/zrok_api/configuration.py
deleted file mode 100644
index d504babc..00000000
--- a/sdk/python/sdk/zrok/zrok_api/configuration.py
+++ /dev/null
@@ -1,602 +0,0 @@
-# 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 copy
-import http.client as httplib
-import logging
-from logging import FileHandler
-import multiprocessing
-import sys
-from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
-from typing_extensions import NotRequired, Self
-
-import urllib3
-
-
-JSON_SCHEMA_VALIDATION_KEYWORDS = {
- 'multipleOf', 'maximum', 'exclusiveMaximum',
- 'minimum', 'exclusiveMinimum', 'maxLength',
- 'minLength', 'pattern', 'maxItems', 'minItems'
-}
-
-ServerVariablesT = Dict[str, str]
-
-GenericAuthSetting = TypedDict(
- "GenericAuthSetting",
- {
- "type": str,
- "in": str,
- "key": str,
- "value": str,
- },
-)
-
-
-OAuth2AuthSetting = TypedDict(
- "OAuth2AuthSetting",
- {
- "type": Literal["oauth2"],
- "in": Literal["header"],
- "key": Literal["Authorization"],
- "value": str,
- },
-)
-
-
-APIKeyAuthSetting = TypedDict(
- "APIKeyAuthSetting",
- {
- "type": Literal["api_key"],
- "in": str,
- "key": str,
- "value": Optional[str],
- },
-)
-
-
-BasicAuthSetting = TypedDict(
- "BasicAuthSetting",
- {
- "type": Literal["basic"],
- "in": Literal["header"],
- "key": Literal["Authorization"],
- "value": Optional[str],
- },
-)
-
-
-BearerFormatAuthSetting = TypedDict(
- "BearerFormatAuthSetting",
- {
- "type": Literal["bearer"],
- "in": Literal["header"],
- "format": Literal["JWT"],
- "key": Literal["Authorization"],
- "value": str,
- },
-)
-
-
-BearerAuthSetting = TypedDict(
- "BearerAuthSetting",
- {
- "type": Literal["bearer"],
- "in": Literal["header"],
- "key": Literal["Authorization"],
- "value": str,
- },
-)
-
-
-HTTPSignatureAuthSetting = TypedDict(
- "HTTPSignatureAuthSetting",
- {
- "type": Literal["http-signature"],
- "in": Literal["header"],
- "key": Literal["Authorization"],
- "value": None,
- },
-)
-
-
-AuthSettings = TypedDict(
- "AuthSettings",
- {
- "key": APIKeyAuthSetting,
- },
- total=False,
-)
-
-
-class HostSettingVariable(TypedDict):
- description: str
- default_value: str
- enum_values: List[str]
-
-
-class HostSetting(TypedDict):
- url: str
- description: str
- variables: NotRequired[Dict[str, HostSettingVariable]]
-
-
-class Configuration:
- """This class contains various settings of the API client.
-
- :param host: Base url.
- :param ignore_operation_servers
- Boolean to ignore operation servers for the API client.
- Config will use `host` as the base url regardless of the operation servers.
- :param api_key: Dict to store API key(s).
- Each entry in the dict specifies an API key.
- The dict key is the name of the security scheme in the OAS specification.
- The dict value is the API key secret.
- :param api_key_prefix: Dict to store API prefix (e.g. Bearer).
- The dict key is the name of the security scheme in the OAS specification.
- The dict value is an API key prefix when generating the auth data.
- :param username: Username for HTTP basic authentication.
- :param password: Password for HTTP basic authentication.
- :param access_token: Access token.
- :param server_index: Index to servers configuration.
- :param server_variables: Mapping with string values to replace variables in
- templated server configuration. The validation of enums is performed for
- variables with defined enum values before.
- :param server_operation_index: Mapping from operation ID to an index to server
- configuration.
- :param server_operation_variables: Mapping from operation ID to a mapping with
- string values to replace variables in templated server configuration.
- The validation of enums is performed for variables with defined enum
- values before.
- :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
- in PEM format.
- :param retries: Number of retries for API requests.
- :param ca_cert_data: verify the peer using concatenated CA certificate data
- in PEM (str) or DER (bytes) format.
-
- :Example:
-
- API Key Authentication Example.
- Given the following security scheme in the OpenAPI specification:
- components:
- securitySchemes:
- cookieAuth: # name for the security scheme
- type: apiKey
- in: cookie
- name: JSESSIONID # cookie name
-
- You can programmatically set the cookie:
-
-conf = zrok_api.Configuration(
- api_key={'cookieAuth': 'abc123'}
- api_key_prefix={'cookieAuth': 'JSESSIONID'}
-)
-
- The following cookie will be added to the HTTP request:
- Cookie: JSESSIONID abc123
- """
-
- _default: ClassVar[Optional[Self]] = None
-
- def __init__(
- self,
- host: Optional[str]=None,
- api_key: Optional[Dict[str, str]]=None,
- api_key_prefix: Optional[Dict[str, str]]=None,
- username: Optional[str]=None,
- password: Optional[str]=None,
- access_token: Optional[str]=None,
- server_index: Optional[int]=None,
- server_variables: Optional[ServerVariablesT]=None,
- server_operation_index: Optional[Dict[int, int]]=None,
- server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None,
- ignore_operation_servers: bool=False,
- ssl_ca_cert: Optional[str]=None,
- retries: Optional[int] = None,
- ca_cert_data: Optional[Union[str, bytes]] = None,
- *,
- debug: Optional[bool] = None,
- ) -> None:
- """Constructor
- """
- self._base_path = "/api/v1" if host is None else host
- """Default Base url
- """
- self.server_index = 0 if server_index is None and host is None else server_index
- self.server_operation_index = server_operation_index or {}
- """Default server index
- """
- self.server_variables = server_variables or {}
- self.server_operation_variables = server_operation_variables or {}
- """Default server variables
- """
- self.ignore_operation_servers = ignore_operation_servers
- """Ignore operation servers
- """
- self.temp_folder_path = None
- """Temp file folder for downloading files
- """
- # Authentication Settings
- self.api_key = {}
- if api_key:
- self.api_key = api_key
- """dict to store API key(s)
- """
- self.api_key_prefix = {}
- if api_key_prefix:
- self.api_key_prefix = api_key_prefix
- """dict to store API prefix (e.g. Bearer)
- """
- self.refresh_api_key_hook = None
- """function hook to refresh API key if expired
- """
- self.username = username
- """Username for HTTP basic authentication
- """
- self.password = password
- """Password for HTTP basic authentication
- """
- self.access_token = access_token
- """Access token
- """
- self.logger = {}
- """Logging Settings
- """
- self.logger["package_logger"] = logging.getLogger("zrok_api")
- self.logger["urllib3_logger"] = logging.getLogger("urllib3")
- self.logger_format = '%(asctime)s %(levelname)s %(message)s'
- """Log format
- """
- self.logger_stream_handler = None
- """Log stream handler
- """
- self.logger_file_handler: Optional[FileHandler] = None
- """Log file handler
- """
- self.logger_file = None
- """Debug file location
- """
- if debug is not None:
- self.debug = debug
- else:
- self.__debug = False
- """Debug switch
- """
-
- self.verify_ssl = True
- """SSL/TLS verification
- Set this to false to skip verifying SSL certificate when calling API
- from https server.
- """
- self.ssl_ca_cert = ssl_ca_cert
- """Set this to customize the certificate file to verify the peer.
- """
- self.ca_cert_data = ca_cert_data
- """Set this to verify the peer using PEM (str) or DER (bytes)
- certificate data.
- """
- self.cert_file = None
- """client certificate file
- """
- self.key_file = None
- """client key file
- """
- self.assert_hostname = None
- """Set this to True/False to enable/disable SSL hostname verification.
- """
- self.tls_server_name = None
- """SSL/TLS Server Name Indication (SNI)
- Set this to the SNI value expected by the server.
- """
-
- self.connection_pool_maxsize = multiprocessing.cpu_count() * 5
- """urllib3 connection pool's maximum number of connections saved
- per pool. urllib3 uses 1 connection as default value, but this is
- not the best value when you are making a lot of possibly parallel
- requests to the same host, which is often the case here.
- cpu_count * 5 is used as default value to increase performance.
- """
-
- self.proxy: Optional[str] = None
- """Proxy URL
- """
- self.proxy_headers = None
- """Proxy headers
- """
- self.safe_chars_for_path_param = ''
- """Safe chars for path_param
- """
- self.retries = retries
- """Adding retries to override urllib3 default value 3
- """
- # Enable client side validation
- self.client_side_validation = True
-
- self.socket_options = None
- """Options to pass down to the underlying urllib3 socket
- """
-
- self.datetime_format = "%Y-%m-%dT%H:%M:%S.%f%z"
- """datetime format
- """
-
- self.date_format = "%Y-%m-%d"
- """date format
- """
-
- def __deepcopy__(self, memo: Dict[int, Any]) -> Self:
- cls = self.__class__
- result = cls.__new__(cls)
- memo[id(self)] = result
- for k, v in self.__dict__.items():
- if k not in ('logger', 'logger_file_handler'):
- setattr(result, k, copy.deepcopy(v, memo))
- # shallow copy of loggers
- result.logger = copy.copy(self.logger)
- # use setters to configure loggers
- result.logger_file = self.logger_file
- result.debug = self.debug
- return result
-
- def __setattr__(self, name: str, value: Any) -> None:
- object.__setattr__(self, name, value)
-
- @classmethod
- def set_default(cls, default: Optional[Self]) -> None:
- """Set default instance of configuration.
-
- It stores default configuration, which can be
- returned by get_default_copy method.
-
- :param default: object of Configuration
- """
- cls._default = default
-
- @classmethod
- def get_default_copy(cls) -> Self:
- """Deprecated. Please use `get_default` instead.
-
- Deprecated. Please use `get_default` instead.
-
- :return: The configuration object.
- """
- return cls.get_default()
-
- @classmethod
- def get_default(cls) -> Self:
- """Return the default configuration.
-
- This method returns newly created, based on default constructor,
- object of Configuration class or returns a copy of default
- configuration.
-
- :return: The configuration object.
- """
- if cls._default is None:
- cls._default = cls()
- return cls._default
-
- @property
- def logger_file(self) -> Optional[str]:
- """The logger file.
-
- If the logger_file is None, then add stream handler and remove file
- handler. Otherwise, add file handler and remove stream handler.
-
- :param value: The logger_file path.
- :type: str
- """
- return self.__logger_file
-
- @logger_file.setter
- def logger_file(self, value: Optional[str]) -> None:
- """The logger file.
-
- If the logger_file is None, then add stream handler and remove file
- handler. Otherwise, add file handler and remove stream handler.
-
- :param value: The logger_file path.
- :type: str
- """
- self.__logger_file = value
- if self.__logger_file:
- # If set logging file,
- # then add file handler and remove stream handler.
- self.logger_file_handler = logging.FileHandler(self.__logger_file)
- self.logger_file_handler.setFormatter(self.logger_formatter)
- for _, logger in self.logger.items():
- logger.addHandler(self.logger_file_handler)
-
- @property
- def debug(self) -> bool:
- """Debug status
-
- :param value: The debug status, True or False.
- :type: bool
- """
- return self.__debug
-
- @debug.setter
- def debug(self, value: bool) -> None:
- """Debug status
-
- :param value: The debug status, True or False.
- :type: bool
- """
- self.__debug = value
- if self.__debug:
- # if debug status is True, turn on debug logging
- for _, logger in self.logger.items():
- logger.setLevel(logging.DEBUG)
- # turn on httplib debug
- httplib.HTTPConnection.debuglevel = 1
- else:
- # if debug status is False, turn off debug logging,
- # setting log level to default `logging.WARNING`
- for _, logger in self.logger.items():
- logger.setLevel(logging.WARNING)
- # turn off httplib debug
- httplib.HTTPConnection.debuglevel = 0
-
- @property
- def logger_format(self) -> str:
- """The logger format.
-
- The logger_formatter will be updated when sets logger_format.
-
- :param value: The format string.
- :type: str
- """
- return self.__logger_format
-
- @logger_format.setter
- def logger_format(self, value: str) -> None:
- """The logger format.
-
- The logger_formatter will be updated when sets logger_format.
-
- :param value: The format string.
- :type: str
- """
- self.__logger_format = value
- self.logger_formatter = logging.Formatter(self.__logger_format)
-
- def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]:
- """Gets API key (with prefix if set).
-
- :param identifier: The identifier of apiKey.
- :param alias: The alternative identifier of apiKey.
- :return: The token for api key authentication.
- """
- if self.refresh_api_key_hook is not None:
- self.refresh_api_key_hook(self)
- key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None)
- if key:
- prefix = self.api_key_prefix.get(identifier)
- if prefix:
- return "%s %s" % (prefix, key)
- else:
- return key
-
- return None
-
- def get_basic_auth_token(self) -> Optional[str]:
- """Gets HTTP basic authentication header (string).
-
- :return: The token for basic HTTP authentication.
- """
- username = ""
- if self.username is not None:
- username = self.username
- password = ""
- if self.password is not None:
- password = self.password
- return urllib3.util.make_headers(
- basic_auth=username + ':' + password
- ).get('authorization')
-
- def auth_settings(self)-> AuthSettings:
- """Gets Auth Settings dict for api client.
-
- :return: The Auth Settings information dict.
- """
- auth: AuthSettings = {}
- if 'key' in self.api_key:
- auth['key'] = {
- 'type': 'api_key',
- 'in': 'header',
- 'key': 'x-token',
- 'value': self.get_api_key_with_prefix(
- 'key',
- ),
- }
- return auth
-
- def to_debug_report(self) -> str:
- """Gets the essential information for debugging.
-
- :return: The report for debugging.
- """
- return "Python SDK Debug Report:\n"\
- "OS: {env}\n"\
- "Python Version: {pyversion}\n"\
- "Version of the API: 1.0.0\n"\
- "SDK Package Version: 1.0.0".\
- format(env=sys.platform, pyversion=sys.version)
-
- def get_host_settings(self) -> List[HostSetting]:
- """Gets an array of host settings
-
- :return: An array of host settings
- """
- return [
- {
- 'url': "/api/v1",
- 'description': "No description provided",
- }
- ]
-
- def get_host_from_settings(
- self,
- index: Optional[int],
- variables: Optional[ServerVariablesT]=None,
- servers: Optional[List[HostSetting]]=None,
- ) -> str:
- """Gets host URL based on the index and variables
- :param index: array index of the host settings
- :param variables: hash of variable and the corresponding value
- :param servers: an array of host settings or None
- :return: URL based on host settings
- """
- if index is None:
- return self._base_path
-
- variables = {} if variables is None else variables
- servers = self.get_host_settings() if servers is None else servers
-
- try:
- server = servers[index]
- except IndexError:
- raise ValueError(
- "Invalid index {0} when selecting the host settings. "
- "Must be less than {1}".format(index, len(servers)))
-
- url = server['url']
-
- # go through variables and replace placeholders
- for variable_name, variable in server.get('variables', {}).items():
- used_value = variables.get(
- variable_name, variable['default_value'])
-
- if 'enum_values' in variable \
- and used_value not in variable['enum_values']:
- raise ValueError(
- "The variable `{0}` in the host URL has invalid value "
- "{1}. Must be {2}.".format(
- variable_name, variables[variable_name],
- variable['enum_values']))
-
- url = url.replace("{" + variable_name + "}", used_value)
-
- return url
-
- @property
- def host(self) -> str:
- """Return generated host."""
- return self.get_host_from_settings(self.server_index, variables=self.server_variables)
-
- @host.setter
- def host(self, value: str) -> None:
- """Fix base path."""
- self._base_path = value
- self.server_index = None
diff --git a/sdk/python/sdk/zrok/zrok_api/exceptions.py b/sdk/python/sdk/zrok/zrok_api/exceptions.py
deleted file mode 100644
index 1b37d862..00000000
--- a/sdk/python/sdk/zrok/zrok_api/exceptions.py
+++ /dev/null
@@ -1,216 +0,0 @@
-# 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
-
-from typing import Any, Optional
-from typing_extensions import Self
-
-class OpenApiException(Exception):
- """The base exception class for all OpenAPIExceptions"""
-
-
-class ApiTypeError(OpenApiException, TypeError):
- def __init__(self, msg, path_to_item=None, valid_classes=None,
- key_type=None) -> None:
- """ Raises an exception for TypeErrors
-
- Args:
- msg (str): the exception message
-
- Keyword Args:
- path_to_item (list): a list of keys an indices to get to the
- current_item
- None if unset
- valid_classes (tuple): the primitive classes that current item
- should be an instance of
- None if unset
- key_type (bool): False if our value is a value in a dict
- True if it is a key in a dict
- False if our item is an item in a list
- None if unset
- """
- self.path_to_item = path_to_item
- self.valid_classes = valid_classes
- self.key_type = key_type
- full_msg = msg
- if path_to_item:
- full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
- super(ApiTypeError, self).__init__(full_msg)
-
-
-class ApiValueError(OpenApiException, ValueError):
- def __init__(self, msg, path_to_item=None) -> None:
- """
- Args:
- msg (str): the exception message
-
- Keyword Args:
- path_to_item (list) the path to the exception in the
- received_data dict. None if unset
- """
-
- self.path_to_item = path_to_item
- full_msg = msg
- if path_to_item:
- full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
- super(ApiValueError, self).__init__(full_msg)
-
-
-class ApiAttributeError(OpenApiException, AttributeError):
- def __init__(self, msg, path_to_item=None) -> None:
- """
- Raised when an attribute reference or assignment fails.
-
- Args:
- msg (str): the exception message
-
- Keyword Args:
- path_to_item (None/list) the path to the exception in the
- received_data dict
- """
- self.path_to_item = path_to_item
- full_msg = msg
- if path_to_item:
- full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
- super(ApiAttributeError, self).__init__(full_msg)
-
-
-class ApiKeyError(OpenApiException, KeyError):
- def __init__(self, msg, path_to_item=None) -> None:
- """
- Args:
- msg (str): the exception message
-
- Keyword Args:
- path_to_item (None/list) the path to the exception in the
- received_data dict
- """
- self.path_to_item = path_to_item
- full_msg = msg
- if path_to_item:
- full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
- super(ApiKeyError, self).__init__(full_msg)
-
-
-class ApiException(OpenApiException):
-
- def __init__(
- self,
- status=None,
- reason=None,
- http_resp=None,
- *,
- body: Optional[str] = None,
- data: Optional[Any] = None,
- ) -> None:
- self.status = status
- self.reason = reason
- self.body = body
- self.data = data
- self.headers = None
-
- if http_resp:
- if self.status is None:
- self.status = http_resp.status
- if self.reason is None:
- self.reason = http_resp.reason
- if self.body is None:
- try:
- self.body = http_resp.data.decode('utf-8')
- except Exception:
- pass
- self.headers = http_resp.getheaders()
-
- @classmethod
- def from_response(
- cls,
- *,
- http_resp,
- body: Optional[str],
- data: Optional[Any],
- ) -> Self:
- if http_resp.status == 400:
- raise BadRequestException(http_resp=http_resp, body=body, data=data)
-
- if http_resp.status == 401:
- raise UnauthorizedException(http_resp=http_resp, body=body, data=data)
-
- if http_resp.status == 403:
- raise ForbiddenException(http_resp=http_resp, body=body, data=data)
-
- if http_resp.status == 404:
- raise NotFoundException(http_resp=http_resp, body=body, data=data)
-
- # Added new conditions for 409 and 422
- if http_resp.status == 409:
- raise ConflictException(http_resp=http_resp, body=body, data=data)
-
- if http_resp.status == 422:
- raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)
-
- if 500 <= http_resp.status <= 599:
- raise ServiceException(http_resp=http_resp, body=body, data=data)
- raise ApiException(http_resp=http_resp, body=body, data=data)
-
- def __str__(self):
- """Custom error messages for exception"""
- error_message = "({0})\n"\
- "Reason: {1}\n".format(self.status, self.reason)
- if self.headers:
- error_message += "HTTP response headers: {0}\n".format(
- self.headers)
-
- if self.data or self.body:
- error_message += "HTTP response body: {0}\n".format(self.data or self.body)
-
- return error_message
-
-
-class BadRequestException(ApiException):
- pass
-
-
-class NotFoundException(ApiException):
- pass
-
-
-class UnauthorizedException(ApiException):
- pass
-
-
-class ForbiddenException(ApiException):
- pass
-
-
-class ServiceException(ApiException):
- pass
-
-
-class ConflictException(ApiException):
- """Exception for HTTP 409 Conflict."""
- pass
-
-
-class UnprocessableEntityException(ApiException):
- """Exception for HTTP 422 Unprocessable Entity."""
- pass
-
-
-def render_path(path_to_item):
- """Returns a string representation of a path"""
- result = ""
- for pth in path_to_item:
- if isinstance(pth, int):
- result += "[{0}]".format(pth)
- else:
- result += "['{0}']".format(pth)
- return result
diff --git a/sdk/python/sdk/zrok/zrok_api/models/__init__.py b/sdk/python/sdk/zrok/zrok_api/models/__init__.py
deleted file mode 100644
index c4f5e3c4..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/__init__.py
+++ /dev/null
@@ -1,67 +0,0 @@
-# coding: utf-8
-
-# flake8: noqa
-"""
- 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 models into model package
-from zrok_api.models.access201_response import Access201Response
-from zrok_api.models.access_request import AccessRequest
-from zrok_api.models.add_organization_member_request import AddOrganizationMemberRequest
-from zrok_api.models.auth_user import AuthUser
-from zrok_api.models.change_password_request import ChangePasswordRequest
-from zrok_api.models.client_version_check_request import ClientVersionCheckRequest
-from zrok_api.models.configuration import Configuration
-from zrok_api.models.create_frontend201_response import CreateFrontend201Response
-from zrok_api.models.create_frontend_request import CreateFrontendRequest
-from zrok_api.models.create_identity201_response import CreateIdentity201Response
-from zrok_api.models.create_identity_request import CreateIdentityRequest
-from zrok_api.models.create_organization201_response import CreateOrganization201Response
-from zrok_api.models.create_organization_request import CreateOrganizationRequest
-from zrok_api.models.disable_request import DisableRequest
-from zrok_api.models.enable_request import EnableRequest
-from zrok_api.models.environment import Environment
-from zrok_api.models.environment_and_resources import EnvironmentAndResources
-from zrok_api.models.frontend import Frontend
-from zrok_api.models.get_sparklines200_response import GetSparklines200Response
-from zrok_api.models.get_sparklines_request import GetSparklinesRequest
-from zrok_api.models.invite_request import InviteRequest
-from zrok_api.models.invite_token_generate_request import InviteTokenGenerateRequest
-from zrok_api.models.list_frontends200_response_inner import ListFrontends200ResponseInner
-from zrok_api.models.list_memberships200_response import ListMemberships200Response
-from zrok_api.models.list_memberships200_response_memberships_inner import ListMemberships200ResponseMembershipsInner
-from zrok_api.models.list_organization_members200_response import ListOrganizationMembers200Response
-from zrok_api.models.list_organization_members200_response_members_inner import ListOrganizationMembers200ResponseMembersInner
-from zrok_api.models.list_organizations200_response import ListOrganizations200Response
-from zrok_api.models.list_organizations200_response_organizations_inner import ListOrganizations200ResponseOrganizationsInner
-from zrok_api.models.login_request import LoginRequest
-from zrok_api.models.metrics import Metrics
-from zrok_api.models.metrics_sample import MetricsSample
-from zrok_api.models.overview import Overview
-from zrok_api.models.principal import Principal
-from zrok_api.models.regenerate_account_token200_response import RegenerateAccountToken200Response
-from zrok_api.models.regenerate_account_token_request import RegenerateAccountTokenRequest
-from zrok_api.models.register_request import RegisterRequest
-from zrok_api.models.remove_organization_member_request import RemoveOrganizationMemberRequest
-from zrok_api.models.reset_password_request import ResetPasswordRequest
-from zrok_api.models.share import Share
-from zrok_api.models.share_request import ShareRequest
-from zrok_api.models.share_response import ShareResponse
-from zrok_api.models.spark_data_sample import SparkDataSample
-from zrok_api.models.unaccess_request import UnaccessRequest
-from zrok_api.models.unshare_request import UnshareRequest
-from zrok_api.models.update_access_request import UpdateAccessRequest
-from zrok_api.models.update_frontend_request import UpdateFrontendRequest
-from zrok_api.models.update_share_request import UpdateShareRequest
-from zrok_api.models.verify200_response import Verify200Response
-from zrok_api.models.verify_request import VerifyRequest
-from zrok_api.models.version_inventory200_response import VersionInventory200Response
diff --git a/sdk/python/sdk/zrok/zrok_api/models/access201_response.py b/sdk/python/sdk/zrok/zrok_api/models/access201_response.py
deleted file mode 100644
index 6058082c..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/access201_response.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Access201Response(BaseModel):
- """
- Access201Response
- """ # noqa: E501
- frontend_token: Optional[StrictStr] = Field(default=None, alias="frontendToken")
- backend_mode: Optional[StrictStr] = Field(default=None, alias="backendMode")
- __properties: ClassVar[List[str]] = ["frontendToken", "backendMode"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Access201Response from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Access201Response from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "frontendToken": obj.get("frontendToken"),
- "backendMode": obj.get("backendMode")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/access_request.py b/sdk/python/sdk/zrok/zrok_api/models/access_request.py
deleted file mode 100644
index 18eb9837..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/access_request.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class AccessRequest(BaseModel):
- """
- AccessRequest
- """ # noqa: E501
- env_zid: Optional[StrictStr] = Field(default=None, alias="envZId")
- share_token: Optional[StrictStr] = Field(default=None, alias="shareToken")
- bind_address: Optional[StrictStr] = Field(default=None, alias="bindAddress")
- description: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["envZId", "shareToken", "bindAddress", "description"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of AccessRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of AccessRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "envZId": obj.get("envZId"),
- "shareToken": obj.get("shareToken"),
- "bindAddress": obj.get("bindAddress"),
- "description": obj.get("description")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/add_organization_member_request.py b/sdk/python/sdk/zrok/zrok_api/models/add_organization_member_request.py
deleted file mode 100644
index d6db9e38..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/add_organization_member_request.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class AddOrganizationMemberRequest(BaseModel):
- """
- AddOrganizationMemberRequest
- """ # noqa: E501
- organization_token: Optional[StrictStr] = Field(default=None, alias="organizationToken")
- email: Optional[StrictStr] = None
- admin: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["organizationToken", "email", "admin"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of AddOrganizationMemberRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of AddOrganizationMemberRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "organizationToken": obj.get("organizationToken"),
- "email": obj.get("email"),
- "admin": obj.get("admin")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/auth_user.py b/sdk/python/sdk/zrok/zrok_api/models/auth_user.py
deleted file mode 100644
index b8e1718d..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/auth_user.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class AuthUser(BaseModel):
- """
- AuthUser
- """ # noqa: E501
- username: Optional[StrictStr] = None
- password: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["username", "password"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of AuthUser from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of AuthUser from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "username": obj.get("username"),
- "password": obj.get("password")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/change_password_request.py b/sdk/python/sdk/zrok/zrok_api/models/change_password_request.py
deleted file mode 100644
index dcbdafb3..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/change_password_request.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ChangePasswordRequest(BaseModel):
- """
- ChangePasswordRequest
- """ # noqa: E501
- email: Optional[StrictStr] = None
- old_password: Optional[StrictStr] = Field(default=None, alias="oldPassword")
- new_password: Optional[StrictStr] = Field(default=None, alias="newPassword")
- __properties: ClassVar[List[str]] = ["email", "oldPassword", "newPassword"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ChangePasswordRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ChangePasswordRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "email": obj.get("email"),
- "oldPassword": obj.get("oldPassword"),
- "newPassword": obj.get("newPassword")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/client_version_check_request.py b/sdk/python/sdk/zrok/zrok_api/models/client_version_check_request.py
deleted file mode 100644
index 813e57ac..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/client_version_check_request.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ClientVersionCheckRequest(BaseModel):
- """
- ClientVersionCheckRequest
- """ # noqa: E501
- client_version: Optional[StrictStr] = Field(default=None, alias="clientVersion")
- __properties: ClassVar[List[str]] = ["clientVersion"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ClientVersionCheckRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ClientVersionCheckRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "clientVersion": obj.get("clientVersion")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/configuration.py b/sdk/python/sdk/zrok/zrok_api/models/configuration.py
deleted file mode 100644
index ed5ece38..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/configuration.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Configuration(BaseModel):
- """
- Configuration
- """ # noqa: E501
- version: Optional[StrictStr] = None
- tou_link: Optional[StrictStr] = Field(default=None, alias="touLink")
- invites_open: Optional[StrictBool] = Field(default=None, alias="invitesOpen")
- requires_invite_token: Optional[StrictBool] = Field(default=None, alias="requiresInviteToken")
- invite_token_contact: Optional[StrictStr] = Field(default=None, alias="inviteTokenContact")
- __properties: ClassVar[List[str]] = ["version", "touLink", "invitesOpen", "requiresInviteToken", "inviteTokenContact"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Configuration from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Configuration from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "version": obj.get("version"),
- "touLink": obj.get("touLink"),
- "invitesOpen": obj.get("invitesOpen"),
- "requiresInviteToken": obj.get("requiresInviteToken"),
- "inviteTokenContact": obj.get("inviteTokenContact")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/create_frontend201_response.py b/sdk/python/sdk/zrok/zrok_api/models/create_frontend201_response.py
deleted file mode 100644
index 61fc364c..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/create_frontend201_response.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class CreateFrontend201Response(BaseModel):
- """
- CreateFrontend201Response
- """ # noqa: E501
- frontend_token: Optional[StrictStr] = Field(default=None, alias="frontendToken")
- __properties: ClassVar[List[str]] = ["frontendToken"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateFrontend201Response from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateFrontend201Response from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "frontendToken": obj.get("frontendToken")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/create_frontend_request.py b/sdk/python/sdk/zrok/zrok_api/models/create_frontend_request.py
deleted file mode 100644
index 5f7072e8..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/create_frontend_request.py
+++ /dev/null
@@ -1,103 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class CreateFrontendRequest(BaseModel):
- """
- CreateFrontendRequest
- """ # noqa: E501
- z_id: Optional[StrictStr] = Field(default=None, alias="zId")
- url_template: Optional[StrictStr] = None
- public_name: Optional[StrictStr] = None
- permission_mode: Optional[StrictStr] = Field(default=None, alias="permissionMode")
- __properties: ClassVar[List[str]] = ["zId", "url_template", "public_name", "permissionMode"]
-
- @field_validator('permission_mode')
- def permission_mode_validate_enum(cls, value):
- """Validates the enum"""
- if value is None:
- return value
-
- if value not in set(['open', 'closed']):
- raise ValueError("must be one of enum values ('open', 'closed')")
- return value
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateFrontendRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateFrontendRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "zId": obj.get("zId"),
- "url_template": obj.get("url_template"),
- "public_name": obj.get("public_name"),
- "permissionMode": obj.get("permissionMode")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/create_identity201_response.py b/sdk/python/sdk/zrok/zrok_api/models/create_identity201_response.py
deleted file mode 100644
index f2811bbf..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/create_identity201_response.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class CreateIdentity201Response(BaseModel):
- """
- CreateIdentity201Response
- """ # noqa: E501
- identity: Optional[StrictStr] = None
- cfg: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["identity", "cfg"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateIdentity201Response from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateIdentity201Response from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "identity": obj.get("identity"),
- "cfg": obj.get("cfg")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/create_identity_request.py b/sdk/python/sdk/zrok/zrok_api/models/create_identity_request.py
deleted file mode 100644
index 9f21d0a8..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/create_identity_request.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class CreateIdentityRequest(BaseModel):
- """
- CreateIdentityRequest
- """ # noqa: E501
- name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["name"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateIdentityRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateIdentityRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "name": obj.get("name")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/create_organization201_response.py b/sdk/python/sdk/zrok/zrok_api/models/create_organization201_response.py
deleted file mode 100644
index 431bf57a..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/create_organization201_response.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class CreateOrganization201Response(BaseModel):
- """
- CreateOrganization201Response
- """ # noqa: E501
- organization_token: Optional[StrictStr] = Field(default=None, alias="organizationToken")
- __properties: ClassVar[List[str]] = ["organizationToken"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateOrganization201Response from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateOrganization201Response from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "organizationToken": obj.get("organizationToken")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/create_organization_request.py b/sdk/python/sdk/zrok/zrok_api/models/create_organization_request.py
deleted file mode 100644
index de5d6572..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/create_organization_request.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class CreateOrganizationRequest(BaseModel):
- """
- CreateOrganizationRequest
- """ # noqa: E501
- description: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["description"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateOrganizationRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateOrganizationRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "description": obj.get("description")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/disable_request.py b/sdk/python/sdk/zrok/zrok_api/models/disable_request.py
deleted file mode 100644
index a6c30a01..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/disable_request.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class DisableRequest(BaseModel):
- """
- DisableRequest
- """ # noqa: E501
- identity: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["identity"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of DisableRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DisableRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "identity": obj.get("identity")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/enable_request.py b/sdk/python/sdk/zrok/zrok_api/models/enable_request.py
deleted file mode 100644
index ad54886c..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/enable_request.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class EnableRequest(BaseModel):
- """
- EnableRequest
- """ # noqa: E501
- description: Optional[StrictStr] = None
- host: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["description", "host"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of EnableRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of EnableRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "description": obj.get("description"),
- "host": obj.get("host")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/environment.py b/sdk/python/sdk/zrok/zrok_api/models/environment.py
deleted file mode 100644
index 063ff59e..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/environment.py
+++ /dev/null
@@ -1,109 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from zrok_api.models.spark_data_sample import SparkDataSample
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Environment(BaseModel):
- """
- Environment
- """ # noqa: E501
- description: Optional[StrictStr] = None
- host: Optional[StrictStr] = None
- address: Optional[StrictStr] = None
- z_id: Optional[StrictStr] = Field(default=None, alias="zId")
- activity: Optional[List[SparkDataSample]] = None
- limited: Optional[StrictBool] = None
- created_at: Optional[StrictInt] = Field(default=None, alias="createdAt")
- updated_at: Optional[StrictInt] = Field(default=None, alias="updatedAt")
- __properties: ClassVar[List[str]] = ["description", "host", "address", "zId", "activity", "limited", "createdAt", "updatedAt"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Environment from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in activity (list)
- _items = []
- if self.activity:
- for _item_activity in self.activity:
- if _item_activity:
- _items.append(_item_activity.to_dict())
- _dict['activity'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Environment from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "description": obj.get("description"),
- "host": obj.get("host"),
- "address": obj.get("address"),
- "zId": obj.get("zId"),
- "activity": [SparkDataSample.from_dict(_item) for _item in obj["activity"]] if obj.get("activity") is not None else None,
- "limited": obj.get("limited"),
- "createdAt": obj.get("createdAt"),
- "updatedAt": obj.get("updatedAt")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/environment_and_resources.py b/sdk/python/sdk/zrok/zrok_api/models/environment_and_resources.py
deleted file mode 100644
index 65e4f257..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/environment_and_resources.py
+++ /dev/null
@@ -1,111 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
-from zrok_api.models.environment import Environment
-from zrok_api.models.frontend import Frontend
-from zrok_api.models.share import Share
-from typing import Optional, Set
-from typing_extensions import Self
-
-class EnvironmentAndResources(BaseModel):
- """
- EnvironmentAndResources
- """ # noqa: E501
- environment: Optional[Environment] = None
- frontends: Optional[List[Frontend]] = None
- shares: Optional[List[Share]] = None
- __properties: ClassVar[List[str]] = ["environment", "frontends", "shares"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of EnvironmentAndResources from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of environment
- if self.environment:
- _dict['environment'] = self.environment.to_dict()
- # override the default output from pydantic by calling `to_dict()` of each item in frontends (list)
- _items = []
- if self.frontends:
- for _item_frontends in self.frontends:
- if _item_frontends:
- _items.append(_item_frontends.to_dict())
- _dict['frontends'] = _items
- # override the default output from pydantic by calling `to_dict()` of each item in shares (list)
- _items = []
- if self.shares:
- for _item_shares in self.shares:
- if _item_shares:
- _items.append(_item_shares.to_dict())
- _dict['shares'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of EnvironmentAndResources from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "environment": Environment.from_dict(obj["environment"]) if obj.get("environment") is not None else None,
- "frontends": [Frontend.from_dict(_item) for _item in obj["frontends"]] if obj.get("frontends") is not None else None,
- "shares": [Share.from_dict(_item) for _item in obj["shares"]] if obj.get("shares") is not None else None
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/frontend.py b/sdk/python/sdk/zrok/zrok_api/models/frontend.py
deleted file mode 100644
index ae3c4c5d..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/frontend.py
+++ /dev/null
@@ -1,103 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Frontend(BaseModel):
- """
- Frontend
- """ # noqa: E501
- id: Optional[StrictInt] = None
- frontend_token: Optional[StrictStr] = Field(default=None, alias="frontendToken")
- share_token: Optional[StrictStr] = Field(default=None, alias="shareToken")
- backend_mode: Optional[StrictStr] = Field(default=None, alias="backendMode")
- bind_address: Optional[StrictStr] = Field(default=None, alias="bindAddress")
- description: Optional[StrictStr] = None
- z_id: Optional[StrictStr] = Field(default=None, alias="zId")
- created_at: Optional[StrictInt] = Field(default=None, alias="createdAt")
- updated_at: Optional[StrictInt] = Field(default=None, alias="updatedAt")
- __properties: ClassVar[List[str]] = ["id", "frontendToken", "shareToken", "backendMode", "bindAddress", "description", "zId", "createdAt", "updatedAt"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Frontend from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Frontend from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "id": obj.get("id"),
- "frontendToken": obj.get("frontendToken"),
- "shareToken": obj.get("shareToken"),
- "backendMode": obj.get("backendMode"),
- "bindAddress": obj.get("bindAddress"),
- "description": obj.get("description"),
- "zId": obj.get("zId"),
- "createdAt": obj.get("createdAt"),
- "updatedAt": obj.get("updatedAt")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/get_sparklines200_response.py b/sdk/python/sdk/zrok/zrok_api/models/get_sparklines200_response.py
deleted file mode 100644
index 177b0efa..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/get_sparklines200_response.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
-from zrok_api.models.metrics import Metrics
-from typing import Optional, Set
-from typing_extensions import Self
-
-class GetSparklines200Response(BaseModel):
- """
- GetSparklines200Response
- """ # noqa: E501
- sparklines: Optional[List[Metrics]] = None
- __properties: ClassVar[List[str]] = ["sparklines"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of GetSparklines200Response from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in sparklines (list)
- _items = []
- if self.sparklines:
- for _item_sparklines in self.sparklines:
- if _item_sparklines:
- _items.append(_item_sparklines.to_dict())
- _dict['sparklines'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetSparklines200Response from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "sparklines": [Metrics.from_dict(_item) for _item in obj["sparklines"]] if obj.get("sparklines") is not None else None
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/get_sparklines_request.py b/sdk/python/sdk/zrok/zrok_api/models/get_sparklines_request.py
deleted file mode 100644
index d9bef43d..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/get_sparklines_request.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class GetSparklinesRequest(BaseModel):
- """
- GetSparklinesRequest
- """ # noqa: E501
- account: Optional[StrictBool] = None
- environments: Optional[List[StrictStr]] = None
- shares: Optional[List[StrictStr]] = None
- __properties: ClassVar[List[str]] = ["account", "environments", "shares"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of GetSparklinesRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetSparklinesRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "account": obj.get("account"),
- "environments": obj.get("environments"),
- "shares": obj.get("shares")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/invite_request.py b/sdk/python/sdk/zrok/zrok_api/models/invite_request.py
deleted file mode 100644
index 1c5bcc76..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/invite_request.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class InviteRequest(BaseModel):
- """
- InviteRequest
- """ # noqa: E501
- email: Optional[StrictStr] = None
- invite_token: Optional[StrictStr] = Field(default=None, alias="inviteToken")
- __properties: ClassVar[List[str]] = ["email", "inviteToken"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InviteRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InviteRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "email": obj.get("email"),
- "inviteToken": obj.get("inviteToken")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/invite_token_generate_request.py b/sdk/python/sdk/zrok/zrok_api/models/invite_token_generate_request.py
deleted file mode 100644
index dd876de6..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/invite_token_generate_request.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class InviteTokenGenerateRequest(BaseModel):
- """
- InviteTokenGenerateRequest
- """ # noqa: E501
- invite_tokens: Optional[List[StrictStr]] = Field(default=None, alias="inviteTokens")
- __properties: ClassVar[List[str]] = ["inviteTokens"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InviteTokenGenerateRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InviteTokenGenerateRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "inviteTokens": obj.get("inviteTokens")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/list_frontends200_response_inner.py b/sdk/python/sdk/zrok/zrok_api/models/list_frontends200_response_inner.py
deleted file mode 100644
index ff9d1bb4..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/list_frontends200_response_inner.py
+++ /dev/null
@@ -1,97 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ListFrontends200ResponseInner(BaseModel):
- """
- ListFrontends200ResponseInner
- """ # noqa: E501
- frontend_token: Optional[StrictStr] = Field(default=None, alias="frontendToken")
- z_id: Optional[StrictStr] = Field(default=None, alias="zId")
- url_template: Optional[StrictStr] = Field(default=None, alias="urlTemplate")
- public_name: Optional[StrictStr] = Field(default=None, alias="publicName")
- created_at: Optional[StrictInt] = Field(default=None, alias="createdAt")
- updated_at: Optional[StrictInt] = Field(default=None, alias="updatedAt")
- __properties: ClassVar[List[str]] = ["frontendToken", "zId", "urlTemplate", "publicName", "createdAt", "updatedAt"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ListFrontends200ResponseInner from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListFrontends200ResponseInner from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "frontendToken": obj.get("frontendToken"),
- "zId": obj.get("zId"),
- "urlTemplate": obj.get("urlTemplate"),
- "publicName": obj.get("publicName"),
- "createdAt": obj.get("createdAt"),
- "updatedAt": obj.get("updatedAt")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/list_memberships200_response.py b/sdk/python/sdk/zrok/zrok_api/models/list_memberships200_response.py
deleted file mode 100644
index f3db8fa7..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/list_memberships200_response.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
-from zrok_api.models.list_memberships200_response_memberships_inner import ListMemberships200ResponseMembershipsInner
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ListMemberships200Response(BaseModel):
- """
- ListMemberships200Response
- """ # noqa: E501
- memberships: Optional[List[ListMemberships200ResponseMembershipsInner]] = None
- __properties: ClassVar[List[str]] = ["memberships"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ListMemberships200Response from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in memberships (list)
- _items = []
- if self.memberships:
- for _item_memberships in self.memberships:
- if _item_memberships:
- _items.append(_item_memberships.to_dict())
- _dict['memberships'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListMemberships200Response from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "memberships": [ListMemberships200ResponseMembershipsInner.from_dict(_item) for _item in obj["memberships"]] if obj.get("memberships") is not None else None
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/list_memberships200_response_memberships_inner.py b/sdk/python/sdk/zrok/zrok_api/models/list_memberships200_response_memberships_inner.py
deleted file mode 100644
index e39b07b8..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/list_memberships200_response_memberships_inner.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ListMemberships200ResponseMembershipsInner(BaseModel):
- """
- ListMemberships200ResponseMembershipsInner
- """ # noqa: E501
- organization_token: Optional[StrictStr] = Field(default=None, alias="organizationToken")
- description: Optional[StrictStr] = None
- admin: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["organizationToken", "description", "admin"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ListMemberships200ResponseMembershipsInner from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListMemberships200ResponseMembershipsInner from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "organizationToken": obj.get("organizationToken"),
- "description": obj.get("description"),
- "admin": obj.get("admin")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/list_organization_members200_response.py b/sdk/python/sdk/zrok/zrok_api/models/list_organization_members200_response.py
deleted file mode 100644
index 6058124c..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/list_organization_members200_response.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
-from zrok_api.models.list_organization_members200_response_members_inner import ListOrganizationMembers200ResponseMembersInner
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ListOrganizationMembers200Response(BaseModel):
- """
- ListOrganizationMembers200Response
- """ # noqa: E501
- members: Optional[List[ListOrganizationMembers200ResponseMembersInner]] = None
- __properties: ClassVar[List[str]] = ["members"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ListOrganizationMembers200Response from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in members (list)
- _items = []
- if self.members:
- for _item_members in self.members:
- if _item_members:
- _items.append(_item_members.to_dict())
- _dict['members'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListOrganizationMembers200Response from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "members": [ListOrganizationMembers200ResponseMembersInner.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/list_organization_members200_response_members_inner.py b/sdk/python/sdk/zrok/zrok_api/models/list_organization_members200_response_members_inner.py
deleted file mode 100644
index 0266e878..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/list_organization_members200_response_members_inner.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ListOrganizationMembers200ResponseMembersInner(BaseModel):
- """
- ListOrganizationMembers200ResponseMembersInner
- """ # noqa: E501
- email: Optional[StrictStr] = None
- admin: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["email", "admin"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ListOrganizationMembers200ResponseMembersInner from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListOrganizationMembers200ResponseMembersInner from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "email": obj.get("email"),
- "admin": obj.get("admin")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/list_organizations200_response.py b/sdk/python/sdk/zrok/zrok_api/models/list_organizations200_response.py
deleted file mode 100644
index 03fe63da..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/list_organizations200_response.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
-from zrok_api.models.list_organizations200_response_organizations_inner import ListOrganizations200ResponseOrganizationsInner
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ListOrganizations200Response(BaseModel):
- """
- ListOrganizations200Response
- """ # noqa: E501
- organizations: Optional[List[ListOrganizations200ResponseOrganizationsInner]] = None
- __properties: ClassVar[List[str]] = ["organizations"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ListOrganizations200Response from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in organizations (list)
- _items = []
- if self.organizations:
- for _item_organizations in self.organizations:
- if _item_organizations:
- _items.append(_item_organizations.to_dict())
- _dict['organizations'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListOrganizations200Response from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "organizations": [ListOrganizations200ResponseOrganizationsInner.from_dict(_item) for _item in obj["organizations"]] if obj.get("organizations") is not None else None
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/list_organizations200_response_organizations_inner.py b/sdk/python/sdk/zrok/zrok_api/models/list_organizations200_response_organizations_inner.py
deleted file mode 100644
index 463e142a..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/list_organizations200_response_organizations_inner.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ListOrganizations200ResponseOrganizationsInner(BaseModel):
- """
- ListOrganizations200ResponseOrganizationsInner
- """ # noqa: E501
- organization_token: Optional[StrictStr] = Field(default=None, alias="organizationToken")
- description: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["organizationToken", "description"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ListOrganizations200ResponseOrganizationsInner from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ListOrganizations200ResponseOrganizationsInner from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "organizationToken": obj.get("organizationToken"),
- "description": obj.get("description")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/login_request.py b/sdk/python/sdk/zrok/zrok_api/models/login_request.py
deleted file mode 100644
index 6ef640ea..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/login_request.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class LoginRequest(BaseModel):
- """
- LoginRequest
- """ # noqa: E501
- email: Optional[StrictStr] = None
- password: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["email", "password"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of LoginRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of LoginRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "email": obj.get("email"),
- "password": obj.get("password")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/metrics.py b/sdk/python/sdk/zrok/zrok_api/models/metrics.py
deleted file mode 100644
index 40db696c..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/metrics.py
+++ /dev/null
@@ -1,101 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from zrok_api.models.metrics_sample import MetricsSample
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Metrics(BaseModel):
- """
- Metrics
- """ # noqa: E501
- scope: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- period: Optional[Union[StrictFloat, StrictInt]] = None
- samples: Optional[List[MetricsSample]] = None
- __properties: ClassVar[List[str]] = ["scope", "id", "period", "samples"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Metrics from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in samples (list)
- _items = []
- if self.samples:
- for _item_samples in self.samples:
- if _item_samples:
- _items.append(_item_samples.to_dict())
- _dict['samples'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Metrics from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "scope": obj.get("scope"),
- "id": obj.get("id"),
- "period": obj.get("period"),
- "samples": [MetricsSample.from_dict(_item) for _item in obj["samples"]] if obj.get("samples") is not None else None
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/metrics_sample.py b/sdk/python/sdk/zrok/zrok_api/models/metrics_sample.py
deleted file mode 100644
index 678d0c1e..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/metrics_sample.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class MetricsSample(BaseModel):
- """
- MetricsSample
- """ # noqa: E501
- rx: Optional[Union[StrictFloat, StrictInt]] = None
- tx: Optional[Union[StrictFloat, StrictInt]] = None
- timestamp: Optional[Union[StrictFloat, StrictInt]] = None
- __properties: ClassVar[List[str]] = ["rx", "tx", "timestamp"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of MetricsSample from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of MetricsSample from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "rx": obj.get("rx"),
- "tx": obj.get("tx"),
- "timestamp": obj.get("timestamp")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/overview.py b/sdk/python/sdk/zrok/zrok_api/models/overview.py
deleted file mode 100644
index 2feb65cc..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/overview.py
+++ /dev/null
@@ -1,97 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictBool
-from typing import Any, ClassVar, Dict, List, Optional
-from zrok_api.models.environment_and_resources import EnvironmentAndResources
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Overview(BaseModel):
- """
- Overview
- """ # noqa: E501
- account_limited: Optional[StrictBool] = Field(default=None, alias="accountLimited")
- environments: Optional[List[EnvironmentAndResources]] = None
- __properties: ClassVar[List[str]] = ["accountLimited", "environments"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Overview from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in environments (list)
- _items = []
- if self.environments:
- for _item_environments in self.environments:
- if _item_environments:
- _items.append(_item_environments.to_dict())
- _dict['environments'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Overview from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "accountLimited": obj.get("accountLimited"),
- "environments": [EnvironmentAndResources.from_dict(_item) for _item in obj["environments"]] if obj.get("environments") is not None else None
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/principal.py b/sdk/python/sdk/zrok/zrok_api/models/principal.py
deleted file mode 100644
index 6ff9f756..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/principal.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Principal(BaseModel):
- """
- Principal
- """ # noqa: E501
- id: Optional[StrictInt] = None
- email: Optional[StrictStr] = None
- token: Optional[StrictStr] = None
- limitless: Optional[StrictBool] = None
- admin: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["id", "email", "token", "limitless", "admin"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Principal from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Principal from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "id": obj.get("id"),
- "email": obj.get("email"),
- "token": obj.get("token"),
- "limitless": obj.get("limitless"),
- "admin": obj.get("admin")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/regenerate_account_token200_response.py b/sdk/python/sdk/zrok/zrok_api/models/regenerate_account_token200_response.py
deleted file mode 100644
index ccaf7ff4..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/regenerate_account_token200_response.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class RegenerateAccountToken200Response(BaseModel):
- """
- RegenerateAccountToken200Response
- """ # noqa: E501
- account_token: Optional[StrictStr] = Field(default=None, alias="accountToken")
- __properties: ClassVar[List[str]] = ["accountToken"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of RegenerateAccountToken200Response from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of RegenerateAccountToken200Response from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "accountToken": obj.get("accountToken")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/regenerate_account_token_request.py b/sdk/python/sdk/zrok/zrok_api/models/regenerate_account_token_request.py
deleted file mode 100644
index 32f2029f..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/regenerate_account_token_request.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class RegenerateAccountTokenRequest(BaseModel):
- """
- RegenerateAccountTokenRequest
- """ # noqa: E501
- email_address: Optional[StrictStr] = Field(default=None, alias="emailAddress")
- __properties: ClassVar[List[str]] = ["emailAddress"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of RegenerateAccountTokenRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of RegenerateAccountTokenRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "emailAddress": obj.get("emailAddress")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/register_request.py b/sdk/python/sdk/zrok/zrok_api/models/register_request.py
deleted file mode 100644
index f2bf90bd..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/register_request.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class RegisterRequest(BaseModel):
- """
- RegisterRequest
- """ # noqa: E501
- register_token: Optional[StrictStr] = Field(default=None, alias="registerToken")
- password: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["registerToken", "password"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of RegisterRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of RegisterRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "registerToken": obj.get("registerToken"),
- "password": obj.get("password")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/remove_organization_member_request.py b/sdk/python/sdk/zrok/zrok_api/models/remove_organization_member_request.py
deleted file mode 100644
index 28b6bd25..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/remove_organization_member_request.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class RemoveOrganizationMemberRequest(BaseModel):
- """
- RemoveOrganizationMemberRequest
- """ # noqa: E501
- organization_token: Optional[StrictStr] = Field(default=None, alias="organizationToken")
- email: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["organizationToken", "email"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of RemoveOrganizationMemberRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of RemoveOrganizationMemberRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "organizationToken": obj.get("organizationToken"),
- "email": obj.get("email")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/reset_password_request.py b/sdk/python/sdk/zrok/zrok_api/models/reset_password_request.py
deleted file mode 100644
index a81c4bd3..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/reset_password_request.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ResetPasswordRequest(BaseModel):
- """
- ResetPasswordRequest
- """ # noqa: E501
- reset_token: Optional[StrictStr] = Field(default=None, alias="resetToken")
- password: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["resetToken", "password"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ResetPasswordRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ResetPasswordRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "resetToken": obj.get("resetToken"),
- "password": obj.get("password")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/share.py b/sdk/python/sdk/zrok/zrok_api/models/share.py
deleted file mode 100644
index aaf72fb8..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/share.py
+++ /dev/null
@@ -1,117 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from zrok_api.models.spark_data_sample import SparkDataSample
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Share(BaseModel):
- """
- Share
- """ # noqa: E501
- share_token: Optional[StrictStr] = Field(default=None, alias="shareToken")
- z_id: Optional[StrictStr] = Field(default=None, alias="zId")
- share_mode: Optional[StrictStr] = Field(default=None, alias="shareMode")
- backend_mode: Optional[StrictStr] = Field(default=None, alias="backendMode")
- frontend_selection: Optional[StrictStr] = Field(default=None, alias="frontendSelection")
- frontend_endpoint: Optional[StrictStr] = Field(default=None, alias="frontendEndpoint")
- backend_proxy_endpoint: Optional[StrictStr] = Field(default=None, alias="backendProxyEndpoint")
- reserved: Optional[StrictBool] = None
- activity: Optional[List[SparkDataSample]] = None
- limited: Optional[StrictBool] = None
- created_at: Optional[StrictInt] = Field(default=None, alias="createdAt")
- updated_at: Optional[StrictInt] = Field(default=None, alias="updatedAt")
- __properties: ClassVar[List[str]] = ["shareToken", "zId", "shareMode", "backendMode", "frontendSelection", "frontendEndpoint", "backendProxyEndpoint", "reserved", "activity", "limited", "createdAt", "updatedAt"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Share from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in activity (list)
- _items = []
- if self.activity:
- for _item_activity in self.activity:
- if _item_activity:
- _items.append(_item_activity.to_dict())
- _dict['activity'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Share from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "shareToken": obj.get("shareToken"),
- "zId": obj.get("zId"),
- "shareMode": obj.get("shareMode"),
- "backendMode": obj.get("backendMode"),
- "frontendSelection": obj.get("frontendSelection"),
- "frontendEndpoint": obj.get("frontendEndpoint"),
- "backendProxyEndpoint": obj.get("backendProxyEndpoint"),
- "reserved": obj.get("reserved"),
- "activity": [SparkDataSample.from_dict(_item) for _item in obj["activity"]] if obj.get("activity") is not None else None,
- "limited": obj.get("limited"),
- "createdAt": obj.get("createdAt"),
- "updatedAt": obj.get("updatedAt")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/share_request.py b/sdk/python/sdk/zrok/zrok_api/models/share_request.py
deleted file mode 100644
index 7ea8d828..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/share_request.py
+++ /dev/null
@@ -1,161 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
-from typing import Any, ClassVar, Dict, List, Optional
-from zrok_api.models.auth_user import AuthUser
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ShareRequest(BaseModel):
- """
- ShareRequest
- """ # noqa: E501
- env_zid: Optional[StrictStr] = Field(default=None, alias="envZId")
- share_mode: Optional[StrictStr] = Field(default=None, alias="shareMode")
- frontend_selection: Optional[List[StrictStr]] = Field(default=None, alias="frontendSelection")
- backend_mode: Optional[StrictStr] = Field(default=None, alias="backendMode")
- backend_proxy_endpoint: Optional[StrictStr] = Field(default=None, alias="backendProxyEndpoint")
- auth_scheme: Optional[StrictStr] = Field(default=None, alias="authScheme")
- auth_users: Optional[List[AuthUser]] = Field(default=None, alias="authUsers")
- oauth_provider: Optional[StrictStr] = Field(default=None, alias="oauthProvider")
- oauth_email_domains: Optional[List[StrictStr]] = Field(default=None, alias="oauthEmailDomains")
- oauth_authorization_check_interval: Optional[StrictStr] = Field(default=None, alias="oauthAuthorizationCheckInterval")
- reserved: Optional[StrictBool] = None
- permission_mode: Optional[StrictStr] = Field(default=None, alias="permissionMode")
- access_grants: Optional[List[StrictStr]] = Field(default=None, alias="accessGrants")
- unique_name: Optional[StrictStr] = Field(default=None, alias="uniqueName")
- __properties: ClassVar[List[str]] = ["envZId", "shareMode", "frontendSelection", "backendMode", "backendProxyEndpoint", "authScheme", "authUsers", "oauthProvider", "oauthEmailDomains", "oauthAuthorizationCheckInterval", "reserved", "permissionMode", "accessGrants", "uniqueName"]
-
- @field_validator('share_mode')
- def share_mode_validate_enum(cls, value):
- """Validates the enum"""
- if value is None:
- return value
-
- if value not in set(['public', 'private']):
- raise ValueError("must be one of enum values ('public', 'private')")
- return value
-
- @field_validator('backend_mode')
- def backend_mode_validate_enum(cls, value):
- """Validates the enum"""
- if value is None:
- return value
-
- if value not in set(['proxy', 'web', 'tcpTunnel', 'udpTunnel', 'caddy', 'drive', 'socks', 'vpn']):
- raise ValueError("must be one of enum values ('proxy', 'web', 'tcpTunnel', 'udpTunnel', 'caddy', 'drive', 'socks', 'vpn')")
- return value
-
- @field_validator('oauth_provider')
- def oauth_provider_validate_enum(cls, value):
- """Validates the enum"""
- if value is None:
- return value
-
- if value not in set(['github', 'google']):
- raise ValueError("must be one of enum values ('github', 'google')")
- return value
-
- @field_validator('permission_mode')
- def permission_mode_validate_enum(cls, value):
- """Validates the enum"""
- if value is None:
- return value
-
- if value not in set(['open', 'closed']):
- raise ValueError("must be one of enum values ('open', 'closed')")
- return value
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ShareRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in auth_users (list)
- _items = []
- if self.auth_users:
- for _item_auth_users in self.auth_users:
- if _item_auth_users:
- _items.append(_item_auth_users.to_dict())
- _dict['authUsers'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ShareRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "envZId": obj.get("envZId"),
- "shareMode": obj.get("shareMode"),
- "frontendSelection": obj.get("frontendSelection"),
- "backendMode": obj.get("backendMode"),
- "backendProxyEndpoint": obj.get("backendProxyEndpoint"),
- "authScheme": obj.get("authScheme"),
- "authUsers": [AuthUser.from_dict(_item) for _item in obj["authUsers"]] if obj.get("authUsers") is not None else None,
- "oauthProvider": obj.get("oauthProvider"),
- "oauthEmailDomains": obj.get("oauthEmailDomains"),
- "oauthAuthorizationCheckInterval": obj.get("oauthAuthorizationCheckInterval"),
- "reserved": obj.get("reserved"),
- "permissionMode": obj.get("permissionMode"),
- "accessGrants": obj.get("accessGrants"),
- "uniqueName": obj.get("uniqueName")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/share_response.py b/sdk/python/sdk/zrok/zrok_api/models/share_response.py
deleted file mode 100644
index 8fa25d60..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/share_response.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ShareResponse(BaseModel):
- """
- ShareResponse
- """ # noqa: E501
- frontend_proxy_endpoints: Optional[List[StrictStr]] = Field(default=None, alias="frontendProxyEndpoints")
- share_token: Optional[StrictStr] = Field(default=None, alias="shareToken")
- __properties: ClassVar[List[str]] = ["frontendProxyEndpoints", "shareToken"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ShareResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ShareResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "frontendProxyEndpoints": obj.get("frontendProxyEndpoints"),
- "shareToken": obj.get("shareToken")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/spark_data_sample.py b/sdk/python/sdk/zrok/zrok_api/models/spark_data_sample.py
deleted file mode 100644
index 23c4ef51..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/spark_data_sample.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class SparkDataSample(BaseModel):
- """
- SparkDataSample
- """ # noqa: E501
- rx: Optional[Union[StrictFloat, StrictInt]] = None
- tx: Optional[Union[StrictFloat, StrictInt]] = None
- __properties: ClassVar[List[str]] = ["rx", "tx"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of SparkDataSample from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of SparkDataSample from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "rx": obj.get("rx"),
- "tx": obj.get("tx")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/unaccess_request.py b/sdk/python/sdk/zrok/zrok_api/models/unaccess_request.py
deleted file mode 100644
index 19a3f5df..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/unaccess_request.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class UnaccessRequest(BaseModel):
- """
- UnaccessRequest
- """ # noqa: E501
- frontend_token: Optional[StrictStr] = Field(default=None, alias="frontendToken")
- env_zid: Optional[StrictStr] = Field(default=None, alias="envZId")
- share_token: Optional[StrictStr] = Field(default=None, alias="shareToken")
- __properties: ClassVar[List[str]] = ["frontendToken", "envZId", "shareToken"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of UnaccessRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of UnaccessRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "frontendToken": obj.get("frontendToken"),
- "envZId": obj.get("envZId"),
- "shareToken": obj.get("shareToken")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/unshare_request.py b/sdk/python/sdk/zrok/zrok_api/models/unshare_request.py
deleted file mode 100644
index 3ff557e1..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/unshare_request.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class UnshareRequest(BaseModel):
- """
- UnshareRequest
- """ # noqa: E501
- env_zid: Optional[StrictStr] = Field(default=None, alias="envZId")
- share_token: Optional[StrictStr] = Field(default=None, alias="shareToken")
- reserved: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["envZId", "shareToken", "reserved"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of UnshareRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of UnshareRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "envZId": obj.get("envZId"),
- "shareToken": obj.get("shareToken"),
- "reserved": obj.get("reserved")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/update_access_request.py b/sdk/python/sdk/zrok/zrok_api/models/update_access_request.py
deleted file mode 100644
index a27f9623..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/update_access_request.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class UpdateAccessRequest(BaseModel):
- """
- UpdateAccessRequest
- """ # noqa: E501
- frontend_token: Optional[StrictStr] = Field(default=None, alias="frontendToken")
- bind_address: Optional[StrictStr] = Field(default=None, alias="bindAddress")
- description: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["frontendToken", "bindAddress", "description"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of UpdateAccessRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of UpdateAccessRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "frontendToken": obj.get("frontendToken"),
- "bindAddress": obj.get("bindAddress"),
- "description": obj.get("description")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/update_frontend_request.py b/sdk/python/sdk/zrok/zrok_api/models/update_frontend_request.py
deleted file mode 100644
index 52916296..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/update_frontend_request.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class UpdateFrontendRequest(BaseModel):
- """
- UpdateFrontendRequest
- """ # noqa: E501
- frontend_token: Optional[StrictStr] = Field(default=None, alias="frontendToken")
- public_name: Optional[StrictStr] = Field(default=None, alias="publicName")
- url_template: Optional[StrictStr] = Field(default=None, alias="urlTemplate")
- __properties: ClassVar[List[str]] = ["frontendToken", "publicName", "urlTemplate"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of UpdateFrontendRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of UpdateFrontendRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "frontendToken": obj.get("frontendToken"),
- "publicName": obj.get("publicName"),
- "urlTemplate": obj.get("urlTemplate")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/update_share_request.py b/sdk/python/sdk/zrok/zrok_api/models/update_share_request.py
deleted file mode 100644
index 9e3de749..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/update_share_request.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class UpdateShareRequest(BaseModel):
- """
- UpdateShareRequest
- """ # noqa: E501
- share_token: Optional[StrictStr] = Field(default=None, alias="shareToken")
- backend_proxy_endpoint: Optional[StrictStr] = Field(default=None, alias="backendProxyEndpoint")
- add_access_grants: Optional[List[StrictStr]] = Field(default=None, alias="addAccessGrants")
- remove_access_grants: Optional[List[StrictStr]] = Field(default=None, alias="removeAccessGrants")
- __properties: ClassVar[List[str]] = ["shareToken", "backendProxyEndpoint", "addAccessGrants", "removeAccessGrants"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of UpdateShareRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of UpdateShareRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "shareToken": obj.get("shareToken"),
- "backendProxyEndpoint": obj.get("backendProxyEndpoint"),
- "addAccessGrants": obj.get("addAccessGrants"),
- "removeAccessGrants": obj.get("removeAccessGrants")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/verify200_response.py b/sdk/python/sdk/zrok/zrok_api/models/verify200_response.py
deleted file mode 100644
index 4709d646..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/verify200_response.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Verify200Response(BaseModel):
- """
- Verify200Response
- """ # noqa: E501
- email: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["email"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Verify200Response from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Verify200Response from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "email": obj.get("email")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/verify_request.py b/sdk/python/sdk/zrok/zrok_api/models/verify_request.py
deleted file mode 100644
index 76def799..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/verify_request.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class VerifyRequest(BaseModel):
- """
- VerifyRequest
- """ # noqa: E501
- register_token: Optional[StrictStr] = Field(default=None, alias="registerToken")
- __properties: ClassVar[List[str]] = ["registerToken"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of VerifyRequest from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of VerifyRequest from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "registerToken": obj.get("registerToken")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/models/version_inventory200_response.py b/sdk/python/sdk/zrok/zrok_api/models/version_inventory200_response.py
deleted file mode 100644
index 8cbf4288..00000000
--- a/sdk/python/sdk/zrok/zrok_api/models/version_inventory200_response.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# 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
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class VersionInventory200Response(BaseModel):
- """
- VersionInventory200Response
- """ # noqa: E501
- controller_version: Optional[StrictStr] = Field(default=None, alias="controllerVersion")
- __properties: ClassVar[List[str]] = ["controllerVersion"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of VersionInventory200Response from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of VersionInventory200Response from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "controllerVersion": obj.get("controllerVersion")
- })
- return _obj
-
-
diff --git a/sdk/python/sdk/zrok/zrok_api/py.typed b/sdk/python/sdk/zrok/zrok_api/py.typed
deleted file mode 100644
index e69de29b..00000000
diff --git a/sdk/python/sdk/zrok/zrok_api/rest.py b/sdk/python/sdk/zrok/zrok_api/rest.py
deleted file mode 100644
index f09faee7..00000000
--- a/sdk/python/sdk/zrok/zrok_api/rest.py
+++ /dev/null
@@ -1,258 +0,0 @@
-# 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 io
-import json
-import re
-import ssl
-
-import urllib3
-
-from zrok_api.exceptions import ApiException, ApiValueError
-
-SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"}
-RESTResponseType = urllib3.HTTPResponse
-
-
-def is_socks_proxy_url(url):
- if url is None:
- return False
- split_section = url.split("://")
- if len(split_section) < 2:
- return False
- else:
- return split_section[0].lower() in SUPPORTED_SOCKS_PROXIES
-
-
-class RESTResponse(io.IOBase):
-
- def __init__(self, resp) -> None:
- self.response = resp
- self.status = resp.status
- self.reason = resp.reason
- self.data = None
-
- def read(self):
- if self.data is None:
- self.data = self.response.data
- return self.data
-
- def getheaders(self):
- """Returns a dictionary of the response headers."""
- return self.response.headers
-
- def getheader(self, name, default=None):
- """Returns a given response header."""
- return self.response.headers.get(name, default)
-
-
-class RESTClientObject:
-
- def __init__(self, configuration) -> None:
- # urllib3.PoolManager will pass all kw parameters to connectionpool
- # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
- # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
- # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
-
- # cert_reqs
- if configuration.verify_ssl:
- cert_reqs = ssl.CERT_REQUIRED
- else:
- cert_reqs = ssl.CERT_NONE
-
- pool_args = {
- "cert_reqs": cert_reqs,
- "ca_certs": configuration.ssl_ca_cert,
- "cert_file": configuration.cert_file,
- "key_file": configuration.key_file,
- "ca_cert_data": configuration.ca_cert_data,
- }
- if configuration.assert_hostname is not None:
- pool_args['assert_hostname'] = (
- configuration.assert_hostname
- )
-
- if configuration.retries is not None:
- pool_args['retries'] = configuration.retries
-
- if configuration.tls_server_name:
- pool_args['server_hostname'] = configuration.tls_server_name
-
-
- if configuration.socket_options is not None:
- pool_args['socket_options'] = configuration.socket_options
-
- if configuration.connection_pool_maxsize is not None:
- pool_args['maxsize'] = configuration.connection_pool_maxsize
-
- # https pool manager
- self.pool_manager: urllib3.PoolManager
-
- if configuration.proxy:
- if is_socks_proxy_url(configuration.proxy):
- from urllib3.contrib.socks import SOCKSProxyManager
- pool_args["proxy_url"] = configuration.proxy
- pool_args["headers"] = configuration.proxy_headers
- self.pool_manager = SOCKSProxyManager(**pool_args)
- else:
- pool_args["proxy_url"] = configuration.proxy
- pool_args["proxy_headers"] = configuration.proxy_headers
- self.pool_manager = urllib3.ProxyManager(**pool_args)
- else:
- self.pool_manager = urllib3.PoolManager(**pool_args)
-
- def request(
- self,
- method,
- url,
- headers=None,
- body=None,
- post_params=None,
- _request_timeout=None
- ):
- """Perform requests.
-
- :param method: http request method
- :param url: http request url
- :param headers: http request headers
- :param body: request json body, for `application/json`
- :param post_params: request post parameters,
- `application/x-www-form-urlencoded`
- and `multipart/form-data`
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- """
- method = method.upper()
- assert method in [
- 'GET',
- 'HEAD',
- 'DELETE',
- 'POST',
- 'PUT',
- 'PATCH',
- 'OPTIONS'
- ]
-
- if post_params and body:
- raise ApiValueError(
- "body parameter cannot be used with post_params parameter."
- )
-
- post_params = post_params or {}
- headers = headers or {}
-
- timeout = None
- if _request_timeout:
- if isinstance(_request_timeout, (int, float)):
- timeout = urllib3.Timeout(total=_request_timeout)
- elif (
- isinstance(_request_timeout, tuple)
- and len(_request_timeout) == 2
- ):
- timeout = urllib3.Timeout(
- connect=_request_timeout[0],
- read=_request_timeout[1]
- )
-
- try:
- # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
- if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
-
- # no content type provided or payload is json
- content_type = headers.get('Content-Type')
- if (
- not content_type
- or re.search('json', content_type, re.IGNORECASE)
- ):
- request_body = None
- if body is not None:
- request_body = json.dumps(body)
- r = self.pool_manager.request(
- method,
- url,
- body=request_body,
- timeout=timeout,
- headers=headers,
- preload_content=False
- )
- elif content_type == 'application/x-www-form-urlencoded':
- r = self.pool_manager.request(
- method,
- url,
- fields=post_params,
- encode_multipart=False,
- timeout=timeout,
- headers=headers,
- preload_content=False
- )
- elif content_type == 'multipart/form-data':
- # must del headers['Content-Type'], or the correct
- # Content-Type which generated by urllib3 will be
- # overwritten.
- del headers['Content-Type']
- # Ensures that dict objects are serialized
- post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params]
- r = self.pool_manager.request(
- method,
- url,
- fields=post_params,
- encode_multipart=True,
- timeout=timeout,
- headers=headers,
- preload_content=False
- )
- # Pass a `string` parameter directly in the body to support
- # other content types than JSON when `body` argument is
- # provided in serialized form.
- elif isinstance(body, str) or isinstance(body, bytes):
- r = self.pool_manager.request(
- method,
- url,
- body=body,
- timeout=timeout,
- headers=headers,
- preload_content=False
- )
- elif headers['Content-Type'].startswith('text/') and isinstance(body, bool):
- request_body = "true" if body else "false"
- r = self.pool_manager.request(
- method,
- url,
- body=request_body,
- preload_content=False,
- timeout=timeout,
- headers=headers)
- else:
- # Cannot generate the request from given parameters
- msg = """Cannot prepare a request message for provided
- arguments. Please check that your arguments match
- declared content type."""
- raise ApiException(status=0, reason=msg)
- # For `GET`, `HEAD`
- else:
- r = self.pool_manager.request(
- method,
- url,
- fields={},
- timeout=timeout,
- headers=headers,
- preload_content=False
- )
- except urllib3.exceptions.SSLError as e:
- msg = "\n".join([type(e).__name__, str(e)])
- raise ApiException(status=0, reason=msg)
-
- return RESTResponse(r)