admin endpoints polish and lint removal (#834)

This commit is contained in:
Michael Quigley
2025-02-03 13:10:13 -05:00
parent 14d03b88f7
commit 62d8086aed
46 changed files with 2224 additions and 456 deletions

View File

@ -30,9 +30,6 @@ from zrok_api.models.account_body import AccountBody
from zrok_api.models.auth_user import AuthUser
from zrok_api.models.change_password_body import ChangePasswordBody
from zrok_api.models.configuration import Configuration
from zrok_api.models.create_frontend_request import CreateFrontendRequest
from zrok_api.models.create_frontend_response import CreateFrontendResponse
from zrok_api.models.delete_frontend_request import DeleteFrontendRequest
from zrok_api.models.disable_request import DisableRequest
from zrok_api.models.enable_request import EnableRequest
from zrok_api.models.enable_response import EnableResponse
@ -41,18 +38,22 @@ from zrok_api.models.environment_and_resources import EnvironmentAndResources
from zrok_api.models.environments import Environments
from zrok_api.models.error_message import ErrorMessage
from zrok_api.models.frontend import Frontend
from zrok_api.models.frontend_body import FrontendBody
from zrok_api.models.frontend_body1 import FrontendBody1
from zrok_api.models.frontend_body2 import FrontendBody2
from zrok_api.models.frontends import Frontends
from zrok_api.models.grants_body import GrantsBody
from zrok_api.models.identity_body import IdentityBody
from zrok_api.models.inline_response200 import InlineResponse200
from zrok_api.models.inline_response2001 import InlineResponse2001
from zrok_api.models.inline_response2002 import InlineResponse2002
from zrok_api.models.inline_response2002_members import InlineResponse2002Members
from zrok_api.models.inline_response2003 import InlineResponse2003
from zrok_api.models.inline_response2003_organizations import InlineResponse2003Organizations
from zrok_api.models.inline_response2003_members import InlineResponse2003Members
from zrok_api.models.inline_response2004 import InlineResponse2004
from zrok_api.models.inline_response2004_memberships import InlineResponse2004Memberships
from zrok_api.models.inline_response2004_organizations import InlineResponse2004Organizations
from zrok_api.models.inline_response2005 import InlineResponse2005
from zrok_api.models.inline_response2005_memberships import InlineResponse2005Memberships
from zrok_api.models.inline_response2006 import InlineResponse2006
from zrok_api.models.inline_response201 import InlineResponse201
from zrok_api.models.invite_body import InviteBody
from zrok_api.models.invite_token_generate_request import InviteTokenGenerateRequest
@ -67,8 +68,6 @@ from zrok_api.models.organization_remove_body import OrganizationRemoveBody
from zrok_api.models.overview import Overview
from zrok_api.models.password_requirements import PasswordRequirements
from zrok_api.models.principal import Principal
from zrok_api.models.public_frontend import PublicFrontend
from zrok_api.models.public_frontend_list import PublicFrontendList
from zrok_api.models.regenerate_token_body import RegenerateTokenBody
from zrok_api.models.register_body import RegisterBody
from zrok_api.models.reset_password_body import ResetPasswordBody
@ -82,7 +81,6 @@ from zrok_api.models.spark_data_sample import SparkDataSample
from zrok_api.models.sparklines_body import SparklinesBody
from zrok_api.models.unaccess_request import UnaccessRequest
from zrok_api.models.unshare_request import UnshareRequest
from zrok_api.models.update_frontend_request import UpdateFrontendRequest
from zrok_api.models.update_share_request import UpdateShareRequest
from zrok_api.models.verify_body import VerifyBody
from zrok_api.models.version import Version

View File

@ -223,8 +223,8 @@ class AdminApi(object):
>>> result = thread.get()
:param async_req bool
:param CreateFrontendRequest body:
:return: CreateFrontendResponse
:param FrontendBody body:
:return: VerifyBody
If the method is called asynchronously,
returns the request thread.
"""
@ -244,8 +244,8 @@ class AdminApi(object):
>>> result = thread.get()
:param async_req bool
:param CreateFrontendRequest body:
:return: CreateFrontendResponse
:param FrontendBody body:
:return: VerifyBody
If the method is called asynchronously,
returns the request thread.
"""
@ -299,7 +299,7 @@ class AdminApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='CreateFrontendResponse', # noqa: E501
response_type='VerifyBody', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@ -502,7 +502,7 @@ class AdminApi(object):
>>> result = thread.get()
:param async_req bool
:param DeleteFrontendRequest body:
:param FrontendBody1 body:
:return: None
If the method is called asynchronously,
returns the request thread.
@ -523,7 +523,7 @@ class AdminApi(object):
>>> result = thread.get()
:param async_req bool
:param DeleteFrontendRequest body:
:param FrontendBody1 body:
:return: None
If the method is called asynchronously,
returns the request thread.
@ -858,7 +858,7 @@ class AdminApi(object):
>>> result = thread.get()
:param async_req bool
:return: PublicFrontendList
:return: list[InlineResponse2002]
If the method is called asynchronously,
returns the request thread.
"""
@ -878,7 +878,7 @@ class AdminApi(object):
>>> result = thread.get()
:param async_req bool
:return: PublicFrontendList
:return: list[InlineResponse2002]
If the method is called asynchronously,
returns the request thread.
"""
@ -926,7 +926,7 @@ class AdminApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='PublicFrontendList', # noqa: E501
response_type='list[InlineResponse2002]', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@ -944,7 +944,7 @@ class AdminApi(object):
:param async_req bool
:param OrganizationListBody body:
:return: InlineResponse2002
:return: InlineResponse2003
If the method is called asynchronously,
returns the request thread.
"""
@ -965,7 +965,7 @@ class AdminApi(object):
:param async_req bool
:param OrganizationListBody body:
:return: InlineResponse2002
:return: InlineResponse2003
If the method is called asynchronously,
returns the request thread.
"""
@ -1019,7 +1019,7 @@ class AdminApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse2002', # noqa: E501
response_type='InlineResponse2003', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@ -1036,7 +1036,7 @@ class AdminApi(object):
>>> result = thread.get()
:param async_req bool
:return: InlineResponse2003
:return: InlineResponse2004
If the method is called asynchronously,
returns the request thread.
"""
@ -1056,7 +1056,7 @@ class AdminApi(object):
>>> result = thread.get()
:param async_req bool
:return: InlineResponse2003
:return: InlineResponse2004
If the method is called asynchronously,
returns the request thread.
"""
@ -1104,7 +1104,7 @@ class AdminApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse2003', # noqa: E501
response_type='InlineResponse2004', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@ -1210,7 +1210,7 @@ class AdminApi(object):
>>> result = thread.get()
:param async_req bool
:param UpdateFrontendRequest body:
:param FrontendBody2 body:
:return: None
If the method is called asynchronously,
returns the request thread.
@ -1231,7 +1231,7 @@ class AdminApi(object):
>>> result = thread.get()
:param async_req bool
:param UpdateFrontendRequest body:
:param FrontendBody2 body:
:return: None
If the method is called asynchronously,
returns the request thread.

View File

@ -774,7 +774,7 @@ class MetadataApi(object):
:param async_req bool
:param SparklinesBody body:
:return: InlineResponse2005
:return: InlineResponse2006
If the method is called asynchronously,
returns the request thread.
"""
@ -795,7 +795,7 @@ class MetadataApi(object):
:param async_req bool
:param SparklinesBody body:
:return: InlineResponse2005
:return: InlineResponse2006
If the method is called asynchronously,
returns the request thread.
"""
@ -849,7 +849,7 @@ class MetadataApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse2005', # noqa: E501
response_type='InlineResponse2006', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@ -866,7 +866,7 @@ class MetadataApi(object):
>>> result = thread.get()
:param async_req bool
:return: InlineResponse2004
:return: InlineResponse2005
If the method is called asynchronously,
returns the request thread.
"""
@ -886,7 +886,7 @@ class MetadataApi(object):
>>> result = thread.get()
:param async_req bool
:return: InlineResponse2004
:return: InlineResponse2005
If the method is called asynchronously,
returns the request thread.
"""
@ -934,7 +934,7 @@ class MetadataApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse2004', # noqa: E501
response_type='InlineResponse2005', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@ -952,7 +952,7 @@ class MetadataApi(object):
:param async_req bool
:param str organization_token: (required)
:return: InlineResponse2002
:return: InlineResponse2003
If the method is called asynchronously,
returns the request thread.
"""
@ -973,7 +973,7 @@ class MetadataApi(object):
:param async_req bool
:param str organization_token: (required)
:return: InlineResponse2002
:return: InlineResponse2003
If the method is called asynchronously,
returns the request thread.
"""
@ -1027,7 +1027,7 @@ class MetadataApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse2002', # noqa: E501
response_type='InlineResponse2003', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),

