mirror of
https://github.com/openziti/zrok.git
synced 2025-06-26 04:31:30 +02:00
remove generated cruft from python api (#894)
This commit is contained in:
parent
adeff22a56
commit
d504791305
@ -1,136 +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
|
|
||||||
|
|
||||||
class InlineResponse2004Members(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
|
|
||||||
"""InlineResponse2004Members - 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 InlineResponse2004Members. # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
:return: The email of this InlineResponse2004Members. # noqa: E501
|
|
||||||
:rtype: str
|
|
||||||
"""
|
|
||||||
return self._email
|
|
||||||
|
|
||||||
@email.setter
|
|
||||||
def email(self, email):
|
|
||||||
"""Sets the email of this InlineResponse2004Members.
|
|
||||||
|
|
||||||
|
|
||||||
:param email: The email of this InlineResponse2004Members. # noqa: E501
|
|
||||||
:type: str
|
|
||||||
"""
|
|
||||||
|
|
||||||
self._email = email
|
|
||||||
|
|
||||||
@property
|
|
||||||
def admin(self):
|
|
||||||
"""Gets the admin of this InlineResponse2004Members. # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
:return: The admin of this InlineResponse2004Members. # noqa: E501
|
|
||||||
:rtype: bool
|
|
||||||
"""
|
|
||||||
return self._admin
|
|
||||||
|
|
||||||
@admin.setter
|
|
||||||
def admin(self, admin):
|
|
||||||
"""Sets the admin of this InlineResponse2004Members.
|
|
||||||
|
|
||||||
|
|
||||||
:param admin: The admin of this InlineResponse2004Members. # 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(InlineResponse2004Members, 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, InlineResponse2004Members):
|
|
||||||
return False
|
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
|
||||||
|
|
||||||
def __ne__(self, other):
|
|
||||||
"""Returns true if both objects are not equal"""
|
|
||||||
return not self == other
|
|
@ -1,136 +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
|
|
||||||
|
|
||||||
class InlineResponse2005Organizations(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
|
|
||||||
"""InlineResponse2005Organizations - 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 InlineResponse2005Organizations. # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
:return: The token of this InlineResponse2005Organizations. # noqa: E501
|
|
||||||
:rtype: str
|
|
||||||
"""
|
|
||||||
return self._token
|
|
||||||
|
|
||||||
@token.setter
|
|
||||||
def token(self, token):
|
|
||||||
"""Sets the token of this InlineResponse2005Organizations.
|
|
||||||
|
|
||||||
|
|
||||||
:param token: The token of this InlineResponse2005Organizations. # noqa: E501
|
|
||||||
:type: str
|
|
||||||
"""
|
|
||||||
|
|
||||||
self._token = token
|
|
||||||
|
|
||||||
@property
|
|
||||||
def description(self):
|
|
||||||
"""Gets the description of this InlineResponse2005Organizations. # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
:return: The description of this InlineResponse2005Organizations. # noqa: E501
|
|
||||||
:rtype: str
|
|
||||||
"""
|
|
||||||
return self._description
|
|
||||||
|
|
||||||
@description.setter
|
|
||||||
def description(self, description):
|
|
||||||
"""Sets the description of this InlineResponse2005Organizations.
|
|
||||||
|
|
||||||
|
|
||||||
:param description: The description of this InlineResponse2005Organizations. # 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(InlineResponse2005Organizations, 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, InlineResponse2005Organizations):
|
|
||||||
return False
|
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
|
||||||
|
|
||||||
def __ne__(self, other):
|
|
||||||
"""Returns true if both objects are not equal"""
|
|
||||||
return not self == other
|
|
@ -1,162 +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
|
|
||||||
|
|
||||||
class InlineResponse2006Memberships(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',
|
|
||||||
'description': 'str',
|
|
||||||
'admin': 'bool'
|
|
||||||
}
|
|
||||||
|
|
||||||
attribute_map = {
|
|
||||||
'organization_token': 'organizationToken',
|
|
||||||
'description': 'description',
|
|
||||||
'admin': 'admin'
|
|
||||||
}
|
|
||||||
|
|
||||||
def __init__(self, organization_token=None, description=None, admin=None): # noqa: E501
|
|
||||||
"""InlineResponse2006Memberships - a model defined in Swagger""" # noqa: E501
|
|
||||||
self._organization_token = None
|
|
||||||
self._description = None
|
|
||||||
self._admin = None
|
|
||||||
self.discriminator = None
|
|
||||||
if organization_token is not None:
|
|
||||||
self.organization_token = organization_token
|
|
||||||
if description is not None:
|
|
||||||
self.description = description
|
|
||||||
if admin is not None:
|
|
||||||
self.admin = admin
|
|
||||||
|
|
||||||
@property
|
|
||||||
def organization_token(self):
|
|
||||||
"""Gets the organization_token of this InlineResponse2006Memberships. # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
:return: The organization_token of this InlineResponse2006Memberships. # noqa: E501
|
|
||||||
:rtype: str
|
|
||||||
"""
|
|
||||||
return self._organization_token
|
|
||||||
|
|
||||||
@organization_token.setter
|
|
||||||
def organization_token(self, organization_token):
|
|
||||||
"""Sets the organization_token of this InlineResponse2006Memberships.
|
|
||||||
|
|
||||||
|
|
||||||
:param organization_token: The organization_token of this InlineResponse2006Memberships. # noqa: E501
|
|
||||||
:type: str
|
|
||||||
"""
|
|
||||||
|
|
||||||
self._organization_token = organization_token
|
|
||||||
|
|
||||||
@property
|
|
||||||
def description(self):
|
|
||||||
"""Gets the description of this InlineResponse2006Memberships. # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
:return: The description of this InlineResponse2006Memberships. # noqa: E501
|
|
||||||
:rtype: str
|
|
||||||
"""
|
|
||||||
return self._description
|
|
||||||
|
|
||||||
@description.setter
|
|
||||||
def description(self, description):
|
|
||||||
"""Sets the description of this InlineResponse2006Memberships.
|
|
||||||
|
|
||||||
|
|
||||||
:param description: The description of this InlineResponse2006Memberships. # noqa: E501
|
|
||||||
:type: str
|
|
||||||
"""
|
|
||||||
|
|
||||||
self._description = description
|
|
||||||
|
|
||||||
@property
|
|
||||||
def admin(self):
|
|
||||||
"""Gets the admin of this InlineResponse2006Memberships. # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
:return: The admin of this InlineResponse2006Memberships. # noqa: E501
|
|
||||||
:rtype: bool
|
|
||||||
"""
|
|
||||||
return self._admin
|
|
||||||
|
|
||||||
@admin.setter
|
|
||||||
def admin(self, admin):
|
|
||||||
"""Sets the admin of this InlineResponse2006Memberships.
|
|
||||||
|
|
||||||
|
|
||||||
:param admin: The admin of this InlineResponse2006Memberships. # 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(InlineResponse2006Memberships, 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, InlineResponse2006Memberships):
|
|
||||||
return False
|
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
|
||||||
|
|
||||||
def __ne__(self, other):
|
|
||||||
"""Returns true if both objects are not equal"""
|
|
||||||
return not self == other
|
|
@ -1,110 +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
|
|
||||||
|
|
||||||
class InlineResponse400(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 = {
|
|
||||||
'message': 'str'
|
|
||||||
}
|
|
||||||
|
|
||||||
attribute_map = {
|
|
||||||
'message': 'message'
|
|
||||||
}
|
|
||||||
|
|
||||||
def __init__(self, message=None): # noqa: E501
|
|
||||||
"""InlineResponse400 - a model defined in Swagger""" # noqa: E501
|
|
||||||
self._message = None
|
|
||||||
self.discriminator = None
|
|
||||||
if message is not None:
|
|
||||||
self.message = message
|
|
||||||
|
|
||||||
@property
|
|
||||||
def message(self):
|
|
||||||
"""Gets the message of this InlineResponse400. # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
:return: The message of this InlineResponse400. # noqa: E501
|
|
||||||
:rtype: str
|
|
||||||
"""
|
|
||||||
return self._message
|
|
||||||
|
|
||||||
@message.setter
|
|
||||||
def message(self, message):
|
|
||||||
"""Sets the message of this InlineResponse400.
|
|
||||||
|
|
||||||
|
|
||||||
:param message: The message of this InlineResponse400. # noqa: E501
|
|
||||||
:type: str
|
|
||||||
"""
|
|
||||||
|
|
||||||
self._message = message
|
|
||||||
|
|
||||||
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(InlineResponse400, 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, InlineResponse400):
|
|
||||||
return False
|
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
|
||||||
|
|
||||||
def __ne__(self, other):
|
|
||||||
"""Returns true if both objects are not equal"""
|
|
||||||
return not self == other
|
|
@ -1,110 +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
|
|
||||||
|
|
||||||
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
|
|
@ -1,110 +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
|
|
||||||
|
|
||||||
class VersionBody(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): # noqa: E501
|
|
||||||
"""VersionBody - a model defined in Swagger""" # noqa: E501
|
|
||||||
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 VersionBody. # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
:return: The client_version of this VersionBody. # noqa: E501
|
|
||||||
:rtype: str
|
|
||||||
"""
|
|
||||||
return self._client_version
|
|
||||||
|
|
||||||
@client_version.setter
|
|
||||||
def client_version(self, client_version):
|
|
||||||
"""Sets the client_version of this VersionBody.
|
|
||||||
|
|
||||||
|
|
||||||
:param client_version: The client_version of this VersionBody. # 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(VersionBody, 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, VersionBody):
|
|
||||||
return False
|
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
|
||||||
|
|
||||||
def __ne__(self, other):
|
|
||||||
"""Returns true if both objects are not equal"""
|
|
||||||
return not self == other
|
|
@ -1,110 +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
|
|
||||||
|
|
||||||
class VersionCheckBody(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): # noqa: E501
|
|
||||||
"""VersionCheckBody - a model defined in Swagger""" # noqa: E501
|
|
||||||
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 VersionCheckBody. # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
:return: The client_version of this VersionCheckBody. # noqa: E501
|
|
||||||
:rtype: str
|
|
||||||
"""
|
|
||||||
return self._client_version
|
|
||||||
|
|
||||||
@client_version.setter
|
|
||||||
def client_version(self, client_version):
|
|
||||||
"""Sets the client_version of this VersionCheckBody.
|
|
||||||
|
|
||||||
|
|
||||||
:param client_version: The client_version of this VersionCheckBody. # 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(VersionCheckBody, 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, VersionCheckBody):
|
|
||||||
return False
|
|
||||||
|
|
||||||
return self.__dict__ == other.__dict__
|
|
||||||
|
|
||||||
def __ne__(self, other):
|
|
||||||
"""Returns true if both objects are not equal"""
|
|
||||||
return not self == other
|
|
Loading…
x
Reference in New Issue
Block a user