verify endpoint polish (#834)

This commit is contained in:
Michael Quigley
2025-02-03 12:59:55 -05:00
parent d9b32e14c9
commit 14d03b88f7
32 changed files with 1079 additions and 230 deletions

View File

@ -46,12 +46,13 @@ from zrok_api.models.grants_body import GrantsBody
from zrok_api.models.identity_body import IdentityBody
from zrok_api.models.inline_response200 import InlineResponse200
from zrok_api.models.inline_response2001 import InlineResponse2001
from zrok_api.models.inline_response2001_members import InlineResponse2001Members
from zrok_api.models.inline_response2002 import InlineResponse2002
from zrok_api.models.inline_response2002_organizations import InlineResponse2002Organizations
from zrok_api.models.inline_response2002_members import InlineResponse2002Members
from zrok_api.models.inline_response2003 import InlineResponse2003
from zrok_api.models.inline_response2003_memberships import InlineResponse2003Memberships
from zrok_api.models.inline_response2003_organizations import InlineResponse2003Organizations
from zrok_api.models.inline_response2004 import InlineResponse2004
from zrok_api.models.inline_response2004_memberships import InlineResponse2004Memberships
from zrok_api.models.inline_response2005 import InlineResponse2005
from zrok_api.models.inline_response201 import InlineResponse201
from zrok_api.models.invite_body import InviteBody
from zrok_api.models.invite_token_generate_request import InviteTokenGenerateRequest
@ -83,6 +84,5 @@ from zrok_api.models.unaccess_request import UnaccessRequest
from zrok_api.models.unshare_request import UnshareRequest
from zrok_api.models.update_frontend_request import UpdateFrontendRequest
from zrok_api.models.update_share_request import UpdateShareRequest
from zrok_api.models.verify_request import VerifyRequest
from zrok_api.models.verify_response import VerifyResponse
from zrok_api.models.verify_body import VerifyBody
from zrok_api.models.version import Version

View File

@ -688,8 +688,8 @@ class AccountApi(object):
>>> result = thread.get()
:param async_req bool
:param VerifyRequest body:
:return: VerifyResponse
:param VerifyBody body:
:return: InlineResponse2001
If the method is called asynchronously,
returns the request thread.
"""
@ -709,8 +709,8 @@ class AccountApi(object):
>>> result = thread.get()
:param async_req bool
:param VerifyRequest body:
:return: VerifyResponse
:param VerifyBody body:
:return: InlineResponse2001
If the method is called asynchronously,
returns the request thread.
"""
@ -764,7 +764,7 @@ class AccountApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='VerifyResponse', # noqa: E501
response_type='InlineResponse2001', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),

View File

@ -131,7 +131,7 @@ class AdminApi(object):
:param async_req bool
:param AccountBody body:
:return: InlineResponse200
:return: VerifyBody
If the method is called asynchronously,
returns the request thread.
"""
@ -152,7 +152,7 @@ class AdminApi(object):
:param async_req bool
:param AccountBody body:
:return: InlineResponse200
:return: VerifyBody
If the method is called asynchronously,
returns the request thread.
"""
@ -206,7 +206,7 @@ class AdminApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse200', # noqa: E501
response_type='VerifyBody', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@ -410,7 +410,7 @@ class AdminApi(object):
:param async_req bool
:param OrganizationBody body:
:return: InlineResponse200
:return: VerifyBody
If the method is called asynchronously,
returns the request thread.
"""
@ -431,7 +431,7 @@ class AdminApi(object):
:param async_req bool
:param OrganizationBody body:
:return: InlineResponse200
:return: VerifyBody
If the method is called asynchronously,
returns the request thread.
"""
@ -485,7 +485,7 @@ class AdminApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse200', # noqa: E501
response_type='VerifyBody', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@ -944,7 +944,7 @@ class AdminApi(object):
:param async_req bool
:param OrganizationListBody body:
:return: InlineResponse2001
:return: InlineResponse2002
If the method is called asynchronously,
returns the request thread.
"""
@ -965,7 +965,7 @@ class AdminApi(object):
:param async_req bool
:param OrganizationListBody body:
:return: InlineResponse2001
:return: InlineResponse2002
If the method is called asynchronously,
returns the request thread.
"""
@ -1019,7 +1019,7 @@ class AdminApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse2001', # noqa: E501
response_type='InlineResponse2002', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@ -1036,7 +1036,7 @@ class AdminApi(object):
>>> result = thread.get()
:param async_req bool
:return: InlineResponse2002
:return: InlineResponse2003
If the method is called asynchronously,
returns the request thread.
"""
@ -1056,7 +1056,7 @@ class AdminApi(object):
>>> result = thread.get()
:param async_req bool
:return: InlineResponse2002
:return: InlineResponse2003
If the method is called asynchronously,
returns the request thread.
"""
@ -1104,7 +1104,7 @@ class AdminApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse2002', # noqa: E501
response_type='InlineResponse2003', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),

View File

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

View File

