organization toke (#820, #834)

This commit is contained in:
Michael Quigley
2025-02-04 14:26:27 -05:00
parent 09fdb92861
commit 598bfcc571
56 changed files with 454 additions and 192 deletions

View File

@ -223,6 +223,7 @@ Class | Method | HTTP request | Description
- [InlineResponse201](docs/InlineResponse201.md)
- [InlineResponse2011](docs/InlineResponse2011.md)
- [InlineResponse2012](docs/InlineResponse2012.md)
- [InlineResponse2013](docs/InlineResponse2013.md)
- [InviteBody](docs/InviteBody.md)
- [LoginBody](docs/LoginBody.md)
- [Metrics](docs/Metrics.md)

View File

@ -223,7 +223,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **create_organization**
> VerifyBody create_organization(body=body)
> InlineResponse2012 create_organization(body=body)
@ -260,7 +260,7 @@ Name | Type | Description | Notes
### Return type
[**VerifyBody**](VerifyBody.md)
[**InlineResponse2012**](InlineResponse2012.md)
### Authorization

View File

@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**token** | **str** | | [optional]
**organization_token** | **str** | | [optional]
**description** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -3,8 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**frontend_token** | **str** | | [optional]
**backend_mode** | **str** | | [optional]
**organization_token** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,10 @@
# InlineResponse2013
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**frontend_token** | **str** | | [optional]
**backend_mode** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**token** | **str** | | [optional]
**organization_token** | **str** | | [optional]
**email** | **str** | | [optional]
**admin** | **bool** | | [optional]

View File

@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**token** | **str** | | [optional]
**organization_token** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**token** | **str** | | [optional]
**organization_token** | **str** | | [optional]
**email** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -11,7 +11,7 @@ Method | HTTP request | Description
[**update_share**](ShareApi.md#update_share) | **PATCH** /share |
# **access**
> InlineResponse2012 access(body=body)
> InlineResponse2013 access(body=body)
@ -48,7 +48,7 @@ Name | Type | Description | Notes
### Return type
[**InlineResponse2012**](InlineResponse2012.md)
[**InlineResponse2013**](InlineResponse2013.md)
### Authorization

View File

@ -0,0 +1,39 @@
# 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
"""
from __future__ import absolute_import
import unittest
import zrok_api
from zrok_api.models.inline_response2013 import InlineResponse2013 # noqa: E501
from zrok_api.rest import ApiException
class TestInlineResponse2013(unittest.TestCase):
"""InlineResponse2013 unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testInlineResponse2013(self):
"""Test InlineResponse2013"""
# FIXME: construct object with mandatory attributes with example values
# model = zrok_api.models.inline_response2013.InlineResponse2013() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -55,6 +55,7 @@ from zrok_api.models.inline_response2006 import InlineResponse2006
from zrok_api.models.inline_response201 import InlineResponse201
from zrok_api.models.inline_response2011 import InlineResponse2011
from zrok_api.models.inline_response2012 import InlineResponse2012
from zrok_api.models.inline_response2013 import InlineResponse2013
from zrok_api.models.invite_body import InviteBody
from zrok_api.models.login_body import LoginBody
from zrok_api.models.metrics import Metrics

View File

@ -410,7 +410,7 @@ class AdminApi(object):
:param async_req bool
:param OrganizationBody body:
:return: VerifyBody
:return: InlineResponse2012
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: VerifyBody
:return: InlineResponse2012
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='VerifyBody', # noqa: E501
response_type='InlineResponse2012', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),

View File

@ -42,7 +42,7 @@ class ShareApi(object):
:param async_req bool
:param AccessBody body:
:return: InlineResponse2012
:return: InlineResponse2013
If the method is called asynchronously,
returns the request thread.
"""
@ -63,7 +63,7 @@ class ShareApi(object):
:param async_req bool
:param AccessBody body:
:return: InlineResponse2012
:return: InlineResponse2013
If the method is called asynchronously,
returns the request thread.
"""
@ -117,7 +117,7 @@ class ShareApi(object):
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='InlineResponse2012', # noqa: E501
response_type='InlineResponse2013', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),

View File

@ -45,6 +45,7 @@ from zrok_api.models.inline_response2006 import InlineResponse2006
from zrok_api.models.inline_response201 import InlineResponse201
from zrok_api.models.inline_response2011 import InlineResponse2011
from zrok_api.models.inline_response2012 import InlineResponse2012
from zrok_api.models.inline_response2013 import InlineResponse2013
from zrok_api.models.invite_body import InviteBody
from zrok_api.models.login_body import LoginBody
from zrok_api.models.metrics import Metrics

