mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 00:04:43 +02:00
support for removing frontends through the web console and all associated plumbing (#515)
This commit is contained in:
@ -1,20 +1,23 @@
|
||||
import os
|
||||
# coding: utf-8
|
||||
|
||||
from setuptools import find_packages, setup # noqa: H301
|
||||
"""
|
||||
zrok
|
||||
|
||||
# optionally upload to TestPyPi with alternative name in testing repo
|
||||
NAME = os.getenv('ZROK_PY_NAME', "zrok_sdk")
|
||||
# inherit zrok version from environment or default to dev version
|
||||
VERSION = os.getenv('ZROK_VERSION', "0.4.0.dev")
|
||||
zrok client access # noqa: E501
|
||||
|
||||
OpenAPI spec version: 0.3.0
|
||||
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
"""
|
||||
|
||||
from setuptools import setup, find_packages # noqa: H301
|
||||
|
||||
NAME = "zrok_sdk"
|
||||
VERSION = "1.0.0"
|
||||
# To install the library, run the following
|
||||
#
|
||||
# python setup.py install
|
||||
#
|
||||
# or
|
||||
#
|
||||
# pip install --editable .
|
||||
#
|
||||
# prerequisite: setuptools
|
||||
# http://pypi.python.org/pypi/setuptools
|
||||
|
||||
@ -24,14 +27,13 @@ setup(
|
||||
name=NAME,
|
||||
version=VERSION,
|
||||
description="zrok",
|
||||
author_email="cameron.otts@netfoundry.io",
|
||||
url="https://zrok.io",
|
||||
python_requires='>=3.10',
|
||||
author_email="",
|
||||
url="",
|
||||
keywords=["Swagger", "zrok"],
|
||||
install_requires=REQUIRES,
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
long_description="""\
|
||||
Geo-scale, next-generation peer-to-peer sharing platform built on top of OpenZiti.
|
||||
zrok client access # noqa: E501
|
||||
"""
|
||||
)
|
||||
|
@ -29,6 +29,7 @@ class Frontend(object):
|
||||
"""
|
||||
swagger_types = {
|
||||
'id': 'int',
|
||||
'token': 'str',
|
||||
'shr_token': 'str',
|
||||
'z_id': 'str',
|
||||
'created_at': 'int',
|
||||
@ -37,15 +38,17 @@ class Frontend(object):
|
||||
|
||||
attribute_map = {
|
||||
'id': 'id',
|
||||
'token': 'token',
|
||||
'shr_token': 'shrToken',
|
||||
'z_id': 'zId',
|
||||
'created_at': 'createdAt',
|
||||
'updated_at': 'updatedAt'
|
||||
}
|
||||
|
||||
def __init__(self, id=None, shr_token=None, z_id=None, created_at=None, updated_at=None): # noqa: E501
|
||||
def __init__(self, id=None, token=None, shr_token=None, z_id=None, created_at=None, updated_at=None): # noqa: E501
|
||||
"""Frontend - a model defined in Swagger""" # noqa: E501
|
||||
self._id = None
|
||||
self._token = None
|
||||
self._shr_token = None
|
||||
self._z_id = None
|
||||
self._created_at = None
|
||||
@ -53,6 +56,8 @@ class Frontend(object):
|
||||
self.discriminator = None
|
||||
if id is not None:
|
||||
self.id = id
|
||||
if token is not None:
|
||||
self.token = token
|
||||
if shr_token is not None:
|
||||
self.shr_token = shr_token
|
||||
if z_id is not None:
|
||||
@ -83,6 +88,27 @@ class Frontend(object):
|
||||
|
||||
self._id = id
|
||||
|
||||
@property
|
||||
def token(self):
|
||||
"""Gets the token of this Frontend. # noqa: E501
|
||||
|
||||
|
||||
:return: The token of this Frontend. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._token
|
||||
|
||||
@token.setter
|
||||
def token(self, token):
|
||||
"""Sets the token of this Frontend.
|
||||
|
||||
|
||||
:param token: The token of this Frontend. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._token = token
|
||||
|
||||
@property
|
||||
def shr_token(self):
|
||||
"""Gets the shr_token of this Frontend. # noqa: E501
|
||||
|
Reference in New Issue
Block a user