def delete_nveto_pmt_error_item_with_http_info(self, nvetopmterror_id, **kwargs): # noqa: E501 """Deletes a NvetoPmtError document # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_nveto_pmt_error_item_with_http_info(nvetopmterror_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str nvetopmterror_id: (required) :param str if_match: Current value of the _etag field :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: None If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'nvetopmterror_id', 'if_match' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_nveto_pmt_error_item" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'nvetopmterror_id' is set if self.api_client.client_side_validation and ('nvetopmterror_id' not in local_var_params or # noqa: E501 local_var_params['nvetopmterror_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `nvetopmterror_id` when calling `delete_nveto_pmt_error_item`") # noqa: E501 collection_formats = {} path_params = {} if 'nvetopmterror_id' in local_var_params: path_params['nvetopmterrorId'] = local_var_params['nvetopmterror_id'] # noqa: E501 query_params = [] header_params = {} if 'if_match' in local_var_params: header_params['If-Match'] = local_var_params['if_match'] # noqa: E501 form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['BearerAuth'] # noqa: E501 return self.api_client.call_api( '/nveto/pmt_errors/{nvetopmterrorId}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats)
def get_nveto_pmt_errors_with_http_info(self, **kwargs): # noqa: E501 """Retrieves one or more NvetoPmtErrors # 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_nveto_pmt_errors_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str where: the filters query parameter (ex.: {\"number\": 10}) :param str projection: the projections query parameter (ex.: {\"name\": 1}) :param str sort: the sort query parameter (ex.: \"city,-lastname\") :param int page: the pages query parameter :param int max_results: the max results query parameter :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(InlineResponse20021, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'where', 'projection', 'sort', 'page', 'max_results' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_nveto_pmt_errors" % key ) local_var_params[key] = val del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] if 'where' in local_var_params and local_var_params['where'] is not None: # noqa: E501 query_params.append(('where', local_var_params['where'])) # noqa: E501 if 'projection' in local_var_params and local_var_params['projection'] is not None: # noqa: E501 query_params.append(('projection', local_var_params['projection'])) # noqa: E501 if 'sort' in local_var_params and local_var_params['sort'] is not None: # noqa: E501 query_params.append(('sort', local_var_params['sort'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'max_results' in local_var_params and local_var_params['max_results'] is not None: # noqa: E501 query_params.append(('max_results', local_var_params['max_results'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['BearerAuth'] # noqa: E501 return self.api_client.call_api( '/nveto/pmt_errors', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='InlineResponse20021', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats)
def get_muveto_voltage_map_item_by_name_with_http_info( self, name, **kwargs): # noqa: E501 """Retrieves a MuvetoVoltageMap document by name # 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_muveto_voltage_map_item_by_name_with_http_info(name, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str name: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: tuple(MuvetoVoltageMap, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['name'] all_params.extend([ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ]) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_muveto_voltage_map_item_by_name" % key) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set if self.api_client.client_side_validation and ( 'name' not in local_var_params or # noqa: E501 local_var_params['name'] is None): # noqa: E501 raise ApiValueError( "Missing the required parameter `name` when calling `get_muveto_voltage_map_item_by_name`" ) # noqa: E501 collection_formats = {} path_params = {} if 'name' in local_var_params: path_params['Name'] = local_var_params['name'] # noqa: E501 query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['BearerAuth'] # noqa: E501 return self.api_client.call_api( '/muveto/voltage_maps/{Name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='MuvetoVoltageMap', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get( '_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats)
def post_tpc_gains_with_http_info(self, tpc_gain, **kwargs): # noqa: E501 """Stores one or more TpcGains. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_tpc_gains_with_http_info(tpc_gain, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param TpcGain tpc_gain: A TpcGain or list of TpcGain documents (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: None If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['tpc_gain'] all_params.extend([ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ]) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method post_tpc_gains" % key) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'tpc_gain' is set if self.api_client.client_side_validation and ( 'tpc_gain' not in local_var_params or # noqa: E501 local_var_params['tpc_gain'] is None): # noqa: E501 raise ApiValueError( "Missing the required parameter `tpc_gain` when calling `post_tpc_gains`" ) # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'tpc_gain' in local_var_params: body_params = local_var_params['tpc_gain'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params[ 'Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['BearerAuth'] # noqa: E501 return self.api_client.call_api( '/tpc/gains', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get( '_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats)
def delete_muveto_voltage_maps_with_http_info(self, **kwargs): # noqa: E501 """Deletes all MuvetoVoltageMaps # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.delete_muveto_voltage_maps_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :return: None If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [] all_params.extend([ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ]) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: raise ApiTypeError("Got an unexpected keyword argument '%s'" " to method delete_muveto_voltage_maps" % key) local_var_params[key] = val del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['BearerAuth'] # noqa: E501 return self.api_client.call_api( '/muveto/voltage_maps', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get( '_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats)