mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 08:05:04 +02:00
@ -222,6 +222,7 @@ Class | Method | HTTP request | Description
|
||||
- [InlineResponse2006](docs/InlineResponse2006.md)
|
||||
- [InlineResponse201](docs/InlineResponse201.md)
|
||||
- [InlineResponse2011](docs/InlineResponse2011.md)
|
||||
- [InlineResponse2012](docs/InlineResponse2012.md)
|
||||
- [InviteBody](docs/InviteBody.md)
|
||||
- [LoginBody](docs/LoginBody.md)
|
||||
- [Metrics](docs/Metrics.md)
|
||||
|
@ -121,7 +121,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_frontend**
|
||||
> VerifyBody create_frontend(body=body)
|
||||
> InlineResponse201 create_frontend(body=body)
|
||||
|
||||
|
||||
|
||||
@ -158,7 +158,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**VerifyBody**](VerifyBody.md)
|
||||
[**InlineResponse201**](InlineResponse201.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -172,7 +172,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_identity**
|
||||
> InlineResponse201 create_identity(body=body)
|
||||
> InlineResponse2011 create_identity(body=body)
|
||||
|
||||
|
||||
|
||||
@ -209,7 +209,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponse201**](InlineResponse201.md)
|
||||
[**InlineResponse2011**](InlineResponse2011.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
@ -58,7 +58,7 @@ void (empty response body)
|
||||
[[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)
|
||||
|
||||
# **enable**
|
||||
> InlineResponse201 enable(body=body)
|
||||
> InlineResponse2011 enable(body=body)
|
||||
|
||||
|
||||
|
||||
@ -95,7 +95,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponse201**](InlineResponse201.md)
|
||||
[**InlineResponse2011**](InlineResponse2011.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**token** | **str** | | [optional]
|
||||
**frontend_token** | **str** | | [optional]
|
||||
**z_id** | **str** | | [optional]
|
||||
**url_template** | **str** | | [optional]
|
||||
**public_name** | **str** | | [optional]
|
||||
|
@ -3,8 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**identity** | **str** | | [optional]
|
||||
**cfg** | **str** | | [optional]
|
||||
**frontend_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)
|
||||
|
||||
|
@ -3,8 +3,8 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**frontend_token** | **str** | | [optional]
|
||||
**backend_mode** | **str** | | [optional]
|
||||
**identity** | **str** | | [optional]
|
||||
**cfg** | **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)
|
||||
|
||||
|
10
sdk/python/sdk/zrok/docs/InlineResponse2012.md
Normal file
10
sdk/python/sdk/zrok/docs/InlineResponse2012.md
Normal file
@ -0,0 +1,10 @@
|
||||
# InlineResponse2012
|
||||
|
||||
## 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)
|
||||
|
@ -11,7 +11,7 @@ Method | HTTP request | Description
|
||||
[**update_share**](ShareApi.md#update_share) | **PATCH** /share |
|
||||
|
||||
# **access**
|
||||
> InlineResponse2011 access(body=body)
|
||||
> InlineResponse2012 access(body=body)
|
||||
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponse2011**](InlineResponse2011.md)
|
||||
[**InlineResponse2012**](InlineResponse2012.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
39
sdk/python/sdk/zrok/test/test_inline_response2012.py
Normal file
39
sdk/python/sdk/zrok/test/test_inline_response2012.py
Normal 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_response2012 import InlineResponse2012 # noqa: E501
|
||||
from zrok_api.rest import ApiException
|
||||
|
||||
|
||||
class TestInlineResponse2012(unittest.TestCase):
|
||||
"""InlineResponse2012 unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testInlineResponse2012(self):
|
||||
"""Test InlineResponse2012"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = zrok_api.models.inline_response2012.InlineResponse2012() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
@ -54,6 +54,7 @@ from zrok_api.models.inline_response2005_memberships import InlineResponse2005Me
|
||||
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.invite_body import InviteBody
|
||||
from zrok_api.models.login_body import LoginBody
|
||||
from zrok_api.models.metrics import Metrics
|
||||
|
@ -224,7 +224,7 @@ class AdminApi(object):
|
||||
|
||||
:param async_req bool
|
||||
:param FrontendBody body:
|
||||
:return: VerifyBody
|
||||
:return: InlineResponse201
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
@ -245,7 +245,7 @@ class AdminApi(object):
|
||||
|
||||
:param async_req bool
|
||||
:param FrontendBody body:
|
||||
:return: VerifyBody
|
||||
:return: InlineResponse201
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
@ -299,7 +299,7 @@ class AdminApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='VerifyBody', # noqa: E501
|
||||
response_type='InlineResponse201', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=params.get('async_req'),
|
||||
_return_http_data_only=params.get('_return_http_data_only'),
|
||||
@ -317,7 +317,7 @@ class AdminApi(object):
|
||||
|
||||
:param async_req bool
|
||||
:param IdentityBody body:
|
||||
:return: InlineResponse201
|
||||
:return: InlineResponse2011
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
@ -338,7 +338,7 @@ class AdminApi(object):
|
||||
|
||||
:param async_req bool
|
||||
:param IdentityBody body:
|
||||
:return: InlineResponse201
|
||||
:return: InlineResponse2011
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
@ -392,7 +392,7 @@ class AdminApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='InlineResponse201', # noqa: E501
|
||||
response_type='InlineResponse2011', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=params.get('async_req'),
|
||||
_return_http_data_only=params.get('_return_http_data_only'),
|
||||
|
@ -131,7 +131,7 @@ class EnvironmentApi(object):
|
||||
|
||||
:param async_req bool
|
||||
:param EnableBody body:
|
||||
:return: InlineResponse201
|
||||
:return: InlineResponse2011
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
@ -152,7 +152,7 @@ class EnvironmentApi(object):
|
||||
|
||||
:param async_req bool
|
||||
:param EnableBody body:
|
||||
:return: InlineResponse201
|
||||
:return: InlineResponse2011
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
@ -206,7 +206,7 @@ class EnvironmentApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='InlineResponse201', # noqa: E501
|
||||
response_type='InlineResponse2011', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=params.get('async_req'),
|
||||
_return_http_data_only=params.get('_return_http_data_only'),
|
||||
|
@ -42,7 +42,7 @@ class ShareApi(object):
|
||||
|
||||
:param async_req bool
|
||||
:param AccessBody body:
|
||||
:return: InlineResponse2011
|
||||
:return: InlineResponse2012
|
||||
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: InlineResponse2011
|
||||
:return: InlineResponse2012
|
||||
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='InlineResponse2011', # 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'),
|
||||
|
@ -44,6 +44,7 @@ from zrok_api.models.inline_response2005_memberships import InlineResponse2005Me
|
||||
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.invite_body import InviteBody
|
||||
from zrok_api.models.login_body import LoginBody
|
||||
from zrok_api.models.metrics import Metrics
|
||||
|
@ -28,7 +28,7 @@ class InlineResponse2002(object):
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'token': 'str',
|
||||
'frontend_token': 'str',
|
||||
'z_id': 'str',
|
||||
'url_template': 'str',
|
||||
'public_name': 'str',
|
||||
@ -37,7 +37,7 @@ class InlineResponse2002(object):
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'token': 'token',
|
||||
'frontend_token': 'frontendToken',
|
||||
'z_id': 'zId',
|
||||
'url_template': 'urlTemplate',
|
||||
'public_name': 'publicName',
|
||||
@ -45,17 +45,17 @@ class InlineResponse2002(object):
|
||||
'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
|
||||
def __init__(self, frontend_token=None, z_id=None, url_template=None, public_name=None, created_at=None, updated_at=None): # noqa: E501
|
||||
"""InlineResponse2002 - a model defined in Swagger""" # noqa: E501
|
||||
self._token = None
|
||||
self._frontend_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 frontend_token is not None:
|
||||
self.frontend_token = frontend_token
|
||||
if z_id is not None:
|
||||
self.z_id = z_id
|
||||
if url_template is not None:
|
||||
@ -68,25 +68,25 @@ class InlineResponse2002(object):
|
||||
self.updated_at = updated_at
|
||||
|
||||
@property
|
||||
def token(self):
|
||||
"""Gets the token of this InlineResponse2002. # noqa: E501
|
||||
def frontend_token(self):
|
||||
"""Gets the frontend_token of this InlineResponse2002. # noqa: E501
|
||||
|
||||
|
||||
:return: The token of this InlineResponse2002. # noqa: E501
|
||||
:return: The frontend_token of this InlineResponse2002. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._token
|
||||
return self._frontend_token
|
||||
|
||||
@token.setter
|
||||
def token(self, token):
|
||||
"""Sets the token of this InlineResponse2002.
|
||||
@frontend_token.setter
|
||||
def frontend_token(self, frontend_token):
|
||||
"""Sets the frontend_token of this InlineResponse2002.
|
||||
|
||||
|
||||
:param token: The token of this InlineResponse2002. # noqa: E501
|
||||
:param frontend_token: The frontend_token of this InlineResponse2002. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._token = token
|
||||
self._frontend_token = frontend_token
|
||||
|
||||
@property
|
||||
def z_id(self):
|
||||
|
@ -28,66 +28,40 @@ class InlineResponse201(object):
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'identity': 'str',
|
||||
'cfg': 'str'
|
||||
'frontend_token': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'identity': 'identity',
|
||||
'cfg': 'cfg'
|
||||
'frontend_token': 'frontendToken'
|
||||
}
|
||||
|
||||
def __init__(self, identity=None, cfg=None): # noqa: E501
|
||||
def __init__(self, frontend_token=None): # noqa: E501
|
||||
"""InlineResponse201 - a model defined in Swagger""" # noqa: E501
|
||||
self._identity = None
|
||||
self._cfg = None
|
||||
self._frontend_token = None
|
||||
self.discriminator = None
|
||||
if identity is not None:
|
||||
self.identity = identity
|
||||
if cfg is not None:
|
||||
self.cfg = cfg
|
||||
if frontend_token is not None:
|
||||
self.frontend_token = frontend_token
|
||||
|
||||
@property
|
||||
def identity(self):
|
||||
"""Gets the identity of this InlineResponse201. # noqa: E501
|
||||
def frontend_token(self):
|
||||
"""Gets the frontend_token of this InlineResponse201. # noqa: E501
|
||||
|
||||
|
||||
:return: The identity of this InlineResponse201. # noqa: E501
|
||||
:return: The frontend_token of this InlineResponse201. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._identity
|
||||
return self._frontend_token
|
||||
|
||||
@identity.setter
|
||||
def identity(self, identity):
|
||||
"""Sets the identity of this InlineResponse201.
|
||||
@frontend_token.setter
|
||||
def frontend_token(self, frontend_token):
|
||||
"""Sets the frontend_token of this InlineResponse201.
|
||||
|
||||
|
||||
:param identity: The identity of this InlineResponse201. # noqa: E501
|
||||
:param frontend_token: The frontend_token of this InlineResponse201. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._identity = identity
|
||||
|
||||
@property
|
||||
def cfg(self):
|
||||
"""Gets the cfg of this InlineResponse201. # noqa: E501
|
||||
|
||||
|
||||
:return: The cfg of this InlineResponse201. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._cfg
|
||||
|
||||
@cfg.setter
|
||||
def cfg(self, cfg):
|
||||
"""Sets the cfg of this InlineResponse201.
|
||||
|
||||
|
||||
:param cfg: The cfg of this InlineResponse201. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._cfg = cfg
|
||||
self._frontend_token = frontend_token
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
|
@ -28,66 +28,66 @@ class InlineResponse2011(object):
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'frontend_token': 'str',
|
||||
'backend_mode': 'str'
|
||||
'identity': 'str',
|
||||
'cfg': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'frontend_token': 'frontendToken',
|
||||
'backend_mode': 'backendMode'
|
||||
'identity': 'identity',
|
||||
'cfg': 'cfg'
|
||||
}
|
||||
|
||||
def __init__(self, frontend_token=None, backend_mode=None): # noqa: E501
|
||||
def __init__(self, identity=None, cfg=None): # noqa: E501
|
||||
"""InlineResponse2011 - a model defined in Swagger""" # noqa: E501
|
||||
self._frontend_token = None
|
||||
self._backend_mode = None
|
||||
self._identity = None
|
||||
self._cfg = 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 identity is not None:
|
||||
self.identity = identity
|
||||
if cfg is not None:
|
||||
self.cfg = cfg
|
||||
|
||||
@property
|
||||
def frontend_token(self):
|
||||
"""Gets the frontend_token of this InlineResponse2011. # noqa: E501
|
||||
def identity(self):
|
||||
"""Gets the identity of this InlineResponse2011. # noqa: E501
|
||||
|
||||
|
||||
:return: The frontend_token of this InlineResponse2011. # noqa: E501
|
||||
:return: The identity of this InlineResponse2011. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._frontend_token
|
||||
return self._identity
|
||||
|
||||
@frontend_token.setter
|
||||
def frontend_token(self, frontend_token):
|
||||
"""Sets the frontend_token of this InlineResponse2011.
|
||||
@identity.setter
|
||||
def identity(self, identity):
|
||||
"""Sets the identity of this InlineResponse2011.
|
||||
|
||||
|
||||
:param frontend_token: The frontend_token of this InlineResponse2011. # noqa: E501
|
||||
:param identity: The identity of this InlineResponse2011. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._frontend_token = frontend_token
|
||||
self._identity = identity
|
||||
|
||||
@property
|
||||
def backend_mode(self):
|
||||
"""Gets the backend_mode of this InlineResponse2011. # noqa: E501
|
||||
def cfg(self):
|
||||
"""Gets the cfg of this InlineResponse2011. # noqa: E501
|
||||
|
||||
|
||||
:return: The backend_mode of this InlineResponse2011. # noqa: E501
|
||||
:return: The cfg of this InlineResponse2011. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._backend_mode
|
||||
return self._cfg
|
||||
|
||||
@backend_mode.setter
|
||||
def backend_mode(self, backend_mode):
|
||||
"""Sets the backend_mode of this InlineResponse2011.
|
||||
@cfg.setter
|
||||
def cfg(self, cfg):
|
||||
"""Sets the cfg of this InlineResponse2011.
|
||||
|
||||
|
||||
:param backend_mode: The backend_mode of this InlineResponse2011. # noqa: E501
|
||||
:param cfg: The cfg of this InlineResponse2011. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._backend_mode = backend_mode
|
||||
self._cfg = cfg
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
|
136
sdk/python/sdk/zrok/zrok_api/models/inline_response2012.py
Normal file
136
sdk/python/sdk/zrok/zrok_api/models/inline_response2012.py
Normal 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 InlineResponse2012(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
|
||||
"""InlineResponse2012 - 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 InlineResponse2012. # noqa: E501
|
||||
|
||||
|
||||
:return: The frontend_token of this InlineResponse2012. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._frontend_token
|
||||
|
||||
@frontend_token.setter
|
||||
def frontend_token(self, frontend_token):
|
||||
"""Sets the frontend_token of this InlineResponse2012.
|
||||
|
||||
|
||||
:param frontend_token: The frontend_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
|
||||
|
||||
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(InlineResponse2012, 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, InlineResponse2012):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
Reference in New Issue
Block a user