View File

@ -20,9 +20,6 @@ from zrok_api.models.account_body import AccountBody
from zrok_api.models.auth_user import AuthUser
from zrok_api.models.change_password_body import ChangePasswordBody
from zrok_api.models.configuration import Configuration
from zrok_api.models.create_frontend_request import CreateFrontendRequest
from zrok_api.models.create_frontend_response import CreateFrontendResponse
from zrok_api.models.delete_frontend_request import DeleteFrontendRequest
from zrok_api.models.disable_request import DisableRequest
from zrok_api.models.enable_request import EnableRequest
from zrok_api.models.enable_response import EnableResponse
@ -31,18 +28,22 @@ from zrok_api.models.environment_and_resources import EnvironmentAndResources
from zrok_api.models.environments import Environments
from zrok_api.models.error_message import ErrorMessage
from zrok_api.models.frontend import Frontend
from zrok_api.models.frontend_body import FrontendBody
from zrok_api.models.frontend_body1 import FrontendBody1
from zrok_api.models.frontend_body2 import FrontendBody2
from zrok_api.models.frontends import Frontends
from zrok_api.models.grants_body import GrantsBody
from zrok_api.models.identity_body import IdentityBody
from zrok_api.models.inline_response200 import InlineResponse200
from zrok_api.models.inline_response2001 import InlineResponse2001
from zrok_api.models.inline_response2002 import InlineResponse2002
from zrok_api.models.inline_response2002_members import InlineResponse2002Members
from zrok_api.models.inline_response2003 import InlineResponse2003
from zrok_api.models.inline_response2003_organizations import InlineResponse2003Organizations
from zrok_api.models.inline_response2003_members import InlineResponse2003Members
from zrok_api.models.inline_response2004 import InlineResponse2004
from zrok_api.models.inline_response2004_memberships import InlineResponse2004Memberships
from zrok_api.models.inline_response2004_organizations import InlineResponse2004Organizations
from zrok_api.models.inline_response2005 import InlineResponse2005
from zrok_api.models.inline_response2005_memberships import InlineResponse2005Memberships
from zrok_api.models.inline_response2006 import InlineResponse2006
from zrok_api.models.inline_response201 import InlineResponse201
from zrok_api.models.invite_body import InviteBody
from zrok_api.models.invite_token_generate_request import InviteTokenGenerateRequest
@ -57,8 +58,6 @@ from zrok_api.models.organization_remove_body import OrganizationRemoveBody
from zrok_api.models.overview import Overview
from zrok_api.models.password_requirements import PasswordRequirements
from zrok_api.models.principal import Principal
from zrok_api.models.public_frontend import PublicFrontend
from zrok_api.models.public_frontend_list import PublicFrontendList
from zrok_api.models.regenerate_token_body import RegenerateTokenBody
from zrok_api.models.register_body import RegisterBody
from zrok_api.models.reset_password_body import ResetPasswordBody
@ -72,7 +71,6 @@ from zrok_api.models.spark_data_sample import SparkDataSample
from zrok_api.models.sparklines_body import SparklinesBody
from zrok_api.models.unaccess_request import UnaccessRequest
from zrok_api.models.unshare_request import UnshareRequest
from zrok_api.models.update_frontend_request import UpdateFrontendRequest
from zrok_api.models.update_share_request import UpdateShareRequest
from zrok_api.models.verify_body import VerifyBody
from zrok_api.models.version import Version

