lentiq.api.utilization_public_api_controller_api module
# coding: utf-8 """ """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from lentiq.api_client import ApiClient class UtilizationPublicApiControllerApi(object): """ Ref: """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def get_application_utilization_report(self, authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given application and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str application_name: applicationName (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_application_utilization_report_with_http_info(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_application_utilization_report_with_http_info(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_application_utilization_report_with_http_info(self, authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given application and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report_with_http_info(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str application_name: applicationName (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'application_name', 'datapool_name', 'end_timestamp_seconds', 'project_name', 'start_timestamp_seconds'] # 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 get_application_utilization_report" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'application_name' is set if ('application_name' not in params or params['application_name'] is None): raise ValueError("Missing the required parameter `application_name` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'project_name' is set if ('project_name' not in params or params['project_name'] is None): raise ValueError("Missing the required parameter `project_name` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_application_utilization_report`") # noqa: E501 collection_formats = {} path_params = {} if 'application_name' in params: path_params['applicationName'] = params['application_name'] # noqa: E501 if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'project_name' in params: path_params['projectName'] = params['project_name'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/applicationUtilizationReport/{datapoolName}/{projectName}/{applicationName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUtilizationReport', # 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 get_application_utilization_report1(self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given project and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report1(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_application_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_application_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_application_utilization_report1_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given project and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'project_name', 'start_timestamp_seconds'] # 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 get_application_utilization_report1" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_application_utilization_report1`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_application_utilization_report1`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_application_utilization_report1`") # noqa: E501 # verify the required parameter 'project_name' is set if ('project_name' not in params or params['project_name'] is None): raise ValueError("Missing the required parameter `project_name` when calling `get_application_utilization_report1`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_application_utilization_report1`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'project_name' in params: path_params['projectName'] = params['project_name'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/applicationUtilizationReport/{datapoolName}/{projectName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUtilizationReport', # 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 get_application_utilization_report2(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given datapool and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report2(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_application_utilization_report2_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_application_utilization_report2_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_application_utilization_report2_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given datapool and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report2_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_application_utilization_report2" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_application_utilization_report2`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_application_utilization_report2`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_application_utilization_report2`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_application_utilization_report2`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/applicationUtilizationReport/{datapoolName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUtilizationReport', # 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 get_application_utilization_report3(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report3(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_application_utilization_report3_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_application_utilization_report3_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_application_utilization_report3_with_http_info(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report3_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_application_utilization_report3" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_application_utilization_report3`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_application_utilization_report3`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_application_utilization_report3`") # noqa: E501 collection_formats = {} path_params = {} if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/applicationUtilizationReport/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUtilizationReport', # 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 get_datapool_utilization_report(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a datapool utilization report for a given datapool and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_datapool_utilization_report(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_datapool_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_datapool_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_datapool_utilization_report_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a datapool utilization report for a given datapool and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_datapool_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_datapool_utilization_report" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_datapool_utilization_report`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_datapool_utilization_report`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_datapool_utilization_report`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_datapool_utilization_report`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/datapoolUtilizationReport/{datapoolName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DatapoolUtilizationReport', # 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 get_datapool_utilization_report1(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a datapool utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_datapool_utilization_report1(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_datapool_utilization_report1_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_datapool_utilization_report1_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_datapool_utilization_report1_with_http_info(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a datapool utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_datapool_utilization_report1_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_datapool_utilization_report1" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_datapool_utilization_report1`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_datapool_utilization_report1`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_datapool_utilization_report1`") # noqa: E501 collection_formats = {} path_params = {} if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/datapoolUtilizationReport/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DatapoolUtilizationReport', # 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 get_project_utilization_report(self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given project and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_project_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_project_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_project_utilization_report_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given project and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'project_name', 'start_timestamp_seconds'] # 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 get_project_utilization_report" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_project_utilization_report`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_project_utilization_report`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_project_utilization_report`") # noqa: E501 # verify the required parameter 'project_name' is set if ('project_name' not in params or params['project_name'] is None): raise ValueError("Missing the required parameter `project_name` when calling `get_project_utilization_report`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_project_utilization_report`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'project_name' in params: path_params['projectName'] = params['project_name'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/projectUtilizationReport/{datapoolName}/{projectName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProjectUtilizationReport', # 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 get_project_utilization_report1(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given datapool and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report1(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_project_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_project_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_project_utilization_report1_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given datapool and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_project_utilization_report1" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_project_utilization_report1`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_project_utilization_report1`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_project_utilization_report1`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_project_utilization_report1`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/projectUtilizationReport/{datapoolName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProjectUtilizationReport', # 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 get_project_utilization_report2(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report2(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_project_utilization_report2_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_project_utilization_report2_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_project_utilization_report2_with_http_info(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report2_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_project_utilization_report2" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_project_utilization_report2`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_project_utilization_report2`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_project_utilization_report2`") # noqa: E501 collection_formats = {} path_params = {} if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/projectUtilizationReport/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProjectUtilizationReport', # 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)
Classes
class UtilizationPublicApiControllerApi
Ref:
class UtilizationPublicApiControllerApi(object): """ Ref: """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def get_application_utilization_report(self, authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given application and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str application_name: applicationName (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_application_utilization_report_with_http_info(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_application_utilization_report_with_http_info(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_application_utilization_report_with_http_info(self, authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given application and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report_with_http_info(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str application_name: applicationName (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'application_name', 'datapool_name', 'end_timestamp_seconds', 'project_name', 'start_timestamp_seconds'] # 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 get_application_utilization_report" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'application_name' is set if ('application_name' not in params or params['application_name'] is None): raise ValueError("Missing the required parameter `application_name` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'project_name' is set if ('project_name' not in params or params['project_name'] is None): raise ValueError("Missing the required parameter `project_name` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_application_utilization_report`") # noqa: E501 collection_formats = {} path_params = {} if 'application_name' in params: path_params['applicationName'] = params['application_name'] # noqa: E501 if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'project_name' in params: path_params['projectName'] = params['project_name'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/applicationUtilizationReport/{datapoolName}/{projectName}/{applicationName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUtilizationReport', # 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 get_application_utilization_report1(self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given project and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report1(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_application_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_application_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_application_utilization_report1_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given project and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'project_name', 'start_timestamp_seconds'] # 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 get_application_utilization_report1" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_application_utilization_report1`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_application_utilization_report1`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_application_utilization_report1`") # noqa: E501 # verify the required parameter 'project_name' is set if ('project_name' not in params or params['project_name'] is None): raise ValueError("Missing the required parameter `project_name` when calling `get_application_utilization_report1`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_application_utilization_report1`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'project_name' in params: path_params['projectName'] = params['project_name'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/applicationUtilizationReport/{datapoolName}/{projectName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUtilizationReport', # 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 get_application_utilization_report2(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given datapool and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report2(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_application_utilization_report2_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_application_utilization_report2_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_application_utilization_report2_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given datapool and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report2_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_application_utilization_report2" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_application_utilization_report2`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_application_utilization_report2`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_application_utilization_report2`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_application_utilization_report2`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/applicationUtilizationReport/{datapoolName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUtilizationReport', # 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 get_application_utilization_report3(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report3(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_application_utilization_report3_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_application_utilization_report3_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_application_utilization_report3_with_http_info(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report3_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_application_utilization_report3" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_application_utilization_report3`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_application_utilization_report3`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_application_utilization_report3`") # noqa: E501 collection_formats = {} path_params = {} if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/applicationUtilizationReport/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUtilizationReport', # 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 get_datapool_utilization_report(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a datapool utilization report for a given datapool and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_datapool_utilization_report(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_datapool_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_datapool_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_datapool_utilization_report_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a datapool utilization report for a given datapool and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_datapool_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_datapool_utilization_report" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_datapool_utilization_report`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_datapool_utilization_report`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_datapool_utilization_report`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_datapool_utilization_report`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/datapoolUtilizationReport/{datapoolName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DatapoolUtilizationReport', # 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 get_datapool_utilization_report1(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a datapool utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_datapool_utilization_report1(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_datapool_utilization_report1_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_datapool_utilization_report1_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_datapool_utilization_report1_with_http_info(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a datapool utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_datapool_utilization_report1_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_datapool_utilization_report1" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_datapool_utilization_report1`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_datapool_utilization_report1`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_datapool_utilization_report1`") # noqa: E501 collection_formats = {} path_params = {} if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/datapoolUtilizationReport/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DatapoolUtilizationReport', # 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 get_project_utilization_report(self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given project and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_project_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_project_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_project_utilization_report_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given project and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'project_name', 'start_timestamp_seconds'] # 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 get_project_utilization_report" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_project_utilization_report`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_project_utilization_report`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_project_utilization_report`") # noqa: E501 # verify the required parameter 'project_name' is set if ('project_name' not in params or params['project_name'] is None): raise ValueError("Missing the required parameter `project_name` when calling `get_project_utilization_report`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_project_utilization_report`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'project_name' in params: path_params['projectName'] = params['project_name'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/projectUtilizationReport/{datapoolName}/{projectName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProjectUtilizationReport', # 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 get_project_utilization_report1(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given datapool and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report1(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_project_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_project_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_project_utilization_report1_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given datapool and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_project_utilization_report1" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_project_utilization_report1`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_project_utilization_report1`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_project_utilization_report1`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_project_utilization_report1`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/projectUtilizationReport/{datapoolName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProjectUtilizationReport', # 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 get_project_utilization_report2(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report2(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_project_utilization_report2_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_project_utilization_report2_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data def get_project_utilization_report2_with_http_info(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report2_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_project_utilization_report2" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_project_utilization_report2`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_project_utilization_report2`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_project_utilization_report2`") # noqa: E501 collection_formats = {} path_params = {} if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/projectUtilizationReport/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProjectUtilizationReport', # 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)
Ancestors (in MRO)
- UtilizationPublicApiControllerApi
- builtins.object
Static methods
def __init__(
self, api_client=None)
Initialize self. See help(type(self)) for accurate signature.
def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client
def get_application_utilization_report(
self, authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs)
Gets an application utilization report for a given application and time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_application_utilization_report(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str application_name: applicationName (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread.
def get_application_utilization_report(self, authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given application and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str application_name: applicationName (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_application_utilization_report_with_http_info(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_application_utilization_report_with_http_info(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 return data
def get_application_utilization_report1(
self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs)
Gets an application utilization report for a given project and time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_application_utilization_report1(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread.
def get_application_utilization_report1(self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given project and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report1(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_application_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_application_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 return data
def get_application_utilization_report1_with_http_info(
self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs)
Gets an application utilization report for a given project and time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_application_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread.
def get_application_utilization_report1_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given project and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'project_name', 'start_timestamp_seconds'] # 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 get_application_utilization_report1" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_application_utilization_report1`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_application_utilization_report1`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_application_utilization_report1`") # noqa: E501 # verify the required parameter 'project_name' is set if ('project_name' not in params or params['project_name'] is None): raise ValueError("Missing the required parameter `project_name` when calling `get_application_utilization_report1`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_application_utilization_report1`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'project_name' in params: path_params['projectName'] = params['project_name'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/applicationUtilizationReport/{datapoolName}/{projectName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUtilizationReport', # 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 get_application_utilization_report2(
self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs)
Gets an application utilization report for a given datapool and time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_application_utilization_report2(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread.
def get_application_utilization_report2(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given datapool and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report2(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_application_utilization_report2_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_application_utilization_report2_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data
def get_application_utilization_report2_with_http_info(
self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs)
Gets an application utilization report for a given datapool and time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_application_utilization_report2_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread.
def get_application_utilization_report2_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given datapool and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report2_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_application_utilization_report2" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_application_utilization_report2`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_application_utilization_report2`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_application_utilization_report2`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_application_utilization_report2`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/applicationUtilizationReport/{datapoolName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUtilizationReport', # 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 get_application_utilization_report3(
self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs)
Gets an application utilization report for a given time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_application_utilization_report3(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread.
def get_application_utilization_report3(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report3(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_application_utilization_report3_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_application_utilization_report3_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data
def get_application_utilization_report3_with_http_info(
self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs)
Gets an application utilization report for a given time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_application_utilization_report3_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread.
def get_application_utilization_report3_with_http_info(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report3_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_application_utilization_report3" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_application_utilization_report3`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_application_utilization_report3`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_application_utilization_report3`") # noqa: E501 collection_formats = {} path_params = {} if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/applicationUtilizationReport/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUtilizationReport', # 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 get_application_utilization_report_with_http_info(
self, authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs)
Gets an application utilization report for a given application and time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_application_utilization_report_with_http_info(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str application_name: applicationName (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread.
def get_application_utilization_report_with_http_info(self, authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets an application utilization report for a given application and time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_application_utilization_report_with_http_info(authorization, application_name, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str application_name: applicationName (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ApplicationUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'application_name', 'datapool_name', 'end_timestamp_seconds', 'project_name', 'start_timestamp_seconds'] # 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 get_application_utilization_report" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'application_name' is set if ('application_name' not in params or params['application_name'] is None): raise ValueError("Missing the required parameter `application_name` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'project_name' is set if ('project_name' not in params or params['project_name'] is None): raise ValueError("Missing the required parameter `project_name` when calling `get_application_utilization_report`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_application_utilization_report`") # noqa: E501 collection_formats = {} path_params = {} if 'application_name' in params: path_params['applicationName'] = params['application_name'] # noqa: E501 if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'project_name' in params: path_params['projectName'] = params['project_name'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/applicationUtilizationReport/{datapoolName}/{projectName}/{applicationName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ApplicationUtilizationReport', # 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 get_datapool_utilization_report(
self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs)
Gets a datapool utilization report for a given datapool and a time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_datapool_utilization_report(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread.
def get_datapool_utilization_report(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a datapool utilization report for a given datapool and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_datapool_utilization_report(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_datapool_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_datapool_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data
def get_datapool_utilization_report1(
self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs)
Gets a datapool utilization report for a given time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_datapool_utilization_report1(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread.
def get_datapool_utilization_report1(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a datapool utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_datapool_utilization_report1(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_datapool_utilization_report1_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_datapool_utilization_report1_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data
def get_datapool_utilization_report1_with_http_info(
self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs)
Gets a datapool utilization report for a given time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_datapool_utilization_report1_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread.
def get_datapool_utilization_report1_with_http_info(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a datapool utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_datapool_utilization_report1_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_datapool_utilization_report1" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_datapool_utilization_report1`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_datapool_utilization_report1`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_datapool_utilization_report1`") # noqa: E501 collection_formats = {} path_params = {} if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/datapoolUtilizationReport/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DatapoolUtilizationReport', # 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 get_datapool_utilization_report_with_http_info(
self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs)
Gets a datapool utilization report for a given datapool and a time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_datapool_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread.
def get_datapool_utilization_report_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a datapool utilization report for a given datapool and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_datapool_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: DatapoolUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_datapool_utilization_report" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_datapool_utilization_report`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_datapool_utilization_report`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_datapool_utilization_report`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_datapool_utilization_report`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/datapoolUtilizationReport/{datapoolName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DatapoolUtilizationReport', # 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 get_project_utilization_report(
self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs)
Gets a project utilization report for a given project and a time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_project_utilization_report(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread.
def get_project_utilization_report(self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given project and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_project_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_project_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs) # noqa: E501 return data
def get_project_utilization_report1(
self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs)
Gets a project utilization report for a given datapool and a time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_project_utilization_report1(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread.
def get_project_utilization_report1(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given datapool and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report1(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_project_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_project_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data
def get_project_utilization_report1_with_http_info(
self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs)
Gets a project utilization report for a given datapool and a time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_project_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread.
def get_project_utilization_report1_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given datapool and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report1_with_http_info(authorization, datapool_name, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_project_utilization_report1" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_project_utilization_report1`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_project_utilization_report1`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_project_utilization_report1`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_project_utilization_report1`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/projectUtilizationReport/{datapoolName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProjectUtilizationReport', # 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 get_project_utilization_report2(
self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs)
Gets a project utilization report for a given time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_project_utilization_report2(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread.
def get_project_utilization_report2(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report2(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async_req'): return self.get_project_utilization_report2_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 else: (data) = self.get_project_utilization_report2_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs) # noqa: E501 return data
def get_project_utilization_report2_with_http_info(
self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs)
Gets a project utilization report for a given time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_project_utilization_report2_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread.
def get_project_utilization_report2_with_http_info(self, authorization, end_timestamp_seconds, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report2_with_http_info(authorization, end_timestamp_seconds, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'end_timestamp_seconds', 'start_timestamp_seconds'] # 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 get_project_utilization_report2" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_project_utilization_report2`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_project_utilization_report2`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_project_utilization_report2`") # noqa: E501 collection_formats = {} path_params = {} if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/projectUtilizationReport/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProjectUtilizationReport', # 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 get_project_utilization_report_with_http_info(
self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs)
Gets a project utilization report for a given project and a time range. # noqa: E501
This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
thread = api.get_project_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) result = thread.get()
:param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread.
def get_project_utilization_report_with_http_info(self, authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, **kwargs): # noqa: E501 """Gets a project utilization report for a given project and a time range. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_project_utilization_report_with_http_info(authorization, datapool_name, end_timestamp_seconds, project_name, start_timestamp_seconds, async_req=True) >>> result = thread.get() :param async_req bool :param str authorization: Authorization (required) :param str datapool_name: datapoolName (required) :param int end_timestamp_seconds: endTimestampSeconds (required) :param str project_name: projectName (required) :param int start_timestamp_seconds: startTimestampSeconds (required) :return: ProjectUtilizationReport If the method is called asynchronously, returns the request thread. """ all_params = ['authorization', 'datapool_name', 'end_timestamp_seconds', 'project_name', 'start_timestamp_seconds'] # 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 get_project_utilization_report" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'authorization' is set if ('authorization' not in params or params['authorization'] is None): raise ValueError("Missing the required parameter `authorization` when calling `get_project_utilization_report`") # noqa: E501 # verify the required parameter 'datapool_name' is set if ('datapool_name' not in params or params['datapool_name'] is None): raise ValueError("Missing the required parameter `datapool_name` when calling `get_project_utilization_report`") # noqa: E501 # verify the required parameter 'end_timestamp_seconds' is set if ('end_timestamp_seconds' not in params or params['end_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `end_timestamp_seconds` when calling `get_project_utilization_report`") # noqa: E501 # verify the required parameter 'project_name' is set if ('project_name' not in params or params['project_name'] is None): raise ValueError("Missing the required parameter `project_name` when calling `get_project_utilization_report`") # noqa: E501 # verify the required parameter 'start_timestamp_seconds' is set if ('start_timestamp_seconds' not in params or params['start_timestamp_seconds'] is None): raise ValueError("Missing the required parameter `start_timestamp_seconds` when calling `get_project_utilization_report`") # noqa: E501 collection_formats = {} path_params = {} if 'datapool_name' in params: path_params['datapoolName'] = params['datapool_name'] # noqa: E501 if 'end_timestamp_seconds' in params: path_params['endTimestampSeconds'] = params['end_timestamp_seconds'] # noqa: E501 if 'project_name' in params: path_params['projectName'] = params['project_name'] # noqa: E501 if 'start_timestamp_seconds' in params: path_params['startTimestampSeconds'] = params['start_timestamp_seconds'] # noqa: E501 query_params = [] header_params = {} if 'authorization' in params: header_params['Authorization'] = params['authorization'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['*/*']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/api/v1/utilization/projectUtilizationReport/{datapoolName}/{projectName}/{startTimestampSeconds}/{endTimestampSeconds}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='ProjectUtilizationReport', # 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)
Instance variables
var api_client