mirror of
https://github.com/openziti/zrok.git
synced 2025-08-13 09:47:37 +02:00
@ -93,13 +93,13 @@ configuration.api_key['x-token'] = 'YOUR_API_KEY'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration))
|
||||
body = zrok_api.RegenerateTokenBody() # RegenerateTokenBody | (optional)
|
||||
body = zrok_api.RegenerateAccountTokenBody() # RegenerateAccountTokenBody | (optional)
|
||||
|
||||
try:
|
||||
api_response = api_instance.regenerate_token(body=body)
|
||||
api_response = api_instance.regenerate_account_token(body=body)
|
||||
pprint(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling AccountApi->regenerate_token: %s\n" % e)
|
||||
print("Exception when calling AccountApi->regenerate_account_token: %s\n" % e)
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration))
|
||||
@ -149,7 +149,7 @@ Class | Method | HTTP request | Description
|
||||
*AccountApi* | [**change_password**](docs/AccountApi.md#change_password) | **POST** /changePassword |
|
||||
*AccountApi* | [**invite**](docs/AccountApi.md#invite) | **POST** /invite |
|
||||
*AccountApi* | [**login**](docs/AccountApi.md#login) | **POST** /login |
|
||||
*AccountApi* | [**regenerate_token**](docs/AccountApi.md#regenerate_token) | **POST** /regenerateToken |
|
||||
*AccountApi* | [**regenerate_account_token**](docs/AccountApi.md#regenerate_account_token) | **POST** /regenerateAccountToken |
|
||||
*AccountApi* | [**register**](docs/AccountApi.md#register) | **POST** /register |
|
||||
*AccountApi* | [**reset_password**](docs/AccountApi.md#reset_password) | **POST** /resetPassword |
|
||||
*AccountApi* | [**reset_password_request**](docs/AccountApi.md#reset_password_request) | **POST** /resetPasswordRequest |
|
||||
@ -214,12 +214,13 @@ Class | Method | HTTP request | Description
|
||||
- [InlineResponse2001](docs/InlineResponse2001.md)
|
||||
- [InlineResponse2002](docs/InlineResponse2002.md)
|
||||
- [InlineResponse2003](docs/InlineResponse2003.md)
|
||||
- [InlineResponse2003Members](docs/InlineResponse2003Members.md)
|
||||
- [InlineResponse2004](docs/InlineResponse2004.md)
|
||||
- [InlineResponse2004Organizations](docs/InlineResponse2004Organizations.md)
|
||||
- [InlineResponse2004Members](docs/InlineResponse2004Members.md)
|
||||
- [InlineResponse2005](docs/InlineResponse2005.md)
|
||||
- [InlineResponse2005Memberships](docs/InlineResponse2005Memberships.md)
|
||||
- [InlineResponse2005Organizations](docs/InlineResponse2005Organizations.md)
|
||||
- [InlineResponse2006](docs/InlineResponse2006.md)
|
||||
- [InlineResponse2006Memberships](docs/InlineResponse2006Memberships.md)
|
||||
- [InlineResponse2007](docs/InlineResponse2007.md)
|
||||
- [InlineResponse201](docs/InlineResponse201.md)
|
||||
- [InlineResponse2011](docs/InlineResponse2011.md)
|
||||
- [InviteBody](docs/InviteBody.md)
|
||||
@ -233,7 +234,7 @@ Class | Method | HTTP request | Description
|
||||
- [OrganizationRemoveBody](docs/OrganizationRemoveBody.md)
|
||||
- [Overview](docs/Overview.md)
|
||||
- [Principal](docs/Principal.md)
|
||||
- [RegenerateTokenBody](docs/RegenerateTokenBody.md)
|
||||
- [RegenerateAccountTokenBody](docs/RegenerateAccountTokenBody.md)
|
||||
- [RegisterBody](docs/RegisterBody.md)
|
||||
- [ResetPasswordBody](docs/ResetPasswordBody.md)
|
||||
- [ResetPasswordRequestBody](docs/ResetPasswordRequestBody.md)
|
||||
|
@ -7,7 +7,7 @@ Method | HTTP request | Description
|
||||
[**change_password**](AccountApi.md#change_password) | **POST** /changePassword |
|
||||
[**invite**](AccountApi.md#invite) | **POST** /invite |
|
||||
[**login**](AccountApi.md#login) | **POST** /login |
|
||||
[**regenerate_token**](AccountApi.md#regenerate_token) | **POST** /regenerateToken |
|
||||
[**regenerate_account_token**](AccountApi.md#regenerate_account_token) | **POST** /regenerateAccountToken |
|
||||
[**register**](AccountApi.md#register) | **POST** /register |
|
||||
[**reset_password**](AccountApi.md#reset_password) | **POST** /resetPassword |
|
||||
[**reset_password_request**](AccountApi.md#reset_password_request) | **POST** /resetPasswordRequest |
|
||||
@ -152,8 +152,8 @@ 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)
|
||||
|
||||
# **regenerate_token**
|
||||
> InlineResponse200 regenerate_token(body=body)
|
||||
# **regenerate_account_token**
|
||||
> InlineResponse200 regenerate_account_token(body=body)
|
||||
|
||||
|
||||
|
||||
@ -173,20 +173,20 @@ configuration.api_key['x-token'] = 'YOUR_API_KEY'
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = zrok_api.AccountApi(zrok_api.ApiClient(configuration))
|
||||
body = zrok_api.RegenerateTokenBody() # RegenerateTokenBody | (optional)
|
||||
body = zrok_api.RegenerateAccountTokenBody() # RegenerateAccountTokenBody | (optional)
|
||||
|
||||
try:
|
||||
api_response = api_instance.regenerate_token(body=body)
|
||||
api_response = api_instance.regenerate_account_token(body=body)
|
||||
pprint(api_response)
|
||||
except ApiException as e:
|
||||
print("Exception when calling AccountApi->regenerate_token: %s\n" % e)
|
||||
print("Exception when calling AccountApi->regenerate_account_token: %s\n" % e)
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**RegenerateTokenBody**](RegenerateTokenBody.md)| | [optional]
|
||||
**body** | [**RegenerateAccountTokenBody**](RegenerateAccountTokenBody.md)| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
@ -204,7 +204,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)
|
||||
|
||||
# **register**
|
||||
> InlineResponse200 register(body=body)
|
||||
> InlineResponse2001 register(body=body)
|
||||
|
||||
|
||||
|
||||
@ -235,7 +235,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponse200**](InlineResponse200.md)
|
||||
[**InlineResponse2001**](InlineResponse2001.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -337,7 +337,7 @@ 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)
|
||||
|
||||
# **verify**
|
||||
> InlineResponse2001 verify(body=body)
|
||||
> InlineResponse2002 verify(body=body)
|
||||
|
||||
|
||||
|
||||
@ -368,7 +368,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponse2001**](InlineResponse2001.md)
|
||||
[**InlineResponse2002**](InlineResponse2002.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
@ -474,7 +474,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)
|
||||
|
||||
# **list_frontends**
|
||||
> list[InlineResponse2002] list_frontends()
|
||||
> list[InlineResponse2003] list_frontends()
|
||||
|
||||
|
||||
|
||||
@ -507,7 +507,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**list[InlineResponse2002]**](InlineResponse2002.md)
|
||||
[**list[InlineResponse2003]**](InlineResponse2003.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -521,7 +521,7 @@ This endpoint does not need any parameter.
|
||||
[[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)
|
||||
|
||||
# **list_organization_members**
|
||||
> InlineResponse2003 list_organization_members(body=body)
|
||||
> InlineResponse2004 list_organization_members(body=body)
|
||||
|
||||
|
||||
|
||||
@ -558,7 +558,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponse2003**](InlineResponse2003.md)
|
||||
[**InlineResponse2004**](InlineResponse2004.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -572,7 +572,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)
|
||||
|
||||
# **list_organizations**
|
||||
> InlineResponse2004 list_organizations()
|
||||
> InlineResponse2005 list_organizations()
|
||||
|
||||
|
||||
|
||||
@ -605,7 +605,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponse2004**](InlineResponse2004.md)
|
||||
[**InlineResponse2005**](InlineResponse2005.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**token** | **str** | | [optional]
|
||||
**account_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,7 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**email** | **str** | | [optional]
|
||||
**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,12 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**token** | **str** | | [optional]
|
||||
**z_id** | **str** | | [optional]
|
||||
**url_template** | **str** | | [optional]
|
||||
**public_name** | **str** | | [optional]
|
||||
**created_at** | **int** | | [optional]
|
||||
**updated_at** | **int** | | [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)
|
||||
|
||||
|
@ -3,7 +3,12 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**members** | [**list[InlineResponse2003Members]**](InlineResponse2003Members.md) | | [optional]
|
||||
**token** | **str** | | [optional]
|
||||
**z_id** | **str** | | [optional]
|
||||
**url_template** | **str** | | [optional]
|
||||
**public_name** | **str** | | [optional]
|
||||
**created_at** | **int** | | [optional]
|
||||
**updated_at** | **int** | | [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
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**organizations** | [**list[InlineResponse2004Organizations]**](InlineResponse2004Organizations.md) | | [optional]
|
||||
**members** | [**list[InlineResponse2004Members]**](InlineResponse2004Members.md) | | [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/InlineResponse2004Members.md
Normal file
10
sdk/python/sdk/zrok/docs/InlineResponse2004Members.md
Normal file
@ -0,0 +1,10 @@
|
||||
# InlineResponse2004Members
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**email** | **str** | | [optional]
|
||||
**admin** | **bool** | | [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
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**memberships** | [**list[InlineResponse2005Memberships]**](InlineResponse2005Memberships.md) | | [optional]
|
||||
**organizations** | [**list[InlineResponse2005Organizations]**](InlineResponse2005Organizations.md) | | [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/InlineResponse2005Organizations.md
Normal file
10
sdk/python/sdk/zrok/docs/InlineResponse2005Organizations.md
Normal file
@ -0,0 +1,10 @@
|
||||
# InlineResponse2005Organizations
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**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)
|
||||
|
@ -3,7 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**sparklines** | [**list[Metrics]**](Metrics.md) | | [optional]
|
||||
**memberships** | [**list[InlineResponse2006Memberships]**](InlineResponse2006Memberships.md) | | [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
sdk/python/sdk/zrok/docs/InlineResponse2006Memberships.md
Normal file
11
sdk/python/sdk/zrok/docs/InlineResponse2006Memberships.md
Normal file
@ -0,0 +1,11 @@
|
||||
# InlineResponse2006Memberships
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**token** | **str** | | [optional]
|
||||
**description** | **str** | | [optional]
|
||||
**admin** | **bool** | | [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)
|
||||
|
9
sdk/python/sdk/zrok/docs/InlineResponse2007.md
Normal file
9
sdk/python/sdk/zrok/docs/InlineResponse2007.md
Normal file
@ -0,0 +1,9 @@
|
||||
# InlineResponse2007
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**sparklines** | [**list[Metrics]**](Metrics.md) | | [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)
|
||||
|
@ -418,7 +418,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)
|
||||
|
||||
# **get_sparklines**
|
||||
> InlineResponse2006 get_sparklines(body=body)
|
||||
> InlineResponse2007 get_sparklines(body=body)
|
||||
|
||||
|
||||
|
||||
@ -455,7 +455,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponse2006**](InlineResponse2006.md)
|
||||
[**InlineResponse2007**](InlineResponse2007.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -469,7 +469,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)
|
||||
|
||||
# **list_memberships**
|
||||
> InlineResponse2005 list_memberships()
|
||||
> InlineResponse2006 list_memberships()
|
||||
|
||||
|
||||
|
||||
@ -502,7 +502,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponse2005**](InlineResponse2005.md)
|
||||
[**InlineResponse2006**](InlineResponse2006.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@ -516,7 +516,7 @@ This endpoint does not need any parameter.
|
||||
[[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)
|
||||
|
||||
# **list_org_members**
|
||||
> InlineResponse2003 list_org_members(organization_token)
|
||||
> InlineResponse2004 list_org_members(organization_token)
|
||||
|
||||
|
||||
|
||||
@ -553,7 +553,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponse2003**](InlineResponse2003.md)
|
||||
[**InlineResponse2004**](InlineResponse2004.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
9
sdk/python/sdk/zrok/docs/RegenerateAccountTokenBody.md
Normal file
9
sdk/python/sdk/zrok/docs/RegenerateAccountTokenBody.md
Normal file
@ -0,0 +1,9 @@
|
||||
# RegenerateAccountTokenBody
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**email_address** | **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_inline_response2004_members.py
Normal file
39
sdk/python/sdk/zrok/test/test_inline_response2004_members.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_response2004_members import InlineResponse2004Members # noqa: E501
|
||||
from zrok_api.rest import ApiException
|
||||
|
||||
|
||||
class TestInlineResponse2004Members(unittest.TestCase):
|
||||
"""InlineResponse2004Members unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testInlineResponse2004Members(self):
|
||||
"""Test InlineResponse2004Members"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = zrok_api.models.inline_response2004_members.InlineResponse2004Members() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
@ -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_response2005_organizations import InlineResponse2005Organizations # noqa: E501
|
||||
from zrok_api.rest import ApiException
|
||||
|
||||
|
||||
class TestInlineResponse2005Organizations(unittest.TestCase):
|
||||
"""InlineResponse2005Organizations unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testInlineResponse2005Organizations(self):
|
||||
"""Test InlineResponse2005Organizations"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = zrok_api.models.inline_response2005_organizations.InlineResponse2005Organizations() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
@ -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_response2006_memberships import InlineResponse2006Memberships # noqa: E501
|
||||
from zrok_api.rest import ApiException
|
||||
|
||||
|
||||
class TestInlineResponse2006Memberships(unittest.TestCase):
|
||||
"""InlineResponse2006Memberships unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testInlineResponse2006Memberships(self):
|
||||
"""Test InlineResponse2006Memberships"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = zrok_api.models.inline_response2006_memberships.InlineResponse2006Memberships() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
39
sdk/python/sdk/zrok/test/test_inline_response2007.py
Normal file
39
sdk/python/sdk/zrok/test/test_inline_response2007.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_response2007 import InlineResponse2007 # noqa: E501
|
||||
from zrok_api.rest import ApiException
|
||||
|
||||
|
||||
class TestInlineResponse2007(unittest.TestCase):
|
||||
"""InlineResponse2007 unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testInlineResponse2007(self):
|
||||
"""Test InlineResponse2007"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = zrok_api.models.inline_response2007.InlineResponse2007() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
@ -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.regenerate_account_token_body import RegenerateAccountTokenBody # noqa: E501
|
||||
from zrok_api.rest import ApiException
|
||||
|
||||
|
||||
class TestRegenerateAccountTokenBody(unittest.TestCase):
|
||||
"""RegenerateAccountTokenBody unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testRegenerateAccountTokenBody(self):
|
||||
"""Test RegenerateAccountTokenBody"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = zrok_api.models.regenerate_account_token_body.RegenerateAccountTokenBody() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
@ -46,12 +46,13 @@ from zrok_api.models.inline_response200 import InlineResponse200
|
||||
from zrok_api.models.inline_response2001 import InlineResponse2001
|
||||
from zrok_api.models.inline_response2002 import InlineResponse2002
|
||||
from zrok_api.models.inline_response2003 import InlineResponse2003
|
||||
from zrok_api.models.inline_response2003_members import InlineResponse2003Members
|
||||
from zrok_api.models.inline_response2004 import InlineResponse2004
|
||||
from zrok_api.models.inline_response2004_organizations import InlineResponse2004Organizations
|
||||
from zrok_api.models.inline_response2004_members import InlineResponse2004Members
|
||||
from zrok_api.models.inline_response2005 import InlineResponse2005
|
||||
from zrok_api.models.inline_response2005_memberships import InlineResponse2005Memberships
|
||||
from zrok_api.models.inline_response2005_organizations import InlineResponse2005Organizations
|
||||
from zrok_api.models.inline_response2006 import InlineResponse2006
|
||||
from zrok_api.models.inline_response2006_memberships import InlineResponse2006Memberships
|
||||
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.invite_body import InviteBody
|
||||
@ -65,7 +66,7 @@ from zrok_api.models.organization_list_body import OrganizationListBody
|
||||
from zrok_api.models.organization_remove_body import OrganizationRemoveBody
|
||||
from zrok_api.models.overview import Overview
|
||||
from zrok_api.models.principal import Principal
|
||||
from zrok_api.models.regenerate_token_body import RegenerateTokenBody
|
||||
from zrok_api.models.regenerate_account_token_body import RegenerateAccountTokenBody
|
||||
from zrok_api.models.register_body import RegisterBody
|
||||
from zrok_api.models.reset_password_body import ResetPasswordBody
|
||||
from zrok_api.models.reset_password_request_body import ResetPasswordRequestBody
|
||||
|
@ -311,37 +311,37 @@ class AccountApi(object):
|
||||
_request_timeout=params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def regenerate_token(self, **kwargs): # noqa: E501
|
||||
"""regenerate_token # noqa: E501
|
||||
def regenerate_account_token(self, **kwargs): # noqa: E501
|
||||
"""regenerate_account_token # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.regenerate_token(async_req=True)
|
||||
>>> thread = api.regenerate_account_token(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool
|
||||
:param RegenerateTokenBody body:
|
||||
:param RegenerateAccountTokenBody body:
|
||||
:return: InlineResponse200
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async_req'):
|
||||
return self.regenerate_token_with_http_info(**kwargs) # noqa: E501
|
||||
return self.regenerate_account_token_with_http_info(**kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.regenerate_token_with_http_info(**kwargs) # noqa: E501
|
||||
(data) = self.regenerate_account_token_with_http_info(**kwargs) # noqa: E501
|
||||
return data
|
||||
|
||||
def regenerate_token_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""regenerate_token # noqa: E501
|
||||
def regenerate_account_token_with_http_info(self, **kwargs): # noqa: E501
|
||||
"""regenerate_account_token # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.regenerate_token_with_http_info(async_req=True)
|
||||
>>> thread = api.regenerate_account_token_with_http_info(async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool
|
||||
:param RegenerateTokenBody body:
|
||||
:param RegenerateAccountTokenBody body:
|
||||
:return: InlineResponse200
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
@ -358,7 +358,7 @@ class AccountApi(object):
|
||||
if key not in all_params:
|
||||
raise TypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method regenerate_token" % key
|
||||
" to method regenerate_account_token" % key
|
||||
)
|
||||
params[key] = val
|
||||
del params['kwargs']
|
||||
@ -389,7 +389,7 @@ class AccountApi(object):
|
||||
auth_settings = ['key'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/regenerateToken', 'POST',
|
||||
'/regenerateAccountToken', 'POST',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
@ -414,7 +414,7 @@ class AccountApi(object):
|
||||
|
||||
:param async_req bool
|
||||
:param RegisterBody body:
|
||||
:return: InlineResponse200
|
||||
:return: InlineResponse2001
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
@ -435,7 +435,7 @@ class AccountApi(object):
|
||||
|
||||
:param async_req bool
|
||||
:param RegisterBody body:
|
||||
:return: InlineResponse200
|
||||
:return: InlineResponse2001
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
@ -489,7 +489,7 @@ class AccountApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='InlineResponse200', # 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'),
|
||||
@ -689,7 +689,7 @@ class AccountApi(object):
|
||||
|
||||
:param async_req bool
|
||||
:param VerifyBody body:
|
||||
:return: InlineResponse2001
|
||||
:return: InlineResponse2002
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
@ -710,7 +710,7 @@ class AccountApi(object):
|
||||
|
||||
:param async_req bool
|
||||
:param VerifyBody body:
|
||||
:return: InlineResponse2001
|
||||
:return: InlineResponse2002
|
||||
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='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'),
|
||||
|
@ -858,7 +858,7 @@ class AdminApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool
|
||||
:return: list[InlineResponse2002]
|
||||
:return: list[InlineResponse2003]
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
@ -878,7 +878,7 @@ class AdminApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool
|
||||
:return: list[InlineResponse2002]
|
||||
:return: list[InlineResponse2003]
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
@ -926,7 +926,7 @@ class AdminApi(object):
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='list[InlineResponse2002]', # noqa: E501
|
||||
response_type='list[InlineResponse2003]', # 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: InlineResponse2003
|
||||
:return: InlineResponse2004
|
||||
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: InlineResponse2003
|
||||
:return: InlineResponse2004
|
||||
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='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'),
|
||||
@ -1036,7 +1036,7 @@ class AdminApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool
|
||||
:return: InlineResponse2004
|
||||
:return: InlineResponse2005
|
||||
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: InlineResponse2004
|
||||
:return: InlineResponse2005
|
||||
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='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'),
|
||||
|
@ -774,7 +774,7 @@ class MetadataApi(object):
|
||||
|
||||
:param async_req bool
|
||||
:param SparklinesBody body:
|
||||
:return: InlineResponse2006
|
||||
:return: InlineResponse2007
|
||||
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: InlineResponse2006
|
||||
:return: InlineResponse2007
|
||||
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='InlineResponse2006', # noqa: E501
|
||||
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'),
|
||||
@ -866,7 +866,7 @@ class MetadataApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool
|
||||
:return: InlineResponse2005
|
||||
:return: InlineResponse2006
|
||||
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: InlineResponse2005
|
||||
:return: InlineResponse2006
|
||||
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='InlineResponse2005', # noqa: E501
|
||||
response_type='InlineResponse2006', # 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: InlineResponse2003
|
||||
:return: InlineResponse2004
|
||||
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: InlineResponse2003
|
||||
:return: InlineResponse2004
|
||||
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='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'),
|
||||
|
@ -36,12 +36,13 @@ from zrok_api.models.inline_response200 import InlineResponse200
|
||||
from zrok_api.models.inline_response2001 import InlineResponse2001
|
||||
from zrok_api.models.inline_response2002 import InlineResponse2002
|
||||
from zrok_api.models.inline_response2003 import InlineResponse2003
|
||||
from zrok_api.models.inline_response2003_members import InlineResponse2003Members
|
||||
from zrok_api.models.inline_response2004 import InlineResponse2004
|
||||
from zrok_api.models.inline_response2004_organizations import InlineResponse2004Organizations
|
||||
from zrok_api.models.inline_response2004_members import InlineResponse2004Members
|
||||
from zrok_api.models.inline_response2005 import InlineResponse2005
|
||||
from zrok_api.models.inline_response2005_memberships import InlineResponse2005Memberships
|
||||
from zrok_api.models.inline_response2005_organizations import InlineResponse2005Organizations
|
||||
from zrok_api.models.inline_response2006 import InlineResponse2006
|
||||
from zrok_api.models.inline_response2006_memberships import InlineResponse2006Memberships
|
||||
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.invite_body import InviteBody
|
||||
@ -55,7 +56,7 @@ from zrok_api.models.organization_list_body import OrganizationListBody
|
||||
from zrok_api.models.organization_remove_body import OrganizationRemoveBody
|
||||
from zrok_api.models.overview import Overview
|
||||
from zrok_api.models.principal import Principal
|
||||
from zrok_api.models.regenerate_token_body import RegenerateTokenBody
|
||||
from zrok_api.models.regenerate_account_token_body import RegenerateAccountTokenBody
|
||||
from zrok_api.models.register_body import RegisterBody
|
||||
from zrok_api.models.reset_password_body import ResetPasswordBody
|
||||
from zrok_api.models.reset_password_request_body import ResetPasswordRequestBody
|
||||
|
@ -28,40 +28,40 @@ class InlineResponse200(object):
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'token': 'str'
|
||||
'account_token': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'token': 'token'
|
||||
'account_token': 'accountToken'
|
||||
}
|
||||
|
||||
def __init__(self, token=None): # noqa: E501
|
||||
def __init__(self, account_token=None): # noqa: E501
|
||||
"""InlineResponse200 - a model defined in Swagger""" # noqa: E501
|
||||
self._token = None
|
||||
self._account_token = None
|
||||
self.discriminator = None
|
||||
if token is not None:
|
||||
self.token = token
|
||||
if account_token is not None:
|
||||
self.account_token = account_token
|
||||
|
||||
@property
|
||||
def token(self):
|
||||
"""Gets the token of this InlineResponse200. # noqa: E501
|
||||
def account_token(self):
|
||||
"""Gets the account_token of this InlineResponse200. # noqa: E501
|
||||
|
||||
|
||||
:return: The token of this InlineResponse200. # noqa: E501
|
||||
:return: The account_token of this InlineResponse200. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._token
|
||||
return self._account_token
|
||||
|
||||
@token.setter
|
||||
def token(self, token):
|
||||
"""Sets the token of this InlineResponse200.
|
||||
@account_token.setter
|
||||
def account_token(self, account_token):
|
||||
"""Sets the account_token of this InlineResponse200.
|
||||
|
||||
|
||||
:param token: The token of this InlineResponse200. # noqa: E501
|
||||
:param account_token: The account_token of this InlineResponse200. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._token = token
|
||||
self._account_token = account_token
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
|
@ -28,40 +28,40 @@ class InlineResponse2001(object):
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'email': 'str'
|
||||
'token': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'email': 'email'
|
||||
'token': 'token'
|
||||
}
|
||||
|
||||
def __init__(self, email=None): # noqa: E501
|
||||
def __init__(self, token=None): # noqa: E501
|
||||
"""InlineResponse2001 - a model defined in Swagger""" # noqa: E501
|
||||
self._email = None
|
||||
self._token = None
|
||||
self.discriminator = None
|
||||
if email is not None:
|
||||
self.email = email
|
||||
if token is not None:
|
||||
self.token = token
|
||||
|
||||
@property
|
||||
def email(self):
|
||||
"""Gets the email of this InlineResponse2001. # noqa: E501
|
||||
def token(self):
|
||||
"""Gets the token of this InlineResponse2001. # noqa: E501
|
||||
|
||||
|
||||
:return: The email of this InlineResponse2001. # noqa: E501
|
||||
:return: The token of this InlineResponse2001. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._email
|
||||
return self._token
|
||||
|
||||
@email.setter
|
||||
def email(self, email):
|
||||
"""Sets the email of this InlineResponse2001.
|
||||
@token.setter
|
||||
def token(self, token):
|
||||
"""Sets the token of this InlineResponse2001.
|
||||
|
||||
|
||||
:param email: The email of this InlineResponse2001. # noqa: E501
|
||||
:param token: The token of this InlineResponse2001. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._email = email
|
||||
self._token = token
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
|
@ -28,170 +28,40 @@ class InlineResponse2002(object):
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'token': 'str',
|
||||
'z_id': 'str',
|
||||
'url_template': 'str',
|
||||
'public_name': 'str',
|
||||
'created_at': 'int',
|
||||
'updated_at': 'int'
|
||||
'email': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'token': 'token',
|
||||
'z_id': 'zId',
|
||||
'url_template': 'urlTemplate',
|
||||
'public_name': 'publicName',
|
||||
'created_at': 'createdAt',
|
||||
'updated_at': 'updatedAt'
|
||||
'email': 'email'
|
||||
}
|
||||
|
||||
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, email=None): # noqa: E501
|
||||
"""InlineResponse2002 - a model defined in Swagger""" # noqa: E501
|
||||
self._token = None
|
||||
self._z_id = None
|
||||
self._url_template = None
|
||||
self._public_name = None
|
||||
self._created_at = None
|
||||
self._updated_at = None
|
||||
self._email = None
|
||||
self.discriminator = None
|
||||
if token is not None:
|
||||
self.token = token
|
||||
if z_id is not None:
|
||||
self.z_id = z_id
|
||||
if url_template is not None:
|
||||
self.url_template = url_template
|
||||
if public_name is not None:
|
||||
self.public_name = public_name
|
||||
if created_at is not None:
|
||||
self.created_at = created_at
|
||||
if updated_at is not None:
|
||||
self.updated_at = updated_at
|
||||
if email is not None:
|
||||
self.email = email
|
||||
|
||||
@property
|
||||
def token(self):
|
||||
"""Gets the token of this InlineResponse2002. # noqa: E501
|
||||
def email(self):
|
||||
"""Gets the email of this InlineResponse2002. # noqa: E501
|
||||
|
||||
|
||||
:return: The token of this InlineResponse2002. # noqa: E501
|
||||
:return: The email of this InlineResponse2002. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._token
|
||||
return self._email
|
||||
|
||||
@token.setter
|
||||
def token(self, token):
|
||||
"""Sets the token of this InlineResponse2002.
|
||||
@email.setter
|
||||
def email(self, email):
|
||||
"""Sets the email of this InlineResponse2002.
|
||||
|
||||
|
||||
:param token: The token of this InlineResponse2002. # noqa: E501
|
||||
:param email: The email of this InlineResponse2002. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._token = token
|
||||
|
||||
@property
|
||||
def z_id(self):
|
||||
"""Gets the z_id of this InlineResponse2002. # noqa: E501
|
||||
|
||||
|
||||
:return: The z_id of this InlineResponse2002. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._z_id
|
||||
|
||||
@z_id.setter
|
||||
def z_id(self, z_id):
|
||||
"""Sets the z_id of this InlineResponse2002.
|
||||
|
||||
|
||||
:param z_id: The z_id of this InlineResponse2002. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._z_id = z_id
|
||||
|
||||
@property
|
||||
def url_template(self):
|
||||
"""Gets the url_template of this InlineResponse2002. # noqa: E501
|
||||
|
||||
|
||||
:return: The url_template of this InlineResponse2002. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._url_template
|
||||
|
||||
@url_template.setter
|
||||
def url_template(self, url_template):
|
||||
"""Sets the url_template of this InlineResponse2002.
|
||||
|
||||
|
||||
:param url_template: The url_template of this InlineResponse2002. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._url_template = url_template
|
||||
|
||||
@property
|
||||
def public_name(self):
|
||||
"""Gets the public_name of this InlineResponse2002. # noqa: E501
|
||||
|
||||
|
||||
:return: The public_name of this InlineResponse2002. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._public_name
|
||||
|
||||
@public_name.setter
|
||||
def public_name(self, public_name):
|
||||
"""Sets the public_name of this InlineResponse2002.
|
||||
|
||||
|
||||
:param public_name: The public_name of this InlineResponse2002. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._public_name = public_name
|
||||
|
||||
@property
|
||||
def created_at(self):
|
||||
"""Gets the created_at of this InlineResponse2002. # noqa: E501
|
||||
|
||||
|
||||
:return: The created_at of this InlineResponse2002. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._created_at
|
||||
|
||||
@created_at.setter
|
||||
def created_at(self, created_at):
|
||||
"""Sets the created_at of this InlineResponse2002.
|
||||
|
||||
|
||||
:param created_at: The created_at of this InlineResponse2002. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._created_at = created_at
|
||||
|
||||
@property
|
||||
def updated_at(self):
|
||||
"""Gets the updated_at of this InlineResponse2002. # noqa: E501
|
||||
|
||||
|
||||
:return: The updated_at of this InlineResponse2002. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._updated_at
|
||||
|
||||
@updated_at.setter
|
||||
def updated_at(self, updated_at):
|
||||
"""Sets the updated_at of this InlineResponse2002.
|
||||
|
||||
|
||||
:param updated_at: The updated_at of this InlineResponse2002. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._updated_at = updated_at
|
||||
self._email = email
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
|
@ -28,40 +28,170 @@ class InlineResponse2003(object):
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'members': 'list[InlineResponse2003Members]'
|
||||
'token': 'str',
|
||||
'z_id': 'str',
|
||||
'url_template': 'str',
|
||||
'public_name': 'str',
|
||||
'created_at': 'int',
|
||||
'updated_at': 'int'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'members': 'members'
|
||||
'token': 'token',
|
||||
'z_id': 'zId',
|
||||
'url_template': 'urlTemplate',
|
||||
'public_name': 'publicName',
|
||||
'created_at': 'createdAt',
|
||||
'updated_at': 'updatedAt'
|
||||
}
|
||||
|
||||
def __init__(self, members=None): # noqa: E501
|
||||
def __init__(self, token=None, z_id=None, url_template=None, public_name=None, created_at=None, updated_at=None): # noqa: E501
|
||||
"""InlineResponse2003 - a model defined in Swagger""" # noqa: E501
|
||||
self._members = None
|
||||
self._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 members is not None:
|
||||
self.members = members
|
||||
if token is not None:
|
||||
self.token = token
|
||||
if z_id is not None:
|
||||
self.z_id = z_id
|
||||
if url_template is not None:
|
||||
self.url_template = url_template
|
||||
if public_name is not None:
|
||||
self.public_name = public_name
|
||||
if created_at is not None:
|
||||
self.created_at = created_at
|
||||
if updated_at is not None:
|
||||
self.updated_at = updated_at
|
||||
|
||||
@property
|
||||
def members(self):
|
||||
"""Gets the members of this InlineResponse2003. # noqa: E501
|
||||
def token(self):
|
||||
"""Gets the token of this InlineResponse2003. # noqa: E501
|
||||
|
||||
|
||||
:return: The members of this InlineResponse2003. # noqa: E501
|
||||
:rtype: list[InlineResponse2003Members]
|
||||
:return: The token of this InlineResponse2003. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._members
|
||||
return self._token
|
||||
|
||||
@members.setter
|
||||
def members(self, members):
|
||||
"""Sets the members of this InlineResponse2003.
|
||||
@token.setter
|
||||
def token(self, token):
|
||||
"""Sets the token of this InlineResponse2003.
|
||||
|
||||
|
||||
:param members: The members of this InlineResponse2003. # noqa: E501
|
||||
:type: list[InlineResponse2003Members]
|
||||
:param token: The token of this InlineResponse2003. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._members = members
|
||||
self._token = token
|
||||
|
||||
@property
|
||||
def z_id(self):
|
||||
"""Gets the z_id of this InlineResponse2003. # noqa: E501
|
||||
|
||||
|
||||
:return: The z_id of this InlineResponse2003. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._z_id
|
||||
|
||||
@z_id.setter
|
||||
def z_id(self, z_id):
|
||||
"""Sets the z_id of this InlineResponse2003.
|
||||
|
||||
|
||||
:param z_id: The z_id of this InlineResponse2003. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._z_id = z_id
|
||||
|
||||
@property
|
||||
def url_template(self):
|
||||
"""Gets the url_template of this InlineResponse2003. # noqa: E501
|
||||
|
||||
|
||||
:return: The url_template of this InlineResponse2003. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._url_template
|
||||
|
||||
@url_template.setter
|
||||
def url_template(self, url_template):
|
||||
"""Sets the url_template of this InlineResponse2003.
|
||||
|
||||
|
||||
:param url_template: The url_template of this InlineResponse2003. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._url_template = url_template
|
||||
|
||||
@property
|
||||
def public_name(self):
|
||||
"""Gets the public_name of this InlineResponse2003. # noqa: E501
|
||||
|
||||
|
||||
:return: The public_name of this InlineResponse2003. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._public_name
|
||||
|
||||
@public_name.setter
|
||||
def public_name(self, public_name):
|
||||
"""Sets the public_name of this InlineResponse2003.
|
||||
|
||||
|
||||
:param public_name: The public_name of this InlineResponse2003. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._public_name = public_name
|
||||
|
||||
@property
|
||||
def created_at(self):
|
||||
"""Gets the created_at of this InlineResponse2003. # noqa: E501
|
||||
|
||||
|
||||
:return: The created_at of this InlineResponse2003. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._created_at
|
||||
|
||||
@created_at.setter
|
||||
def created_at(self, created_at):
|
||||
"""Sets the created_at of this InlineResponse2003.
|
||||
|
||||
|
||||
:param created_at: The created_at of this InlineResponse2003. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._created_at = created_at
|
||||
|
||||
@property
|
||||
def updated_at(self):
|
||||
"""Gets the updated_at of this InlineResponse2003. # noqa: E501
|
||||
|
||||
|
||||
:return: The updated_at of this InlineResponse2003. # noqa: E501
|
||||
:rtype: int
|
||||
"""
|
||||
return self._updated_at
|
||||
|
||||
@updated_at.setter
|
||||
def updated_at(self, updated_at):
|
||||
"""Sets the updated_at of this InlineResponse2003.
|
||||
|
||||
|
||||
:param updated_at: The updated_at of this InlineResponse2003. # noqa: E501
|
||||
:type: int
|
||||
"""
|
||||
|
||||
self._updated_at = updated_at
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
|
@ -28,40 +28,40 @@ class InlineResponse2004(object):
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'organizations': 'list[InlineResponse2004Organizations]'
|
||||
'members': 'list[InlineResponse2004Members]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'organizations': 'organizations'
|
||||
'members': 'members'
|
||||
}
|
||||
|
||||
def __init__(self, organizations=None): # noqa: E501
|
||||
def __init__(self, members=None): # noqa: E501
|
||||
"""InlineResponse2004 - 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 InlineResponse2004. # noqa: E501
|
||||
def members(self):
|
||||
"""Gets the members of this InlineResponse2004. # noqa: E501
|
||||
|
||||
|
||||
:return: The organizations of this InlineResponse2004. # noqa: E501
|
||||
:rtype: list[InlineResponse2004Organizations]
|
||||
:return: The members of this InlineResponse2004. # noqa: E501
|
||||
:rtype: list[InlineResponse2004Members]
|
||||
"""
|
||||
return self._organizations
|
||||
return self._members
|
||||
|
||||
@organizations.setter
|
||||
def organizations(self, organizations):
|
||||
"""Sets the organizations of this InlineResponse2004.
|
||||
@members.setter
|
||||
def members(self, members):
|
||||
"""Sets the members of this InlineResponse2004.
|
||||
|
||||
|
||||
:param organizations: The organizations of this InlineResponse2004. # noqa: E501
|
||||
:type: list[InlineResponse2004Organizations]
|
||||
:param members: The members of this InlineResponse2004. # noqa: E501
|
||||
:type: list[InlineResponse2004Members]
|
||||
"""
|
||||
|
||||
self._organizations = organizations
|
||||
self._members = members
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
|
@ -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 InlineResponse2004Members(object):
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
"""
|
||||
Attributes:
|
||||
swagger_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'email': 'str',
|
||||
'admin': 'bool'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'email': 'email',
|
||||
'admin': 'admin'
|
||||
}
|
||||
|
||||
def __init__(self, email=None, admin=None): # noqa: E501
|
||||
"""InlineResponse2004Members - a model defined in Swagger""" # noqa: E501
|
||||
self._email = None
|
||||
self._admin = None
|
||||
self.discriminator = None
|
||||
if email is not None:
|
||||
self.email = email
|
||||
if admin is not None:
|
||||
self.admin = admin
|
||||
|
||||
@property
|
||||
def email(self):
|
||||
"""Gets the email of this InlineResponse2004Members. # noqa: E501
|
||||
|
||||
|
||||
:return: The email of this InlineResponse2004Members. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._email
|
||||
|
||||
@email.setter
|
||||
def email(self, email):
|
||||
"""Sets the email of this InlineResponse2004Members.
|
||||
|
||||
|
||||
:param email: The email of this InlineResponse2004Members. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._email = email
|
||||
|
||||
@property
|
||||
def admin(self):
|
||||
"""Gets the admin of this InlineResponse2004Members. # noqa: E501
|
||||
|
||||
|
||||
:return: The admin of this InlineResponse2004Members. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._admin
|
||||
|
||||
@admin.setter
|
||||
def admin(self, admin):
|
||||
"""Sets the admin of this InlineResponse2004Members.
|
||||
|
||||
|
||||
:param admin: The admin of this InlineResponse2004Members. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._admin = admin
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.swagger_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
if issubclass(InlineResponse2004Members, dict):
|
||||
for key, value in self.items():
|
||||
result[key] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, InlineResponse2004Members):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
@ -28,40 +28,40 @@ class InlineResponse2005(object):
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'memberships': 'list[InlineResponse2005Memberships]'
|
||||
'organizations': 'list[InlineResponse2005Organizations]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'memberships': 'memberships'
|
||||
'organizations': 'organizations'
|
||||
}
|
||||
|
||||
def __init__(self, memberships=None): # noqa: E501
|
||||
def __init__(self, organizations=None): # noqa: E501
|
||||
"""InlineResponse2005 - 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 InlineResponse2005. # noqa: E501
|
||||
def organizations(self):
|
||||
"""Gets the organizations of this InlineResponse2005. # noqa: E501
|
||||
|
||||
|
||||
:return: The memberships of this InlineResponse2005. # noqa: E501
|
||||
:rtype: list[InlineResponse2005Memberships]
|
||||
:return: The organizations of this InlineResponse2005. # noqa: E501
|
||||
:rtype: list[InlineResponse2005Organizations]
|
||||
"""
|
||||
return self._memberships
|
||||
return self._organizations
|
||||
|
||||
@memberships.setter
|
||||
def memberships(self, memberships):
|
||||
"""Sets the memberships of this InlineResponse2005.
|
||||
@organizations.setter
|
||||
def organizations(self, organizations):
|
||||
"""Sets the organizations of this InlineResponse2005.
|
||||
|
||||
|
||||
:param memberships: The memberships of this InlineResponse2005. # noqa: E501
|
||||
:type: list[InlineResponse2005Memberships]
|
||||
:param organizations: The organizations of this InlineResponse2005. # noqa: E501
|
||||
:type: list[InlineResponse2005Organizations]
|
||||
"""
|
||||
|
||||
self._memberships = memberships
|
||||
self._organizations = organizations
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
|
@ -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 InlineResponse2005Organizations(object):
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
"""
|
||||
Attributes:
|
||||
swagger_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'token': 'str',
|
||||
'description': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'token': 'token',
|
||||
'description': 'description'
|
||||
}
|
||||
|
||||
def __init__(self, token=None, description=None): # noqa: E501
|
||||
"""InlineResponse2005Organizations - a model defined in Swagger""" # noqa: E501
|
||||
self._token = None
|
||||
self._description = None
|
||||
self.discriminator = None
|
||||
if token is not None:
|
||||
self.token = token
|
||||
if description is not None:
|
||||
self.description = description
|
||||
|
||||
@property
|
||||
def token(self):
|
||||
"""Gets the token of this InlineResponse2005Organizations. # noqa: E501
|
||||
|
||||
|
||||
:return: The token of this InlineResponse2005Organizations. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._token
|
||||
|
||||
@token.setter
|
||||
def token(self, token):
|
||||
"""Sets the token of this InlineResponse2005Organizations.
|
||||
|
||||
|
||||
:param token: The token of this InlineResponse2005Organizations. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._token = token
|
||||
|
||||
@property
|
||||
def description(self):
|
||||
"""Gets the description of this InlineResponse2005Organizations. # noqa: E501
|
||||
|
||||
|
||||
:return: The description of this InlineResponse2005Organizations. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._description
|
||||
|
||||
@description.setter
|
||||
def description(self, description):
|
||||
"""Sets the description of this InlineResponse2005Organizations.
|
||||
|
||||
|
||||
:param description: The description of this InlineResponse2005Organizations. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._description = description
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.swagger_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
if issubclass(InlineResponse2005Organizations, dict):
|
||||
for key, value in self.items():
|
||||
result[key] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, InlineResponse2005Organizations):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
@ -28,40 +28,40 @@ class InlineResponse2006(object):
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'sparklines': 'list[Metrics]'
|
||||
'memberships': 'list[InlineResponse2006Memberships]'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'sparklines': 'sparklines'
|
||||
'memberships': 'memberships'
|
||||
}
|
||||
|
||||
def __init__(self, sparklines=None): # noqa: E501
|
||||
def __init__(self, memberships=None): # noqa: E501
|
||||
"""InlineResponse2006 - 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 InlineResponse2006. # noqa: E501
|
||||
def memberships(self):
|
||||
"""Gets the memberships of this InlineResponse2006. # noqa: E501
|
||||
|
||||
|
||||
:return: The sparklines of this InlineResponse2006. # noqa: E501
|
||||
:rtype: list[Metrics]
|
||||
:return: The memberships of this InlineResponse2006. # noqa: E501
|
||||
:rtype: list[InlineResponse2006Memberships]
|
||||
"""
|
||||
return self._sparklines
|
||||
return self._memberships
|
||||
|
||||
@sparklines.setter
|
||||
def sparklines(self, sparklines):
|
||||
"""Sets the sparklines of this InlineResponse2006.
|
||||
@memberships.setter
|
||||
def memberships(self, memberships):
|
||||
"""Sets the memberships of this InlineResponse2006.
|
||||
|
||||
|
||||
:param sparklines: The sparklines of this InlineResponse2006. # noqa: E501
|
||||
:type: list[Metrics]
|
||||
:param memberships: The memberships of this InlineResponse2006. # noqa: E501
|
||||
:type: list[InlineResponse2006Memberships]
|
||||
"""
|
||||
|
||||
self._sparklines = sparklines
|
||||
self._memberships = memberships
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
|
@ -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 InlineResponse2006Memberships(object):
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
"""
|
||||
Attributes:
|
||||
swagger_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'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
|
||||
"""InlineResponse2006Memberships - 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 InlineResponse2006Memberships. # noqa: E501
|
||||
|
||||
|
||||
:return: The token of this InlineResponse2006Memberships. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._token
|
||||
|
||||
@token.setter
|
||||
def token(self, token):
|
||||
"""Sets the token of this InlineResponse2006Memberships.
|
||||
|
||||
|
||||
:param token: The token of this InlineResponse2006Memberships. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._token = token
|
||||
|
||||
@property
|
||||
def description(self):
|
||||
"""Gets the description of this InlineResponse2006Memberships. # noqa: E501
|
||||
|
||||
|
||||
:return: The description of this InlineResponse2006Memberships. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._description
|
||||
|
||||
@description.setter
|
||||
def description(self, description):
|
||||
"""Sets the description of this InlineResponse2006Memberships.
|
||||
|
||||
|
||||
:param description: The description of this InlineResponse2006Memberships. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._description = description
|
||||
|
||||
@property
|
||||
def admin(self):
|
||||
"""Gets the admin of this InlineResponse2006Memberships. # noqa: E501
|
||||
|
||||
|
||||
:return: The admin of this InlineResponse2006Memberships. # noqa: E501
|
||||
:rtype: bool
|
||||
"""
|
||||
return self._admin
|
||||
|
||||
@admin.setter
|
||||
def admin(self, admin):
|
||||
"""Sets the admin of this InlineResponse2006Memberships.
|
||||
|
||||
|
||||
:param admin: The admin of this InlineResponse2006Memberships. # noqa: E501
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
self._admin = admin
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.swagger_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
if issubclass(InlineResponse2006Memberships, dict):
|
||||
for key, value in self.items():
|
||||
result[key] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""Returns the string representation of the model"""
|
||||
return pprint.pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""For `print` and `pprint`"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""Returns true if both objects are equal"""
|
||||
if not isinstance(other, InlineResponse2006Memberships):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
110
sdk/python/sdk/zrok/zrok_api/models/inline_response2007.py
Normal file
110
sdk/python/sdk/zrok/zrok_api/models/inline_response2007.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 InlineResponse2007(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
|
||||
"""InlineResponse2007 - 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 InlineResponse2007. # noqa: E501
|
||||
|
||||
|
||||
:return: The sparklines of this InlineResponse2007. # noqa: E501
|
||||
:rtype: list[Metrics]
|
||||
"""
|
||||
return self._sparklines
|
||||
|
||||
@sparklines.setter
|
||||
def sparklines(self, sparklines):
|
||||
"""Sets the sparklines of this InlineResponse2007.
|
||||
|
||||
|
||||
:param sparklines: The sparklines of this InlineResponse2007. # 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(InlineResponse2007, 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, InlineResponse2007):
|
||||
return False
|
||||
|
||||
return self.__dict__ == other.__dict__
|
||||
|
||||
def __ne__(self, other):
|
||||
"""Returns true if both objects are not equal"""
|
||||
return not self == other
|
@ -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 RegenerateAccountTokenBody(object):
|
||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
"""
|
||||
Attributes:
|
||||
swagger_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
attribute_map (dict): The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
swagger_types = {
|
||||
'email_address': 'str'
|
||||
}
|
||||
|
||||
attribute_map = {
|
||||
'email_address': 'emailAddress'
|
||||
}
|
||||
|
||||
def __init__(self, email_address=None): # noqa: E501
|
||||
"""RegenerateAccountTokenBody - a model defined in Swagger""" # noqa: E501
|
||||
self._email_address = None
|
||||
self.discriminator = None
|
||||
if email_address is not None:
|
||||
self.email_address = email_address
|
||||
|
||||
@property
|
||||
def email_address(self):
|
||||
"""Gets the email_address of this RegenerateAccountTokenBody. # noqa: E501
|
||||
|
||||
|
||||
:return: The email_address of this RegenerateAccountTokenBody. # noqa: E501
|
||||
:rtype: str
|
||||
"""
|
||||
return self._email_address
|
||||
|
||||
@email_address.setter
|
||||
def email_address(self, email_address):
|
||||
"""Sets the email_address of this RegenerateAccountTokenBody.
|
||||
|
||||
|
||||
:param email_address: The email_address of this RegenerateAccountTokenBody. # noqa: E501
|
||||
:type: str
|
||||
"""
|
||||
|
||||
self._email_address = email_address
|
||||
|
||||
def to_dict(self):
|
||||
"""Returns the model properties as a dict"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in six.iteritems(self.swagger_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
if issubclass(RegenerateAccountTokenBody, 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, RegenerateAccountTokenBody):
|
||||
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