View File

@ -0,0 +1,194 @@
# coding: utf-8
"""
zrok
zrok client access # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class FrontendBody(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'z_id': 'str',
'url_template': 'str',
'public_name': 'str',
'permission_mode': 'str'
}
attribute_map = {
'z_id': 'zId',
'url_template': 'url_template',
'public_name': 'public_name',
'permission_mode': 'permissionMode'
}
def __init__(self, z_id=None, url_template=None, public_name=None, permission_mode=None): # noqa: E501
"""FrontendBody - a model defined in Swagger""" # noqa: E501
self._z_id = None
self._url_template = None
self._public_name = None
self._permission_mode = None
self.discriminator = None
if z_id is not None:
self.z_id = z_id
if url_template is not None:
self.url_template = url_template
if public_name is not None:
self.public_name = public_name
if permission_mode is not None:
self.permission_mode = permission_mode
@property
def z_id(self):
"""Gets the z_id of this FrontendBody. # noqa: E501
:return: The z_id of this FrontendBody. # noqa: E501
:rtype: str
"""
return self._z_id
@z_id.setter
def z_id(self, z_id):
"""Sets the z_id of this FrontendBody.
:param z_id: The z_id of this FrontendBody. # noqa: E501
:type: str
"""
self._z_id = z_id
@property
def url_template(self):
"""Gets the url_template of this FrontendBody. # noqa: E501
:return: The url_template of this FrontendBody. # noqa: E501
:rtype: str
"""
return self._url_template
@url_template.setter
def url_template(self, url_template):
"""Sets the url_template of this FrontendBody.
:param url_template: The url_template of this FrontendBody. # noqa: E501
:type: str
"""
self._url_template = url_template
@property
def public_name(self):
"""Gets the public_name of this FrontendBody. # noqa: E501
:return: The public_name of this FrontendBody. # noqa: E501
:rtype: str
"""
return self._public_name
@public_name.setter
def public_name(self, public_name):
"""Sets the public_name of this FrontendBody.
:param public_name: The public_name of this FrontendBody. # noqa: E501
:type: str
"""
self._public_name = public_name
@property
def permission_mode(self):
"""Gets the permission_mode of this FrontendBody. # noqa: E501
:return: The permission_mode of this FrontendBody. # noqa: E501
:rtype: str
"""
return self._permission_mode
@permission_mode.setter
def permission_mode(self, permission_mode):
"""Sets the permission_mode of this FrontendBody.
:param permission_mode: The permission_mode of this FrontendBody. # noqa: E501
:type: str
"""
allowed_values = ["open", "closed"] # noqa: E501
if permission_mode not in allowed_values:
raise ValueError(
"Invalid value for `permission_mode` ({0}), must be one of {1}" # noqa: E501
.format(permission_mode, allowed_values)
)
self._permission_mode = permission_mode
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(FrontendBody, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, FrontendBody):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -0,0 +1,110 @@
# coding: utf-8
"""
zrok
zrok client access # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class FrontendBody1(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'frontend_token': 'str'
}
attribute_map = {
'frontend_token': 'frontendToken'
}
def __init__(self, frontend_token=None): # noqa: E501
"""FrontendBody1 - a model defined in Swagger""" # noqa: E501
self._frontend_token = None
self.discriminator = None
if frontend_token is not None:
self.frontend_token = frontend_token
@property
def frontend_token(self):
"""Gets the frontend_token of this FrontendBody1. # noqa: E501
:return: The frontend_token of this FrontendBody1. # noqa: E501
:rtype: str
"""
return self._frontend_token
@frontend_token.setter
def frontend_token(self, frontend_token):
"""Sets the frontend_token of this FrontendBody1.
:param frontend_token: The frontend_token of this FrontendBody1. # noqa: E501
:type: str
"""
self._frontend_token = frontend_token
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(FrontendBody1, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, FrontendBody1):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -0,0 +1,162 @@
# coding: utf-8
"""
zrok
zrok client access # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class FrontendBody2(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'frontend_token': 'str',
'public_name': 'str',
'url_template': 'str'
}
attribute_map = {
'frontend_token': 'frontendToken',
'public_name': 'publicName',
'url_template': 'urlTemplate'
}
def __init__(self, frontend_token=None, public_name=None, url_template=None): # noqa: E501
"""FrontendBody2 - a model defined in Swagger""" # noqa: E501
self._frontend_token = None
self._public_name = None
self._url_template = None
self.discriminator = None
if frontend_token is not None:
self.frontend_token = frontend_token
if public_name is not None:
self.public_name = public_name
if url_template is not None:
self.url_template = url_template
@property
def frontend_token(self):
"""Gets the frontend_token of this FrontendBody2. # noqa: E501
:return: The frontend_token of this FrontendBody2. # noqa: E501
:rtype: str
"""
return self._frontend_token
@frontend_token.setter
def frontend_token(self, frontend_token):
"""Sets the frontend_token of this FrontendBody2.
:param frontend_token: The frontend_token of this FrontendBody2. # noqa: E501
:type: str
"""
self._frontend_token = frontend_token
@property
def public_name(self):
"""Gets the public_name of this FrontendBody2. # noqa: E501
:return: The public_name of this FrontendBody2. # noqa: E501
:rtype: str
"""
return self._public_name
@public_name.setter
def public_name(self, public_name):
"""Sets the public_name of this FrontendBody2.
:param public_name: The public_name of this FrontendBody2. # noqa: E501
:type: str
"""
self._public_name = public_name
@property
def url_template(self):
"""Gets the url_template of this FrontendBody2. # noqa: E501
:return: The url_template of this FrontendBody2. # noqa: E501
:rtype: str
"""
return self._url_template
@url_template.setter
def url_template(self, url_template):
"""Sets the url_template of this FrontendBody2.
:param url_template: The url_template of this FrontendBody2. # noqa: E501
:type: str
"""
self._url_template = url_template
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(FrontendBody2, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, FrontendBody2):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -28,40 +28,170 @@ class InlineResponse2002(object):
and the value is json key in definition.
"""
swagger_types = {
'members': 'list[InlineResponse2002Members]'
'token': 'str',
'z_id': 'str',
'url_template': 'str',
'public_name': 'str',
'created_at': 'int',
'updated_at': 'int'
}
attribute_map = {
'members': 'members'
'token': 'token',
'z_id': 'zId',
'url_template': 'urlTemplate',
'public_name': 'publicName',
'created_at': 'createdAt',
'updated_at': 'updatedAt'
}
def __init__(self, members=None): # noqa: E501
def __init__(self, token=None, z_id=None, url_template=None, public_name=None, created_at=None, updated_at=None): # noqa: E501
"""InlineResponse2002 - a model defined in Swagger""" # noqa: E501
self._members = None
self._token = None
self._z_id = None
self._url_template = None
self._public_name = None
self._created_at = None
self._updated_at = None
self.discriminator = None
if members is not None:
self.members = members
if token is not None:
self.token = token
if z_id is not None:
self.z_id = z_id
if url_template is not None:
self.url_template = url_template
if public_name is not None:
self.public_name = public_name
if created_at is not None:
self.created_at = created_at
if updated_at is not None:
self.updated_at = updated_at
@property
def members(self):
"""Gets the members of this InlineResponse2002. # noqa: E501
def token(self):
"""Gets the token of this InlineResponse2002. # noqa: E501
:return: The members of this InlineResponse2002. # noqa: E501
:rtype: list[InlineResponse2002Members]
:return: The token of this InlineResponse2002. # noqa: E501
:rtype: str
"""
return self._members
return self._token
@members.setter
def members(self, members):
"""Sets the members of this InlineResponse2002.
@token.setter
def token(self, token):
"""Sets the token of this InlineResponse2002.
:param members: The members of this InlineResponse2002. # noqa: E501
:type: list[InlineResponse2002Members]
:param token: The token of this InlineResponse2002. # noqa: E501
:type: str
"""
self._members = members
self._token = token
@property
def z_id(self):
"""Gets the z_id of this InlineResponse2002. # noqa: E501
:return: The z_id of this InlineResponse2002. # noqa: E501
:rtype: str
"""
return self._z_id
@z_id.setter
def z_id(self, z_id):
"""Sets the z_id of this InlineResponse2002.
:param z_id: The z_id of this InlineResponse2002. # noqa: E501
:type: str
"""
self._z_id = z_id
@property
def url_template(self):
"""Gets the url_template of this InlineResponse2002. # noqa: E501
:return: The url_template of this InlineResponse2002. # noqa: E501
:rtype: str
"""
return self._url_template
@url_template.setter
def url_template(self, url_template):
"""Sets the url_template of this InlineResponse2002.
:param url_template: The url_template of this InlineResponse2002. # noqa: E501
:type: str
"""
self._url_template = url_template
@property
def public_name(self):
"""Gets the public_name of this InlineResponse2002. # noqa: E501
:return: The public_name of this InlineResponse2002. # noqa: E501
:rtype: str
"""
return self._public_name
@public_name.setter
def public_name(self, public_name):
"""Sets the public_name of this InlineResponse2002.
:param public_name: The public_name of this InlineResponse2002. # noqa: E501
:type: str
"""
self._public_name = public_name
@property
def created_at(self):
"""Gets the created_at of this InlineResponse2002. # noqa: E501
:return: The created_at of this InlineResponse2002. # noqa: E501
:rtype: int
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this InlineResponse2002.
:param created_at: The created_at of this InlineResponse2002. # noqa: E501
:type: int
"""
self._created_at = created_at
@property
def updated_at(self):
"""Gets the updated_at of this InlineResponse2002. # noqa: E501
:return: The updated_at of this InlineResponse2002. # noqa: E501
:rtype: int
"""
return self._updated_at
@updated_at.setter
def updated_at(self, updated_at):
"""Sets the updated_at of this InlineResponse2002.
:param updated_at: The updated_at of this InlineResponse2002. # noqa: E501
:type: int
"""
self._updated_at = updated_at
def to_dict(self):
"""Returns the model properties as a dict"""

