def geocoordinatess_id_get_with_http_info(self, id, **kwargs): # noqa: E501 """Get a single GeoCoordinates by its id # noqa: E501 Gets the details of a given GeoCoordinates (more information in https://w3id.org/okn/o/sdm#GeoCoordinates) # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.geocoordinatess_id_get_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str id: The ID of the GeoCoordinates to be retrieved (required) :param str username: Name of the user graph to query :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(GeoCoordinates, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['id', 'username'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_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 geocoordinatess_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): raise ApiValueError("Missing the required parameter `id` when calling `geocoordinatess_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'id' in local_var_params: path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] if 'username' in local_var_params: query_params.append(('username', local_var_params['username'])) # 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 = [] # noqa: E501 return self.api_client.call_api( '/geocoordinatess/{id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='GeoCoordinates', # 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 pointbasedgrids_get_with_http_info(self, **kwargs): # noqa: E501 """List all instances of PointBasedGrid # noqa: E501 Gets a list of all instances of PointBasedGrid (more information in https://w3id.org/okn/o/sdm#PointBasedGrid) # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.pointbasedgrids_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str username: Name of the user graph to query :param str label: Filter by label :param int page: Page number :param int per_page: Items per page :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(list[PointBasedGrid], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['username', 'label', 'page', 'per_page'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_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 pointbasedgrids_get" % key) local_var_params[key] = val del local_var_params['kwargs'] if 'per_page' in local_var_params and local_var_params[ 'per_page'] > 200: # noqa: E501 raise ApiValueError( "Invalid value for parameter `per_page` when calling `pointbasedgrids_get`, must be a value less than or equal to `200`" ) # noqa: E501 if 'per_page' in local_var_params and local_var_params[ 'per_page'] < 1: # noqa: E501 raise ApiValueError( "Invalid value for parameter `per_page` when calling `pointbasedgrids_get`, must be a value greater than or equal to `1`" ) # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'username' in local_var_params: query_params.append( ('username', local_var_params['username'])) # noqa: E501 if 'label' in local_var_params: query_params.append( ('label', local_var_params['label'])) # noqa: E501 if 'page' in local_var_params: query_params.append( ('page', local_var_params['page'])) # noqa: E501 if 'per_page' in local_var_params: query_params.append( ('per_page', local_var_params['per_page'])) # 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 = [] # noqa: E501 return self.api_client.call_api( '/pointbasedgrids', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[PointBasedGrid]', # 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 pointbasedgrids_post_with_http_info(self, **kwargs): # noqa: E501 """Create one PointBasedGrid # noqa: E501 Create a new instance of PointBasedGrid (more information in https://w3id.org/okn/o/sdm#PointBasedGrid) # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.pointbasedgrids_post_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str user: Username :param PointBasedGrid point_based_grid: Information about the PointBasedGridto be created :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(PointBasedGrid, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['user', 'point_based_grid'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_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 pointbasedgrids_post" % key) local_var_params[key] = val del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] if 'user' in local_var_params: query_params.append( ('user', local_var_params['user'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None if 'point_based_grid' in local_var_params: body_params = local_var_params['point_based_grid'] # 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( '/pointbasedgrids', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='PointBasedGrid', # 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 pointbasedgrids_id_delete_with_http_info(self, id, **kwargs): # noqa: E501 """Delete an existing PointBasedGrid # noqa: E501 Delete an existing PointBasedGrid (more information in https://w3id.org/okn/o/sdm#PointBasedGrid) # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.pointbasedgrids_id_delete_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str id: The ID of the PointBasedGrid to be retrieved (required) :param str user: Username :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 = ['id', 'user'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_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 pointbasedgrids_id_delete" % key) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): raise ApiValueError( "Missing the required parameter `id` when calling `pointbasedgrids_id_delete`" ) # noqa: E501 collection_formats = {} path_params = {} if 'id' in local_var_params: path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] if 'user' in local_var_params: query_params.append( ('user', local_var_params['user'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # Authentication setting auth_settings = ['BearerAuth'] # noqa: E501 return self.api_client.call_api( '/pointbasedgrids/{id}', '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 theory_guidedmodels_id_put_with_http_info(self, id, **kwargs): # noqa: E501 """Update an existing Theory-GuidedModel # noqa: E501 Updates an existing Theory-GuidedModel (more information in https://w3id.org/okn/o/sdm#Theory-GuidedModel) # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.theory_guidedmodels_id_put_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str id: The ID of the Theory-GuidedModel to be retrieved (required) :param str user: Username :param TheoryGuidedModel theory_guided_model: An old Theory-GuidedModelto be updated :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(TheoryGuidedModel, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['id', 'user', 'theory_guided_model'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_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 theory_guidedmodels_id_put" % key) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'id' is set if ('id' not in local_var_params or local_var_params['id'] is None): raise ApiValueError( "Missing the required parameter `id` when calling `theory_guidedmodels_id_put`" ) # noqa: E501 collection_formats = {} path_params = {} if 'id' in local_var_params: path_params['id'] = local_var_params['id'] # noqa: E501 query_params = [] if 'user' in local_var_params: query_params.append( ('user', local_var_params['user'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None if 'theory_guided_model' in local_var_params: body_params = local_var_params['theory_guided_model'] # 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( '/theory-guidedmodels/{id}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='TheoryGuidedModel', # 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 custom_modelconfigurationsetups_variable_get_with_http_info(self, label, **kwargs): # noqa: E501 """Get a list Model # noqa: E501 Get model configurations by variable 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.custom_modelconfigurationsetups_variable_get_with_http_info(label, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str label: variable to search (required) :param str custom_query_name: Name of the custom query :param str username: Username to query :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(list[ModelConfigurationSetup], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['label', 'custom_query_name', 'username'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_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 custom_modelconfigurationsetups_variable_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'label' is set if ('label' not in local_var_params or local_var_params['label'] is None): raise ApiValueError("Missing the required parameter `label` when calling `custom_modelconfigurationsetups_variable_get`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'custom_query_name' in local_var_params: query_params.append(('custom_query_name', local_var_params['custom_query_name'])) # noqa: E501 if 'username' in local_var_params: query_params.append(('username', local_var_params['username'])) # noqa: E501 if 'label' in local_var_params: query_params.append(('label', local_var_params['label'])) # 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 = [] # noqa: E501 return self.api_client.call_api( '/custom/modelconfigurationsetups/variable', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[ModelConfigurationSetup]', # 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)