mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 00:04:43 +02:00
a round of iteration on improving the version management situation more (#881); update deps in ui/agentUi
This commit is contained in:
@ -170,7 +170,7 @@ Class | Method | HTTP request | Description
|
||||
*AdminApi* | [**update_frontend**](docs/AdminApi.md#update_frontend) | **PATCH** /frontend |
|
||||
*EnvironmentApi* | [**disable**](docs/EnvironmentApi.md#disable) | **POST** /disable |
|
||||
*EnvironmentApi* | [**enable**](docs/EnvironmentApi.md#enable) | **POST** /enable |
|
||||
*MetadataApi* | [**client_version_check**](docs/MetadataApi.md#client_version_check) | **POST** /version |
|
||||
*MetadataApi* | [**client_version_check**](docs/MetadataApi.md#client_version_check) | **POST** /clientVersionCheck |
|
||||
*MetadataApi* | [**configuration**](docs/MetadataApi.md#configuration) | **GET** /configuration |
|
||||
*MetadataApi* | [**get_account_detail**](docs/MetadataApi.md#get_account_detail) | **GET** /detail/account |
|
||||
*MetadataApi* | [**get_account_metrics**](docs/MetadataApi.md#get_account_metrics) | **GET** /metrics/account |
|
||||
@ -185,6 +185,7 @@ Class | Method | HTTP request | Description
|
||||
*MetadataApi* | [**org_account_overview**](docs/MetadataApi.md#org_account_overview) | **GET** /overview/{organizationToken}/{accountEmail} |
|
||||
*MetadataApi* | [**overview**](docs/MetadataApi.md#overview) | **GET** /overview |
|
||||
*MetadataApi* | [**version**](docs/MetadataApi.md#version) | **GET** /version |
|
||||
*MetadataApi* | [**version_inventory**](docs/MetadataApi.md#version_inventory) | **GET** /versions |
|
||||
*ShareApi* | [**access**](docs/ShareApi.md#access) | **POST** /access |
|
||||
*ShareApi* | [**share**](docs/ShareApi.md#share) | **POST** /share |
|
||||
*ShareApi* | [**unaccess**](docs/ShareApi.md#unaccess) | **DELETE** /unaccess |
|
||||
@ -199,6 +200,7 @@ Class | Method | HTTP request | Description
|
||||
- [AccountBody](docs/AccountBody.md)
|
||||
- [AuthUser](docs/AuthUser.md)
|
||||
- [ChangePasswordBody](docs/ChangePasswordBody.md)
|
||||
- [ClientVersionCheckBody](docs/ClientVersionCheckBody.md)
|
||||
- [Configuration](docs/Configuration.md)
|
||||
- [DisableBody](docs/DisableBody.md)
|
||||
- [EnableBody](docs/EnableBody.md)
|
||||
@ -223,6 +225,7 @@ Class | Method | HTTP request | Description
|
||||
- [InlineResponse2005](docs/InlineResponse2005.md)
|
||||
- [InlineResponse2005Memberships](docs/InlineResponse2005Memberships.md)
|
||||
- [InlineResponse2006](docs/InlineResponse2006.md)
|
||||
- [InlineResponse2007](docs/InlineResponse2007.md)
|
||||
- [InlineResponse201](docs/InlineResponse201.md)
|
||||
- [InlineResponse2011](docs/InlineResponse2011.md)
|
||||
- [InlineResponse2012](docs/InlineResponse2012.md)
|
||||
@ -255,7 +258,6 @@ Class | Method | HTTP request | Description
|
||||
- [UnshareBody](docs/UnshareBody.md)
|
||||
- [VerifyBody](docs/VerifyBody.md)
|
||||
- [Version](docs/Version.md)
|
||||
- [VersionBody](docs/VersionBody.md)
|
||||
|
||||
## Documentation For Authorization
|
||||
|
||||
|
9
sdk/python/sdk/zrok/docs/ClientVersionCheckBody.md
Normal file
9
sdk/python/sdk/zrok/docs/ClientVersionCheckBody.md
Normal file
@ -0,0 +1,9 @@
|
||||
# ClientVersionCheckBody
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**client_version** | **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,7 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**token** | **str** | | [optional]
|
||||
**organization_token** | **str** | | [optional]
|
||||
**description** | **str** | | [optional]
|
||||
**admin** | **bool** | | [optional]
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**sparklines** | [**list[Metrics]**](Metrics.md) | | [optional]
|
||||
**controller_version** | **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)
|
||||
|
||||
|
@ -4,7 +4,7 @@ All URIs are relative to */api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**client_version_check**](MetadataApi.md#client_version_check) | **POST** /version |
|
||||
[**client_version_check**](MetadataApi.md#client_version_check) | **POST** /clientVersionCheck |
|
||||
[**configuration**](MetadataApi.md#configuration) | **GET** /configuration |
|
||||
[**get_account_detail**](MetadataApi.md#get_account_detail) | **GET** /detail/account |
|
||||
[**get_account_metrics**](MetadataApi.md#get_account_metrics) | **GET** /metrics/account |
|
||||
@ -19,6 +19,7 @@ Method | HTTP request | Description
|
||||
[**org_account_overview**](MetadataApi.md#org_account_overview) | **GET** /overview/{organizationToken}/{accountEmail} |
|
||||
[**overview**](MetadataApi.md#overview) | **GET** /overview |
|
||||
[**version**](MetadataApi.md#version) | **GET** /version |
|
||||
[**version_inventory**](MetadataApi.md#version_inventory) | **GET** /versions |
|
||||
|
||||
# **client_version_check**
|
||||
> client_version_check(body=body)
|
||||
@ -35,7 +36,7 @@ from pprint import pprint
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = zrok_api.MetadataApi()
|
||||
body = zrok_api.VersionBody() # VersionBody | (optional)
|
||||
body = zrok_api.ClientVersionCheckBody() # ClientVersionCheckBody | (optional)
|
||||
|
||||
try:
|
||||
api_instance.client_version_check(body=body)
|
||||
@ -47,7 +48,7 @@ except ApiException as e:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**VersionBody**](VersionBody.md)| | [optional]
|
||||
**body** | [**ClientVersionCheckBody**](ClientVersionCheckBody.md)| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
@ -752,3 +753,44 @@ No authorization required
|
||||
|
||||
[[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)
|
||||
|
||||
# **version_inventory**
|
||||
> InlineResponse2007 version_inventory()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```python
|
||||
from __future__ import print_function
|
||||
import time
|
||||
import zrok_api
|
||||
from zrok_api.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = zrok_api.MetadataApi()
|
||||
|
||||
try:
|
||||
api_response = api_instance.version_inventory()
|
||||
pprint(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling MetadataApi->version_inventory: %s\n" % e)
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponse2007**](InlineResponse2007.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/zrok.v1+json
|
||||
|
||||
[[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)
|
||||
|
||||
|
9
sdk/python/sdk/zrok/docs/VersionCheckBody.md
Normal file
9
sdk/python/sdk/zrok/docs/VersionCheckBody.md
Normal file
@ -0,0 +1,9 @@
|
||||
# VersionCheckBody
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**client_version** | **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)
|
||||
|
39
sdk/python/sdk/zrok/test/test_client_version_check_body.py
Normal file
39
sdk/python/sdk/zrok/test/test_client_version_check_body.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.client_version_check_body import ClientVersionCheckBody # noqa: E501
|
||||
from zrok_api.rest import ApiException
|
||||
|
||||
|
||||
class TestClientVersionCheckBody(unittest.TestCase):
|
||||
"""ClientVersionCheckBody unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testClientVersionCheckBody(self):
|
||||
"""Test ClientVersionCheckBody"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = zrok_api.models.client_version_check_body.ClientVersionCheckBody() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
39
sdk/python/sdk/zrok/test/test_version_check_body.py
Normal file
39
sdk/python/sdk/zrok/test/test_version_check_body.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.version_check_body import VersionCheckBody # noqa: E501
|
||||
from zrok_api.rest import ApiException
|
||||
|
||||
|
||||
class TestVersionCheckBody(unittest.TestCase):
|
||||
"""VersionCheckBody unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testVersionCheckBody(self):
|
||||
"""Test VersionCheckBody"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = zrok_api.models.version_check_body.VersionCheckBody() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
@ -29,6 +29,7 @@ from zrok_api.models.access_body1 import AccessBody1
|
||||
from zrok_api.models.account_body import AccountBody
|
||||
from zrok_api.models.auth_user import AuthUser
|
||||
from zrok_api.models.change_password_body import ChangePasswordBody
|
||||
from zrok_api.models.client_version_check_body import ClientVersionCheckBody
|
||||
from zrok_api.models.configuration import Configuration
|
||||
from zrok_api.models.disable_body import DisableBody
|
||||
from zrok_api.models.enable_body import EnableBody
|
||||
@ -53,6 +54,7 @@ from zrok_api.models.inline_response2004_organizations import InlineResponse2004
|
||||
from zrok_api.models.inline_response2005 import InlineResponse2005
|
||||
from zrok_api.models.inline_response2005_memberships import InlineResponse2005Memberships
|
||||
from zrok_api.models.inline_response2006 import InlineResponse2006
|
||||
from zrok_api.models.inline_response2007 import InlineResponse2007
|
||||
from zrok_api.models.inline_response201 import InlineResponse201
|
||||
from zrok_api.models.inline_response2011 import InlineResponse2011
|
||||
from zrok_api.models.inline_response2012 import InlineResponse2012
|
||||
@ -85,4 +87,3 @@ from zrok_api.models.unaccess_body import UnaccessBody
|
||||
from zrok_api.models.unshare_body import UnshareBody
|
||||
from zrok_api.models.verify_body import VerifyBody
|
||||
from zrok_api.models.version import Version
|
||||
from zrok_api.models.version_body import VersionBody
|
||||
|
@ -41,7 +41,7 @@ class MetadataApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool
|
||||
:param VersionBody body:
|
||||
:param ClientVersionCheckBody body:
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
@ -62,7 +62,7 @@ class MetadataApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool
|
||||
:param VersionBody body:
|
||||
:param ClientVersionCheckBody body:
|
||||
:return: None
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
@ -110,7 +110,7 @@ class MetadataApi(object):
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/version', 'POST',
|
||||
'/clientVersionCheck', 'POST',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
@ -1398,3 +1398,88 @@ class MetadataApi(object):
|
||||
_preload_content=params.get('_preload_content', True),
|
||||
_request_timeout=params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def version_inventory(self, **kwargs): # noqa: E501
|
||||
"""version_inventory # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.version_inventory(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool
|
||||
:return: InlineResponse2007
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async_req'):
|
||||
return self.version_inventory_with_http_info(**kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.version_inventory_with_http_info(**kwargs) # noqa: E501
|
||||
return data
|
||||
|
||||
def version_inventory_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""version_inventory # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.version_inventory_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool
|
||||
:return: InlineResponse2007
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
all_params = [] # noqa: E501
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
|
||||
params = locals()
|
||||
for key, val in six.iteritems(params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise TypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method version_inventory" % key
|
||||
)
|
||||
params[key] = val
|
||||
del params['kwargs']
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
path_params = {}
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/zrok.v1+json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = [] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/versions', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='InlineResponse2007', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=params.get('async_req'),
|
||||
_return_http_data_only=params.get('_return_http_data_only'),
|
||||
_preload_content=params.get('_preload_content', True),
|
||||
_request_timeout=params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
@ -19,6 +19,7 @@ from zrok_api.models.access_body1 import AccessBody1
|
||||
from zrok_api.models.account_body import AccountBody
|
||||
from zrok_api.models.auth_user import AuthUser
|
||||
from zrok_api.models.change_password_body import ChangePasswordBody
|
||||
from zrok_api.models.client_version_check_body import ClientVersionCheckBody
|
||||
from zrok_api.models.configuration import Configuration
|
||||
from zrok_api.models.disable_body import DisableBody
|
||||
from zrok_api.models.enable_body import EnableBody
|
||||
@ -43,6 +44,7 @@ from zrok_api.models.inline_response2004_organizations import InlineResponse2004
|
||||
from zrok_api.models.inline_response2005 import InlineResponse2005
|
||||
from zrok_api.models.inline_response2005_memberships import InlineResponse2005Memberships
|
||||
from zrok_api.models.inline_response2006 import InlineResponse2006
|
||||
from zrok_api.models.inline_response2007 import InlineResponse2007
|
||||
from zrok_api.models.inline_response201 import InlineResponse201
|
||||
from zrok_api.models.inline_response2011 import InlineResponse2011
|
||||
from zrok_api.models.inline_response2012 import InlineResponse2012
|
||||
@ -75,4 +77,3 @@ from zrok_api.models.unaccess_body import UnaccessBody
|
||||
from zrok_api.models.unshare_body import UnshareBody
|
||||
from zrok_api.models.verify_body import VerifyBody
|
||||
from zrok_api.models.version import Version
|
||||
from zrok_api.models.version_body import VersionBody
|
||||
|
110
sdk/python/sdk/zrok/zrok_api/models/client_version_check_body.py
Normal file
110
sdk/python/sdk/zrok/zrok_api/models/client_version_check_body.py
Normal 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 ClientVersionCheckBody(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
|
||||
"""ClientVersionCheckBody - 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 ClientVersionCheckBody. # noqa: E501
|
||||
|
||||
|
||||
:return: The client_version of this ClientVersionCheckBody. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._client_version
|
||||
|
||||
@client_version.setter
|
||||
def client_version(self, client_version):
|
||||
"""Sets the client_version of this ClientVersionCheckBody.
|
||||
|
||||
|
||||
:param client_version: The client_version of this ClientVersionCheckBody. # 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(ClientVersionCheckBody, 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, ClientVersionCheckBody):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
@ -28,50 +28,50 @@ class InlineResponse2006Memberships(object):
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'token': 'str',
|
||||
'organization_token': 'str',
|
||||
'description': 'str',
|
||||
'admin': 'bool'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'token': 'token',
|
||||
'organization_token': 'organizationToken',
|
||||
'description': 'description',
|
||||
'admin': 'admin'
|
||||
}
|
||||
|
||||
def __init__(self, token=None, description=None, admin=None): # noqa: E501
|
||||
def __init__(self, organization_token=None, description=None, admin=None): # noqa: E501
|
||||
"""InlineResponse2006Memberships - a model defined in Swagger""" # noqa: E501
|
||||
self._token = None
|
||||
self._organization_token = None
|
||||
self._description = 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 description is not None:
|
||||
self.description = description
|
||||
if admin is not None:
|
||||
self.admin = admin
|
||||
|
||||
@property
|
||||
def token(self):
|
||||
"""Gets the token of this InlineResponse2006Memberships. # noqa: E501
|
||||
def organization_token(self):
|
||||
"""Gets the organization_token of this InlineResponse2006Memberships. # noqa: E501
|
||||
|
||||
|
||||
:return: The token of this InlineResponse2006Memberships. # noqa: E501
|
||||
:return: The organization_token of this InlineResponse2006Memberships. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._token
|
||||
return self._organization_token
|
||||
|
||||
@token.setter
|
||||
def token(self, token):
|
||||
"""Sets the token of this InlineResponse2006Memberships.
|
||||
@organization_token.setter
|
||||
def organization_token(self, organization_token):
|
||||
"""Sets the organization_token of this InlineResponse2006Memberships.
|
||||
|
||||
|
||||
:param token: The token of this InlineResponse2006Memberships. # noqa: E501
|
||||
:param organization_token: The organization_token of this InlineResponse2006Memberships. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._token = token
|
||||
self._organization_token = organization_token
|
||||
|
||||
@property
|
||||
def description(self):
|
||||
|
@ -28,40 +28,40 @@ class InlineResponse2007(object):
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'sparklines': 'list[Metrics]'
|
||||
'controller_version': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'sparklines': 'sparklines'
|
||||
'controller_version': 'controllerVersion'
|
||||
}
|
||||
|
||||
def __init__(self, sparklines=None): # noqa: E501
|
||||
def __init__(self, controller_version=None): # noqa: E501
|
||||
"""InlineResponse2007 - a model defined in Swagger""" # noqa: E501
|
||||
self._sparklines = None
|
||||
self._controller_version = None
|
||||
self.discriminator = None
|
||||
if sparklines is not None:
|
||||
self.sparklines = sparklines
|
||||
if controller_version is not None:
|
||||
self.controller_version = controller_version
|
||||
|
||||
@property
|
||||
def sparklines(self):
|
||||
"""Gets the sparklines of this InlineResponse2007. # noqa: E501
|
||||
def controller_version(self):
|
||||
"""Gets the controller_version of this InlineResponse2007. # noqa: E501
|
||||
|
||||
|
||||
:return: The sparklines of this InlineResponse2007. # noqa: E501
|
||||
:rtype: list[Metrics]
|
||||
:return: The controller_version of this InlineResponse2007. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._sparklines
|
||||
return self._controller_version
|
||||
|
||||
@sparklines.setter
|
||||
def sparklines(self, sparklines):
|
||||
"""Sets the sparklines of this InlineResponse2007.
|
||||
@controller_version.setter
|
||||
def controller_version(self, controller_version):
|
||||
"""Sets the controller_version of this InlineResponse2007.
|
||||
|
||||
|
||||
:param sparklines: The sparklines of this InlineResponse2007. # noqa: E501
|
||||
:type: list[Metrics]
|
||||
:param controller_version: The controller_version of this InlineResponse2007. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._sparklines = sparklines
|
||||
self._controller_version = controller_version
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
|
110
sdk/python/sdk/zrok/zrok_api/models/version_check_body.py
Normal file
110
sdk/python/sdk/zrok/zrok_api/models/version_check_body.py
Normal 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 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
|
Reference in New Issue
Block a user