View File

@ -28,40 +28,40 @@ class InlineResponse2003(object):
and the value is json key in definition.
"""
swagger_types = {
'organizations': 'list[InlineResponse2003Organizations]'
'members': 'list[InlineResponse2003Members]'
}
attribute_map = {
'organizations': 'organizations'
'members': 'members'
}
def __init__(self, organizations=None): # noqa: E501
def __init__(self, members=None): # noqa: E501
"""InlineResponse2003 - a model defined in Swagger""" # noqa: E501
self._organizations = None
self._members = None
self.discriminator = None
if organizations is not None:
self.organizations = organizations
if members is not None:
self.members = members
@property
def organizations(self):
"""Gets the organizations of this InlineResponse2003. # noqa: E501
def members(self):
"""Gets the members of this InlineResponse2003. # noqa: E501
:return: The organizations of this InlineResponse2003. # noqa: E501
:rtype: list[InlineResponse2003Organizations]
:return: The members of this InlineResponse2003. # noqa: E501
:rtype: list[InlineResponse2003Members]
"""
return self._organizations
return self._members
@organizations.setter
def organizations(self, organizations):
"""Sets the organizations of this InlineResponse2003.
@members.setter
def members(self, members):
"""Sets the members of this InlineResponse2003.
:param organizations: The organizations of this InlineResponse2003. # noqa: E501
:type: list[InlineResponse2003Organizations]
:param members: The members of this InlineResponse2003. # noqa: E501
:type: list[InlineResponse2003Members]
"""
self._organizations = organizations
self._members = members
def to_dict(self):
"""Returns the model properties as a dict"""

View File

@ -0,0 +1,136 @@
# coding: utf-8
"""
zrok
zrok client access # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class InlineResponse2003Members(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'email': 'str',
'admin': 'bool'
}
attribute_map = {
'email': 'email',
'admin': 'admin'
}
def __init__(self, email=None, admin=None): # noqa: E501
"""InlineResponse2003Members - a model defined in Swagger""" # noqa: E501
self._email = None
self._admin = None
self.discriminator = None
if email is not None:
self.email = email
if admin is not None:
self.admin = admin
@property
def email(self):
"""Gets the email of this InlineResponse2003Members. # noqa: E501
:return: The email of this InlineResponse2003Members. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this InlineResponse2003Members.
:param email: The email of this InlineResponse2003Members. # noqa: E501
:type: str
"""
self._email = email
@property
def admin(self):
"""Gets the admin of this InlineResponse2003Members. # noqa: E501
:return: The admin of this InlineResponse2003Members. # noqa: E501
:rtype: bool
"""
return self._admin
@admin.setter
def admin(self, admin):
"""Sets the admin of this InlineResponse2003Members.
:param admin: The admin of this InlineResponse2003Members. # noqa: E501
:type: bool
"""
self._admin = admin
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(InlineResponse2003Members, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, InlineResponse2003Members):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -28,40 +28,40 @@ class InlineResponse2004(object):
and the value is json key in definition.
"""
swagger_types = {
'memberships': 'list[InlineResponse2004Memberships]'
'organizations': 'list[InlineResponse2004Organizations]'
}
attribute_map = {
'memberships': 'memberships'
'organizations': 'organizations'
}
def __init__(self, memberships=None): # noqa: E501
def __init__(self, organizations=None): # noqa: E501
"""InlineResponse2004 - a model defined in Swagger""" # noqa: E501
self._memberships = None
self._organizations = None
self.discriminator = None
if memberships is not None:
self.memberships = memberships
if organizations is not None:
self.organizations = organizations
@property
def memberships(self):
"""Gets the memberships of this InlineResponse2004. # noqa: E501
def organizations(self):
"""Gets the organizations of this InlineResponse2004. # noqa: E501
:return: The memberships of this InlineResponse2004. # noqa: E501
:rtype: list[InlineResponse2004Memberships]
:return: The organizations of this InlineResponse2004. # noqa: E501
:rtype: list[InlineResponse2004Organizations]
"""
return self._memberships
return self._organizations
@memberships.setter
def memberships(self, memberships):
"""Sets the memberships of this InlineResponse2004.
@organizations.setter
def organizations(self, organizations):
"""Sets the organizations of this InlineResponse2004.
:param memberships: The memberships of this InlineResponse2004. # noqa: E501
:type: list[InlineResponse2004Memberships]
:param organizations: The organizations of this InlineResponse2004. # noqa: E501
:type: list[InlineResponse2004Organizations]
"""
self._memberships = memberships
self._organizations = organizations
def to_dict(self):
"""Returns the model properties as a dict"""

View File

@ -0,0 +1,136 @@
# coding: utf-8
"""
zrok
zrok client access # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class InlineResponse2004Organizations(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'token': 'str',
'description': 'str'
}
attribute_map = {
'token': 'token',
'description': 'description'
}
def __init__(self, token=None, description=None): # noqa: E501
"""InlineResponse2004Organizations - a model defined in Swagger""" # noqa: E501
self._token = None
self._description = None
self.discriminator = None
if token is not None:
self.token = token
if description is not None:
self.description = description
@property
def token(self):
"""Gets the token of this InlineResponse2004Organizations. # noqa: E501
:return: The token of this InlineResponse2004Organizations. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this InlineResponse2004Organizations.
:param token: The token of this InlineResponse2004Organizations. # noqa: E501
:type: str
"""
self._token = token
@property
def description(self):
"""Gets the description of this InlineResponse2004Organizations. # noqa: E501
:return: The description of this InlineResponse2004Organizations. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this InlineResponse2004Organizations.
:param description: The description of this InlineResponse2004Organizations. # noqa: E501
:type: str
"""
self._description = description
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(InlineResponse2004Organizations, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, InlineResponse2004Organizations):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -28,40 +28,40 @@ class InlineResponse2005(object):
and the value is json key in definition.
"""
swagger_types = {
'sparklines': 'list[Metrics]'
'memberships': 'list[InlineResponse2005Memberships]'
}
attribute_map = {
'sparklines': 'sparklines'
'memberships': 'memberships'
}
def __init__(self, sparklines=None): # noqa: E501
def __init__(self, memberships=None): # noqa: E501
"""InlineResponse2005 - a model defined in Swagger""" # noqa: E501
self._sparklines = None
self._memberships = None
self.discriminator = None
if sparklines is not None:
self.sparklines = sparklines
if memberships is not None:
self.memberships = memberships
@property
def sparklines(self):
"""Gets the sparklines of this InlineResponse2005. # noqa: E501
def memberships(self):
"""Gets the memberships of this InlineResponse2005. # noqa: E501
:return: The sparklines of this InlineResponse2005. # noqa: E501
:rtype: list[Metrics]
:return: The memberships of this InlineResponse2005. # noqa: E501
:rtype: list[InlineResponse2005Memberships]
"""
return self._sparklines
return self._memberships
@sparklines.setter
def sparklines(self, sparklines):
"""Sets the sparklines of this InlineResponse2005.
@memberships.setter
def memberships(self, memberships):
"""Sets the memberships of this InlineResponse2005.
:param sparklines: The sparklines of this InlineResponse2005. # noqa: E501
:type: list[Metrics]
:param memberships: The memberships of this InlineResponse2005. # noqa: E501
:type: list[InlineResponse2005Memberships]
"""
self._sparklines = sparklines
self._memberships = memberships
def to_dict(self):
"""Returns the model properties as a dict"""

View File

@ -0,0 +1,162 @@
# coding: utf-8
"""
zrok
zrok client access # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class InlineResponse2005Memberships(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'token': 'str',
'description': 'str',
'admin': 'bool'
}
attribute_map = {
'token': 'token',
'description': 'description',
'admin': 'admin'
}
def __init__(self, token=None, description=None, admin=None): # noqa: E501
"""InlineResponse2005Memberships - a model defined in Swagger""" # noqa: E501
self._token = None
self._description = None
self._admin = None
self.discriminator = None
if token is not None:
self.token = token
if description is not None:
self.description = description
if admin is not None:
self.admin = admin
@property
def token(self):
"""Gets the token of this InlineResponse2005Memberships. # noqa: E501
:return: The token of this InlineResponse2005Memberships. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this InlineResponse2005Memberships.
:param token: The token of this InlineResponse2005Memberships. # noqa: E501
:type: str
"""
self._token = token
@property
def description(self):
"""Gets the description of this InlineResponse2005Memberships. # noqa: E501
:return: The description of this InlineResponse2005Memberships. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this InlineResponse2005Memberships.
:param description: The description of this InlineResponse2005Memberships. # noqa: E501
:type: str
"""
self._description = description
@property
def admin(self):
"""Gets the admin of this InlineResponse2005Memberships. # noqa: E501
:return: The admin of this InlineResponse2005Memberships. # noqa: E501
:rtype: bool
"""
return self._admin
@admin.setter
def admin(self, admin):
"""Sets the admin of this InlineResponse2005Memberships.
:param admin: The admin of this InlineResponse2005Memberships. # noqa: E501
:type: bool
"""
self._admin = admin
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(InlineResponse2005Memberships, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, InlineResponse2005Memberships):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -0,0 +1,110 @@
# coding: utf-8
"""
zrok
zrok client access # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class InlineResponse2006(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'sparklines': 'list[Metrics]'
}
attribute_map = {
'sparklines': 'sparklines'
}
def __init__(self, sparklines=None): # noqa: E501
"""InlineResponse2006 - a model defined in Swagger""" # noqa: E501
self._sparklines = None
self.discriminator = None
if sparklines is not None:
self.sparklines = sparklines
@property
def sparklines(self):
"""Gets the sparklines of this InlineResponse2006. # noqa: E501
:return: The sparklines of this InlineResponse2006. # noqa: E501
:rtype: list[Metrics]
"""
return self._sparklines
@sparklines.setter
def sparklines(self, sparklines):
"""Sets the sparklines of this InlineResponse2006.
:param sparklines: The sparklines of this InlineResponse2006. # noqa: E501
:type: list[Metrics]
"""
self._sparklines = sparklines
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
if issubclass(InlineResponse2006, dict):
for key, value in self.items():
result[key] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, InlineResponse2006):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other