prune swagger-codegen v2 models

This commit is contained in:
Kenneth Bingham 2025-02-27 17:12:22 -05:00
parent 2cdeafd2eb
commit c62d52755e
No known key found for this signature in database
GPG Key ID: 31709281860130B6
62 changed files with 9 additions and 8657 deletions

View File

@ -56,5 +56,12 @@ echo "...generating python sdk client"
swagger-codegen generate -i specs/zrok.yml -o sdk/python/sdk/zrok -c $pythonConfig -l python
git checkout rest_server_zrok/configure_zrok.go
rm sdk/nodejs/sdk/src/zrok/api/git_push.sh
rm sdk/python/sdk/zrok/git_push.sh
for OLD in sdk/python/sdk/zrok/git_push.sh sdk/nodejs/sdk/src/zrok/api/git_push.sh
do
if [ -e "$OLD" ]
then
rm "$OLD"
fi
done

View File

@ -8,7 +8,6 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import datetime

View File

@ -1,136 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class AccessRequest(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 = {
'env_zid': 'str',
'shr_token': 'str'
}
attribute_map = {
'env_zid': 'envZId',
'shr_token': 'shareToken'
}
def __init__(self, env_zid=None, shr_token=None): # noqa: E501
"""AccessRequest - a model defined in Swagger""" # noqa: E501
self._env_zid = None
self._shr_token = None
self.discriminator = None
if env_zid is not None:
self.env_zid = env_zid
if shr_token is not None:
self.shr_token = shr_token
@property
def env_zid(self):
"""Gets the env_zid of this AccessRequest. # noqa: E501
:return: The env_zid of this AccessRequest. # noqa: E501
:rtype: str
"""
return self._env_zid
@env_zid.setter
def env_zid(self, env_zid):
"""Sets the env_zid of this AccessRequest.
:param env_zid: The env_zid of this AccessRequest. # noqa: E501
:type: str
"""
self._env_zid = env_zid
@property
def shr_token(self):
"""Gets the shr_token of this AccessRequest. # noqa: E501
:return: The shr_token of this AccessRequest. # noqa: E501
:rtype: str
"""
return self._shr_token
@shr_token.setter
def shr_token(self, shr_token):
"""Sets the shr_token of this AccessRequest.
:param shr_token: The shr_token of this AccessRequest. # noqa: E501
:type: str
"""
self._shr_token = shr_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(AccessRequest, 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, AccessRequest):
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

@ -1,136 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class AccessResponse(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',
'backend_mode': 'str'
}
attribute_map = {
'frontend_token': 'frontendToken',
'backend_mode': 'backendMode'
}
def __init__(self, frontend_token=None, backend_mode=None): # noqa: E501
"""AccessResponse - a model defined in Swagger""" # noqa: E501
self._frontend_token = None
self._backend_mode = None
self.discriminator = None
if frontend_token is not None:
self.frontend_token = frontend_token
if backend_mode is not None:
self.backend_mode = backend_mode
@property
def frontend_token(self):
"""Gets the frontend_token of this AccessResponse. # noqa: E501
:return: The frontend_token of this AccessResponse. # noqa: E501
:rtype: str
"""
return self._frontend_token
@frontend_token.setter
def frontend_token(self, frontend_token):
"""Sets the frontend_token of this AccessResponse.
:param frontend_token: The frontend_token of this AccessResponse. # noqa: E501
:type: str
"""
self._frontend_token = frontend_token
@property
def backend_mode(self):
"""Gets the backend_mode of this AccessResponse. # noqa: E501
:return: The backend_mode of this AccessResponse. # noqa: E501
:rtype: str
"""
return self._backend_mode
@backend_mode.setter
def backend_mode(self, backend_mode):
"""Sets the backend_mode of this AccessResponse.
:param backend_mode: The backend_mode of this AccessResponse. # noqa: E501
:type: str
"""
self._backend_mode = backend_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(AccessResponse, 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, AccessResponse):
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

@ -1,175 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body(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',
'old_password': 'str',
'new_password': 'str'
}
attribute_map = {
'email': 'email',
'old_password': 'oldPassword',
'new_password': 'newPassword'
}
def __init__(self, email=None, old_password=None, new_password=None, _configuration=None): # noqa: E501
"""Body - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._email = None
self._old_password = None
self._new_password = None
self.discriminator = None
if email is not None:
self.email = email
if old_password is not None:
self.old_password = old_password
if new_password is not None:
self.new_password = new_password
@property
def email(self):
"""Gets the email of this Body. # noqa: E501
:return: The email of this Body. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this Body.
:param email: The email of this Body. # noqa: E501
:type: str
"""
self._email = email
@property
def old_password(self):
"""Gets the old_password of this Body. # noqa: E501
:return: The old_password of this Body. # noqa: E501
:rtype: str
"""
return self._old_password
@old_password.setter
def old_password(self, old_password):
"""Sets the old_password of this Body.
:param old_password: The old_password of this Body. # noqa: E501
:type: str
"""
self._old_password = old_password
@property
def new_password(self):
"""Gets the new_password of this Body. # noqa: E501
:return: The new_password of this Body. # noqa: E501
:rtype: str
"""
return self._new_password
@new_password.setter
def new_password(self, new_password):
"""Sets the new_password of this Body.
:param new_password: The new_password of this Body. # noqa: E501
:type: str
"""
self._new_password = new_password
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(Body, 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, Body):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,149 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body1(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',
'invite_token': 'str'
}
attribute_map = {
'email': 'email',
'invite_token': 'inviteToken'
}
def __init__(self, email=None, invite_token=None, _configuration=None): # noqa: E501
"""Body1 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._email = None
self._invite_token = None
self.discriminator = None
if email is not None:
self.email = email
if invite_token is not None:
self.invite_token = invite_token
@property
def email(self):
"""Gets the email of this Body1. # noqa: E501
:return: The email of this Body1. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this Body1.
:param email: The email of this Body1. # noqa: E501
:type: str
"""
self._email = email
@property
def invite_token(self):
"""Gets the invite_token of this Body1. # noqa: E501
:return: The invite_token of this Body1. # noqa: E501
:rtype: str
"""
return self._invite_token
@invite_token.setter
def invite_token(self, invite_token):
"""Sets the invite_token of this Body1.
:param invite_token: The invite_token of this Body1. # noqa: E501
:type: str
"""
self._invite_token = invite_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(Body1, 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, Body1):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body1):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,123 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body10(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, _configuration=None): # noqa: E501
"""Body10 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
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 Body10. # noqa: E501
:return: The frontend_token of this Body10. # noqa: E501
:rtype: str
"""
return self._frontend_token
@frontend_token.setter
def frontend_token(self, frontend_token):
"""Sets the frontend_token of this Body10.
:param frontend_token: The frontend_token of this Body10. # 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(Body10, 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, Body10):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body10):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,175 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body11(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, _configuration=None): # noqa: E501
"""Body11 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
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 Body11. # noqa: E501
:return: The frontend_token of this Body11. # noqa: E501
:rtype: str
"""
return self._frontend_token
@frontend_token.setter
def frontend_token(self, frontend_token):
"""Sets the frontend_token of this Body11.
:param frontend_token: The frontend_token of this Body11. # noqa: E501
:type: str
"""
self._frontend_token = frontend_token
@property
def public_name(self):
"""Gets the public_name of this Body11. # noqa: E501
:return: The public_name of this Body11. # noqa: E501
:rtype: str
"""
return self._public_name
@public_name.setter
def public_name(self, public_name):
"""Sets the public_name of this Body11.
:param public_name: The public_name of this Body11. # noqa: E501
:type: str
"""
self._public_name = public_name
@property
def url_template(self):
"""Gets the url_template of this Body11. # noqa: E501
:return: The url_template of this Body11. # noqa: E501
:rtype: str
"""
return self._url_template
@url_template.setter
def url_template(self, url_template):
"""Sets the url_template of this Body11.
:param url_template: The url_template of this Body11. # 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(Body11, 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, Body11):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body11):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,123 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body12(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'
}
attribute_map = {
'email': 'email'
}
def __init__(self, email=None, _configuration=None): # noqa: E501
"""Body12 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._email = None
self.discriminator = None
if email is not None:
self.email = email
@property
def email(self):
"""Gets the email of this Body12. # noqa: E501
:return: The email of this Body12. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this Body12.
:param email: The email of this Body12. # noqa: E501
:type: str
"""
self._email = email
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(Body12, 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, Body12):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body12):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,123 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body13(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 = {
'name': 'str'
}
attribute_map = {
'name': 'name'
}
def __init__(self, name=None, _configuration=None): # noqa: E501
"""Body13 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._name = None
self.discriminator = None
if name is not None:
self.name = name
@property
def name(self):
"""Gets the name of this Body13. # noqa: E501
:return: The name of this Body13. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Body13.
:param name: The name of this Body13. # noqa: E501
:type: str
"""
self._name = name
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(Body13, 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, Body13):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body13):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,123 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body14(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 = {
'invite_tokens': 'list[str]'
}
attribute_map = {
'invite_tokens': 'inviteTokens'
}
def __init__(self, invite_tokens=None, _configuration=None): # noqa: E501
"""Body14 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._invite_tokens = None
self.discriminator = None
if invite_tokens is not None:
self.invite_tokens = invite_tokens
@property
def invite_tokens(self):
"""Gets the invite_tokens of this Body14. # noqa: E501
:return: The invite_tokens of this Body14. # noqa: E501
:rtype: list[str]
"""
return self._invite_tokens
@invite_tokens.setter
def invite_tokens(self, invite_tokens):
"""Sets the invite_tokens of this Body14.
:param invite_tokens: The invite_tokens of this Body14. # noqa: E501
:type: list[str]
"""
self._invite_tokens = invite_tokens
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(Body14, 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, Body14):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body14):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,123 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body15(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 = {
'description': 'str'
}
attribute_map = {
'description': 'description'
}
def __init__(self, description=None, _configuration=None): # noqa: E501
"""Body15 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._description = None
self.discriminator = None
if description is not None:
self.description = description
@property
def description(self):
"""Gets the description of this Body15. # noqa: E501
:return: The description of this Body15. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this Body15.
:param description: The description of this Body15. # 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(Body15, 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, Body15):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body15):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,123 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body16(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 = {
'organization_token': 'str'
}
attribute_map = {
'organization_token': 'organizationToken'
}
def __init__(self, organization_token=None, _configuration=None): # noqa: E501
"""Body16 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._organization_token = None
self.discriminator = None
if organization_token is not None:
self.organization_token = organization_token
@property
def organization_token(self):
"""Gets the organization_token of this Body16. # noqa: E501
:return: The organization_token of this Body16. # noqa: E501
:rtype: str
"""
return self._organization_token
@organization_token.setter
def organization_token(self, organization_token):
"""Sets the organization_token of this Body16.
:param organization_token: The organization_token of this Body16. # noqa: E501
:type: str
"""
self._organization_token = organization_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(Body16, 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, Body16):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body16):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,175 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body17(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 = {
'organization_token': 'str',
'email': 'str',
'admin': 'bool'
}
attribute_map = {
'organization_token': 'organizationToken',
'email': 'email',
'admin': 'admin'
}
def __init__(self, organization_token=None, email=None, admin=None, _configuration=None): # noqa: E501
"""Body17 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._organization_token = None
self._email = None
self._admin = None
self.discriminator = None
if organization_token is not None:
self.organization_token = organization_token
if email is not None:
self.email = email
if admin is not None:
self.admin = admin
@property
def organization_token(self):
"""Gets the organization_token of this Body17. # noqa: E501
:return: The organization_token of this Body17. # noqa: E501
:rtype: str
"""
return self._organization_token
@organization_token.setter
def organization_token(self, organization_token):
"""Sets the organization_token of this Body17.
:param organization_token: The organization_token of this Body17. # noqa: E501
:type: str
"""
self._organization_token = organization_token
@property
def email(self):
"""Gets the email of this Body17. # noqa: E501
:return: The email of this Body17. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this Body17.
:param email: The email of this Body17. # noqa: E501
:type: str
"""
self._email = email
@property
def admin(self):
"""Gets the admin of this Body17. # noqa: E501
:return: The admin of this Body17. # noqa: E501
:rtype: bool
"""
return self._admin
@admin.setter
def admin(self, admin):
"""Sets the admin of this Body17.
:param admin: The admin of this Body17. # 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(Body17, 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, Body17):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body17):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,123 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body18(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 = {
'organization_token': 'str'
}
attribute_map = {
'organization_token': 'organizationToken'
}
def __init__(self, organization_token=None, _configuration=None): # noqa: E501
"""Body18 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._organization_token = None
self.discriminator = None
if organization_token is not None:
self.organization_token = organization_token
@property
def organization_token(self):
"""Gets the organization_token of this Body18. # noqa: E501
:return: The organization_token of this Body18. # noqa: E501
:rtype: str
"""
return self._organization_token
@organization_token.setter
def organization_token(self, organization_token):
"""Sets the organization_token of this Body18.
:param organization_token: The organization_token of this Body18. # noqa: E501
:type: str
"""
self._organization_token = organization_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(Body18, 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, Body18):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body18):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,149 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body19(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 = {
'organization_token': 'str',
'email': 'str'
}
attribute_map = {
'organization_token': 'organizationToken',
'email': 'email'
}
def __init__(self, organization_token=None, email=None, _configuration=None): # noqa: E501
"""Body19 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._organization_token = None
self._email = None
self.discriminator = None
if organization_token is not None:
self.organization_token = organization_token
if email is not None:
self.email = email
@property
def organization_token(self):
"""Gets the organization_token of this Body19. # noqa: E501
:return: The organization_token of this Body19. # noqa: E501
:rtype: str
"""
return self._organization_token
@organization_token.setter
def organization_token(self, organization_token):
"""Sets the organization_token of this Body19.
:param organization_token: The organization_token of this Body19. # noqa: E501
:type: str
"""
self._organization_token = organization_token
@property
def email(self):
"""Gets the email of this Body19. # noqa: E501
:return: The email of this Body19. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this Body19.
:param email: The email of this Body19. # noqa: E501
:type: str
"""
self._email = email
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(Body19, 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, Body19):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body19):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,149 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body2(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',
'password': 'str'
}
attribute_map = {
'email': 'email',
'password': 'password'
}
def __init__(self, email=None, password=None, _configuration=None): # noqa: E501
"""Body2 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._email = None
self._password = None
self.discriminator = None
if email is not None:
self.email = email
if password is not None:
self.password = password
@property
def email(self):
"""Gets the email of this Body2. # noqa: E501
:return: The email of this Body2. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this Body2.
:param email: The email of this Body2. # noqa: E501
:type: str
"""
self._email = email
@property
def password(self):
"""Gets the password of this Body2. # noqa: E501
:return: The password of this Body2. # noqa: E501
:rtype: str
"""
return self._password
@password.setter
def password(self, password):
"""Sets the password of this Body2.
:param password: The password of this Body2. # noqa: E501
:type: str
"""
self._password = password
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(Body2, 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, Body2):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body2):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,149 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body20(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 = {
'description': 'str',
'host': 'str'
}
attribute_map = {
'description': 'description',
'host': 'host'
}
def __init__(self, description=None, host=None, _configuration=None): # noqa: E501
"""Body20 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._description = None
self._host = None
self.discriminator = None
if description is not None:
self.description = description
if host is not None:
self.host = host
@property
def description(self):
"""Gets the description of this Body20. # noqa: E501
:return: The description of this Body20. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this Body20.
:param description: The description of this Body20. # noqa: E501
:type: str
"""
self._description = description
@property
def host(self):
"""Gets the host of this Body20. # noqa: E501
:return: The host of this Body20. # noqa: E501
:rtype: str
"""
return self._host
@host.setter
def host(self, host):
"""Sets the host of this Body20.
:param host: The host of this Body20. # noqa: E501
:type: str
"""
self._host = host
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(Body20, 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, Body20):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body20):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,123 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body21(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 = {
'identity': 'str'
}
attribute_map = {
'identity': 'identity'
}
def __init__(self, identity=None, _configuration=None): # noqa: E501
"""Body21 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._identity = None
self.discriminator = None
if identity is not None:
self.identity = identity
@property
def identity(self):
"""Gets the identity of this Body21. # noqa: E501
:return: The identity of this Body21. # noqa: E501
:rtype: str
"""
return self._identity
@identity.setter
def identity(self, identity):
"""Sets the identity of this Body21.
:param identity: The identity of this Body21. # noqa: E501
:type: str
"""
self._identity = identity
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(Body21, 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, Body21):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body21):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,123 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body22(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 = {
'client_version': 'str'
}
attribute_map = {
'client_version': 'clientVersion'
}
def __init__(self, client_version=None, _configuration=None): # noqa: E501
"""Body22 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._client_version = None
self.discriminator = None
if client_version is not None:
self.client_version = client_version
@property
def client_version(self):
"""Gets the client_version of this Body22. # noqa: E501
:return: The client_version of this Body22. # noqa: E501
:rtype: str
"""
return self._client_version
@client_version.setter
def client_version(self, client_version):
"""Sets the client_version of this Body22.
:param client_version: The client_version of this Body22. # noqa: E501
:type: str
"""
self._client_version = client_version
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(Body22, 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, Body22):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body22):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,175 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body23(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 = {
'account': 'bool',
'environments': 'list[str]',
'shares': 'list[str]'
}
attribute_map = {
'account': 'account',
'environments': 'environments',
'shares': 'shares'
}
def __init__(self, account=None, environments=None, shares=None, _configuration=None): # noqa: E501
"""Body23 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._account = None
self._environments = None
self._shares = None
self.discriminator = None
if account is not None:
self.account = account
if environments is not None:
self.environments = environments
if shares is not None:
self.shares = shares
@property
def account(self):
"""Gets the account of this Body23. # noqa: E501
:return: The account of this Body23. # noqa: E501
:rtype: bool
"""
return self._account
@account.setter
def account(self, account):
"""Sets the account of this Body23.
:param account: The account of this Body23. # noqa: E501
:type: bool
"""
self._account = account
@property
def environments(self):
"""Gets the environments of this Body23. # noqa: E501
:return: The environments of this Body23. # noqa: E501
:rtype: list[str]
"""
return self._environments
@environments.setter
def environments(self, environments):
"""Sets the environments of this Body23.
:param environments: The environments of this Body23. # noqa: E501
:type: list[str]
"""
self._environments = environments
@property
def shares(self):
"""Gets the shares of this Body23. # noqa: E501
:return: The shares of this Body23. # noqa: E501
:rtype: list[str]
"""
return self._shares
@shares.setter
def shares(self, shares):
"""Sets the shares of this Body23.
:param shares: The shares of this Body23. # noqa: E501
:type: list[str]
"""
self._shares = shares
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(Body23, 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, Body23):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body23):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,201 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body24(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 = {
'env_zid': 'str',
'share_token': 'str',
'bind_address': 'str',
'description': 'str'
}
attribute_map = {
'env_zid': 'envZId',
'share_token': 'shareToken',
'bind_address': 'bindAddress',
'description': 'description'
}
def __init__(self, env_zid=None, share_token=None, bind_address=None, description=None, _configuration=None): # noqa: E501
"""Body24 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._env_zid = None
self._share_token = None
self._bind_address = None
self._description = None
self.discriminator = None
if env_zid is not None:
self.env_zid = env_zid
if share_token is not None:
self.share_token = share_token
if bind_address is not None:
self.bind_address = bind_address
if description is not None:
self.description = description
@property
def env_zid(self):
"""Gets the env_zid of this Body24. # noqa: E501
:return: The env_zid of this Body24. # noqa: E501
:rtype: str
"""
return self._env_zid
@env_zid.setter
def env_zid(self, env_zid):
"""Sets the env_zid of this Body24.
:param env_zid: The env_zid of this Body24. # noqa: E501
:type: str
"""
self._env_zid = env_zid
@property
def share_token(self):
"""Gets the share_token of this Body24. # noqa: E501
:return: The share_token of this Body24. # noqa: E501
:rtype: str
"""
return self._share_token
@share_token.setter
def share_token(self, share_token):
"""Sets the share_token of this Body24.
:param share_token: The share_token of this Body24. # noqa: E501
:type: str
"""
self._share_token = share_token
@property
def bind_address(self):
"""Gets the bind_address of this Body24. # noqa: E501
:return: The bind_address of this Body24. # noqa: E501
:rtype: str
"""
return self._bind_address
@bind_address.setter
def bind_address(self, bind_address):
"""Sets the bind_address of this Body24.
:param bind_address: The bind_address of this Body24. # noqa: E501
:type: str
"""
self._bind_address = bind_address
@property
def description(self):
"""Gets the description of this Body24. # noqa: E501
:return: The description of this Body24. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this Body24.
:param description: The description of this Body24. # 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(Body24, 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, Body24):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body24):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,175 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body25(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',
'bind_address': 'str',
'description': 'str'
}
attribute_map = {
'frontend_token': 'frontendToken',
'bind_address': 'bindAddress',
'description': 'description'
}
def __init__(self, frontend_token=None, bind_address=None, description=None, _configuration=None): # noqa: E501
"""Body25 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._frontend_token = None
self._bind_address = None
self._description = None
self.discriminator = None
if frontend_token is not None:
self.frontend_token = frontend_token
if bind_address is not None:
self.bind_address = bind_address
if description is not None:
self.description = description
@property
def frontend_token(self):
"""Gets the frontend_token of this Body25. # noqa: E501
:return: The frontend_token of this Body25. # noqa: E501
:rtype: str
"""
return self._frontend_token
@frontend_token.setter
def frontend_token(self, frontend_token):
"""Sets the frontend_token of this Body25.
:param frontend_token: The frontend_token of this Body25. # noqa: E501
:type: str
"""
self._frontend_token = frontend_token
@property
def bind_address(self):
"""Gets the bind_address of this Body25. # noqa: E501
:return: The bind_address of this Body25. # noqa: E501
:rtype: str
"""
return self._bind_address
@bind_address.setter
def bind_address(self, bind_address):
"""Sets the bind_address of this Body25.
:param bind_address: The bind_address of this Body25. # noqa: E501
:type: str
"""
self._bind_address = bind_address
@property
def description(self):
"""Gets the description of this Body25. # noqa: E501
:return: The description of this Body25. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this Body25.
:param description: The description of this Body25. # 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(Body25, 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, Body25):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body25):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,201 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body26(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 = {
'share_token': 'str',
'backend_proxy_endpoint': 'str',
'add_access_grants': 'list[str]',
'remove_access_grants': 'list[str]'
}
attribute_map = {
'share_token': 'shareToken',
'backend_proxy_endpoint': 'backendProxyEndpoint',
'add_access_grants': 'addAccessGrants',
'remove_access_grants': 'removeAccessGrants'
}
def __init__(self, share_token=None, backend_proxy_endpoint=None, add_access_grants=None, remove_access_grants=None, _configuration=None): # noqa: E501
"""Body26 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._share_token = None
self._backend_proxy_endpoint = None
self._add_access_grants = None
self._remove_access_grants = None
self.discriminator = None
if share_token is not None:
self.share_token = share_token
if backend_proxy_endpoint is not None:
self.backend_proxy_endpoint = backend_proxy_endpoint
if add_access_grants is not None:
self.add_access_grants = add_access_grants
if remove_access_grants is not None:
self.remove_access_grants = remove_access_grants
@property
def share_token(self):
"""Gets the share_token of this Body26. # noqa: E501
:return: The share_token of this Body26. # noqa: E501
:rtype: str
"""
return self._share_token
@share_token.setter
def share_token(self, share_token):
"""Sets the share_token of this Body26.
:param share_token: The share_token of this Body26. # noqa: E501
:type: str
"""
self._share_token = share_token
@property
def backend_proxy_endpoint(self):
"""Gets the backend_proxy_endpoint of this Body26. # noqa: E501
:return: The backend_proxy_endpoint of this Body26. # noqa: E501
:rtype: str
"""
return self._backend_proxy_endpoint
@backend_proxy_endpoint.setter
def backend_proxy_endpoint(self, backend_proxy_endpoint):
"""Sets the backend_proxy_endpoint of this Body26.
:param backend_proxy_endpoint: The backend_proxy_endpoint of this Body26. # noqa: E501
:type: str
"""
self._backend_proxy_endpoint = backend_proxy_endpoint
@property
def add_access_grants(self):
"""Gets the add_access_grants of this Body26. # noqa: E501
:return: The add_access_grants of this Body26. # noqa: E501
:rtype: list[str]
"""
return self._add_access_grants
@add_access_grants.setter
def add_access_grants(self, add_access_grants):
"""Sets the add_access_grants of this Body26.
:param add_access_grants: The add_access_grants of this Body26. # noqa: E501
:type: list[str]
"""
self._add_access_grants = add_access_grants
@property
def remove_access_grants(self):
"""Gets the remove_access_grants of this Body26. # noqa: E501
:return: The remove_access_grants of this Body26. # noqa: E501
:rtype: list[str]
"""
return self._remove_access_grants
@remove_access_grants.setter
def remove_access_grants(self, remove_access_grants):
"""Sets the remove_access_grants of this Body26.
:param remove_access_grants: The remove_access_grants of this Body26. # noqa: E501
:type: list[str]
"""
self._remove_access_grants = remove_access_grants
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(Body26, 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, Body26):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body26):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,175 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body27(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',
'env_zid': 'str',
'share_token': 'str'
}
attribute_map = {
'frontend_token': 'frontendToken',
'env_zid': 'envZId',
'share_token': 'shareToken'
}
def __init__(self, frontend_token=None, env_zid=None, share_token=None, _configuration=None): # noqa: E501
"""Body27 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._frontend_token = None
self._env_zid = None
self._share_token = None
self.discriminator = None
if frontend_token is not None:
self.frontend_token = frontend_token
if env_zid is not None:
self.env_zid = env_zid
if share_token is not None:
self.share_token = share_token
@property
def frontend_token(self):
"""Gets the frontend_token of this Body27. # noqa: E501
:return: The frontend_token of this Body27. # noqa: E501
:rtype: str
"""
return self._frontend_token
@frontend_token.setter
def frontend_token(self, frontend_token):
"""Sets the frontend_token of this Body27.
:param frontend_token: The frontend_token of this Body27. # noqa: E501
:type: str
"""
self._frontend_token = frontend_token
@property
def env_zid(self):
"""Gets the env_zid of this Body27. # noqa: E501
:return: The env_zid of this Body27. # noqa: E501
:rtype: str
"""
return self._env_zid
@env_zid.setter
def env_zid(self, env_zid):
"""Sets the env_zid of this Body27.
:param env_zid: The env_zid of this Body27. # noqa: E501
:type: str
"""
self._env_zid = env_zid
@property
def share_token(self):
"""Gets the share_token of this Body27. # noqa: E501
:return: The share_token of this Body27. # noqa: E501
:rtype: str
"""
return self._share_token
@share_token.setter
def share_token(self, share_token):
"""Sets the share_token of this Body27.
:param share_token: The share_token of this Body27. # noqa: E501
:type: str
"""
self._share_token = share_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(Body27, 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, Body27):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body27):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,175 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body28(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 = {
'env_zid': 'str',
'share_token': 'str',
'reserved': 'bool'
}
attribute_map = {
'env_zid': 'envZId',
'share_token': 'shareToken',
'reserved': 'reserved'
}
def __init__(self, env_zid=None, share_token=None, reserved=None, _configuration=None): # noqa: E501
"""Body28 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._env_zid = None
self._share_token = None
self._reserved = None
self.discriminator = None
if env_zid is not None:
self.env_zid = env_zid
if share_token is not None:
self.share_token = share_token
if reserved is not None:
self.reserved = reserved
@property
def env_zid(self):
"""Gets the env_zid of this Body28. # noqa: E501
:return: The env_zid of this Body28. # noqa: E501
:rtype: str
"""
return self._env_zid
@env_zid.setter
def env_zid(self, env_zid):
"""Sets the env_zid of this Body28.
:param env_zid: The env_zid of this Body28. # noqa: E501
:type: str
"""
self._env_zid = env_zid
@property
def share_token(self):
"""Gets the share_token of this Body28. # noqa: E501
:return: The share_token of this Body28. # noqa: E501
:rtype: str
"""
return self._share_token
@share_token.setter
def share_token(self, share_token):
"""Sets the share_token of this Body28.
:param share_token: The share_token of this Body28. # noqa: E501
:type: str
"""
self._share_token = share_token
@property
def reserved(self):
"""Gets the reserved of this Body28. # noqa: E501
:return: The reserved of this Body28. # noqa: E501
:rtype: bool
"""
return self._reserved
@reserved.setter
def reserved(self, reserved):
"""Sets the reserved of this Body28.
:param reserved: The reserved of this Body28. # noqa: E501
:type: bool
"""
self._reserved = reserved
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(Body28, 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, Body28):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body28):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,123 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body3(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_address': 'str'
}
attribute_map = {
'email_address': 'emailAddress'
}
def __init__(self, email_address=None, _configuration=None): # noqa: E501
"""Body3 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._email_address = None
self.discriminator = None
if email_address is not None:
self.email_address = email_address
@property
def email_address(self):
"""Gets the email_address of this Body3. # noqa: E501
:return: The email_address of this Body3. # noqa: E501
:rtype: str
"""
return self._email_address
@email_address.setter
def email_address(self, email_address):
"""Sets the email_address of this Body3.
:param email_address: The email_address of this Body3. # noqa: E501
:type: str
"""
self._email_address = email_address
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(Body3, 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, Body3):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body3):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,149 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body4(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 = {
'register_token': 'str',
'password': 'str'
}
attribute_map = {
'register_token': 'registerToken',
'password': 'password'
}
def __init__(self, register_token=None, password=None, _configuration=None): # noqa: E501
"""Body4 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._register_token = None
self._password = None
self.discriminator = None
if register_token is not None:
self.register_token = register_token
if password is not None:
self.password = password
@property
def register_token(self):
"""Gets the register_token of this Body4. # noqa: E501
:return: The register_token of this Body4. # noqa: E501
:rtype: str
"""
return self._register_token
@register_token.setter
def register_token(self, register_token):
"""Sets the register_token of this Body4.
:param register_token: The register_token of this Body4. # noqa: E501
:type: str
"""
self._register_token = register_token
@property
def password(self):
"""Gets the password of this Body4. # noqa: E501
:return: The password of this Body4. # noqa: E501
:rtype: str
"""
return self._password
@password.setter
def password(self, password):
"""Sets the password of this Body4.
:param password: The password of this Body4. # noqa: E501
:type: str
"""
self._password = password
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(Body4, 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, Body4):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body4):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,149 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body5(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 = {
'reset_token': 'str',
'password': 'str'
}
attribute_map = {
'reset_token': 'resetToken',
'password': 'password'
}
def __init__(self, reset_token=None, password=None, _configuration=None): # noqa: E501
"""Body5 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._reset_token = None
self._password = None
self.discriminator = None
if reset_token is not None:
self.reset_token = reset_token
if password is not None:
self.password = password
@property
def reset_token(self):
"""Gets the reset_token of this Body5. # noqa: E501
:return: The reset_token of this Body5. # noqa: E501
:rtype: str
"""
return self._reset_token
@reset_token.setter
def reset_token(self, reset_token):
"""Sets the reset_token of this Body5.
:param reset_token: The reset_token of this Body5. # noqa: E501
:type: str
"""
self._reset_token = reset_token
@property
def password(self):
"""Gets the password of this Body5. # noqa: E501
:return: The password of this Body5. # noqa: E501
:rtype: str
"""
return self._password
@password.setter
def password(self, password):
"""Sets the password of this Body5.
:param password: The password of this Body5. # noqa: E501
:type: str
"""
self._password = password
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(Body5, 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, Body5):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body5):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,123 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body6(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_address': 'str'
}
attribute_map = {
'email_address': 'emailAddress'
}
def __init__(self, email_address=None, _configuration=None): # noqa: E501
"""Body6 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._email_address = None
self.discriminator = None
if email_address is not None:
self.email_address = email_address
@property
def email_address(self):
"""Gets the email_address of this Body6. # noqa: E501
:return: The email_address of this Body6. # noqa: E501
:rtype: str
"""
return self._email_address
@email_address.setter
def email_address(self, email_address):
"""Sets the email_address of this Body6.
:param email_address: The email_address of this Body6. # noqa: E501
:type: str
"""
self._email_address = email_address
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(Body6, 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, Body6):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body6):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,123 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body7(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 = {
'register_token': 'str'
}
attribute_map = {
'register_token': 'registerToken'
}
def __init__(self, register_token=None, _configuration=None): # noqa: E501
"""Body7 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._register_token = None
self.discriminator = None
if register_token is not None:
self.register_token = register_token
@property
def register_token(self):
"""Gets the register_token of this Body7. # noqa: E501
:return: The register_token of this Body7. # noqa: E501
:rtype: str
"""
return self._register_token
@register_token.setter
def register_token(self, register_token):
"""Sets the register_token of this Body7.
:param register_token: The register_token of this Body7. # noqa: E501
:type: str
"""
self._register_token = register_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(Body7, 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, Body7):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body7):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,149 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body8(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',
'password': 'str'
}
attribute_map = {
'email': 'email',
'password': 'password'
}
def __init__(self, email=None, password=None, _configuration=None): # noqa: E501
"""Body8 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
self._email = None
self._password = None
self.discriminator = None
if email is not None:
self.email = email
if password is not None:
self.password = password
@property
def email(self):
"""Gets the email of this Body8. # noqa: E501
:return: The email of this Body8. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this Body8.
:param email: The email of this Body8. # noqa: E501
:type: str
"""
self._email = email
@property
def password(self):
"""Gets the password of this Body8. # noqa: E501
:return: The password of this Body8. # noqa: E501
:rtype: str
"""
return self._password
@password.setter
def password(self, password):
"""Sets the password of this Body8.
:param password: The password of this Body8. # noqa: E501
:type: str
"""
self._password = password
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(Body8, 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, Body8):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body8):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,208 +0,0 @@
# 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
from zrok_api.configuration import Configuration
class Body9(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, _configuration=None): # noqa: E501
"""Body9 - a model defined in Swagger""" # noqa: E501
if _configuration is None:
_configuration = Configuration()
self._configuration = _configuration
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 Body9. # noqa: E501
:return: The z_id of this Body9. # noqa: E501
:rtype: str
"""
return self._z_id
@z_id.setter
def z_id(self, z_id):
"""Sets the z_id of this Body9.
:param z_id: The z_id of this Body9. # noqa: E501
:type: str
"""
self._z_id = z_id
@property
def url_template(self):
"""Gets the url_template of this Body9. # noqa: E501
:return: The url_template of this Body9. # noqa: E501
:rtype: str
"""
return self._url_template
@url_template.setter
def url_template(self, url_template):
"""Sets the url_template of this Body9.
:param url_template: The url_template of this Body9. # noqa: E501
:type: str
"""
self._url_template = url_template
@property
def public_name(self):
"""Gets the public_name of this Body9. # noqa: E501
:return: The public_name of this Body9. # noqa: E501
:rtype: str
"""
return self._public_name
@public_name.setter
def public_name(self, public_name):
"""Sets the public_name of this Body9.
:param public_name: The public_name of this Body9. # noqa: E501
:type: str
"""
self._public_name = public_name
@property
def permission_mode(self):
"""Gets the permission_mode of this Body9. # noqa: E501
:return: The permission_mode of this Body9. # noqa: E501
:rtype: str
"""
return self._permission_mode
@permission_mode.setter
def permission_mode(self, permission_mode):
"""Sets the permission_mode of this Body9.
:param permission_mode: The permission_mode of this Body9. # noqa: E501
:type: str
"""
allowed_values = ["open", "closed"] # noqa: E501
if (self._configuration.client_side_validation and
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(Body9, 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, Body9):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, Body9):
return True
return self.to_dict() != other.to_dict()

View File

@ -1,162 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class ChangePasswordRequest(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',
'old_password': 'str',
'new_password': 'str'
}
attribute_map = {
'email': 'email',
'old_password': 'oldPassword',
'new_password': 'newPassword'
}
def __init__(self, email=None, old_password=None, new_password=None): # noqa: E501
"""ChangePasswordRequest - a model defined in Swagger""" # noqa: E501
self._email = None
self._old_password = None
self._new_password = None
self.discriminator = None
if email is not None:
self.email = email
if old_password is not None:
self.old_password = old_password
if new_password is not None:
self.new_password = new_password
@property
def email(self):
"""Gets the email of this ChangePasswordRequest. # noqa: E501
:return: The email of this ChangePasswordRequest. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this ChangePasswordRequest.
:param email: The email of this ChangePasswordRequest. # noqa: E501
:type: str
"""
self._email = email
@property
def old_password(self):
"""Gets the old_password of this ChangePasswordRequest. # noqa: E501
:return: The old_password of this ChangePasswordRequest. # noqa: E501
:rtype: str
"""
return self._old_password
@old_password.setter
def old_password(self, old_password):
"""Sets the old_password of this ChangePasswordRequest.
:param old_password: The old_password of this ChangePasswordRequest. # noqa: E501
:type: str
"""
self._old_password = old_password
@property
def new_password(self):
"""Gets the new_password of this ChangePasswordRequest. # noqa: E501
:return: The new_password of this ChangePasswordRequest. # noqa: E501
:rtype: str
"""
return self._new_password
@new_password.setter
def new_password(self, new_password):
"""Sets the new_password of this ChangePasswordRequest.
:param new_password: The new_password of this ChangePasswordRequest. # noqa: E501
:type: str
"""
self._new_password = new_password
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(ChangePasswordRequest, 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, ChangePasswordRequest):
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

@ -1,194 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class CreateFrontendRequest(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
"""CreateFrontendRequest - 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 CreateFrontendRequest. # noqa: E501
:return: The z_id of this CreateFrontendRequest. # noqa: E501
:rtype: str
"""
return self._z_id
@z_id.setter
def z_id(self, z_id):
"""Sets the z_id of this CreateFrontendRequest.
:param z_id: The z_id of this CreateFrontendRequest. # noqa: E501
:type: str
"""
self._z_id = z_id
@property
def url_template(self):
"""Gets the url_template of this CreateFrontendRequest. # noqa: E501
:return: The url_template of this CreateFrontendRequest. # noqa: E501
:rtype: str
"""
return self._url_template
@url_template.setter
def url_template(self, url_template):
"""Sets the url_template of this CreateFrontendRequest.
:param url_template: The url_template of this CreateFrontendRequest. # noqa: E501
:type: str
"""
self._url_template = url_template
@property
def public_name(self):
"""Gets the public_name of this CreateFrontendRequest. # noqa: E501
:return: The public_name of this CreateFrontendRequest. # noqa: E501
:rtype: str
"""
return self._public_name
@public_name.setter
def public_name(self, public_name):
"""Sets the public_name of this CreateFrontendRequest.
:param public_name: The public_name of this CreateFrontendRequest. # noqa: E501
:type: str
"""
self._public_name = public_name
@property
def permission_mode(self):
"""Gets the permission_mode of this CreateFrontendRequest. # noqa: E501
:return: The permission_mode of this CreateFrontendRequest. # noqa: E501
:rtype: str
"""
return self._permission_mode
@permission_mode.setter
def permission_mode(self, permission_mode):
"""Sets the permission_mode of this CreateFrontendRequest.
:param permission_mode: The permission_mode of this CreateFrontendRequest. # 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(CreateFrontendRequest, 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, CreateFrontendRequest):
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

