mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 16:15:04 +02:00
initial implementation of 'orgAccountOverview' (#537)
This commit is contained in:
@ -764,6 +764,107 @@ class MetadataApi(object):
|
||||
_request_timeout=params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def org_account_overview(self, organization_token, account_email, **kwargs): # noqa: E501
|
||||
"""org_account_overview # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.org_account_overview(organization_token, account_email, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool
|
||||
:param str organization_token: (required)
|
||||
:param str account_email: (required)
|
||||
:return: Overview
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
kwargs['_return_http_data_only'] = True
|
||||
if kwargs.get('async_req'):
|
||||
return self.org_account_overview_with_http_info(organization_token, account_email, **kwargs) # noqa: E501
|
||||
else:
|
||||
(data) = self.org_account_overview_with_http_info(organization_token, account_email, **kwargs) # noqa: E501
|
||||
return data
|
||||
|
||||
def org_account_overview_with_http_info(self, organization_token, account_email, **kwargs): # noqa: E501
|
||||
"""org_account_overview # noqa: E501
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please pass async_req=True
|
||||
>>> thread = api.org_account_overview_with_http_info(organization_token, account_email, async_req=True)
|
||||
>>> result = thread.get()
|
||||
|
||||
:param async_req bool
|
||||
:param str organization_token: (required)
|
||||
:param str account_email: (required)
|
||||
:return: Overview
|
||||
If the method is called asynchronously,
|
||||
returns the request thread.
|
||||
"""
|
||||
|
||||
all_params = ['organization_token', 'account_email'] # noqa: E501
|
||||
all_params.append('async_req')
|
||||
all_params.append('_return_http_data_only')
|
||||
all_params.append('_preload_content')
|
||||
all_params.append('_request_timeout')
|
||||
|
||||
params = locals()
|
||||
for key, val in six.iteritems(params['kwargs']):
|
||||
if key not in all_params:
|
||||
raise TypeError(
|
||||
"Got an unexpected keyword argument '%s'"
|
||||
" to method org_account_overview" % key
|
||||
)
|
||||
params[key] = val
|
||||
del params['kwargs']
|
||||
# verify the required parameter 'organization_token' is set
|
||||
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 ('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 = {}
|
||||
|
||||
path_params = {}
|
||||
if 'organization_token' in params:
|
||||
path_params['organizationToken'] = params['organization_token'] # noqa: E501
|
||||
if 'account_email' in params:
|
||||
path_params['accountEmail'] = params['account_email'] # noqa: E501
|
||||
|
||||
query_params = []
|
||||
|
||||
header_params = {}
|
||||
|
||||
form_params = []
|
||||
local_var_files = {}
|
||||
|
||||
body_params = None
|
||||
# HTTP header `Accept`
|
||||
header_params['Accept'] = self.api_client.select_header_accept(
|
||||
['application/zrok.v1+json']) # noqa: E501
|
||||
|
||||
# Authentication setting
|
||||
auth_settings = ['key'] # noqa: E501
|
||||
|
||||
return self.api_client.call_api(
|
||||
'/overview/{organizationToken}/{accountEmail}', 'GET',
|
||||
path_params,
|
||||
query_params,
|
||||
header_params,
|
||||
body=body_params,
|
||||
post_params=form_params,
|
||||
files=local_var_files,
|
||||
response_type='Overview', # noqa: E501
|
||||
auth_settings=auth_settings,
|
||||
async_req=params.get('async_req'),
|
||||
_return_http_data_only=params.get('_return_http_data_only'),
|
||||
_preload_content=params.get('_preload_content', True),
|
||||
_request_timeout=params.get('_request_timeout'),
|
||||
collection_formats=collection_formats)
|
||||
|
||||
def overview(self, **kwargs): # noqa: E501
|
||||
"""overview # noqa: E501
|
||||
|
||||
|
Reference in New Issue
Block a user