added 'uniqueName' to the share request in the api spec (#123)

This commit is contained in:
Michael Quigley
2023-12-07 14:26:03 -05:00
parent bfa1c39b4c
commit ead350b442
46 changed files with 639 additions and 45 deletions

View File

@ -1 +1 @@
3.0.50
3.0.51

View File

@ -1,12 +1,19 @@
# coding: utf-8
"""
zrok
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
import os
NAME = "zrok_sdk"
VERSION = "0.0.0.dev"
try:
VERSION = os.environ['ZROK_VERSION']
except KeyError:
pass
VERSION = "1.0.0"
# To install the library, run the following
#
# python setup.py install
@ -20,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
"""
)

View File

@ -38,7 +38,8 @@ class ShareRequest(object):
'oauth_provider': 'str',
'oauth_email_domains': 'list[str]',
'oauth_authorization_check_interval': 'str',
'reserved': 'bool'
'reserved': 'bool',
'unique_name': 'str'
}
attribute_map = {
@ -52,10 +53,11 @@ class ShareRequest(object):
'oauth_provider': 'oauthProvider',
'oauth_email_domains': 'oauthEmailDomains',
'oauth_authorization_check_interval': 'oauthAuthorizationCheckInterval',
'reserved': 'reserved'
'reserved': 'reserved',
'unique_name': 'uniqueName'
}
def __init__(self, env_zid=None, share_mode=None, frontend_selection=None, backend_mode=None, backend_proxy_endpoint=None, auth_scheme=None, auth_users=None, oauth_provider=None, oauth_email_domains=None, oauth_authorization_check_interval=None, reserved=None): # noqa: E501
def __init__(self, env_zid=None, share_mode=None, frontend_selection=None, backend_mode=None, backend_proxy_endpoint=None, auth_scheme=None, auth_users=None, oauth_provider=None, oauth_email_domains=None, oauth_authorization_check_interval=None, reserved=None, unique_name=None): # noqa: E501
"""ShareRequest - a model defined in Swagger""" # noqa: E501
self._env_zid = None
self._share_mode = None
@ -68,6 +70,7 @@ class ShareRequest(object):
self._oauth_email_domains = None
self._oauth_authorization_check_interval = None
self._reserved = None
self._unique_name = None
self.discriminator = None
if env_zid is not None:
self.env_zid = env_zid
@ -91,6 +94,8 @@ class ShareRequest(object):
self.oauth_authorization_check_interval = oauth_authorization_check_interval
if reserved is not None:
self.reserved = reserved
if unique_name is not None:
self.unique_name = unique_name
@property
def env_zid(self):
@ -179,7 +184,7 @@ class ShareRequest(object):
:param backend_mode: The backend_mode of this ShareRequest. # noqa: E501
:type: str
"""
allowed_values = ["proxy", "web", "tcpTunnel", "udpTunnel", "caddy"] # noqa: E501
allowed_values = ["proxy", "web", "tcpTunnel", "udpTunnel", "caddy", "drive"] # noqa: E501
if backend_mode not in allowed_values:
raise ValueError(
"Invalid value for `backend_mode` ({0}), must be one of {1}" # noqa: E501
@ -341,6 +346,27 @@ class ShareRequest(object):
self._reserved = reserved
@property
def unique_name(self):
"""Gets the unique_name of this ShareRequest. # noqa: E501
:return: The unique_name of this ShareRequest. # noqa: E501
:rtype: str
"""
return self._unique_name
@unique_name.setter
def unique_name(self, unique_name):
"""Sets the unique_name of this ShareRequest.
:param unique_name: The unique_name of this ShareRequest. # noqa: E501
:type: str
"""
self._unique_name = unique_name
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}