@ -1,110 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class CreateFrontendResponse(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'
}
attribute_map = {
'token': 'token'
}
def __init__(self, token=None): # noqa: E501
"""CreateFrontendResponse - a model defined in Swagger""" # noqa: E501
self._token = None
self.discriminator = None
if token is not None:
self.token = token
@property
def token(self):
"""Gets the token of this CreateFrontendResponse. # noqa: E501
:return: The token of this CreateFrontendResponse. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this CreateFrontendResponse.
:param token: The token of this CreateFrontendResponse. # noqa: E501
:type: str
"""
self._token = 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(CreateFrontendResponse, 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, CreateFrontendResponse):
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

@ -1,110 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class DeleteFrontendRequest(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
"""DeleteFrontendRequest - 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 DeleteFrontendRequest. # noqa: E501
:return: The frontend_token of this DeleteFrontendRequest. # noqa: E501
:rtype: str
"""
return self._frontend_token
@frontend_token.setter
def frontend_token(self, frontend_token):
"""Sets the frontend_token of this DeleteFrontendRequest.
:param frontend_token: The frontend_token of this DeleteFrontendRequest. # 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(DeleteFrontendRequest, 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, DeleteFrontendRequest):
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

@ -1,110 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class DisableRequest(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 = {
'identity': 'str'
}
attribute_map = {
'identity': 'identity'
}
def __init__(self, identity=None): # noqa: E501
"""DisableRequest - a model defined in Swagger""" # noqa: E501
self._identity = None
self.discriminator = None
if identity is not None:
self.identity = identity
@property
def identity(self):
"""Gets the identity of this DisableRequest. # noqa: E501
:return: The identity of this DisableRequest. # noqa: E501
:rtype: str
"""
return self._identity
@identity.setter
def identity(self, identity):
"""Sets the identity of this DisableRequest.
:param identity: The identity of this DisableRequest. # noqa: E501
:type: str
"""
self._identity = identity
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(DisableRequest, 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, DisableRequest):
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

@ -1,136 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class EnableRequest(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 = {
'description': 'str',
'host': 'str'
}
attribute_map = {
'description': 'description',
'host': 'host'
}
def __init__(self, description=None, host=None): # noqa: E501
"""EnableRequest - a model defined in Swagger""" # noqa: E501
self._description = None
self._host = None
self.discriminator = None
if description is not None:
self.description = description
if host is not None:
self.host = host
@property
def description(self):
"""Gets the description of this EnableRequest. # noqa: E501
:return: The description of this EnableRequest. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this EnableRequest.
:param description: The description of this EnableRequest. # noqa: E501
:type: str
"""
self._description = description
@property
def host(self):
"""Gets the host of this EnableRequest. # noqa: E501
:return: The host of this EnableRequest. # noqa: E501
:rtype: str
"""
return self._host
@host.setter
def host(self, host):
"""Sets the host of this EnableRequest.
:param host: The host of this EnableRequest. # noqa: E501
:type: str
"""
self._host = host
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(EnableRequest, 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, EnableRequest):
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

@ -1,136 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class EnableResponse(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 = {
'identity': 'str',
'cfg': 'str'
}
attribute_map = {
'identity': 'identity',
'cfg': 'cfg'
}
def __init__(self, identity=None, cfg=None): # noqa: E501
"""EnableResponse - a model defined in Swagger""" # noqa: E501
self._identity = None
self._cfg = None
self.discriminator = None
if identity is not None:
self.identity = identity
if cfg is not None:
self.cfg = cfg
@property
def identity(self):
"""Gets the identity of this EnableResponse. # noqa: E501
:return: The identity of this EnableResponse. # noqa: E501
:rtype: str
"""
return self._identity
@identity.setter
def identity(self, identity):
"""Sets the identity of this EnableResponse.
:param identity: The identity of this EnableResponse. # noqa: E501
:type: str
"""
self._identity = identity
@property
def cfg(self):
"""Gets the cfg of this EnableResponse. # noqa: E501
:return: The cfg of this EnableResponse. # noqa: E501
:rtype: str
"""
return self._cfg
@cfg.setter
def cfg(self, cfg):
"""Sets the cfg of this EnableResponse.
:param cfg: The cfg of this EnableResponse. # noqa: E501
:type: str
"""
self._cfg = cfg
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(EnableResponse, 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, EnableResponse):
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

@ -1,136 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class InlineResponse2001Members(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
"""InlineResponse2001Members - 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 InlineResponse2001Members. # noqa: E501
:return: The email of this InlineResponse2001Members. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this InlineResponse2001Members.
:param email: The email of this InlineResponse2001Members. # noqa: E501
:type: str
"""
self._email = email
@property
def admin(self):
"""Gets the admin of this InlineResponse2001Members. # noqa: E501
:return: The admin of this InlineResponse2001Members. # noqa: E501
:rtype: bool
"""
return self._admin
@admin.setter
def admin(self, admin):
"""Sets the admin of this InlineResponse2001Members.
:param admin: The admin of this InlineResponse2001Members. # 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(InlineResponse2001Members, 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, InlineResponse2001Members):
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

@ -1,136 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class InlineResponse2002Organizations(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
"""InlineResponse2002Organizations - 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 InlineResponse2002Organizations. # noqa: E501
:return: The token of this InlineResponse2002Organizations. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this InlineResponse2002Organizations.
:param token: The token of this InlineResponse2002Organizations. # noqa: E501
:type: str
"""
self._token = token
@property
def description(self):
"""Gets the description of this InlineResponse2002Organizations. # noqa: E501
:return: The description of this InlineResponse2002Organizations. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this InlineResponse2002Organizations.
:param description: The description of this InlineResponse2002Organizations. # 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(InlineResponse2002Organizations, 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, InlineResponse2002Organizations):
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

@ -1,162 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class InlineResponse2003Memberships(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
"""InlineResponse2003Memberships - 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 InlineResponse2003Memberships. # noqa: E501
:return: The token of this InlineResponse2003Memberships. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this InlineResponse2003Memberships.
:param token: The token of this InlineResponse2003Memberships. # noqa: E501
:type: str
"""
self._token = token
@property
def description(self):
"""Gets the description of this InlineResponse2003Memberships. # noqa: E501
:return: The description of this InlineResponse2003Memberships. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this InlineResponse2003Memberships.
:param description: The description of this InlineResponse2003Memberships. # noqa: E501
:type: str
"""
self._description = description
@property
def admin(self):
"""Gets the admin of this InlineResponse2003Memberships. # noqa: E501
:return: The admin of this InlineResponse2003Memberships. # noqa: E501
:rtype: bool
"""
return self._admin
@admin.setter
def admin(self, admin):
"""Sets the admin of this InlineResponse2003Memberships.
:param admin: The admin of this InlineResponse2003Memberships. # 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(InlineResponse2003Memberships, 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, InlineResponse2003Memberships):
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

@ -1,136 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class InviteRequest(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',
'token': 'str'
}
attribute_map = {
'email': 'email',
'token': 'token'
}
def __init__(self, email=None, token=None): # noqa: E501
"""InviteRequest - a model defined in Swagger""" # noqa: E501
self._email = None
self._token = None
self.discriminator = None
if email is not None:
self.email = email
if token is not None:
self.token = token
@property
def email(self):
"""Gets the email of this InviteRequest. # noqa: E501
:return: The email of this InviteRequest. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this InviteRequest.
:param email: The email of this InviteRequest. # noqa: E501
:type: str
"""
self._email = email
@property
def token(self):
"""Gets the token of this InviteRequest. # noqa: E501
:return: The token of this InviteRequest. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this InviteRequest.
:param token: The token of this InviteRequest. # noqa: E501
:type: str
"""
self._token = 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(InviteRequest, 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, InviteRequest):
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

@ -1,110 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class InviteTokenGenerateRequest(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 = {
'tokens': 'list[str]'
}
attribute_map = {
'tokens': 'tokens'
}
def __init__(self, tokens=None): # noqa: E501
"""InviteTokenGenerateRequest - a model defined in Swagger""" # noqa: E501
self._tokens = None
self.discriminator = None
if tokens is not None:
self.tokens = tokens
@property
def tokens(self):
"""Gets the tokens of this InviteTokenGenerateRequest. # noqa: E501
:return: The tokens of this InviteTokenGenerateRequest. # noqa: E501
:rtype: list[str]
"""
return self._tokens
@tokens.setter
def tokens(self, tokens):
"""Sets the tokens of this InviteTokenGenerateRequest.
:param tokens: The tokens of this InviteTokenGenerateRequest. # noqa: E501
:type: list[str]
"""
self._tokens = tokens
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(InviteTokenGenerateRequest, 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, InviteTokenGenerateRequest):
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

@ -1,136 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class LoginRequest(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',
'password': 'str'
}
attribute_map = {
'email': 'email',
'password': 'password'
}
def __init__(self, email=None, password=None): # noqa: E501
"""LoginRequest - a model defined in Swagger""" # noqa: E501
self._email = None
self._password = None
self.discriminator = None
if email is not None:
self.email = email
if password is not None:
self.password = password
@property
def email(self):
"""Gets the email of this LoginRequest. # noqa: E501
:return: The email of this LoginRequest. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this LoginRequest.
:param email: The email of this LoginRequest. # noqa: E501
:type: str
"""
self._email = email
@property
def password(self):
"""Gets the password of this LoginRequest. # noqa: E501
:return: The password of this LoginRequest. # noqa: E501
:rtype: str
"""
return self._password
@password.setter
def password(self, password):
"""Sets the password of this LoginRequest.
:param password: The password of this LoginRequest. # noqa: E501
:type: str
"""
self._password = password
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(LoginRequest, 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, LoginRequest):
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

@ -1,84 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class LoginResponse(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""LoginResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(LoginResponse, 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, LoginResponse):
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

@ -1,110 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class OrganizationMembersBody(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'
}
attribute_map = {
'token': 'token'
}
def __init__(self, token=None): # noqa: E501
"""OrganizationMembersBody - a model defined in Swagger""" # noqa: E501
self._token = None
self.discriminator = None
if token is not None:
self.token = token
@property
def token(self):
"""Gets the token of this OrganizationMembersBody. # noqa: E501
:return: The token of this OrganizationMembersBody. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this OrganizationMembersBody.
:param token: The token of this OrganizationMembersBody. # noqa: E501
:type: str
"""
self._token = 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(OrganizationMembersBody, 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, OrganizationMembersBody):
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

@ -1,136 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class OrganizationremoveOrganizations(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',
'email': 'str'
}
attribute_map = {
'token': 'token',
'email': 'email'
}
def __init__(self, token=None, email=None): # noqa: E501
"""OrganizationremoveOrganizations - a model defined in Swagger""" # noqa: E501
self._token = None
self._email = None
self.discriminator = None
if token is not None:
self.token = token
if email is not None:
self.email = email
@property
def token(self):
"""Gets the token of this OrganizationremoveOrganizations. # noqa: E501
:return: The token of this OrganizationremoveOrganizations. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this OrganizationremoveOrganizations.
:param token: The token of this OrganizationremoveOrganizations. # noqa: E501
:type: str
"""
self._token = token
@property
def email(self):
"""Gets the email of this OrganizationremoveOrganizations. # noqa: E501
:return: The email of this OrganizationremoveOrganizations. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this OrganizationremoveOrganizations.
:param email: The email of this OrganizationremoveOrganizations. # noqa: E501
:type: str
"""
self._email = email
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(OrganizationremoveOrganizations, 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, OrganizationremoveOrganizations):
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

@ -1,214 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class PasswordRequirements(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 = {
'length': 'int',
'require_capital': 'bool',
'require_numeric': 'bool',
'require_special': 'bool',
'valid_special_characters': 'str'
}
attribute_map = {
'length': 'length',
'require_capital': 'requireCapital',
'require_numeric': 'requireNumeric',
'require_special': 'requireSpecial',
'valid_special_characters': 'validSpecialCharacters'
}
def __init__(self, length=None, require_capital=None, require_numeric=None, require_special=None, valid_special_characters=None): # noqa: E501
"""PasswordRequirements - a model defined in Swagger""" # noqa: E501
self._length = None
self._require_capital = None
self._require_numeric = None
self._require_special = None
self._valid_special_characters = None
self.discriminator = None
if length is not None:
self.length = length
if require_capital is not None:
self.require_capital = require_capital
if require_numeric is not None:
self.require_numeric = require_numeric
if require_special is not None:
self.require_special = require_special
if valid_special_characters is not None:
self.valid_special_characters = valid_special_characters
@property
def length(self):
"""Gets the length of this PasswordRequirements. # noqa: E501
:return: The length of this PasswordRequirements. # noqa: E501
:rtype: int
"""
return self._length
@length.setter
def length(self, length):
"""Sets the length of this PasswordRequirements.
:param length: The length of this PasswordRequirements. # noqa: E501
:type: int
"""
self._length = length
@property
def require_capital(self):
"""Gets the require_capital of this PasswordRequirements. # noqa: E501
:return: The require_capital of this PasswordRequirements. # noqa: E501
:rtype: bool
"""
return self._require_capital
@require_capital.setter
def require_capital(self, require_capital):
"""Sets the require_capital of this PasswordRequirements.
:param require_capital: The require_capital of this PasswordRequirements. # noqa: E501
:type: bool
"""
self._require_capital = require_capital
@property
def require_numeric(self):
"""Gets the require_numeric of this PasswordRequirements. # noqa: E501
:return: The require_numeric of this PasswordRequirements. # noqa: E501
:rtype: bool
"""
return self._require_numeric
@require_numeric.setter
def require_numeric(self, require_numeric):
"""Sets the require_numeric of this PasswordRequirements.
:param require_numeric: The require_numeric of this PasswordRequirements. # noqa: E501
:type: bool
"""
self._require_numeric = require_numeric
@property
def require_special(self):
"""Gets the require_special of this PasswordRequirements. # noqa: E501
:return: The require_special of this PasswordRequirements. # noqa: E501
:rtype: bool
"""
return self._require_special
@require_special.setter
def require_special(self, require_special):
"""Sets the require_special of this PasswordRequirements.
:param require_special: The require_special of this PasswordRequirements. # noqa: E501
:type: bool
"""
self._require_special = require_special
@property
def valid_special_characters(self):
"""Gets the valid_special_characters of this PasswordRequirements. # noqa: E501
:return: The valid_special_characters of this PasswordRequirements. # noqa: E501
:rtype: str
"""
return self._valid_special_characters
@valid_special_characters.setter
def valid_special_characters(self, valid_special_characters):
"""Sets the valid_special_characters of this PasswordRequirements.
:param valid_special_characters: The valid_special_characters of this PasswordRequirements. # noqa: E501
:type: str
"""
self._valid_special_characters = valid_special_characters
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(PasswordRequirements, 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, PasswordRequirements):
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

@ -1,240 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class PublicFrontend(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',
'z_id': 'str',
'url_template': 'str',
'public_name': 'str',
'created_at': 'int',
'updated_at': 'int'
}
attribute_map = {
'token': 'token',
'z_id': 'zId',
'url_template': 'urlTemplate',
'public_name': 'publicName',
'created_at': 'createdAt',
'updated_at': 'updatedAt'
}
def __init__(self, token=None, z_id=None, url_template=None, public_name=None, created_at=None, updated_at=None): # noqa: E501
"""PublicFrontend - a model defined in Swagger""" # noqa: E501
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 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 token(self):
"""Gets the token of this PublicFrontend. # noqa: E501
:return: The token of this PublicFrontend. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this PublicFrontend.
:param token: The token of this PublicFrontend. # noqa: E501
:type: str
"""
self._token = token
@property
def z_id(self):
"""Gets the z_id of this PublicFrontend. # noqa: E501
:return: The z_id of this PublicFrontend. # noqa: E501
:rtype: str
"""
return self._z_id
@z_id.setter
def z_id(self, z_id):
"""Sets the z_id of this PublicFrontend.
:param z_id: The z_id of this PublicFrontend. # noqa: E501
:type: str
"""
self._z_id = z_id
@property
def url_template(self):
"""Gets the url_template of this PublicFrontend. # noqa: E501
:return: The url_template of this PublicFrontend. # noqa: E501
:rtype: str
"""
return self._url_template
@url_template.setter
def url_template(self, url_template):
"""Sets the url_template of this PublicFrontend.
:param url_template: The url_template of this PublicFrontend. # noqa: E501
:type: str
"""
self._url_template = url_template
@property
def public_name(self):
"""Gets the public_name of this PublicFrontend. # noqa: E501
:return: The public_name of this PublicFrontend. # noqa: E501
:rtype: str
"""
return self._public_name
@public_name.setter
def public_name(self, public_name):
"""Sets the public_name of this PublicFrontend.
:param public_name: The public_name of this PublicFrontend. # noqa: E501
:type: str
"""
self._public_name = public_name
@property
def created_at(self):
"""Gets the created_at of this PublicFrontend. # noqa: E501
:return: The created_at of this PublicFrontend. # noqa: E501
:rtype: int
"""
return self._created_at
@created_at.setter
def created_at(self, created_at):
"""Sets the created_at of this PublicFrontend.
:param created_at: The created_at of this PublicFrontend. # noqa: E501
:type: int
"""
self._created_at = created_at
@property
def updated_at(self):
"""Gets the updated_at of this PublicFrontend. # noqa: E501
:return: The updated_at of this PublicFrontend. # noqa: E501
:rtype: int
"""
return self._updated_at
@updated_at.setter
def updated_at(self, updated_at):
"""Sets the updated_at of this PublicFrontend.
:param updated_at: The updated_at of this PublicFrontend. # noqa: E501
:type: int
"""
self._updated_at = updated_at
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(PublicFrontend, 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, PublicFrontend):
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

@ -1,84 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class PublicFrontendList(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 = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""PublicFrontendList - a model defined in Swagger""" # noqa: E501
self.discriminator = None
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(PublicFrontendList, 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, PublicFrontendList):
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

@ -1,110 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class RegenerateTokenBody(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_address': 'str'
}
attribute_map = {
'email_address': 'emailAddress'
}
def __init__(self, email_address=None): # noqa: E501
"""RegenerateTokenBody - a model defined in Swagger""" # noqa: E501
self._email_address = None
self.discriminator = None
if email_address is not None:
self.email_address = email_address
@property
def email_address(self):
"""Gets the email_address of this RegenerateTokenBody. # noqa: E501
:return: The email_address of this RegenerateTokenBody. # noqa: E501
:rtype: str
"""
return self._email_address
@email_address.setter
def email_address(self, email_address):
"""Sets the email_address of this RegenerateTokenBody.
:param email_address: The email_address of this RegenerateTokenBody. # noqa: E501
:type: str
"""
self._email_address = email_address
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(RegenerateTokenBody, 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, RegenerateTokenBody):
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

@ -1,136 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class RegisterRequest(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',
'password': 'str'
}
attribute_map = {
'token': 'token',
'password': 'password'
}
def __init__(self, token=None, password=None): # noqa: E501
"""RegisterRequest - a model defined in Swagger""" # noqa: E501
self._token = None
self._password = None
self.discriminator = None
if token is not None:
self.token = token
if password is not None:
self.password = password
@property
def token(self):
"""Gets the token of this RegisterRequest. # noqa: E501
:return: The token of this RegisterRequest. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this RegisterRequest.
:param token: The token of this RegisterRequest. # noqa: E501
:type: str
"""
self._token = token
@property
def password(self):
"""Gets the password of this RegisterRequest. # noqa: E501
:return: The password of this RegisterRequest. # noqa: E501
:rtype: str
"""
return self._password
@password.setter
def password(self, password):
"""Sets the password of this RegisterRequest.
:param password: The password of this RegisterRequest. # noqa: E501
:type: str
"""
self._password = password
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(RegisterRequest, 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, RegisterRequest):
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

@ -1,110 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class RegisterResponse(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'
}
attribute_map = {
'token': 'token'
}
def __init__(self, token=None): # noqa: E501
"""RegisterResponse - a model defined in Swagger""" # noqa: E501
self._token = None
self.discriminator = None
if token is not None:
self.token = token
@property
def token(self):
"""Gets the token of this RegisterResponse. # noqa: E501
:return: The token of this RegisterResponse. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this RegisterResponse.
:param token: The token of this RegisterResponse. # noqa: E501
:type: str
"""
self._token = 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(RegisterResponse, 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, RegisterResponse):
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

@ -1,136 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class ResetPasswordRequest(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',
'password': 'str'
}
attribute_map = {
'token': 'token',
'password': 'password'
}
def __init__(self, token=None, password=None): # noqa: E501
"""ResetPasswordRequest - a model defined in Swagger""" # noqa: E501
self._token = None
self._password = None
self.discriminator = None
if token is not None:
self.token = token
if password is not None:
self.password = password
@property
def token(self):
"""Gets the token of this ResetPasswordRequest. # noqa: E501
:return: The token of this ResetPasswordRequest. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this ResetPasswordRequest.
:param token: The token of this ResetPasswordRequest. # noqa: E501
:type: str
"""
self._token = token
@property
def password(self):
"""Gets the password of this ResetPasswordRequest. # noqa: E501
:return: The password of this ResetPasswordRequest. # noqa: E501
:rtype: str
"""
return self._password
@password.setter
def password(self, password):
"""Sets the password of this ResetPasswordRequest.
:param password: The password of this ResetPasswordRequest. # noqa: E501
:type: str
"""
self._password = password
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(ResetPasswordRequest, 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, ResetPasswordRequest):
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

@ -1,162 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class UnaccessRequest(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',
'env_zid': 'str',
'shr_token': 'str'
}
attribute_map = {
'frontend_token': 'frontendToken',
'env_zid': 'envZId',
'shr_token': 'shareToken'
}
def __init__(self, frontend_token=None, env_zid=None, shr_token=None): # noqa: E501
"""UnaccessRequest - a model defined in Swagger""" # noqa: E501
self._frontend_token = None
self._env_zid = None
self._shr_token = None
self.discriminator = None
if frontend_token is not None:
self.frontend_token = frontend_token
if env_zid is not None:
self.env_zid = env_zid
if shr_token is not None:
self.shr_token = shr_token
@property
def frontend_token(self):
"""Gets the frontend_token of this UnaccessRequest. # noqa: E501
:return: The frontend_token of this UnaccessRequest. # noqa: E501
:rtype: str
"""
return self._frontend_token
@frontend_token.setter
def frontend_token(self, frontend_token):
"""Sets the frontend_token of this UnaccessRequest.
:param frontend_token: The frontend_token of this UnaccessRequest. # noqa: E501
:type: str
"""
self._frontend_token = frontend_token
@property
def env_zid(self):
"""Gets the env_zid of this UnaccessRequest. # noqa: E501
:return: The env_zid of this UnaccessRequest. # noqa: E501
:rtype: str
"""
return self._env_zid
@env_zid.setter
def env_zid(self, env_zid):
"""Sets the env_zid of this UnaccessRequest.
:param env_zid: The env_zid of this UnaccessRequest. # noqa: E501
:type: str
"""
self._env_zid = env_zid
@property
def shr_token(self):
"""Gets the shr_token of this UnaccessRequest. # noqa: E501
:return: The shr_token of this UnaccessRequest. # noqa: E501
:rtype: str
"""
return self._shr_token
@shr_token.setter
def shr_token(self, shr_token):
"""Sets the shr_token of this UnaccessRequest.
:param shr_token: The shr_token of this UnaccessRequest. # noqa: E501
:type: str
"""
self._shr_token = shr_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(UnaccessRequest, 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, UnaccessRequest):
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

@ -1,162 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class UnshareRequest(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 = {
'env_zid': 'str',
'shr_token': 'str',
'reserved': 'bool'
}
attribute_map = {
'env_zid': 'envZId',
'shr_token': 'shareToken',
'reserved': 'reserved'
}
def __init__(self, env_zid=None, shr_token=None, reserved=None): # noqa: E501
"""UnshareRequest - a model defined in Swagger""" # noqa: E501
self._env_zid = None
self._shr_token = None
self._reserved = None
self.discriminator = None
if env_zid is not None:
self.env_zid = env_zid
if shr_token is not None:
self.shr_token = shr_token
if reserved is not None:
self.reserved = reserved
@property
def env_zid(self):
"""Gets the env_zid of this UnshareRequest. # noqa: E501
:return: The env_zid of this UnshareRequest. # noqa: E501
:rtype: str
"""
return self._env_zid
@env_zid.setter
def env_zid(self, env_zid):
"""Sets the env_zid of this UnshareRequest.
:param env_zid: The env_zid of this UnshareRequest. # noqa: E501
:type: str
"""
self._env_zid = env_zid
@property
def shr_token(self):
"""Gets the shr_token of this UnshareRequest. # noqa: E501
:return: The shr_token of this UnshareRequest. # noqa: E501
:rtype: str
"""
return self._shr_token
@shr_token.setter
def shr_token(self, shr_token):
"""Sets the shr_token of this UnshareRequest.
:param shr_token: The shr_token of this UnshareRequest. # noqa: E501
:type: str
"""
self._shr_token = shr_token
@property
def reserved(self):
"""Gets the reserved of this UnshareRequest. # noqa: E501
:return: The reserved of this UnshareRequest. # noqa: E501
:rtype: bool
"""
return self._reserved
@reserved.setter
def reserved(self, reserved):
"""Sets the reserved of this UnshareRequest.
:param reserved: The reserved of this UnshareRequest. # noqa: E501
:type: bool
"""
self._reserved = reserved
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(UnshareRequest, 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, UnshareRequest):
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

@ -1,162 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class UpdateFrontendRequest(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
"""UpdateFrontendRequest - 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 UpdateFrontendRequest. # noqa: E501
:return: The frontend_token of this UpdateFrontendRequest. # noqa: E501
:rtype: str
"""
return self._frontend_token
@frontend_token.setter
def frontend_token(self, frontend_token):
"""Sets the frontend_token of this UpdateFrontendRequest.
:param frontend_token: The frontend_token of this UpdateFrontendRequest. # noqa: E501
:type: str
"""
self._frontend_token = frontend_token
@property
def public_name(self):
"""Gets the public_name of this UpdateFrontendRequest. # noqa: E501
:return: The public_name of this UpdateFrontendRequest. # noqa: E501
:rtype: str
"""
return self._public_name
@public_name.setter
def public_name(self, public_name):
"""Sets the public_name of this UpdateFrontendRequest.
:param public_name: The public_name of this UpdateFrontendRequest. # noqa: E501
:type: str
"""
self._public_name = public_name
@property
def url_template(self):
"""Gets the url_template of this UpdateFrontendRequest. # noqa: E501
:return: The url_template of this UpdateFrontendRequest. # noqa: E501
:rtype: str
"""
return self._url_template
@url_template.setter
def url_template(self, url_template):
"""Sets the url_template of this UpdateFrontendRequest.
:param url_template: The url_template of this UpdateFrontendRequest. # 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(UpdateFrontendRequest, 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, UpdateFrontendRequest):
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

@ -1,188 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class UpdateShareRequest(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 = {
'shr_token': 'str',
'backend_proxy_endpoint': 'str',
'add_access_grants': 'list[str]',
'remove_access_grants': 'list[str]'
}
attribute_map = {
'shr_token': 'shareToken',
'backend_proxy_endpoint': 'backendProxyEndpoint',
'add_access_grants': 'addAccessGrants',
'remove_access_grants': 'removeAccessGrants'
}
def __init__(self, shr_token=None, backend_proxy_endpoint=None, add_access_grants=None, remove_access_grants=None): # noqa: E501
"""UpdateShareRequest - a model defined in Swagger""" # noqa: E501
self._shr_token = None
self._backend_proxy_endpoint = None
self._add_access_grants = None
self._remove_access_grants = None
self.discriminator = None
if shr_token is not None:
self.shr_token = shr_token
if backend_proxy_endpoint is not None:
self.backend_proxy_endpoint = backend_proxy_endpoint
if add_access_grants is not None:
self.add_access_grants = add_access_grants
if remove_access_grants is not None:
self.remove_access_grants = remove_access_grants
@property
def shr_token(self):
"""Gets the shr_token of this UpdateShareRequest. # noqa: E501
:return: The shr_token of this UpdateShareRequest. # noqa: E501
:rtype: str
"""
return self._shr_token
@shr_token.setter
def shr_token(self, shr_token):
"""Sets the shr_token of this UpdateShareRequest.
:param shr_token: The shr_token of this UpdateShareRequest. # noqa: E501
:type: str
"""
self._shr_token = shr_token
@property
def backend_proxy_endpoint(self):
"""Gets the backend_proxy_endpoint of this UpdateShareRequest. # noqa: E501
:return: The backend_proxy_endpoint of this UpdateShareRequest. # noqa: E501
:rtype: str
"""
return self._backend_proxy_endpoint
@backend_proxy_endpoint.setter
def backend_proxy_endpoint(self, backend_proxy_endpoint):
"""Sets the backend_proxy_endpoint of this UpdateShareRequest.
:param backend_proxy_endpoint: The backend_proxy_endpoint of this UpdateShareRequest. # noqa: E501
:type: str
"""
self._backend_proxy_endpoint = backend_proxy_endpoint
@property
def add_access_grants(self):
"""Gets the add_access_grants of this UpdateShareRequest. # noqa: E501
:return: The add_access_grants of this UpdateShareRequest. # noqa: E501
:rtype: list[str]
"""
return self._add_access_grants
@add_access_grants.setter
def add_access_grants(self, add_access_grants):
"""Sets the add_access_grants of this UpdateShareRequest.
:param add_access_grants: The add_access_grants of this UpdateShareRequest. # noqa: E501
:type: list[str]
"""
self._add_access_grants = add_access_grants
@property
def remove_access_grants(self):
"""Gets the remove_access_grants of this UpdateShareRequest. # noqa: E501
:return: The remove_access_grants of this UpdateShareRequest. # noqa: E501
:rtype: list[str]
"""
return self._remove_access_grants
@remove_access_grants.setter
def remove_access_grants(self, remove_access_grants):
"""Sets the remove_access_grants of this UpdateShareRequest.
:param remove_access_grants: The remove_access_grants of this UpdateShareRequest. # noqa: E501
:type: list[str]
"""
self._remove_access_grants = remove_access_grants
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(UpdateShareRequest, 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, UpdateShareRequest):
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

@ -1,110 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class VerifyRequest(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'
}
attribute_map = {
'token': 'token'
}
def __init__(self, token=None): # noqa: E501
"""VerifyRequest - a model defined in Swagger""" # noqa: E501
self._token = None
self.discriminator = None
if token is not None:
self.token = token
@property
def token(self):
"""Gets the token of this VerifyRequest. # noqa: E501
:return: The token of this VerifyRequest. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this VerifyRequest.
:param token: The token of this VerifyRequest. # noqa: E501
:type: str
"""
self._token = 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(VerifyRequest, 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, VerifyRequest):
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

@ -1,110 +0,0 @@
# 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
"""
import pprint
import re # noqa: F401
import six
class VerifyResponse(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'
}
attribute_map = {
'email': 'email'
}
def __init__(self, email=None): # noqa: E501
"""VerifyResponse - a model defined in Swagger""" # noqa: E501
self._email = None
self.discriminator = None
if email is not None:
self.email = email
@property
def email(self):
"""Gets the email of this VerifyResponse. # noqa: E501
:return: The email of this VerifyResponse. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this VerifyResponse.
:param email: The email of this VerifyResponse. # noqa: E501
:type: str
"""
self._email = email
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(VerifyResponse, 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, VerifyResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other