diff --git a/sdk/python/sdk/zrok/.swagger-codegen/VERSION b/sdk/python/sdk/zrok/.swagger-codegen/VERSION index 24ade4ad..b262b4de 100644 --- a/sdk/python/sdk/zrok/.swagger-codegen/VERSION +++ b/sdk/python/sdk/zrok/.swagger-codegen/VERSION @@ -1 +1 @@ -2.4.43 \ No newline at end of file +3.0.51 \ No newline at end of file diff --git a/sdk/python/sdk/zrok/zrok_api/__init__.py b/sdk/python/sdk/zrok/zrok_api/__init__.py index 412c46f6..a231330e 100644 --- a/sdk/python/sdk/zrok/zrok_api/__init__.py +++ b/sdk/python/sdk/zrok/zrok_api/__init__.py @@ -12,7 +12,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import # import apis into sdk package @@ -21,58 +20,70 @@ from zrok_api.api.admin_api import AdminApi from zrok_api.api.environment_api import EnvironmentApi from zrok_api.api.metadata_api import MetadataApi from zrok_api.api.share_api import ShareApi - # import ApiClient from zrok_api.api_client import ApiClient from zrok_api.configuration import Configuration # import models into sdk package +from zrok_api.models.access_body import AccessBody +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.body import Body -from zrok_api.models.body1 import Body1 -from zrok_api.models.body10 import Body10 -from zrok_api.models.body11 import Body11 -from zrok_api.models.body12 import Body12 -from zrok_api.models.body13 import Body13 -from zrok_api.models.body14 import Body14 -from zrok_api.models.body15 import Body15 -from zrok_api.models.body16 import Body16 -from zrok_api.models.body17 import Body17 -from zrok_api.models.body18 import Body18 -from zrok_api.models.body19 import Body19 -from zrok_api.models.body2 import Body2 -from zrok_api.models.body20 import Body20 -from zrok_api.models.body21 import Body21 -from zrok_api.models.body22 import Body22 -from zrok_api.models.body23 import Body23 -from zrok_api.models.body24 import Body24 -from zrok_api.models.body25 import Body25 -from zrok_api.models.body26 import Body26 -from zrok_api.models.body27 import Body27 -from zrok_api.models.body28 import Body28 -from zrok_api.models.body3 import Body3 -from zrok_api.models.body4 import Body4 -from zrok_api.models.body5 import Body5 -from zrok_api.models.body6 import Body6 -from zrok_api.models.body7 import Body7 -from zrok_api.models.body8 import Body8 -from zrok_api.models.body9 import Body9 +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 from zrok_api.models.environment import Environment from zrok_api.models.environment_and_resources import EnvironmentAndResources from zrok_api.models.environments import Environments from zrok_api.models.error_message import ErrorMessage from zrok_api.models.frontend import Frontend +from zrok_api.models.frontend_body import FrontendBody +from zrok_api.models.frontend_body1 import FrontendBody1 +from zrok_api.models.frontend_body2 import FrontendBody2 from zrok_api.models.frontends import Frontends +from zrok_api.models.grants_body import GrantsBody +from zrok_api.models.identity_body import IdentityBody from zrok_api.models.inline_response200 import InlineResponse200 +from zrok_api.models.inline_response2001 import InlineResponse2001 +from zrok_api.models.inline_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_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 +from zrok_api.models.inline_response2013 import InlineResponse2013 +from zrok_api.models.invite_body import InviteBody +from zrok_api.models.login_body import LoginBody from zrok_api.models.metrics import Metrics from zrok_api.models.metrics_sample import MetricsSample +from zrok_api.models.organization_add_body import OrganizationAddBody +from zrok_api.models.organization_body import OrganizationBody +from zrok_api.models.organization_body1 import OrganizationBody1 +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_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 from zrok_api.models.share import Share +from zrok_api.models.share_body import ShareBody from zrok_api.models.share_request import ShareRequest from zrok_api.models.share_response import ShareResponse from zrok_api.models.shares import Shares from zrok_api.models.spark_data import SparkData from zrok_api.models.spark_data_sample import SparkDataSample +from zrok_api.models.sparklines_body import SparklinesBody +from zrok_api.models.token_generate_body import TokenGenerateBody +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 diff --git a/sdk/python/sdk/zrok/zrok_api/api/account_api.py b/sdk/python/sdk/zrok/zrok_api/api/account_api.py index 6166da61..8a85d9e1 100644 --- a/sdk/python/sdk/zrok/zrok_api/api/account_api.py +++ b/sdk/python/sdk/zrok/zrok_api/api/account_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -42,7 +41,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body body: + :param ChangePasswordBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -63,7 +62,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body body: + :param ChangePasswordBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -135,7 +134,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body1 body: + :param InviteBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -156,7 +155,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body1 body: + :param InviteBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -228,7 +227,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body2 body: + :param LoginBody body: :return: str If the method is called asynchronously, returns the request thread. @@ -249,7 +248,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body2 body: + :param LoginBody body: :return: str If the method is called asynchronously, returns the request thread. @@ -321,8 +320,8 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body3 body: - :return: object + :param RegenerateAccountTokenBody body: + :return: InlineResponse200 If the method is called asynchronously, returns the request thread. """ @@ -342,8 +341,8 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body3 body: - :return: object + :param RegenerateAccountTokenBody body: + :return: InlineResponse200 If the method is called asynchronously, returns the request thread. """ @@ -397,7 +396,7 @@ class AccountApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse200', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -414,8 +413,8 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body4 body: - :return: object + :param RegisterBody body: + :return: InlineResponse200 If the method is called asynchronously, returns the request thread. """ @@ -435,8 +434,8 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body4 body: - :return: object + :param RegisterBody body: + :return: InlineResponse200 If the method is called asynchronously, returns the request thread. """ @@ -490,7 +489,7 @@ class AccountApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse200', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -507,7 +506,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body5 body: + :param ResetPasswordBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -528,7 +527,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body5 body: + :param ResetPasswordBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -600,7 +599,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body6 body: + :param ResetPasswordRequestBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -621,7 +620,7 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body6 body: + :param ResetPasswordRequestBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -657,10 +656,6 @@ class AccountApi(object): body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -693,8 +688,8 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body7 body: - :return: object + :param VerifyBody body: + :return: InlineResponse2001 If the method is called asynchronously, returns the request thread. """ @@ -714,8 +709,8 @@ class AccountApi(object): >>> result = thread.get() :param async_req bool - :param Body7 body: - :return: object + :param VerifyBody body: + :return: InlineResponse2001 If the method is called asynchronously, returns the request thread. """ @@ -769,7 +764,7 @@ class AccountApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # 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'), diff --git a/sdk/python/sdk/zrok/zrok_api/api/admin_api.py b/sdk/python/sdk/zrok/zrok_api/api/admin_api.py index b9649da7..081dbe65 100644 --- a/sdk/python/sdk/zrok/zrok_api/api/admin_api.py +++ b/sdk/python/sdk/zrok/zrok_api/api/admin_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -42,7 +41,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body17 body: + :param OrganizationAddBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -63,7 +62,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body17 body: + :param OrganizationAddBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -99,10 +98,6 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -135,8 +130,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body8 body: - :return: object + :param AccountBody body: + :return: InlineResponse200 If the method is called asynchronously, returns the request thread. """ @@ -156,8 +151,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body8 body: - :return: object + :param AccountBody body: + :return: InlineResponse200 If the method is called asynchronously, returns the request thread. """ @@ -211,7 +206,7 @@ class AdminApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse200', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -228,7 +223,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body9 body: + :param FrontendBody body: :return: InlineResponse201 If the method is called asynchronously, returns the request thread. @@ -249,7 +244,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body9 body: + :param FrontendBody body: :return: InlineResponse201 If the method is called asynchronously, returns the request thread. @@ -321,8 +316,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body13 body: - :return: object + :param IdentityBody body: + :return: InlineResponse2011 If the method is called asynchronously, returns the request thread. """ @@ -342,8 +337,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body13 body: - :return: object + :param IdentityBody body: + :return: InlineResponse2011 If the method is called asynchronously, returns the request thread. """ @@ -397,7 +392,7 @@ class AdminApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse2011', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -414,8 +409,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body15 body: - :return: object + :param OrganizationBody body: + :return: InlineResponse2012 If the method is called asynchronously, returns the request thread. """ @@ -435,8 +430,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body15 body: - :return: object + :param OrganizationBody body: + :return: InlineResponse2012 If the method is called asynchronously, returns the request thread. """ @@ -490,7 +485,7 @@ class AdminApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse2012', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -507,7 +502,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body10 body: + :param FrontendBody1 body: :return: None If the method is called asynchronously, returns the request thread. @@ -528,7 +523,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body10 body: + :param FrontendBody1 body: :return: None If the method is called asynchronously, returns the request thread. @@ -564,10 +559,6 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -600,7 +591,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body16 body: + :param OrganizationBody1 body: :return: None If the method is called asynchronously, returns the request thread. @@ -621,7 +612,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body16 body: + :param OrganizationBody1 body: :return: None If the method is called asynchronously, returns the request thread. @@ -657,10 +648,6 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -693,7 +680,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body12 body: + :param GrantsBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -714,7 +701,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body12 body: + :param GrantsBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -750,10 +737,6 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -786,7 +769,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body14 body: + :param TokenGenerateBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -807,7 +790,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body14 body: + :param TokenGenerateBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -843,10 +826,6 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -879,7 +858,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :return: list[InlineResponse200] + :return: list[InlineResponse2002] If the method is called asynchronously, returns the request thread. """ @@ -899,7 +878,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :return: list[InlineResponse200] + :return: list[InlineResponse2002] If the method is called asynchronously, returns the request thread. """ @@ -936,10 +915,6 @@ class AdminApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -951,7 +926,7 @@ class AdminApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='list[InlineResponse200]', # noqa: E501 + response_type='list[InlineResponse2002]', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -968,8 +943,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body18 body: - :return: object + :param OrganizationListBody body: + :return: InlineResponse2003 If the method is called asynchronously, returns the request thread. """ @@ -989,8 +964,8 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body18 body: - :return: object + :param OrganizationListBody body: + :return: InlineResponse2003 If the method is called asynchronously, returns the request thread. """ @@ -1044,7 +1019,7 @@ class AdminApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse2003', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1061,7 +1036,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :return: object + :return: InlineResponse2004 If the method is called asynchronously, returns the request thread. """ @@ -1081,7 +1056,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :return: object + :return: InlineResponse2004 If the method is called asynchronously, returns the request thread. """ @@ -1118,10 +1093,6 @@ class AdminApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -1133,7 +1104,7 @@ class AdminApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # 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'), @@ -1150,7 +1121,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body19 body: + :param OrganizationRemoveBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -1171,7 +1142,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body19 body: + :param OrganizationRemoveBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -1207,10 +1178,6 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -1243,7 +1210,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body11 body: + :param FrontendBody2 body: :return: None If the method is called asynchronously, returns the request thread. @@ -1264,7 +1231,7 @@ class AdminApi(object): >>> result = thread.get() :param async_req bool - :param Body11 body: + :param FrontendBody2 body: :return: None If the method is called asynchronously, returns the request thread. @@ -1300,10 +1267,6 @@ class AdminApi(object): body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 diff --git a/sdk/python/sdk/zrok/zrok_api/api/environment_api.py b/sdk/python/sdk/zrok/zrok_api/api/environment_api.py index a226f6df..16bc987e 100644 --- a/sdk/python/sdk/zrok/zrok_api/api/environment_api.py +++ b/sdk/python/sdk/zrok/zrok_api/api/environment_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -42,7 +41,7 @@ class EnvironmentApi(object): >>> result = thread.get() :param async_req bool - :param Body21 body: + :param DisableBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -63,7 +62,7 @@ class EnvironmentApi(object): >>> result = thread.get() :param async_req bool - :param Body21 body: + :param DisableBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -99,10 +98,6 @@ class EnvironmentApi(object): body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -135,8 +130,8 @@ class EnvironmentApi(object): >>> result = thread.get() :param async_req bool - :param Body20 body: - :return: object + :param EnableBody body: + :return: InlineResponse2011 If the method is called asynchronously, returns the request thread. """ @@ -156,8 +151,8 @@ class EnvironmentApi(object): >>> result = thread.get() :param async_req bool - :param Body20 body: - :return: object + :param EnableBody body: + :return: InlineResponse2011 If the method is called asynchronously, returns the request thread. """ @@ -211,7 +206,7 @@ class EnvironmentApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse2011', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/sdk/python/sdk/zrok/zrok_api/api/metadata_api.py b/sdk/python/sdk/zrok/zrok_api/api/metadata_api.py index 4b93eb04..1afe9e25 100644 --- a/sdk/python/sdk/zrok/zrok_api/api/metadata_api.py +++ b/sdk/python/sdk/zrok/zrok_api/api/metadata_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -42,7 +41,7 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :param Body22 body: + :param ClientVersionCheckBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -63,7 +62,7 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :param Body22 body: + :param ClientVersionCheckBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -111,8 +110,7 @@ class MetadataApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - # '/clientVersionCheck', 'POST', - '/version', 'POST', + '/clientVersionCheck', 'POST', path_params, query_params, header_params, @@ -193,10 +191,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = [] # noqa: E501 @@ -282,10 +276,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -375,10 +365,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -450,8 +436,8 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'env_zid' is set - if self.api_client.client_side_validation and ('env_zid' not in params or - params['env_zid'] is None): # noqa: E501 + if ('env_zid' not in params or + params['env_zid'] is None): raise ValueError("Missing the required parameter `env_zid` when calling `get_environment_detail`") # noqa: E501 collection_formats = {} @@ -472,10 +458,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -549,8 +531,8 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'env_id' is set - if self.api_client.client_side_validation and ('env_id' not in params or - params['env_id'] is None): # noqa: E501 + if ('env_id' not in params or + params['env_id'] is None): raise ValueError("Missing the required parameter `env_id` when calling `get_environment_metrics`") # noqa: E501 collection_formats = {} @@ -573,10 +555,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -648,8 +626,8 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'frontend_id' is set - if self.api_client.client_side_validation and ('frontend_id' not in params or - params['frontend_id'] is None): # noqa: E501 + if ('frontend_id' not in params or + params['frontend_id'] is None): raise ValueError("Missing the required parameter `frontend_id` when calling `get_frontend_detail`") # noqa: E501 collection_formats = {} @@ -670,10 +648,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -745,8 +719,8 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'share_token' is set - if self.api_client.client_side_validation and ('share_token' not in params or - params['share_token'] is None): # noqa: E501 + if ('share_token' not in params or + params['share_token'] is None): raise ValueError("Missing the required parameter `share_token` when calling `get_share_detail`") # noqa: E501 collection_formats = {} @@ -767,10 +741,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -844,8 +814,8 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'share_token' is set - if self.api_client.client_side_validation and ('share_token' not in params or - params['share_token'] is None): # noqa: E501 + if ('share_token' not in params or + params['share_token'] is None): raise ValueError("Missing the required parameter `share_token` when calling `get_share_metrics`") # noqa: E501 collection_formats = {} @@ -868,10 +838,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -900,8 +866,8 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :param Body23 body: - :return: object + :param SparklinesBody body: + :return: InlineResponse2006 If the method is called asynchronously, returns the request thread. """ @@ -921,8 +887,8 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :param Body23 body: - :return: object + :param SparklinesBody body: + :return: InlineResponse2006 If the method is called asynchronously, returns the request thread. """ @@ -976,7 +942,7 @@ class MetadataApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # 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'), @@ -993,7 +959,7 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :return: object + :return: InlineResponse2005 If the method is called asynchronously, returns the request thread. """ @@ -1013,7 +979,7 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :return: object + :return: InlineResponse2005 If the method is called asynchronously, returns the request thread. """ @@ -1050,10 +1016,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -1065,7 +1027,7 @@ class MetadataApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # 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'), @@ -1083,7 +1045,7 @@ class MetadataApi(object): :param async_req bool :param str organization_token: (required) - :return: object + :return: InlineResponse2003 If the method is called asynchronously, returns the request thread. """ @@ -1104,7 +1066,7 @@ class MetadataApi(object): :param async_req bool :param str organization_token: (required) - :return: object + :return: InlineResponse2003 If the method is called asynchronously, returns the request thread. """ @@ -1125,8 +1087,8 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'organization_token' is set - if self.api_client.client_side_validation and ('organization_token' not in params or - params['organization_token'] is None): # noqa: E501 + if ('organization_token' not in params or + params['organization_token'] is None): raise ValueError("Missing the required parameter `organization_token` when calling `list_org_members`") # noqa: E501 collection_formats = {} @@ -1147,10 +1109,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -1162,7 +1120,7 @@ class MetadataApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse2003', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1224,12 +1182,12 @@ class MetadataApi(object): params[key] = val del params['kwargs'] # verify the required parameter 'organization_token' is set - if self.api_client.client_side_validation and ('organization_token' not in params or - params['organization_token'] is None): # noqa: E501 + if ('organization_token' not in params or + params['organization_token'] is None): raise ValueError("Missing the required parameter `organization_token` when calling `org_account_overview`") # noqa: E501 # verify the required parameter 'account_email' is set - if self.api_client.client_side_validation and ('account_email' not in params or - params['account_email'] is None): # noqa: E501 + if ('account_email' not in params or + params['account_email'] is None): raise ValueError("Missing the required parameter `account_email` when calling `org_account_overview`") # noqa: E501 collection_formats = {} @@ -1252,10 +1210,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -1341,10 +1295,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = ['key'] # noqa: E501 @@ -1430,10 +1380,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = [] # noqa: E501 @@ -1462,7 +1408,7 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :return: object + :return: InlineResponse2007 If the method is called asynchronously, returns the request thread. """ @@ -1482,7 +1428,7 @@ class MetadataApi(object): >>> result = thread.get() :param async_req bool - :return: object + :return: InlineResponse2007 If the method is called asynchronously, returns the request thread. """ @@ -1519,10 +1465,6 @@ class MetadataApi(object): header_params['Accept'] = self.api_client.select_header_accept( ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/zrok.v1+json']) # noqa: E501 - # Authentication setting auth_settings = [] # noqa: E501 @@ -1534,7 +1476,7 @@ class MetadataApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # 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'), diff --git a/sdk/python/sdk/zrok/zrok_api/api/share_api.py b/sdk/python/sdk/zrok/zrok_api/api/share_api.py index 63090a4f..49362e17 100644 --- a/sdk/python/sdk/zrok/zrok_api/api/share_api.py +++ b/sdk/python/sdk/zrok/zrok_api/api/share_api.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import re # noqa: F401 @@ -42,8 +41,8 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param Body24 body: - :return: object + :param AccessBody body: + :return: InlineResponse2013 If the method is called asynchronously, returns the request thread. """ @@ -63,8 +62,8 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param Body24 body: - :return: object + :param AccessBody body: + :return: InlineResponse2013 If the method is called asynchronously, returns the request thread. """ @@ -118,7 +117,7 @@ class ShareApi(object): body=body_params, post_params=form_params, files=local_var_files, - response_type='object', # noqa: E501 + response_type='InlineResponse2013', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), @@ -228,7 +227,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param Body27 body: + :param UnaccessBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -249,7 +248,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param Body27 body: + :param UnaccessBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -285,10 +284,6 @@ class ShareApi(object): body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -321,7 +316,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param Body28 body: + :param UnshareBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -342,7 +337,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param Body28 body: + :param UnshareBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -414,7 +409,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param Body25 body: + :param AccessBody1 body: :return: None If the method is called asynchronously, returns the request thread. @@ -435,7 +430,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param Body25 body: + :param AccessBody1 body: :return: None If the method is called asynchronously, returns the request thread. @@ -471,10 +466,6 @@ class ShareApi(object): body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 @@ -507,7 +498,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param Body26 body: + :param ShareBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -528,7 +519,7 @@ class ShareApi(object): >>> result = thread.get() :param async_req bool - :param Body26 body: + :param ShareBody body: :return: None If the method is called asynchronously, returns the request thread. @@ -564,10 +555,6 @@ class ShareApi(object): body_params = None if 'body' in params: body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/zrok.v1+json']) # noqa: E501 - # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/zrok.v1+json']) # noqa: E501 diff --git a/sdk/python/sdk/zrok/zrok_api/api_client.py b/sdk/python/sdk/zrok/zrok_api/api_client.py index c8d822a5..e42ff0d2 100644 --- a/sdk/python/sdk/zrok/zrok_api/api_client.py +++ b/sdk/python/sdk/zrok/zrok_api/api_client.py @@ -66,8 +66,7 @@ class ApiClient(object): configuration = Configuration() self.configuration = configuration - # Use the pool property to lazily initialize the ThreadPool. - self._pool = None + self.pool = ThreadPool() self.rest_client = rest.RESTClientObject(configuration) self.default_headers = {} if header_name is not None: @@ -75,18 +74,10 @@ class ApiClient(object): self.cookie = cookie # Set default User-Agent. self.user_agent = 'Swagger-Codegen/1.0.0/python' - self.client_side_validation = configuration.client_side_validation def __del__(self): - if self._pool is not None: - self._pool.close() - self._pool.join() - - @property - def pool(self): - if self._pool is None: - self._pool = ThreadPool() - return self._pool + self.pool.close() + self.pool.join() @property def user_agent(self): @@ -533,10 +524,14 @@ class ApiClient(object): filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition).group(1) path = os.path.join(os.path.dirname(path), filename) - - with open(path, "w") as f: - f.write(response.data) - + response_data = response.data + with open(path, "wb") as f: + if isinstance(response_data, str): + # change str to bytes so we can write it + response_data = response_data.encode('utf-8') + f.write(response_data) + else: + f.write(response_data) return path def __deserialize_primitive(self, data, klass): @@ -601,7 +596,7 @@ class ApiClient(object): ) def __hasattr(self, object, name): - return name in object.__class__.__dict__ + return name in object.__class__.__dict__ def __deserialize_model(self, data, klass): """Deserializes list or dict to model. @@ -611,8 +606,7 @@ class ApiClient(object): :return: model object. """ - if (not klass.swagger_types and - not self.__hasattr(klass, 'get_real_child_model')): + if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): return data kwargs = {} diff --git a/sdk/python/sdk/zrok/zrok_api/configuration.py b/sdk/python/sdk/zrok/zrok_api/configuration.py index 4b3f8d38..331c27b7 100644 --- a/sdk/python/sdk/zrok/zrok_api/configuration.py +++ b/sdk/python/sdk/zrok/zrok_api/configuration.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import copy @@ -23,24 +22,31 @@ import six from six.moves import http_client as httplib -class Configuration(object): +class TypeWithDefault(type): + def __init__(cls, name, bases, dct): + super(TypeWithDefault, cls).__init__(name, bases, dct) + cls._default = None + + def __call__(cls): + if cls._default is None: + cls._default = type.__call__(cls) + return copy.copy(cls._default) + + def set_default(cls, default): + cls._default = copy.copy(default) + + +class Configuration(six.with_metaclass(TypeWithDefault, object)): """NOTE: This class is auto generated by the swagger code generator program. Ref: https://github.com/swagger-api/swagger-codegen Do not edit the class manually. """ - _default = None - def __init__(self): """Constructor""" - if self._default: - for key in self._default.__dict__.keys(): - self.__dict__[key] = copy.copy(self._default.__dict__[key]) - return - # Default Base url - self.host = "http://localhost/api/v1" + self.host = "/api/v1" # Temp file folder for downloading files self.temp_folder_path = None @@ -55,7 +61,6 @@ class Configuration(object): self.username = "" # Password for HTTP basic authentication self.password = "" - # Logging Settings self.logger = {} self.logger["package_logger"] = logging.getLogger("zrok_api") @@ -96,13 +101,6 @@ class Configuration(object): # Safe chars for path_param self.safe_chars_for_path_param = '' - # Disable client side validation - self.client_side_validation = True - - @classmethod - def set_default(cls, default): - cls._default = default - @property def logger_file(self): """The logger file. @@ -205,7 +203,6 @@ class Configuration(object): :param identifier: The identifier of apiKey. :return: The token for api key authentication. """ - if self.refresh_api_key_hook: self.refresh_api_key_hook(self) @@ -222,12 +219,9 @@ class Configuration(object): :return: The token for basic HTTP authentication. """ - token = "" - if self.username or self.password: - token = urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - return token + return urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') def auth_settings(self): """Gets Auth Settings dict for api client. @@ -242,7 +236,6 @@ class Configuration(object): 'key': 'x-token', 'value': self.get_api_key_with_prefix('x-token') }, - } def to_debug_report(self): diff --git a/sdk/python/sdk/zrok/zrok_api/models/__init__.py b/sdk/python/sdk/zrok/zrok_api/models/__init__.py index ead7e734..c59710d3 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/__init__.py +++ b/sdk/python/sdk/zrok/zrok_api/models/__init__.py @@ -11,57 +11,69 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import # import models into model package +from zrok_api.models.access_body import AccessBody +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.body import Body -from zrok_api.models.body1 import Body1 -from zrok_api.models.body10 import Body10 -from zrok_api.models.body11 import Body11 -from zrok_api.models.body12 import Body12 -from zrok_api.models.body13 import Body13 -from zrok_api.models.body14 import Body14 -from zrok_api.models.body15 import Body15 -from zrok_api.models.body16 import Body16 -from zrok_api.models.body17 import Body17 -from zrok_api.models.body18 import Body18 -from zrok_api.models.body19 import Body19 -from zrok_api.models.body2 import Body2 -from zrok_api.models.body20 import Body20 -from zrok_api.models.body21 import Body21 -from zrok_api.models.body22 import Body22 -from zrok_api.models.body23 import Body23 -from zrok_api.models.body24 import Body24 -from zrok_api.models.body25 import Body25 -from zrok_api.models.body26 import Body26 -from zrok_api.models.body27 import Body27 -from zrok_api.models.body28 import Body28 -from zrok_api.models.body3 import Body3 -from zrok_api.models.body4 import Body4 -from zrok_api.models.body5 import Body5 -from zrok_api.models.body6 import Body6 -from zrok_api.models.body7 import Body7 -from zrok_api.models.body8 import Body8 -from zrok_api.models.body9 import Body9 +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 from zrok_api.models.environment import Environment from zrok_api.models.environment_and_resources import EnvironmentAndResources from zrok_api.models.environments import Environments from zrok_api.models.error_message import ErrorMessage from zrok_api.models.frontend import Frontend +from zrok_api.models.frontend_body import FrontendBody +from zrok_api.models.frontend_body1 import FrontendBody1 +from zrok_api.models.frontend_body2 import FrontendBody2 from zrok_api.models.frontends import Frontends +from zrok_api.models.grants_body import GrantsBody +from zrok_api.models.identity_body import IdentityBody from zrok_api.models.inline_response200 import InlineResponse200 +from zrok_api.models.inline_response2001 import InlineResponse2001 +from zrok_api.models.inline_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_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 +from zrok_api.models.inline_response2013 import InlineResponse2013 +from zrok_api.models.invite_body import InviteBody +from zrok_api.models.login_body import LoginBody from zrok_api.models.metrics import Metrics from zrok_api.models.metrics_sample import MetricsSample +from zrok_api.models.organization_add_body import OrganizationAddBody +from zrok_api.models.organization_body import OrganizationBody +from zrok_api.models.organization_body1 import OrganizationBody1 +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_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 from zrok_api.models.share import Share +from zrok_api.models.share_body import ShareBody from zrok_api.models.share_request import ShareRequest from zrok_api.models.share_response import ShareResponse from zrok_api.models.shares import Shares from zrok_api.models.spark_data import SparkData from zrok_api.models.spark_data_sample import SparkDataSample +from zrok_api.models.sparklines_body import SparklinesBody +from zrok_api.models.token_generate_body import TokenGenerateBody +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 diff --git a/sdk/python/sdk/zrok/zrok_api/models/access_body.py b/sdk/python/sdk/zrok/zrok_api/models/access_body.py new file mode 100644 index 00000000..ca0ded7f --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/access_body.py @@ -0,0 +1,188 @@ +# 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 AccessBody(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 = { + 'env_zid': 'str', + 'share_token': 'str', + 'bind_address': 'str', + 'description': 'str' + } + + attribute_map = { + 'env_zid': 'envZId', + 'share_token': 'shareToken', + 'bind_address': 'bindAddress', + 'description': 'description' + } + + def __init__(self, env_zid=None, share_token=None, bind_address=None, description=None): # noqa: E501 + """AccessBody - a model defined in Swagger""" # noqa: E501 + self._env_zid = None + self._share_token = None + self._bind_address = None + self._description = None + self.discriminator = None + if env_zid is not None: + self.env_zid = env_zid + if share_token is not None: + self.share_token = share_token + if bind_address is not None: + self.bind_address = bind_address + if description is not None: + self.description = description + + @property + def env_zid(self): + """Gets the env_zid of this AccessBody. # noqa: E501 + + + :return: The env_zid of this AccessBody. # noqa: E501 + :rtype: str + """ + return self._env_zid + + @env_zid.setter + def env_zid(self, env_zid): + """Sets the env_zid of this AccessBody. + + + :param env_zid: The env_zid of this AccessBody. # noqa: E501 + :type: str + """ + + self._env_zid = env_zid + + @property + def share_token(self): + """Gets the share_token of this AccessBody. # noqa: E501 + + + :return: The share_token of this AccessBody. # noqa: E501 + :rtype: str + """ + return self._share_token + + @share_token.setter + def share_token(self, share_token): + """Sets the share_token of this AccessBody. + + + :param share_token: The share_token of this AccessBody. # noqa: E501 + :type: str + """ + + self._share_token = share_token + + @property + def bind_address(self): + """Gets the bind_address of this AccessBody. # noqa: E501 + + + :return: The bind_address of this AccessBody. # noqa: E501 + :rtype: str + """ + return self._bind_address + + @bind_address.setter + def bind_address(self, bind_address): + """Sets the bind_address of this AccessBody. + + + :param bind_address: The bind_address of this AccessBody. # noqa: E501 + :type: str + """ + + self._bind_address = bind_address + + @property + def description(self): + """Gets the description of this AccessBody. # noqa: E501 + + + :return: The description of this AccessBody. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AccessBody. + + + :param description: The description of this AccessBody. # 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(AccessBody, 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, AccessBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/access_body1.py b/sdk/python/sdk/zrok/zrok_api/models/access_body1.py new file mode 100644 index 00000000..97855ec4 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/access_body1.py @@ -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 AccessBody1(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'frontend_token': 'str', + 'bind_address': 'str', + 'description': 'str' + } + + attribute_map = { + 'frontend_token': 'frontendToken', + 'bind_address': 'bindAddress', + 'description': 'description' + } + + def __init__(self, frontend_token=None, bind_address=None, description=None): # noqa: E501 + """AccessBody1 - a model defined in Swagger""" # noqa: E501 + self._frontend_token = None + self._bind_address = None + self._description = None + self.discriminator = None + if frontend_token is not None: + self.frontend_token = frontend_token + if bind_address is not None: + self.bind_address = bind_address + if description is not None: + self.description = description + + @property + def frontend_token(self): + """Gets the frontend_token of this AccessBody1. # noqa: E501 + + + :return: The frontend_token of this AccessBody1. # noqa: E501 + :rtype: str + """ + return self._frontend_token + + @frontend_token.setter + def frontend_token(self, frontend_token): + """Sets the frontend_token of this AccessBody1. + + + :param frontend_token: The frontend_token of this AccessBody1. # noqa: E501 + :type: str + """ + + self._frontend_token = frontend_token + + @property + def bind_address(self): + """Gets the bind_address of this AccessBody1. # noqa: E501 + + + :return: The bind_address of this AccessBody1. # noqa: E501 + :rtype: str + """ + return self._bind_address + + @bind_address.setter + def bind_address(self, bind_address): + """Sets the bind_address of this AccessBody1. + + + :param bind_address: The bind_address of this AccessBody1. # noqa: E501 + :type: str + """ + + self._bind_address = bind_address + + @property + def description(self): + """Gets the description of this AccessBody1. # noqa: E501 + + + :return: The description of this AccessBody1. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this AccessBody1. + + + :param description: The description of this AccessBody1. # 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(AccessBody1, 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, AccessBody1): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/account_body.py b/sdk/python/sdk/zrok/zrok_api/models/account_body.py index 2447dea1..ea261eb0 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/account_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/account_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 0.3.0 + OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/sdk/python/sdk/zrok/zrok_api/models/auth_user.py b/sdk/python/sdk/zrok/zrok_api/models/auth_user.py index 71c88cd4..0a04dc10 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/auth_user.py +++ b/sdk/python/sdk/zrok/zrok_api/models/auth_user.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class AuthUser(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 @@ -42,16 +37,11 @@ class AuthUser(object): 'password': 'password' } - def __init__(self, username=None, password=None, _configuration=None): # noqa: E501 + def __init__(self, username=None, password=None): # noqa: E501 """AuthUser - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._username = None self._password = None self.discriminator = None - if username is not None: self.username = username if password is not None: @@ -139,11 +129,8 @@ class AuthUser(object): if not isinstance(other, AuthUser): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, AuthUser): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/change_password_body.py b/sdk/python/sdk/zrok/zrok_api/models/change_password_body.py new file mode 100644 index 00000000..8c12afb1 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/change_password_body.py @@ -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 ChangePasswordBody(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', + 'old_password': 'str', + 'new_password': 'str' + } + + attribute_map = { + 'email': 'email', + 'old_password': 'oldPassword', + 'new_password': 'newPassword' + } + + def __init__(self, email=None, old_password=None, new_password=None): # noqa: E501 + """ChangePasswordBody - a model defined in Swagger""" # noqa: E501 + self._email = None + self._old_password = None + self._new_password = None + self.discriminator = None + if email is not None: + self.email = email + if old_password is not None: + self.old_password = old_password + if new_password is not None: + self.new_password = new_password + + @property + def email(self): + """Gets the email of this ChangePasswordBody. # noqa: E501 + + + :return: The email of this ChangePasswordBody. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this ChangePasswordBody. + + + :param email: The email of this ChangePasswordBody. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def old_password(self): + """Gets the old_password of this ChangePasswordBody. # noqa: E501 + + + :return: The old_password of this ChangePasswordBody. # noqa: E501 + :rtype: str + """ + return self._old_password + + @old_password.setter + def old_password(self, old_password): + """Sets the old_password of this ChangePasswordBody. + + + :param old_password: The old_password of this ChangePasswordBody. # noqa: E501 + :type: str + """ + + self._old_password = old_password + + @property + def new_password(self): + """Gets the new_password of this ChangePasswordBody. # noqa: E501 + + + :return: The new_password of this ChangePasswordBody. # noqa: E501 + :rtype: str + """ + return self._new_password + + @new_password.setter + def new_password(self, new_password): + """Sets the new_password of this ChangePasswordBody. + + + :param new_password: The new_password of this ChangePasswordBody. # noqa: E501 + :type: str + """ + + self._new_password = new_password + + 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(ChangePasswordBody, 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, ChangePasswordBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/client_version_check_body.py b/sdk/python/sdk/zrok/zrok_api/models/client_version_check_body.py new file mode 100644 index 00000000..9aae0f54 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/client_version_check_body.py @@ -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 diff --git a/sdk/python/sdk/zrok/zrok_api/models/configuration.py b/sdk/python/sdk/zrok/zrok_api/models/configuration.py index 287e5e3b..6f1f70b5 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/configuration.py +++ b/sdk/python/sdk/zrok/zrok_api/models/configuration.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class Configuration(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 @@ -48,19 +43,14 @@ class Configuration(object): 'invite_token_contact': 'inviteTokenContact' } - def __init__(self, version=None, tou_link=None, invites_open=None, requires_invite_token=None, invite_token_contact=None, _configuration=None): # noqa: E501 + def __init__(self, version=None, tou_link=None, invites_open=None, requires_invite_token=None, invite_token_contact=None): # noqa: E501 """Configuration - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._version = None self._tou_link = None self._invites_open = None self._requires_invite_token = None self._invite_token_contact = None self.discriminator = None - if version is not None: self.version = version if tou_link is not None: @@ -217,11 +207,8 @@ class Configuration(object): if not isinstance(other, Configuration): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, Configuration): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/disable_body.py b/sdk/python/sdk/zrok/zrok_api/models/disable_body.py new file mode 100644 index 00000000..bfb40a4a --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/disable_body.py @@ -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 DisableBody(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 = { + 'identity': 'str' + } + + attribute_map = { + 'identity': 'identity' + } + + def __init__(self, identity=None): # noqa: E501 + """DisableBody - a model defined in Swagger""" # noqa: E501 + self._identity = None + self.discriminator = None + if identity is not None: + self.identity = identity + + @property + def identity(self): + """Gets the identity of this DisableBody. # noqa: E501 + + + :return: The identity of this DisableBody. # noqa: E501 + :rtype: str + """ + return self._identity + + @identity.setter + def identity(self, identity): + """Sets the identity of this DisableBody. + + + :param identity: The identity of this DisableBody. # noqa: E501 + :type: str + """ + + self._identity = identity + + 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(DisableBody, 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, DisableBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/enable_body.py b/sdk/python/sdk/zrok/zrok_api/models/enable_body.py new file mode 100644 index 00000000..49ac0279 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/enable_body.py @@ -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 EnableBody(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 = { + 'description': 'str', + 'host': 'str' + } + + attribute_map = { + 'description': 'description', + 'host': 'host' + } + + def __init__(self, description=None, host=None): # noqa: E501 + """EnableBody - a model defined in Swagger""" # noqa: E501 + self._description = None + self._host = None + self.discriminator = None + if description is not None: + self.description = description + if host is not None: + self.host = host + + @property + def description(self): + """Gets the description of this EnableBody. # noqa: E501 + + + :return: The description of this EnableBody. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this EnableBody. + + + :param description: The description of this EnableBody. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def host(self): + """Gets the host of this EnableBody. # noqa: E501 + + + :return: The host of this EnableBody. # noqa: E501 + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """Sets the host of this EnableBody. + + + :param host: The host of this EnableBody. # noqa: E501 + :type: str + """ + + self._host = host + + 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(EnableBody, 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, EnableBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/environment.py b/sdk/python/sdk/zrok/zrok_api/models/environment.py index c62eae4d..53c85559 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/environment.py +++ b/sdk/python/sdk/zrok/zrok_api/models/environment.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class Environment(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 @@ -54,12 +49,8 @@ class Environment(object): 'updated_at': 'updatedAt' } - def __init__(self, description=None, host=None, address=None, z_id=None, activity=None, limited=None, created_at=None, updated_at=None, _configuration=None): # noqa: E501 + def __init__(self, description=None, host=None, address=None, z_id=None, activity=None, limited=None, created_at=None, updated_at=None): # noqa: E501 """Environment - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._description = None self._host = None self._address = None @@ -69,7 +60,6 @@ class Environment(object): self._created_at = None self._updated_at = None self.discriminator = None - if description is not None: self.description = description if host is not None: @@ -295,11 +285,8 @@ class Environment(object): if not isinstance(other, Environment): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, Environment): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/environment_and_resources.py b/sdk/python/sdk/zrok/zrok_api/models/environment_and_resources.py index 08993437..12c466bb 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/environment_and_resources.py +++ b/sdk/python/sdk/zrok/zrok_api/models/environment_and_resources.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class EnvironmentAndResources(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 @@ -44,17 +39,12 @@ class EnvironmentAndResources(object): 'shares': 'shares' } - def __init__(self, environment=None, frontends=None, shares=None, _configuration=None): # noqa: E501 + def __init__(self, environment=None, frontends=None, shares=None): # noqa: E501 """EnvironmentAndResources - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._environment = None self._frontends = None self._shares = None self.discriminator = None - if environment is not None: self.environment = environment if frontends is not None: @@ -165,11 +155,8 @@ class EnvironmentAndResources(object): if not isinstance(other, EnvironmentAndResources): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, EnvironmentAndResources): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/environments.py b/sdk/python/sdk/zrok/zrok_api/models/environments.py index eb9d952b..e6d72d56 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/environments.py +++ b/sdk/python/sdk/zrok/zrok_api/models/environments.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class Environments(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 @@ -38,11 +33,8 @@ class Environments(object): attribute_map = { } - def __init__(self, _configuration=None): # noqa: E501 + def __init__(self): # noqa: E501 """Environments - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -85,11 +77,8 @@ class Environments(object): if not isinstance(other, Environments): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, Environments): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/error_message.py b/sdk/python/sdk/zrok/zrok_api/models/error_message.py index 2ab5490f..19325187 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/error_message.py +++ b/sdk/python/sdk/zrok/zrok_api/models/error_message.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class ErrorMessage(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 @@ -38,11 +33,8 @@ class ErrorMessage(object): attribute_map = { } - def __init__(self, _configuration=None): # noqa: E501 + def __init__(self): # noqa: E501 """ErrorMessage - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -85,11 +77,8 @@ class ErrorMessage(object): if not isinstance(other, ErrorMessage): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, ErrorMessage): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/frontend.py b/sdk/python/sdk/zrok/zrok_api/models/frontend.py index 2d344c7b..46cf93eb 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/frontend.py +++ b/sdk/python/sdk/zrok/zrok_api/models/frontend.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class Frontend(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 @@ -56,12 +51,8 @@ class Frontend(object): 'updated_at': 'updatedAt' } - def __init__(self, id=None, frontend_token=None, share_token=None, backend_mode=None, bind_address=None, description=None, z_id=None, created_at=None, updated_at=None, _configuration=None): # noqa: E501 + def __init__(self, id=None, frontend_token=None, share_token=None, backend_mode=None, bind_address=None, description=None, z_id=None, created_at=None, updated_at=None): # noqa: E501 """Frontend - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._id = None self._frontend_token = None self._share_token = None @@ -72,7 +63,6 @@ class Frontend(object): self._created_at = None self._updated_at = None self.discriminator = None - if id is not None: self.id = id if frontend_token is not None: @@ -321,11 +311,8 @@ class Frontend(object): if not isinstance(other, Frontend): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, Frontend): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/frontend_body.py b/sdk/python/sdk/zrok/zrok_api/models/frontend_body.py new file mode 100644 index 00000000..22f06aac --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/frontend_body.py @@ -0,0 +1,194 @@ +# 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 FrontendBody(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 = { + 'z_id': 'str', + 'url_template': 'str', + 'public_name': 'str', + 'permission_mode': 'str' + } + + attribute_map = { + 'z_id': 'zId', + 'url_template': 'url_template', + 'public_name': 'public_name', + 'permission_mode': 'permissionMode' + } + + def __init__(self, z_id=None, url_template=None, public_name=None, permission_mode=None): # noqa: E501 + """FrontendBody - a model defined in Swagger""" # noqa: E501 + self._z_id = None + self._url_template = None + self._public_name = None + self._permission_mode = None + self.discriminator = None + 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 permission_mode is not None: + self.permission_mode = permission_mode + + @property + def z_id(self): + """Gets the z_id of this FrontendBody. # noqa: E501 + + + :return: The z_id of this FrontendBody. # noqa: E501 + :rtype: str + """ + return self._z_id + + @z_id.setter + def z_id(self, z_id): + """Sets the z_id of this FrontendBody. + + + :param z_id: The z_id of this FrontendBody. # noqa: E501 + :type: str + """ + + self._z_id = z_id + + @property + def url_template(self): + """Gets the url_template of this FrontendBody. # noqa: E501 + + + :return: The url_template of this FrontendBody. # noqa: E501 + :rtype: str + """ + return self._url_template + + @url_template.setter + def url_template(self, url_template): + """Sets the url_template of this FrontendBody. + + + :param url_template: The url_template of this FrontendBody. # noqa: E501 + :type: str + """ + + self._url_template = url_template + + @property + def public_name(self): + """Gets the public_name of this FrontendBody. # noqa: E501 + + + :return: The public_name of this FrontendBody. # noqa: E501 + :rtype: str + """ + return self._public_name + + @public_name.setter + def public_name(self, public_name): + """Sets the public_name of this FrontendBody. + + + :param public_name: The public_name of this FrontendBody. # noqa: E501 + :type: str + """ + + self._public_name = public_name + + @property + def permission_mode(self): + """Gets the permission_mode of this FrontendBody. # noqa: E501 + + + :return: The permission_mode of this FrontendBody. # noqa: E501 + :rtype: str + """ + return self._permission_mode + + @permission_mode.setter + def permission_mode(self, permission_mode): + """Sets the permission_mode of this FrontendBody. + + + :param permission_mode: The permission_mode of this FrontendBody. # noqa: E501 + :type: str + """ + allowed_values = ["open", "closed"] # noqa: E501 + if permission_mode not in allowed_values: + raise ValueError( + "Invalid value for `permission_mode` ({0}), must be one of {1}" # noqa: E501 + .format(permission_mode, allowed_values) + ) + + self._permission_mode = permission_mode + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FrontendBody, 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, FrontendBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/frontend_body1.py b/sdk/python/sdk/zrok/zrok_api/models/frontend_body1.py new file mode 100644 index 00000000..192f6785 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/frontend_body1.py @@ -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 FrontendBody1(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'frontend_token': 'str' + } + + attribute_map = { + 'frontend_token': 'frontendToken' + } + + def __init__(self, frontend_token=None): # noqa: E501 + """FrontendBody1 - a model defined in Swagger""" # noqa: E501 + self._frontend_token = None + self.discriminator = None + if frontend_token is not None: + self.frontend_token = frontend_token + + @property + def frontend_token(self): + """Gets the frontend_token of this FrontendBody1. # noqa: E501 + + + :return: The frontend_token of this FrontendBody1. # noqa: E501 + :rtype: str + """ + return self._frontend_token + + @frontend_token.setter + def frontend_token(self, frontend_token): + """Sets the frontend_token of this FrontendBody1. + + + :param frontend_token: The frontend_token of this FrontendBody1. # noqa: E501 + :type: str + """ + + self._frontend_token = frontend_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FrontendBody1, 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, FrontendBody1): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/frontend_body2.py b/sdk/python/sdk/zrok/zrok_api/models/frontend_body2.py new file mode 100644 index 00000000..aed451e3 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/frontend_body2.py @@ -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 FrontendBody2(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'frontend_token': 'str', + 'public_name': 'str', + 'url_template': 'str' + } + + attribute_map = { + 'frontend_token': 'frontendToken', + 'public_name': 'publicName', + 'url_template': 'urlTemplate' + } + + def __init__(self, frontend_token=None, public_name=None, url_template=None): # noqa: E501 + """FrontendBody2 - a model defined in Swagger""" # noqa: E501 + self._frontend_token = None + self._public_name = None + self._url_template = None + self.discriminator = None + if frontend_token is not None: + self.frontend_token = frontend_token + if public_name is not None: + self.public_name = public_name + if url_template is not None: + self.url_template = url_template + + @property + def frontend_token(self): + """Gets the frontend_token of this FrontendBody2. # noqa: E501 + + + :return: The frontend_token of this FrontendBody2. # noqa: E501 + :rtype: str + """ + return self._frontend_token + + @frontend_token.setter + def frontend_token(self, frontend_token): + """Sets the frontend_token of this FrontendBody2. + + + :param frontend_token: The frontend_token of this FrontendBody2. # noqa: E501 + :type: str + """ + + self._frontend_token = frontend_token + + @property + def public_name(self): + """Gets the public_name of this FrontendBody2. # noqa: E501 + + + :return: The public_name of this FrontendBody2. # noqa: E501 + :rtype: str + """ + return self._public_name + + @public_name.setter + def public_name(self, public_name): + """Sets the public_name of this FrontendBody2. + + + :param public_name: The public_name of this FrontendBody2. # noqa: E501 + :type: str + """ + + self._public_name = public_name + + @property + def url_template(self): + """Gets the url_template of this FrontendBody2. # noqa: E501 + + + :return: The url_template of this FrontendBody2. # noqa: E501 + :rtype: str + """ + return self._url_template + + @url_template.setter + def url_template(self, url_template): + """Sets the url_template of this FrontendBody2. + + + :param url_template: The url_template of this FrontendBody2. # noqa: E501 + :type: str + """ + + self._url_template = url_template + + 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(FrontendBody2, 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, FrontendBody2): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/frontends.py b/sdk/python/sdk/zrok/zrok_api/models/frontends.py index 3012e603..3c00604a 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/frontends.py +++ b/sdk/python/sdk/zrok/zrok_api/models/frontends.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class Frontends(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 @@ -38,11 +33,8 @@ class Frontends(object): attribute_map = { } - def __init__(self, _configuration=None): # noqa: E501 + def __init__(self): # noqa: E501 """Frontends - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -85,11 +77,8 @@ class Frontends(object): if not isinstance(other, Frontends): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, Frontends): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/grants_body.py b/sdk/python/sdk/zrok/zrok_api/models/grants_body.py index e61ea02d..78e7d53a 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/grants_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/grants_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 0.3.0 + OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/sdk/python/sdk/zrok/zrok_api/models/identity_body.py b/sdk/python/sdk/zrok/zrok_api/models/identity_body.py index 8da98c33..4be3f8e5 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/identity_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/identity_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 0.3.0 + OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response200.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response200.py index 408b1d20..edb95aa5 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response200.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response200.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class InlineResponse200(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 @@ -33,175 +28,40 @@ class InlineResponse200(object): and the value is json key in definition. """ swagger_types = { - 'frontend_token': 'str', - 'z_id': 'str', - 'url_template': 'str', - 'public_name': 'str', - 'created_at': 'int', - 'updated_at': 'int' + 'account_token': 'str' } attribute_map = { - 'frontend_token': 'frontendToken', - 'z_id': 'zId', - 'url_template': 'urlTemplate', - 'public_name': 'publicName', - 'created_at': 'createdAt', - 'updated_at': 'updatedAt' + 'account_token': 'accountToken' } - def __init__(self, frontend_token=None, z_id=None, url_template=None, public_name=None, created_at=None, updated_at=None, _configuration=None): # noqa: E501 + def __init__(self, account_token=None): # noqa: E501 """InlineResponse200 - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - - self._frontend_token = None - self._z_id = None - self._url_template = None - self._public_name = None - self._created_at = None - self._updated_at = None + self._account_token = None self.discriminator = None - - if frontend_token is not None: - self.frontend_token = frontend_token - if z_id is not None: - self.z_id = z_id - if url_template is not None: - 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 account_token is not None: + self.account_token = account_token @property - def frontend_token(self): - """Gets the frontend_token of this InlineResponse200. # noqa: E501 + def account_token(self): + """Gets the account_token of this InlineResponse200. # noqa: E501 - :return: The frontend_token of this InlineResponse200. # noqa: E501 + :return: The account_token of this InlineResponse200. # noqa: E501 :rtype: str """ - return self._frontend_token + return self._account_token - @frontend_token.setter - def frontend_token(self, frontend_token): - """Sets the frontend_token of this InlineResponse200. + @account_token.setter + def account_token(self, account_token): + """Sets the account_token of this InlineResponse200. - :param frontend_token: The frontend_token of this InlineResponse200. # noqa: E501 + :param account_token: The account_token of this InlineResponse200. # noqa: E501 :type: str """ - self._frontend_token = frontend_token - - @property - def z_id(self): - """Gets the z_id of this InlineResponse200. # noqa: E501 - - - :return: The z_id of this InlineResponse200. # noqa: E501 - :rtype: str - """ - return self._z_id - - @z_id.setter - def z_id(self, z_id): - """Sets the z_id of this InlineResponse200. - - - :param z_id: The z_id of this InlineResponse200. # noqa: E501 - :type: str - """ - - self._z_id = z_id - - @property - def url_template(self): - """Gets the url_template of this InlineResponse200. # noqa: E501 - - - :return: The url_template of this InlineResponse200. # noqa: E501 - :rtype: str - """ - return self._url_template - - @url_template.setter - def url_template(self, url_template): - """Sets the url_template of this InlineResponse200. - - - :param url_template: The url_template of this InlineResponse200. # noqa: E501 - :type: str - """ - - self._url_template = url_template - - @property - def public_name(self): - """Gets the public_name of this InlineResponse200. # noqa: E501 - - - :return: The public_name of this InlineResponse200. # noqa: E501 - :rtype: str - """ - return self._public_name - - @public_name.setter - def public_name(self, public_name): - """Sets the public_name of this InlineResponse200. - - - :param public_name: The public_name of this InlineResponse200. # noqa: E501 - :type: str - """ - - self._public_name = public_name - - @property - def created_at(self): - """Gets the created_at of this InlineResponse200. # noqa: E501 - - - :return: The created_at of this InlineResponse200. # noqa: E501 - :rtype: int - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this InlineResponse200. - - - :param created_at: The created_at of this InlineResponse200. # noqa: E501 - :type: int - """ - - self._created_at = created_at - - @property - def updated_at(self): - """Gets the updated_at of this InlineResponse200. # noqa: E501 - - - :return: The updated_at of this InlineResponse200. # noqa: E501 - :rtype: int - """ - return self._updated_at - - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this InlineResponse200. - - - :param updated_at: The updated_at of this InlineResponse200. # noqa: E501 - :type: int - """ - - self._updated_at = updated_at + self._account_token = account_token def to_dict(self): """Returns the model properties as a dict""" @@ -243,11 +103,8 @@ class InlineResponse200(object): if not isinstance(other, InlineResponse200): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, InlineResponse200): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2001.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2001.py index 214eca09..32a1818a 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2001.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2001.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 0.3.0 + OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,40 +28,40 @@ class InlineResponse2001(object): and the value is json key in definition. """ swagger_types = { - 'members': 'list[InlineResponse2001Members]' + 'email': 'str' } attribute_map = { - 'members': 'members' + 'email': 'email' } - def __init__(self, members=None): # noqa: E501 + def __init__(self, email=None): # noqa: E501 """InlineResponse2001 - a model defined in Swagger""" # noqa: E501 - self._members = None + self._email = None self.discriminator = None - if members is not None: - self.members = members + if email is not None: + self.email = email @property - def members(self): - """Gets the members of this InlineResponse2001. # noqa: E501 + def email(self): + """Gets the email of this InlineResponse2001. # noqa: E501 - :return: The members of this InlineResponse2001. # noqa: E501 - :rtype: list[InlineResponse2001Members] + :return: The email of this InlineResponse2001. # noqa: E501 + :rtype: str """ - return self._members + return self._email - @members.setter - def members(self, members): - """Sets the members of this InlineResponse2001. + @email.setter + def email(self, email): + """Sets the email of this InlineResponse2001. - :param members: The members of this InlineResponse2001. # noqa: E501 - :type: list[InlineResponse2001Members] + :param email: The email of this InlineResponse2001. # noqa: E501 + :type: str """ - self._members = members + self._email = email def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2002.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2002.py index 31aca38e..a162bfdc 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2002.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2002.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 0.3.0 + OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,40 +28,170 @@ class InlineResponse2002(object): and the value is json key in definition. """ swagger_types = { - 'organizations': 'list[InlineResponse2002Organizations]' + 'frontend_token': 'str', + 'z_id': 'str', + 'url_template': 'str', + 'public_name': 'str', + 'created_at': 'int', + 'updated_at': 'int' } attribute_map = { - 'organizations': 'organizations' + 'frontend_token': 'frontendToken', + 'z_id': 'zId', + 'url_template': 'urlTemplate', + 'public_name': 'publicName', + 'created_at': 'createdAt', + 'updated_at': 'updatedAt' } - def __init__(self, organizations=None): # noqa: E501 + def __init__(self, frontend_token=None, z_id=None, url_template=None, public_name=None, created_at=None, updated_at=None): # noqa: E501 """InlineResponse2002 - a model defined in Swagger""" # noqa: E501 - self._organizations = None + self._frontend_token = None + self._z_id = None + self._url_template = None + self._public_name = None + self._created_at = None + self._updated_at = None self.discriminator = None - if organizations is not None: - self.organizations = organizations + if frontend_token is not None: + self.frontend_token = frontend_token + if z_id is not None: + self.z_id = z_id + if url_template is not None: + 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 organizations(self): - """Gets the organizations of this InlineResponse2002. # noqa: E501 + def frontend_token(self): + """Gets the frontend_token of this InlineResponse2002. # noqa: E501 - :return: The organizations of this InlineResponse2002. # noqa: E501 - :rtype: list[InlineResponse2002Organizations] + :return: The frontend_token of this InlineResponse2002. # noqa: E501 + :rtype: str """ - return self._organizations + return self._frontend_token - @organizations.setter - def organizations(self, organizations): - """Sets the organizations of this InlineResponse2002. + @frontend_token.setter + def frontend_token(self, frontend_token): + """Sets the frontend_token of this InlineResponse2002. - :param organizations: The organizations of this InlineResponse2002. # noqa: E501 - :type: list[InlineResponse2002Organizations] + :param frontend_token: The frontend_token of this InlineResponse2002. # noqa: E501 + :type: str """ - self._organizations = organizations + self._frontend_token = frontend_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 def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2003.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2003.py index b92d8287..93926054 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response2003.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2003.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 0.3.0 + OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,40 +28,40 @@ class InlineResponse2003(object): and the value is json key in definition. """ swagger_types = { - 'memberships': 'list[InlineResponse2003Memberships]' + 'members': 'list[InlineResponse2003Members]' } attribute_map = { - 'memberships': 'memberships' + 'members': 'members' } - def __init__(self, memberships=None): # noqa: E501 + def __init__(self, members=None): # noqa: E501 """InlineResponse2003 - a model defined in Swagger""" # noqa: E501 - self._memberships = None + self._members = None self.discriminator = None - if memberships is not None: - self.memberships = memberships + if members is not None: + self.members = members @property - def memberships(self): - """Gets the memberships of this InlineResponse2003. # noqa: E501 + def members(self): + """Gets the members of this InlineResponse2003. # noqa: E501 - :return: The memberships of this InlineResponse2003. # noqa: E501 - :rtype: list[InlineResponse2003Memberships] + :return: The members of this InlineResponse2003. # noqa: E501 + :rtype: list[InlineResponse2003Members] """ - return self._memberships + return self._members - @memberships.setter - def memberships(self, memberships): - """Sets the memberships of this InlineResponse2003. + @members.setter + def members(self, members): + """Sets the members of this InlineResponse2003. - :param memberships: The memberships of this InlineResponse2003. # noqa: E501 - :type: list[InlineResponse2003Memberships] + :param members: The members of this InlineResponse2003. # noqa: E501 + :type: list[InlineResponse2003Members] """ - self._memberships = memberships + self._members = members def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2003_members.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2003_members.py new file mode 100644 index 00000000..359fb898 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2003_members.py @@ -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 InlineResponse2003Members(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 + """InlineResponse2003Members - 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 InlineResponse2003Members. # noqa: E501 + + + :return: The email of this InlineResponse2003Members. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this InlineResponse2003Members. + + + :param email: The email of this InlineResponse2003Members. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def admin(self): + """Gets the admin of this InlineResponse2003Members. # noqa: E501 + + + :return: The admin of this InlineResponse2003Members. # noqa: E501 + :rtype: bool + """ + return self._admin + + @admin.setter + def admin(self, admin): + """Sets the admin of this InlineResponse2003Members. + + + :param admin: The admin of this InlineResponse2003Members. # 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(InlineResponse2003Members, 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, InlineResponse2003Members): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2004.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2004.py new file mode 100644 index 00000000..d0a55eb0 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2004.py @@ -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 InlineResponse2004(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 = { + 'organizations': 'list[InlineResponse2004Organizations]' + } + + attribute_map = { + 'organizations': 'organizations' + } + + def __init__(self, organizations=None): # noqa: E501 + """InlineResponse2004 - a model defined in Swagger""" # noqa: E501 + self._organizations = None + self.discriminator = None + if organizations is not None: + self.organizations = organizations + + @property + def organizations(self): + """Gets the organizations of this InlineResponse2004. # noqa: E501 + + + :return: The organizations of this InlineResponse2004. # noqa: E501 + :rtype: list[InlineResponse2004Organizations] + """ + return self._organizations + + @organizations.setter + def organizations(self, organizations): + """Sets the organizations of this InlineResponse2004. + + + :param organizations: The organizations of this InlineResponse2004. # noqa: E501 + :type: list[InlineResponse2004Organizations] + """ + + self._organizations = organizations + + 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(InlineResponse2004, 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, InlineResponse2004): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2004_organizations.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2004_organizations.py new file mode 100644 index 00000000..1996b554 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2004_organizations.py @@ -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 InlineResponse2004Organizations(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 = { + 'organization_token': 'str', + 'description': 'str' + } + + attribute_map = { + 'organization_token': 'organizationToken', + 'description': 'description' + } + + def __init__(self, organization_token=None, description=None): # noqa: E501 + """InlineResponse2004Organizations - a model defined in Swagger""" # noqa: E501 + self._organization_token = None + self._description = None + self.discriminator = None + if organization_token is not None: + self.organization_token = organization_token + if description is not None: + self.description = description + + @property + def organization_token(self): + """Gets the organization_token of this InlineResponse2004Organizations. # noqa: E501 + + + :return: The organization_token of this InlineResponse2004Organizations. # noqa: E501 + :rtype: str + """ + return self._organization_token + + @organization_token.setter + def organization_token(self, organization_token): + """Sets the organization_token of this InlineResponse2004Organizations. + + + :param organization_token: The organization_token of this InlineResponse2004Organizations. # noqa: E501 + :type: str + """ + + self._organization_token = organization_token + + @property + def description(self): + """Gets the description of this InlineResponse2004Organizations. # noqa: E501 + + + :return: The description of this InlineResponse2004Organizations. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this InlineResponse2004Organizations. + + + :param description: The description of this InlineResponse2004Organizations. # 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(InlineResponse2004Organizations, 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, InlineResponse2004Organizations): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2005.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2005.py new file mode 100644 index 00000000..3fa22e9d --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2005.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse2005(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'memberships': 'list[InlineResponse2005Memberships]' + } + + attribute_map = { + 'memberships': 'memberships' + } + + def __init__(self, memberships=None): # noqa: E501 + """InlineResponse2005 - a model defined in Swagger""" # noqa: E501 + self._memberships = None + self.discriminator = None + if memberships is not None: + self.memberships = memberships + + @property + def memberships(self): + """Gets the memberships of this InlineResponse2005. # noqa: E501 + + + :return: The memberships of this InlineResponse2005. # noqa: E501 + :rtype: list[InlineResponse2005Memberships] + """ + return self._memberships + + @memberships.setter + def memberships(self, memberships): + """Sets the memberships of this InlineResponse2005. + + + :param memberships: The memberships of this InlineResponse2005. # noqa: E501 + :type: list[InlineResponse2005Memberships] + """ + + self._memberships = memberships + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2005, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2005): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2005_memberships.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2005_memberships.py new file mode 100644 index 00000000..915fa44e --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2005_memberships.py @@ -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 InlineResponse2005Memberships(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 = { + 'organization_token': 'str', + 'description': 'str', + 'admin': 'bool' + } + + attribute_map = { + 'organization_token': 'organizationToken', + 'description': 'description', + 'admin': 'admin' + } + + def __init__(self, organization_token=None, description=None, admin=None): # noqa: E501 + """InlineResponse2005Memberships - a model defined in Swagger""" # noqa: E501 + self._organization_token = None + self._description = None + self._admin = None + self.discriminator = None + 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 organization_token(self): + """Gets the organization_token of this InlineResponse2005Memberships. # noqa: E501 + + + :return: The organization_token of this InlineResponse2005Memberships. # noqa: E501 + :rtype: str + """ + return self._organization_token + + @organization_token.setter + def organization_token(self, organization_token): + """Sets the organization_token of this InlineResponse2005Memberships. + + + :param organization_token: The organization_token of this InlineResponse2005Memberships. # noqa: E501 + :type: str + """ + + self._organization_token = organization_token + + @property + def description(self): + """Gets the description of this InlineResponse2005Memberships. # noqa: E501 + + + :return: The description of this InlineResponse2005Memberships. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this InlineResponse2005Memberships. + + + :param description: The description of this InlineResponse2005Memberships. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def admin(self): + """Gets the admin of this InlineResponse2005Memberships. # noqa: E501 + + + :return: The admin of this InlineResponse2005Memberships. # noqa: E501 + :rtype: bool + """ + return self._admin + + @admin.setter + def admin(self, admin): + """Sets the admin of this InlineResponse2005Memberships. + + + :param admin: The admin of this InlineResponse2005Memberships. # 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(InlineResponse2005Memberships, 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, InlineResponse2005Memberships): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2006.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2006.py new file mode 100644 index 00000000..5757905a --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2006.py @@ -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 InlineResponse2006(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 + """InlineResponse2006 - 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 InlineResponse2006. # noqa: E501 + + + :return: The sparklines of this InlineResponse2006. # noqa: E501 + :rtype: list[Metrics] + """ + return self._sparklines + + @sparklines.setter + def sparklines(self, sparklines): + """Sets the sparklines of this InlineResponse2006. + + + :param sparklines: The sparklines of this InlineResponse2006. # 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(InlineResponse2006, 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, InlineResponse2006): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2007.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2007.py new file mode 100644 index 00000000..356d155a --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2007.py @@ -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 = { + 'controller_version': 'str' + } + + attribute_map = { + 'controller_version': 'controllerVersion' + } + + def __init__(self, controller_version=None): # noqa: E501 + """InlineResponse2007 - a model defined in Swagger""" # noqa: E501 + self._controller_version = None + self.discriminator = None + if controller_version is not None: + self.controller_version = controller_version + + @property + def controller_version(self): + """Gets the controller_version of this InlineResponse2007. # noqa: E501 + + + :return: The controller_version of this InlineResponse2007. # noqa: E501 + :rtype: str + """ + return self._controller_version + + @controller_version.setter + def controller_version(self, controller_version): + """Sets the controller_version of this InlineResponse2007. + + + :param controller_version: The controller_version of this InlineResponse2007. # noqa: E501 + :type: str + """ + + self._controller_version = controller_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(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 diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response201.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response201.py index 4b493cb3..2cc96e64 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/inline_response201.py +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response201.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class InlineResponse201(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 @@ -40,15 +35,10 @@ class InlineResponse201(object): 'frontend_token': 'frontendToken' } - def __init__(self, frontend_token=None, _configuration=None): # noqa: E501 + def __init__(self, frontend_token=None): # noqa: E501 """InlineResponse201 - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._frontend_token = None self.discriminator = None - if frontend_token is not None: self.frontend_token = frontend_token @@ -113,11 +103,8 @@ class InlineResponse201(object): if not isinstance(other, InlineResponse201): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, InlineResponse201): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2011.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2011.py new file mode 100644 index 00000000..9d80730a --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2011.py @@ -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 InlineResponse2011(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 = { + 'identity': 'str', + 'cfg': 'str' + } + + attribute_map = { + 'identity': 'identity', + 'cfg': 'cfg' + } + + def __init__(self, identity=None, cfg=None): # noqa: E501 + """InlineResponse2011 - a model defined in Swagger""" # noqa: E501 + self._identity = None + self._cfg = None + self.discriminator = None + if identity is not None: + self.identity = identity + if cfg is not None: + self.cfg = cfg + + @property + def identity(self): + """Gets the identity of this InlineResponse2011. # noqa: E501 + + + :return: The identity of this InlineResponse2011. # noqa: E501 + :rtype: str + """ + return self._identity + + @identity.setter + def identity(self, identity): + """Sets the identity of this InlineResponse2011. + + + :param identity: The identity of this InlineResponse2011. # noqa: E501 + :type: str + """ + + self._identity = identity + + @property + def cfg(self): + """Gets the cfg of this InlineResponse2011. # noqa: E501 + + + :return: The cfg of this InlineResponse2011. # noqa: E501 + :rtype: str + """ + return self._cfg + + @cfg.setter + def cfg(self, cfg): + """Sets the cfg of this InlineResponse2011. + + + :param cfg: The cfg of this InlineResponse2011. # noqa: E501 + :type: str + """ + + self._cfg = cfg + + 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(InlineResponse2011, 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, InlineResponse2011): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2012.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2012.py new file mode 100644 index 00000000..dee97a61 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2012.py @@ -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 InlineResponse2012(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'organization_token': 'str' + } + + attribute_map = { + 'organization_token': 'organizationToken' + } + + def __init__(self, organization_token=None): # noqa: E501 + """InlineResponse2012 - a model defined in Swagger""" # noqa: E501 + self._organization_token = None + self.discriminator = None + if organization_token is not None: + self.organization_token = organization_token + + @property + def organization_token(self): + """Gets the organization_token of this InlineResponse2012. # noqa: E501 + + + :return: The organization_token of this InlineResponse2012. # noqa: E501 + :rtype: str + """ + return self._organization_token + + @organization_token.setter + def organization_token(self, organization_token): + """Sets the organization_token of this InlineResponse2012. + + + :param organization_token: The organization_token of this InlineResponse2012. # noqa: E501 + :type: str + """ + + self._organization_token = organization_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2012, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2012): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/inline_response2013.py b/sdk/python/sdk/zrok/zrok_api/models/inline_response2013.py new file mode 100644 index 00000000..34a37b49 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/inline_response2013.py @@ -0,0 +1,136 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse2013(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'frontend_token': 'str', + 'backend_mode': 'str' + } + + attribute_map = { + 'frontend_token': 'frontendToken', + 'backend_mode': 'backendMode' + } + + def __init__(self, frontend_token=None, backend_mode=None): # noqa: E501 + """InlineResponse2013 - a model defined in Swagger""" # noqa: E501 + self._frontend_token = None + self._backend_mode = None + self.discriminator = None + if frontend_token is not None: + self.frontend_token = frontend_token + if backend_mode is not None: + self.backend_mode = backend_mode + + @property + def frontend_token(self): + """Gets the frontend_token of this InlineResponse2013. # noqa: E501 + + + :return: The frontend_token of this InlineResponse2013. # noqa: E501 + :rtype: str + """ + return self._frontend_token + + @frontend_token.setter + def frontend_token(self, frontend_token): + """Sets the frontend_token of this InlineResponse2013. + + + :param frontend_token: The frontend_token of this InlineResponse2013. # noqa: E501 + :type: str + """ + + self._frontend_token = frontend_token + + @property + def backend_mode(self): + """Gets the backend_mode of this InlineResponse2013. # noqa: E501 + + + :return: The backend_mode of this InlineResponse2013. # noqa: E501 + :rtype: str + """ + return self._backend_mode + + @backend_mode.setter + def backend_mode(self, backend_mode): + """Sets the backend_mode of this InlineResponse2013. + + + :param backend_mode: The backend_mode of this InlineResponse2013. # noqa: E501 + :type: str + """ + + self._backend_mode = backend_mode + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2013, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2013): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/invite_body.py b/sdk/python/sdk/zrok/zrok_api/models/invite_body.py new file mode 100644 index 00000000..bb4840d5 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/invite_body.py @@ -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 InviteBody(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', + 'invite_token': 'str' + } + + attribute_map = { + 'email': 'email', + 'invite_token': 'inviteToken' + } + + def __init__(self, email=None, invite_token=None): # noqa: E501 + """InviteBody - a model defined in Swagger""" # noqa: E501 + self._email = None + self._invite_token = None + self.discriminator = None + if email is not None: + self.email = email + if invite_token is not None: + self.invite_token = invite_token + + @property + def email(self): + """Gets the email of this InviteBody. # noqa: E501 + + + :return: The email of this InviteBody. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this InviteBody. + + + :param email: The email of this InviteBody. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def invite_token(self): + """Gets the invite_token of this InviteBody. # noqa: E501 + + + :return: The invite_token of this InviteBody. # noqa: E501 + :rtype: str + """ + return self._invite_token + + @invite_token.setter + def invite_token(self, invite_token): + """Sets the invite_token of this InviteBody. + + + :param invite_token: The invite_token of this InviteBody. # noqa: E501 + :type: str + """ + + self._invite_token = invite_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InviteBody, 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, InviteBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/login_body.py b/sdk/python/sdk/zrok/zrok_api/models/login_body.py new file mode 100644 index 00000000..127672ca --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/login_body.py @@ -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 LoginBody(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', + 'password': 'str' + } + + attribute_map = { + 'email': 'email', + 'password': 'password' + } + + def __init__(self, email=None, password=None): # noqa: E501 + """LoginBody - a model defined in Swagger""" # noqa: E501 + self._email = None + self._password = None + self.discriminator = None + if email is not None: + self.email = email + if password is not None: + self.password = password + + @property + def email(self): + """Gets the email of this LoginBody. # noqa: E501 + + + :return: The email of this LoginBody. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this LoginBody. + + + :param email: The email of this LoginBody. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def password(self): + """Gets the password of this LoginBody. # noqa: E501 + + + :return: The password of this LoginBody. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this LoginBody. + + + :param password: The password of this LoginBody. # noqa: E501 + :type: str + """ + + self._password = password + + 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(LoginBody, 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, LoginBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/metrics.py b/sdk/python/sdk/zrok/zrok_api/models/metrics.py index ee839634..d7dd52f8 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/metrics.py +++ b/sdk/python/sdk/zrok/zrok_api/models/metrics.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class Metrics(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 @@ -46,18 +41,13 @@ class Metrics(object): 'samples': 'samples' } - def __init__(self, scope=None, id=None, period=None, samples=None, _configuration=None): # noqa: E501 + def __init__(self, scope=None, id=None, period=None, samples=None): # noqa: E501 """Metrics - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._scope = None self._id = None self._period = None self._samples = None self.discriminator = None - if scope is not None: self.scope = scope if id is not None: @@ -191,11 +181,8 @@ class Metrics(object): if not isinstance(other, Metrics): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, Metrics): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/metrics_sample.py b/sdk/python/sdk/zrok/zrok_api/models/metrics_sample.py index 312c2bc0..8e297c43 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/metrics_sample.py +++ b/sdk/python/sdk/zrok/zrok_api/models/metrics_sample.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class MetricsSample(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 @@ -44,17 +39,12 @@ class MetricsSample(object): 'timestamp': 'timestamp' } - def __init__(self, rx=None, tx=None, timestamp=None, _configuration=None): # noqa: E501 + def __init__(self, rx=None, tx=None, timestamp=None): # noqa: E501 """MetricsSample - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._rx = None self._tx = None self._timestamp = None self.discriminator = None - if rx is not None: self.rx = rx if tx is not None: @@ -165,11 +155,8 @@ class MetricsSample(object): if not isinstance(other, MetricsSample): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, MetricsSample): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/organization_add_body.py b/sdk/python/sdk/zrok/zrok_api/models/organization_add_body.py index 918758ab..48fd06da 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/organization_add_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/organization_add_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 0.3.0 + OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,50 +28,50 @@ class OrganizationAddBody(object): and the value is json key in definition. """ swagger_types = { - 'token': 'str', + 'organization_token': 'str', 'email': 'str', 'admin': 'bool' } attribute_map = { - 'token': 'token', + 'organization_token': 'organizationToken', 'email': 'email', 'admin': 'admin' } - def __init__(self, token=None, email=None, admin=None): # noqa: E501 + def __init__(self, organization_token=None, email=None, admin=None): # noqa: E501 """OrganizationAddBody - a model defined in Swagger""" # noqa: E501 - self._token = None + self._organization_token = None self._email = None self._admin = None self.discriminator = None - if token is not None: - self.token = token + if organization_token is not None: + self.organization_token = organization_token if email is not None: self.email = email if admin is not None: self.admin = admin @property - def token(self): - """Gets the token of this OrganizationAddBody. # noqa: E501 + def organization_token(self): + """Gets the organization_token of this OrganizationAddBody. # noqa: E501 - :return: The token of this OrganizationAddBody. # noqa: E501 + :return: The organization_token of this OrganizationAddBody. # noqa: E501 :rtype: str """ - return self._token + return self._organization_token - @token.setter - def token(self, token): - """Sets the token of this OrganizationAddBody. + @organization_token.setter + def organization_token(self, organization_token): + """Sets the organization_token of this OrganizationAddBody. - :param token: The token of this OrganizationAddBody. # noqa: E501 + :param organization_token: The organization_token of this OrganizationAddBody. # noqa: E501 :type: str """ - self._token = token + self._organization_token = organization_token @property def email(self): diff --git a/sdk/python/sdk/zrok/zrok_api/models/organization_body.py b/sdk/python/sdk/zrok/zrok_api/models/organization_body.py index 0875eadb..8133f0ff 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/organization_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/organization_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 0.3.0 + OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/sdk/python/sdk/zrok/zrok_api/models/organization_body1.py b/sdk/python/sdk/zrok/zrok_api/models/organization_body1.py index a605af16..45a5afde 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/organization_body1.py +++ b/sdk/python/sdk/zrok/zrok_api/models/organization_body1.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 0.3.0 + OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,40 +28,40 @@ class OrganizationBody1(object): and the value is json key in definition. """ swagger_types = { - 'token': 'str' + 'organization_token': 'str' } attribute_map = { - 'token': 'token' + 'organization_token': 'organizationToken' } - def __init__(self, token=None): # noqa: E501 + def __init__(self, organization_token=None): # noqa: E501 """OrganizationBody1 - a model defined in Swagger""" # noqa: E501 - self._token = None + self._organization_token = None self.discriminator = None - if token is not None: - self.token = token + if organization_token is not None: + self.organization_token = organization_token @property - def token(self): - """Gets the token of this OrganizationBody1. # noqa: E501 + def organization_token(self): + """Gets the organization_token of this OrganizationBody1. # noqa: E501 - :return: The token of this OrganizationBody1. # noqa: E501 + :return: The organization_token of this OrganizationBody1. # noqa: E501 :rtype: str """ - return self._token + return self._organization_token - @token.setter - def token(self, token): - """Sets the token of this OrganizationBody1. + @organization_token.setter + def organization_token(self, organization_token): + """Sets the organization_token of this OrganizationBody1. - :param token: The token of this OrganizationBody1. # noqa: E501 + :param organization_token: The organization_token of this OrganizationBody1. # noqa: E501 :type: str """ - self._token = token + self._organization_token = organization_token def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/python/sdk/zrok/zrok_api/models/organization_list_body.py b/sdk/python/sdk/zrok/zrok_api/models/organization_list_body.py index 4b783851..167a9fe9 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/organization_list_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/organization_list_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 0.3.0 + OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,40 +28,40 @@ class OrganizationListBody(object): and the value is json key in definition. """ swagger_types = { - 'token': 'str' + 'organization_token': 'str' } attribute_map = { - 'token': 'token' + 'organization_token': 'organizationToken' } - def __init__(self, token=None): # noqa: E501 + def __init__(self, organization_token=None): # noqa: E501 """OrganizationListBody - a model defined in Swagger""" # noqa: E501 - self._token = None + self._organization_token = None self.discriminator = None - if token is not None: - self.token = token + if organization_token is not None: + self.organization_token = organization_token @property - def token(self): - """Gets the token of this OrganizationListBody. # noqa: E501 + def organization_token(self): + """Gets the organization_token of this OrganizationListBody. # noqa: E501 - :return: The token of this OrganizationListBody. # noqa: E501 + :return: The organization_token of this OrganizationListBody. # noqa: E501 :rtype: str """ - return self._token + return self._organization_token - @token.setter - def token(self, token): - """Sets the token of this OrganizationListBody. + @organization_token.setter + def organization_token(self, organization_token): + """Sets the organization_token of this OrganizationListBody. - :param token: The token of this OrganizationListBody. # noqa: E501 + :param organization_token: The organization_token of this OrganizationListBody. # noqa: E501 :type: str """ - self._token = token + self._organization_token = organization_token def to_dict(self): """Returns the model properties as a dict""" diff --git a/sdk/python/sdk/zrok/zrok_api/models/organization_remove_body.py b/sdk/python/sdk/zrok/zrok_api/models/organization_remove_body.py index 4600d47f..c4a9374d 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/organization_remove_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/organization_remove_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 0.3.0 + OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -28,45 +28,45 @@ class OrganizationRemoveBody(object): and the value is json key in definition. """ swagger_types = { - 'token': 'str', + 'organization_token': 'str', 'email': 'str' } attribute_map = { - 'token': 'token', + 'organization_token': 'organizationToken', 'email': 'email' } - def __init__(self, token=None, email=None): # noqa: E501 + def __init__(self, organization_token=None, email=None): # noqa: E501 """OrganizationRemoveBody - a model defined in Swagger""" # noqa: E501 - self._token = None + self._organization_token = None self._email = None self.discriminator = None - if token is not None: - self.token = token + if organization_token is not None: + self.organization_token = organization_token if email is not None: self.email = email @property - def token(self): - """Gets the token of this OrganizationRemoveBody. # noqa: E501 + def organization_token(self): + """Gets the organization_token of this OrganizationRemoveBody. # noqa: E501 - :return: The token of this OrganizationRemoveBody. # noqa: E501 + :return: The organization_token of this OrganizationRemoveBody. # noqa: E501 :rtype: str """ - return self._token + return self._organization_token - @token.setter - def token(self, token): - """Sets the token of this OrganizationRemoveBody. + @organization_token.setter + def organization_token(self, organization_token): + """Sets the organization_token of this OrganizationRemoveBody. - :param token: The token of this OrganizationRemoveBody. # noqa: E501 + :param organization_token: The organization_token of this OrganizationRemoveBody. # noqa: E501 :type: str """ - self._token = token + self._organization_token = organization_token @property def email(self): diff --git a/sdk/python/sdk/zrok/zrok_api/models/overview.py b/sdk/python/sdk/zrok/zrok_api/models/overview.py index 7c944cb4..7ef8aac4 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/overview.py +++ b/sdk/python/sdk/zrok/zrok_api/models/overview.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class Overview(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 @@ -42,16 +37,11 @@ class Overview(object): 'environments': 'environments' } - def __init__(self, account_limited=None, environments=None, _configuration=None): # noqa: E501 + def __init__(self, account_limited=None, environments=None): # noqa: E501 """Overview - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._account_limited = None self._environments = None self.discriminator = None - if account_limited is not None: self.account_limited = account_limited if environments is not None: @@ -139,11 +129,8 @@ class Overview(object): if not isinstance(other, Overview): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, Overview): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/principal.py b/sdk/python/sdk/zrok/zrok_api/models/principal.py index 24392610..0f1c6ff4 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/principal.py +++ b/sdk/python/sdk/zrok/zrok_api/models/principal.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class Principal(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 @@ -48,19 +43,14 @@ class Principal(object): 'admin': 'admin' } - def __init__(self, id=None, email=None, token=None, limitless=None, admin=None, _configuration=None): # noqa: E501 + def __init__(self, id=None, email=None, token=None, limitless=None, admin=None): # noqa: E501 """Principal - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._id = None self._email = None self._token = None self._limitless = None self._admin = None self.discriminator = None - if id is not None: self.id = id if email is not None: @@ -217,11 +207,8 @@ class Principal(object): if not isinstance(other, Principal): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, Principal): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/regenerate_account_token_body.py b/sdk/python/sdk/zrok/zrok_api/models/regenerate_account_token_body.py new file mode 100644 index 00000000..61513276 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/regenerate_account_token_body.py @@ -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 diff --git a/sdk/python/sdk/zrok/zrok_api/models/register_body.py b/sdk/python/sdk/zrok/zrok_api/models/register_body.py new file mode 100644 index 00000000..80549446 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/register_body.py @@ -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 RegisterBody(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 = { + 'register_token': 'str', + 'password': 'str' + } + + attribute_map = { + 'register_token': 'registerToken', + 'password': 'password' + } + + def __init__(self, register_token=None, password=None): # noqa: E501 + """RegisterBody - a model defined in Swagger""" # noqa: E501 + self._register_token = None + self._password = None + self.discriminator = None + if register_token is not None: + self.register_token = register_token + if password is not None: + self.password = password + + @property + def register_token(self): + """Gets the register_token of this RegisterBody. # noqa: E501 + + + :return: The register_token of this RegisterBody. # noqa: E501 + :rtype: str + """ + return self._register_token + + @register_token.setter + def register_token(self, register_token): + """Sets the register_token of this RegisterBody. + + + :param register_token: The register_token of this RegisterBody. # noqa: E501 + :type: str + """ + + self._register_token = register_token + + @property + def password(self): + """Gets the password of this RegisterBody. # noqa: E501 + + + :return: The password of this RegisterBody. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this RegisterBody. + + + :param password: The password of this RegisterBody. # noqa: E501 + :type: str + """ + + self._password = password + + 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(RegisterBody, 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, RegisterBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/reset_password_body.py b/sdk/python/sdk/zrok/zrok_api/models/reset_password_body.py new file mode 100644 index 00000000..0dbc086a --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/reset_password_body.py @@ -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 ResetPasswordBody(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 = { + 'reset_token': 'str', + 'password': 'str' + } + + attribute_map = { + 'reset_token': 'resetToken', + 'password': 'password' + } + + def __init__(self, reset_token=None, password=None): # noqa: E501 + """ResetPasswordBody - a model defined in Swagger""" # noqa: E501 + self._reset_token = None + self._password = None + self.discriminator = None + if reset_token is not None: + self.reset_token = reset_token + if password is not None: + self.password = password + + @property + def reset_token(self): + """Gets the reset_token of this ResetPasswordBody. # noqa: E501 + + + :return: The reset_token of this ResetPasswordBody. # noqa: E501 + :rtype: str + """ + return self._reset_token + + @reset_token.setter + def reset_token(self, reset_token): + """Sets the reset_token of this ResetPasswordBody. + + + :param reset_token: The reset_token of this ResetPasswordBody. # noqa: E501 + :type: str + """ + + self._reset_token = reset_token + + @property + def password(self): + """Gets the password of this ResetPasswordBody. # noqa: E501 + + + :return: The password of this ResetPasswordBody. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this ResetPasswordBody. + + + :param password: The password of this ResetPasswordBody. # noqa: E501 + :type: str + """ + + self._password = password + + 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(ResetPasswordBody, 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, ResetPasswordBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/reset_password_request_body.py b/sdk/python/sdk/zrok/zrok_api/models/reset_password_request_body.py index 44e975ec..2d0bd614 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/reset_password_request_body.py +++ b/sdk/python/sdk/zrok/zrok_api/models/reset_password_request_body.py @@ -5,7 +5,7 @@ zrok client access # noqa: E501 - OpenAPI spec version: 0.3.0 + OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/sdk/python/sdk/zrok/zrok_api/models/share.py b/sdk/python/sdk/zrok/zrok_api/models/share.py index 478deb76..abdb66af 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/share.py +++ b/sdk/python/sdk/zrok/zrok_api/models/share.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class Share(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 @@ -62,12 +57,8 @@ class Share(object): 'updated_at': 'updatedAt' } - def __init__(self, share_token=None, z_id=None, share_mode=None, backend_mode=None, frontend_selection=None, frontend_endpoint=None, backend_proxy_endpoint=None, reserved=None, activity=None, limited=None, created_at=None, updated_at=None, _configuration=None): # noqa: E501 + def __init__(self, share_token=None, z_id=None, share_mode=None, backend_mode=None, frontend_selection=None, frontend_endpoint=None, backend_proxy_endpoint=None, reserved=None, activity=None, limited=None, created_at=None, updated_at=None): # noqa: E501 """Share - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._share_token = None self._z_id = None self._share_mode = None @@ -81,7 +72,6 @@ class Share(object): self._created_at = None self._updated_at = None self.discriminator = None - if share_token is not None: self.share_token = share_token if z_id is not None: @@ -399,11 +389,8 @@ class Share(object): if not isinstance(other, Share): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, Share): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/share_body.py b/sdk/python/sdk/zrok/zrok_api/models/share_body.py new file mode 100644 index 00000000..f8398b70 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/share_body.py @@ -0,0 +1,188 @@ +# 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 ShareBody(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 = { + 'share_token': 'str', + 'backend_proxy_endpoint': 'str', + 'add_access_grants': 'list[str]', + 'remove_access_grants': 'list[str]' + } + + attribute_map = { + 'share_token': 'shareToken', + 'backend_proxy_endpoint': 'backendProxyEndpoint', + 'add_access_grants': 'addAccessGrants', + 'remove_access_grants': 'removeAccessGrants' + } + + def __init__(self, share_token=None, backend_proxy_endpoint=None, add_access_grants=None, remove_access_grants=None): # noqa: E501 + """ShareBody - a model defined in Swagger""" # noqa: E501 + self._share_token = None + self._backend_proxy_endpoint = None + self._add_access_grants = None + self._remove_access_grants = None + self.discriminator = None + if share_token is not None: + self.share_token = share_token + if backend_proxy_endpoint is not None: + self.backend_proxy_endpoint = backend_proxy_endpoint + if add_access_grants is not None: + self.add_access_grants = add_access_grants + if remove_access_grants is not None: + self.remove_access_grants = remove_access_grants + + @property + def share_token(self): + """Gets the share_token of this ShareBody. # noqa: E501 + + + :return: The share_token of this ShareBody. # noqa: E501 + :rtype: str + """ + return self._share_token + + @share_token.setter + def share_token(self, share_token): + """Sets the share_token of this ShareBody. + + + :param share_token: The share_token of this ShareBody. # noqa: E501 + :type: str + """ + + self._share_token = share_token + + @property + def backend_proxy_endpoint(self): + """Gets the backend_proxy_endpoint of this ShareBody. # noqa: E501 + + + :return: The backend_proxy_endpoint of this ShareBody. # noqa: E501 + :rtype: str + """ + return self._backend_proxy_endpoint + + @backend_proxy_endpoint.setter + def backend_proxy_endpoint(self, backend_proxy_endpoint): + """Sets the backend_proxy_endpoint of this ShareBody. + + + :param backend_proxy_endpoint: The backend_proxy_endpoint of this ShareBody. # noqa: E501 + :type: str + """ + + self._backend_proxy_endpoint = backend_proxy_endpoint + + @property + def add_access_grants(self): + """Gets the add_access_grants of this ShareBody. # noqa: E501 + + + :return: The add_access_grants of this ShareBody. # noqa: E501 + :rtype: list[str] + """ + return self._add_access_grants + + @add_access_grants.setter + def add_access_grants(self, add_access_grants): + """Sets the add_access_grants of this ShareBody. + + + :param add_access_grants: The add_access_grants of this ShareBody. # noqa: E501 + :type: list[str] + """ + + self._add_access_grants = add_access_grants + + @property + def remove_access_grants(self): + """Gets the remove_access_grants of this ShareBody. # noqa: E501 + + + :return: The remove_access_grants of this ShareBody. # noqa: E501 + :rtype: list[str] + """ + return self._remove_access_grants + + @remove_access_grants.setter + def remove_access_grants(self, remove_access_grants): + """Sets the remove_access_grants of this ShareBody. + + + :param remove_access_grants: The remove_access_grants of this ShareBody. # noqa: E501 + :type: list[str] + """ + + self._remove_access_grants = remove_access_grants + + 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(ShareBody, 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, ShareBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/share_request.py b/sdk/python/sdk/zrok/zrok_api/models/share_request.py index 99849586..ee9a08b1 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/share_request.py +++ b/sdk/python/sdk/zrok/zrok_api/models/share_request.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class ShareRequest(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 @@ -66,12 +61,8 @@ class ShareRequest(object): 'unique_name': 'uniqueName' } - def __init__(self, env_zid=None, share_mode=None, frontend_selection=None, backend_mode=None, backend_proxy_endpoint=None, auth_scheme=None, auth_users=None, oauth_provider=None, oauth_email_domains=None, oauth_authorization_check_interval=None, reserved=None, permission_mode=None, access_grants=None, unique_name=None, _configuration=None): # noqa: E501 + def __init__(self, env_zid=None, share_mode=None, frontend_selection=None, backend_mode=None, backend_proxy_endpoint=None, auth_scheme=None, auth_users=None, oauth_provider=None, oauth_email_domains=None, oauth_authorization_check_interval=None, reserved=None, permission_mode=None, access_grants=None, unique_name=None): # noqa: E501 """ShareRequest - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._env_zid = None self._share_mode = None self._frontend_selection = None @@ -87,7 +78,6 @@ class ShareRequest(object): self._access_grants = None self._unique_name = None self.discriminator = None - if env_zid is not None: self.env_zid = env_zid if share_mode is not None: @@ -157,8 +147,7 @@ class ShareRequest(object): :type: str """ allowed_values = ["public", "private"] # noqa: E501 - if (self._configuration.client_side_validation and - share_mode not in allowed_values): + if share_mode not in allowed_values: raise ValueError( "Invalid value for `share_mode` ({0}), must be one of {1}" # noqa: E501 .format(share_mode, allowed_values) @@ -206,8 +195,7 @@ class ShareRequest(object): :type: str """ allowed_values = ["proxy", "web", "tcpTunnel", "udpTunnel", "caddy", "drive", "socks", "vpn"] # noqa: E501 - if (self._configuration.client_side_validation and - backend_mode not in allowed_values): + if backend_mode not in allowed_values: raise ValueError( "Invalid value for `backend_mode` ({0}), must be one of {1}" # noqa: E501 .format(backend_mode, allowed_values) @@ -297,8 +285,7 @@ class ShareRequest(object): :type: str """ allowed_values = ["github", "google"] # noqa: E501 - if (self._configuration.client_side_validation and - oauth_provider not in allowed_values): + if oauth_provider not in allowed_values: raise ValueError( "Invalid value for `oauth_provider` ({0}), must be one of {1}" # noqa: E501 .format(oauth_provider, allowed_values) @@ -388,8 +375,7 @@ class ShareRequest(object): :type: str """ allowed_values = ["open", "closed"] # noqa: E501 - if (self._configuration.client_side_validation and - permission_mode not in allowed_values): + if permission_mode not in allowed_values: raise ValueError( "Invalid value for `permission_mode` ({0}), must be one of {1}" # noqa: E501 .format(permission_mode, allowed_values) @@ -479,11 +465,8 @@ class ShareRequest(object): if not isinstance(other, ShareRequest): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, ShareRequest): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/share_response.py b/sdk/python/sdk/zrok/zrok_api/models/share_response.py index f6fbdc81..dcb30e38 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/share_response.py +++ b/sdk/python/sdk/zrok/zrok_api/models/share_response.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class ShareResponse(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 @@ -42,16 +37,11 @@ class ShareResponse(object): 'share_token': 'shareToken' } - def __init__(self, frontend_proxy_endpoints=None, share_token=None, _configuration=None): # noqa: E501 + def __init__(self, frontend_proxy_endpoints=None, share_token=None): # noqa: E501 """ShareResponse - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._frontend_proxy_endpoints = None self._share_token = None self.discriminator = None - if frontend_proxy_endpoints is not None: self.frontend_proxy_endpoints = frontend_proxy_endpoints if share_token is not None: @@ -139,11 +129,8 @@ class ShareResponse(object): if not isinstance(other, ShareResponse): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, ShareResponse): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/shares.py b/sdk/python/sdk/zrok/zrok_api/models/shares.py index 4944ac1e..c1ce3f4d 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/shares.py +++ b/sdk/python/sdk/zrok/zrok_api/models/shares.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class Shares(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 @@ -38,11 +33,8 @@ class Shares(object): attribute_map = { } - def __init__(self, _configuration=None): # noqa: E501 + def __init__(self): # noqa: E501 """Shares - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -85,11 +77,8 @@ class Shares(object): if not isinstance(other, Shares): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, Shares): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/spark_data.py b/sdk/python/sdk/zrok/zrok_api/models/spark_data.py index 00ecc378..9ed04dfe 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/spark_data.py +++ b/sdk/python/sdk/zrok/zrok_api/models/spark_data.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class SparkData(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 @@ -38,11 +33,8 @@ class SparkData(object): attribute_map = { } - def __init__(self, _configuration=None): # noqa: E501 + def __init__(self): # noqa: E501 """SparkData - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -85,11 +77,8 @@ class SparkData(object): if not isinstance(other, SparkData): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, SparkData): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/spark_data_sample.py b/sdk/python/sdk/zrok/zrok_api/models/spark_data_sample.py index 14997b8e..52a1c1fd 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/spark_data_sample.py +++ b/sdk/python/sdk/zrok/zrok_api/models/spark_data_sample.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class SparkDataSample(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 @@ -42,16 +37,11 @@ class SparkDataSample(object): 'tx': 'tx' } - def __init__(self, rx=None, tx=None, _configuration=None): # noqa: E501 + def __init__(self, rx=None, tx=None): # noqa: E501 """SparkDataSample - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration - self._rx = None self._tx = None self.discriminator = None - if rx is not None: self.rx = rx if tx is not None: @@ -139,11 +129,8 @@ class SparkDataSample(object): if not isinstance(other, SparkDataSample): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, SparkDataSample): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/sparklines_body.py b/sdk/python/sdk/zrok/zrok_api/models/sparklines_body.py new file mode 100644 index 00000000..fd84ff20 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/sparklines_body.py @@ -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 SparklinesBody(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 = { + 'account': 'bool', + 'environments': 'list[str]', + 'shares': 'list[str]' + } + + attribute_map = { + 'account': 'account', + 'environments': 'environments', + 'shares': 'shares' + } + + def __init__(self, account=None, environments=None, shares=None): # noqa: E501 + """SparklinesBody - a model defined in Swagger""" # noqa: E501 + self._account = None + self._environments = None + self._shares = None + self.discriminator = None + if account is not None: + self.account = account + if environments is not None: + self.environments = environments + if shares is not None: + self.shares = shares + + @property + def account(self): + """Gets the account of this SparklinesBody. # noqa: E501 + + + :return: The account of this SparklinesBody. # noqa: E501 + :rtype: bool + """ + return self._account + + @account.setter + def account(self, account): + """Sets the account of this SparklinesBody. + + + :param account: The account of this SparklinesBody. # noqa: E501 + :type: bool + """ + + self._account = account + + @property + def environments(self): + """Gets the environments of this SparklinesBody. # noqa: E501 + + + :return: The environments of this SparklinesBody. # noqa: E501 + :rtype: list[str] + """ + return self._environments + + @environments.setter + def environments(self, environments): + """Sets the environments of this SparklinesBody. + + + :param environments: The environments of this SparklinesBody. # noqa: E501 + :type: list[str] + """ + + self._environments = environments + + @property + def shares(self): + """Gets the shares of this SparklinesBody. # noqa: E501 + + + :return: The shares of this SparklinesBody. # noqa: E501 + :rtype: list[str] + """ + return self._shares + + @shares.setter + def shares(self, shares): + """Sets the shares of this SparklinesBody. + + + :param shares: The shares of this SparklinesBody. # noqa: E501 + :type: list[str] + """ + + self._shares = shares + + 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(SparklinesBody, 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, SparklinesBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/token_generate_body.py b/sdk/python/sdk/zrok/zrok_api/models/token_generate_body.py new file mode 100644 index 00000000..0aaa2468 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/token_generate_body.py @@ -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 TokenGenerateBody(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 = { + 'invite_tokens': 'list[str]' + } + + attribute_map = { + 'invite_tokens': 'inviteTokens' + } + + def __init__(self, invite_tokens=None): # noqa: E501 + """TokenGenerateBody - a model defined in Swagger""" # noqa: E501 + self._invite_tokens = None + self.discriminator = None + if invite_tokens is not None: + self.invite_tokens = invite_tokens + + @property + def invite_tokens(self): + """Gets the invite_tokens of this TokenGenerateBody. # noqa: E501 + + + :return: The invite_tokens of this TokenGenerateBody. # noqa: E501 + :rtype: list[str] + """ + return self._invite_tokens + + @invite_tokens.setter + def invite_tokens(self, invite_tokens): + """Sets the invite_tokens of this TokenGenerateBody. + + + :param invite_tokens: The invite_tokens of this TokenGenerateBody. # noqa: E501 + :type: list[str] + """ + + self._invite_tokens = invite_tokens + + 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(TokenGenerateBody, 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, TokenGenerateBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/unaccess_body.py b/sdk/python/sdk/zrok/zrok_api/models/unaccess_body.py new file mode 100644 index 00000000..77321334 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/unaccess_body.py @@ -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 UnaccessBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'frontend_token': 'str', + 'env_zid': 'str', + 'share_token': 'str' + } + + attribute_map = { + 'frontend_token': 'frontendToken', + 'env_zid': 'envZId', + 'share_token': 'shareToken' + } + + def __init__(self, frontend_token=None, env_zid=None, share_token=None): # noqa: E501 + """UnaccessBody - a model defined in Swagger""" # noqa: E501 + self._frontend_token = None + self._env_zid = None + self._share_token = None + self.discriminator = None + if frontend_token is not None: + self.frontend_token = frontend_token + if env_zid is not None: + self.env_zid = env_zid + if share_token is not None: + self.share_token = share_token + + @property + def frontend_token(self): + """Gets the frontend_token of this UnaccessBody. # noqa: E501 + + + :return: The frontend_token of this UnaccessBody. # noqa: E501 + :rtype: str + """ + return self._frontend_token + + @frontend_token.setter + def frontend_token(self, frontend_token): + """Sets the frontend_token of this UnaccessBody. + + + :param frontend_token: The frontend_token of this UnaccessBody. # noqa: E501 + :type: str + """ + + self._frontend_token = frontend_token + + @property + def env_zid(self): + """Gets the env_zid of this UnaccessBody. # noqa: E501 + + + :return: The env_zid of this UnaccessBody. # noqa: E501 + :rtype: str + """ + return self._env_zid + + @env_zid.setter + def env_zid(self, env_zid): + """Sets the env_zid of this UnaccessBody. + + + :param env_zid: The env_zid of this UnaccessBody. # noqa: E501 + :type: str + """ + + self._env_zid = env_zid + + @property + def share_token(self): + """Gets the share_token of this UnaccessBody. # noqa: E501 + + + :return: The share_token of this UnaccessBody. # noqa: E501 + :rtype: str + """ + return self._share_token + + @share_token.setter + def share_token(self, share_token): + """Sets the share_token of this UnaccessBody. + + + :param share_token: The share_token of this UnaccessBody. # noqa: E501 + :type: str + """ + + self._share_token = share_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(UnaccessBody, 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, UnaccessBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/unshare_body.py b/sdk/python/sdk/zrok/zrok_api/models/unshare_body.py new file mode 100644 index 00000000..e6463475 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/unshare_body.py @@ -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 UnshareBody(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 = { + 'env_zid': 'str', + 'share_token': 'str', + 'reserved': 'bool' + } + + attribute_map = { + 'env_zid': 'envZId', + 'share_token': 'shareToken', + 'reserved': 'reserved' + } + + def __init__(self, env_zid=None, share_token=None, reserved=None): # noqa: E501 + """UnshareBody - a model defined in Swagger""" # noqa: E501 + self._env_zid = None + self._share_token = None + self._reserved = None + self.discriminator = None + if env_zid is not None: + self.env_zid = env_zid + if share_token is not None: + self.share_token = share_token + if reserved is not None: + self.reserved = reserved + + @property + def env_zid(self): + """Gets the env_zid of this UnshareBody. # noqa: E501 + + + :return: The env_zid of this UnshareBody. # noqa: E501 + :rtype: str + """ + return self._env_zid + + @env_zid.setter + def env_zid(self, env_zid): + """Sets the env_zid of this UnshareBody. + + + :param env_zid: The env_zid of this UnshareBody. # noqa: E501 + :type: str + """ + + self._env_zid = env_zid + + @property + def share_token(self): + """Gets the share_token of this UnshareBody. # noqa: E501 + + + :return: The share_token of this UnshareBody. # noqa: E501 + :rtype: str + """ + return self._share_token + + @share_token.setter + def share_token(self, share_token): + """Sets the share_token of this UnshareBody. + + + :param share_token: The share_token of this UnshareBody. # noqa: E501 + :type: str + """ + + self._share_token = share_token + + @property + def reserved(self): + """Gets the reserved of this UnshareBody. # noqa: E501 + + + :return: The reserved of this UnshareBody. # noqa: E501 + :rtype: bool + """ + return self._reserved + + @reserved.setter + def reserved(self, reserved): + """Sets the reserved of this UnshareBody. + + + :param reserved: The reserved of this UnshareBody. # noqa: E501 + :type: bool + """ + + self._reserved = reserved + + 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(UnshareBody, 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, UnshareBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/verify_body.py b/sdk/python/sdk/zrok/zrok_api/models/verify_body.py new file mode 100644 index 00000000..26acf208 --- /dev/null +++ b/sdk/python/sdk/zrok/zrok_api/models/verify_body.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + zrok + + zrok client access # noqa: E501 + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class VerifyBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'register_token': 'str' + } + + attribute_map = { + 'register_token': 'registerToken' + } + + def __init__(self, register_token=None): # noqa: E501 + """VerifyBody - a model defined in Swagger""" # noqa: E501 + self._register_token = None + self.discriminator = None + if register_token is not None: + self.register_token = register_token + + @property + def register_token(self): + """Gets the register_token of this VerifyBody. # noqa: E501 + + + :return: The register_token of this VerifyBody. # noqa: E501 + :rtype: str + """ + return self._register_token + + @register_token.setter + def register_token(self, register_token): + """Sets the register_token of this VerifyBody. + + + :param register_token: The register_token of this VerifyBody. # noqa: E501 + :type: str + """ + + self._register_token = register_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VerifyBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VerifyBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/models/version.py b/sdk/python/sdk/zrok/zrok_api/models/version.py index bdf42e3f..98e90760 100644 --- a/sdk/python/sdk/zrok/zrok_api/models/version.py +++ b/sdk/python/sdk/zrok/zrok_api/models/version.py @@ -10,21 +10,16 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - import pprint import re # noqa: F401 import six -from zrok_api.configuration import Configuration - - class Version(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 @@ -38,11 +33,8 @@ class Version(object): attribute_map = { } - def __init__(self, _configuration=None): # noqa: E501 + def __init__(self): # noqa: E501 """Version - a model defined in Swagger""" # noqa: E501 - if _configuration is None: - _configuration = Configuration() - self._configuration = _configuration self.discriminator = None def to_dict(self): @@ -85,11 +77,8 @@ class Version(object): if not isinstance(other, Version): return False - return self.to_dict() == other.to_dict() + return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, Version): - return True - - return self.to_dict() != other.to_dict() + return not self == other diff --git a/sdk/python/sdk/zrok/zrok_api/rest.py b/sdk/python/sdk/zrok/zrok_api/rest.py index da85f5cf..a2c54065 100644 --- a/sdk/python/sdk/zrok/zrok_api/rest.py +++ b/sdk/python/sdk/zrok/zrok_api/rest.py @@ -10,7 +10,6 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ - from __future__ import absolute_import import io @@ -43,11 +42,11 @@ class RESTResponse(io.IOBase): def getheaders(self): """Returns a dictionary of the response headers.""" - return self.urllib3_response.headers + return self.urllib3_response.getheaders() def getheader(self, name, default=None): """Returns a given response header.""" - return self.urllib3_response.headers.get(name, default) + return self.urllib3_response.getheader(name, default) class RESTClientObject(object): @@ -216,11 +215,6 @@ class RESTClientObject(object): if _preload_content: r = RESTResponse(r) - # In the python 3, the response.data is bytes. - # we need to decode it to string. - if six.PY3: - r.data = r.data.decode('utf8') - # log response body logger.debug("response body: %s", r.data)