@ -36,12 +36,13 @@ from zrok_api.models.grants_body import GrantsBody
from zrok_api.models.identity_body import IdentityBody
from zrok_api.models.inline_response200 import InlineResponse200
from zrok_api.models.inline_response2001 import InlineResponse2001
from zrok_api.models.inline_response2001_members import InlineResponse2001Members
from zrok_api.models.inline_response2002 import InlineResponse2002
from zrok_api.models.inline_response2002_organizations import InlineResponse2002Organizations
from zrok_api.models.inline_response2002_members import InlineResponse2002Members
from zrok_api.models.inline_response2003 import InlineResponse2003
from zrok_api.models.inline_response2003_memberships import InlineResponse2003Memberships
from zrok_api.models.inline_response2003_organizations import InlineResponse2003Organizations
from zrok_api.models.inline_response2004 import InlineResponse2004
from zrok_api.models.inline_response2004_memberships import InlineResponse2004Memberships
from zrok_api.models.inline_response2005 import InlineResponse2005
from zrok_api.models.inline_response201 import InlineResponse201
from zrok_api.models.invite_body import InviteBody
from zrok_api.models.invite_token_generate_request import InviteTokenGenerateRequest
@ -73,6 +74,5 @@ from zrok_api.models.unaccess_request import UnaccessRequest
from zrok_api.models.unshare_request import UnshareRequest
from zrok_api.models.update_frontend_request import UpdateFrontendRequest
from zrok_api.models.update_share_request import UpdateShareRequest
from zrok_api.models.verify_request import VerifyRequest
from zrok_api.models.verify_response import VerifyResponse
from zrok_api.models.verify_body import VerifyBody
from zrok_api.models.version import Version

View File

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

View File

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

View File

@ -0,0 +1,136 @@
# coding: utf-8
"""
zrok
zrok client access # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class InlineResponse2002Members(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
"""InlineResponse2002Members - 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 InlineResponse2002Members. # noqa: E501
:return: The email of this InlineResponse2002Members. # noqa: E501
:rtype: str
"""
return self._email
@email.setter
def email(self, email):
"""Sets the email of this InlineResponse2002Members.
:param email: The email of this InlineResponse2002Members. # noqa: E501
:type: str
"""
self._email = email
@property
def admin(self):
"""Gets the admin of this InlineResponse2002Members. # noqa: E501
:return: The admin of this InlineResponse2002Members. # noqa: E501
:rtype: bool
"""
return self._admin
@admin.setter
def admin(self, admin):
"""Sets the admin of this InlineResponse2002Members.
:param admin: The admin of this InlineResponse2002Members. # 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(InlineResponse2002Members, 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, InlineResponse2002Members):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

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

View File

@ -0,0 +1,136 @@
# coding: utf-8
"""
zrok
zrok client access # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class InlineResponse2003Organizations(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
"""InlineResponse2003Organizations - 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 InlineResponse2003Organizations. # noqa: E501
:return: The token of this InlineResponse2003Organizations. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this InlineResponse2003Organizations.
:param token: The token of this InlineResponse2003Organizations. # noqa: E501
:type: str
"""
self._token = token
@property
def description(self):
"""Gets the description of this InlineResponse2003Organizations. # noqa: E501
:return: The description of this InlineResponse2003Organizations. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this InlineResponse2003Organizations.
:param description: The description of this InlineResponse2003Organizations. # 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(InlineResponse2003Organizations, 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, InlineResponse2003Organizations):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

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

View File

@ -0,0 +1,162 @@
# coding: utf-8
"""
zrok
zrok client access # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class InlineResponse2004Memberships(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
"""InlineResponse2004Memberships - 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 InlineResponse2004Memberships. # noqa: E501
:return: The token of this InlineResponse2004Memberships. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this InlineResponse2004Memberships.
:param token: The token of this InlineResponse2004Memberships. # noqa: E501
:type: str
"""
self._token = token
@property
def description(self):
"""Gets the description of this InlineResponse2004Memberships. # noqa: E501
:return: The description of this InlineResponse2004Memberships. # noqa: E501
:rtype: str
"""
return self._description
@description.setter
def description(self, description):
"""Sets the description of this InlineResponse2004Memberships.
:param description: The description of this InlineResponse2004Memberships. # noqa: E501
:type: str
"""
self._description = description
@property
def admin(self):
"""Gets the admin of this InlineResponse2004Memberships. # noqa: E501
:return: The admin of this InlineResponse2004Memberships. # noqa: E501
:rtype: bool
"""
return self._admin
@admin.setter
def admin(self, admin):
"""Sets the admin of this InlineResponse2004Memberships.
:param admin: The admin of this InlineResponse2004Memberships. # 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(InlineResponse2004Memberships, 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, InlineResponse2004Memberships):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

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

View File

@ -0,0 +1,110 @@
# coding: utf-8
"""
zrok
zrok client access # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class VerifyBody(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
"""VerifyBody - 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 VerifyBody. # noqa: E501
:return: The token of this VerifyBody. # noqa: E501
:rtype: str
"""
return self._token
@token.setter
def token(self, token):
"""Sets the token of this VerifyBody.
:param token: The token of this VerifyBody. # 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(VerifyBody, 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, VerifyBody):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other