View File

@ -28,45 +28,45 @@ class InlineResponse2004Organizations(object):
and the value is json key in definition.
"""
swagger_types = {
'token': 'str',
'organization_token': 'str',
'description': 'str'
}
attribute_map = {
'token': 'token',
'organization_token': 'organizationToken',
'description': 'description'
}
def __init__(self, token=None, description=None): # noqa: E501
def __init__(self, organization_token=None, description=None): # noqa: E501
"""InlineResponse2004Organizations - a model defined in Swagger""" # noqa: E501
self._token = None
self._organization_token = None
self._description = None
self.discriminator = None
if token is not None:
self.token = token
if organization_token is not None:
self.organization_token = organization_token
if description is not None:
self.description = description
@property
def token(self):
"""Gets the token of this InlineResponse2004Organizations. # noqa: E501
def organization_token(self):
"""Gets the organization_token of this InlineResponse2004Organizations. # noqa: E501
:return: The token of this InlineResponse2004Organizations. # noqa: E501
:return: The organization_token of this InlineResponse2004Organizations. # noqa: E501
:rtype: str
"""
return self._token
return self._organization_token
@token.setter
def token(self, token):
"""Sets the token of this InlineResponse2004Organizations.
@organization_token.setter
def organization_token(self, organization_token):
"""Sets the organization_token of this InlineResponse2004Organizations.
:param token: The token of this InlineResponse2004Organizations. # noqa: E501
:param organization_token: The organization_token of this InlineResponse2004Organizations. # noqa: E501
:type: str
"""
self._token = token
self._organization_token = organization_token
@property
def description(self):

View File

@ -28,66 +28,40 @@ class InlineResponse2012(object):
and the value is json key in definition.
"""
swagger_types = {
'frontend_token': 'str',
'backend_mode': 'str'
'organization_token': 'str'
}
attribute_map = {
'frontend_token': 'frontendToken',
'backend_mode': 'backendMode'
'organization_token': 'organizationToken'
}
def __init__(self, frontend_token=None, backend_mode=None): # noqa: E501
def __init__(self, organization_token=None): # noqa: E501
"""InlineResponse2012 - a model defined in Swagger""" # noqa: E501
self._frontend_token = None
self._backend_mode = None
self._organization_token = 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
if organization_token is not None:
self.organization_token = organization_token
@property
def frontend_token(self):
"""Gets the frontend_token of this InlineResponse2012. # noqa: E501
def organization_token(self):
"""Gets the organization_token of this InlineResponse2012. # noqa: E501
:return: The frontend_token of this InlineResponse2012. # noqa: E501
:return: The organization_token of this InlineResponse2012. # noqa: E501
:rtype: str
"""
return self._frontend_token
return self._organization_token
@frontend_token.setter
def frontend_token(self, frontend_token):
"""Sets the frontend_token of this InlineResponse2012.
@organization_token.setter
def organization_token(self, organization_token):
"""Sets the organization_token of this InlineResponse2012.
:param frontend_token: The frontend_token of this InlineResponse2012. # noqa: E501
:param organization_token: The organization_token of this InlineResponse2012. # noqa: E501
:type: str
"""
self._frontend_token = frontend_token
@property
def backend_mode(self):
"""Gets the backend_mode of this InlineResponse2012. # noqa: E501
:return: The backend_mode of this InlineResponse2012. # noqa: E501
:rtype: str
"""
return self._backend_mode
@backend_mode.setter
def backend_mode(self, backend_mode):
"""Sets the backend_mode of this InlineResponse2012.
:param backend_mode: The backend_mode of this InlineResponse2012. # noqa: E501
:type: str
"""
self._backend_mode = backend_mode
self._organization_token = organization_token
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 InlineResponse2013(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
"""InlineResponse2013 - 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 InlineResponse2013. # noqa: E501
:return: The frontend_token of this InlineResponse2013. # noqa: E501
:rtype: str
"""
return self._frontend_token
@frontend_token.setter
def frontend_token(self, frontend_token):
"""Sets the frontend_token of this InlineResponse2013.
:param frontend_token: The frontend_token of this InlineResponse2013. # noqa: E501
:type: str
"""
self._frontend_token = frontend_token
@property
def backend_mode(self):
"""Gets the backend_mode of this InlineResponse2013. # noqa: E501
:return: The backend_mode of this InlineResponse2013. # noqa: E501
:rtype: str
"""
return self._backend_mode
@backend_mode.setter
def backend_mode(self, backend_mode):
"""Sets the backend_mode of this InlineResponse2013.
:param backend_mode: The backend_mode of this InlineResponse2013. # 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(InlineResponse2013, 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, InlineResponse2013):
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,50 +28,50 @@ class OrganizationAddBody(object):
and the value is json key in definition.
"""
swagger_types = {
'token': 'str',
'organization_token': 'str',
'email': 'str',
'admin': 'bool'
}
attribute_map = {
'token': 'token',
'organization_token': 'organizationToken',
'email': 'email',
'admin': 'admin'
}
def __init__(self, token=None, email=None, admin=None): # noqa: E501
def __init__(self, organization_token=None, email=None, admin=None): # noqa: E501
"""OrganizationAddBody - a model defined in Swagger""" # noqa: E501
self._token = None
self._organization_token = None
self._email = None
self._admin = None
self.discriminator = None
if token is not None:
self.token = token
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 token(self):
"""Gets the token of this OrganizationAddBody. # noqa: E501
def organization_token(self):
"""Gets the organization_token of this OrganizationAddBody. # noqa: E501
:return: The token of this OrganizationAddBody. # noqa: E501
:return: The organization_token of this OrganizationAddBody. # noqa: E501
:rtype: str
"""
return self._token
return self._organization_token
@token.setter
def token(self, token):
"""Sets the token of this OrganizationAddBody.
@organization_token.setter
def organization_token(self, organization_token):
"""Sets the organization_token of this OrganizationAddBody.
:param token: The token of this OrganizationAddBody. # noqa: E501
:param organization_token: The organization_token of this OrganizationAddBody. # noqa: E501
:type: str
"""
self._token = token
self._organization_token = organization_token
@property
def email(self):

View File

@ -28,40 +28,40 @@ class OrganizationBody1(object):
and the value is json key in definition.
"""
swagger_types = {
'token': 'str'
'organization_token': 'str'
}
attribute_map = {
'token': 'token'
'organization_token': 'organizationToken'
}
def __init__(self, token=None): # noqa: E501
def __init__(self, organization_token=None): # noqa: E501
"""OrganizationBody1 - a model defined in Swagger""" # noqa: E501
self._token = None
self._organization_token = None
self.discriminator = None
if token is not None:
self.token = token
if organization_token is not None:
self.organization_token = organization_token
@property
def token(self):
"""Gets the token of this OrganizationBody1. # noqa: E501
def organization_token(self):
"""Gets the organization_token of this OrganizationBody1. # noqa: E501
:return: The token of this OrganizationBody1. # noqa: E501
:return: The organization_token of this OrganizationBody1. # noqa: E501
:rtype: str
"""
return self._token
return self._organization_token
@token.setter
def token(self, token):
"""Sets the token of this OrganizationBody1.
@organization_token.setter
def organization_token(self, organization_token):
"""Sets the organization_token of this OrganizationBody1.
:param token: The token of this OrganizationBody1. # noqa: E501
:param organization_token: The organization_token of this OrganizationBody1. # noqa: E501
:type: str
"""
self._token = token
self._organization_token = organization_token
def to_dict(self):
"""Returns the model properties as a dict"""

View File

@ -28,45 +28,45 @@ class OrganizationRemoveBody(object):
and the value is json key in definition.
"""
swagger_types = {
'token': 'str',
'organization_token': 'str',
'email': 'str'
}
attribute_map = {
'token': 'token',
'organization_token': 'organizationToken',
'email': 'email'
}
def __init__(self, token=None, email=None): # noqa: E501
def __init__(self, organization_token=None, email=None): # noqa: E501
"""OrganizationRemoveBody - a model defined in Swagger""" # noqa: E501
self._token = None
self._organization_token = None
self._email = None
self.discriminator = None
if token is not None:
self.token = token
if organization_token is not None:
self.organization_token = organization_token
if email is not None:
self.email = email
@property
def token(self):
"""Gets the token of this OrganizationRemoveBody. # noqa: E501
def organization_token(self):
"""Gets the organization_token of this OrganizationRemoveBody. # noqa: E501
:return: The token of this OrganizationRemoveBody. # noqa: E501
:return: The organization_token of this OrganizationRemoveBody. # noqa: E501
:rtype: str
"""
return self._token
return self._organization_token
@token.setter
def token(self, token):
"""Sets the token of this OrganizationRemoveBody.
@organization_token.setter
def organization_token(self, organization_token):
"""Sets the organization_token of this OrganizationRemoveBody.
:param token: The token of this OrganizationRemoveBody. # noqa: E501
:param organization_token: The organization_token of this OrganizationRemoveBody. # noqa: E501
:type: str
"""
self._token = token
self._organization_token = organization_token
@property
def email(self):