def get_file_contents_with_http_info(self, app_name, app_version, file_path, **kwargs): # noqa: E501 """Get contents of specified file. # 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_file_contents_with_http_info(app_name, app_version, file_path, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str app_name: The name of the app to list. (required) :param str app_version: The version number of the app to list. (required) :param str file_path: Whether or not to delete all workflow statuses, defaults to false (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(WorkflowJSON, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['app_name', 'app_version', 'file_path'] # 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 get_file_contents" % key) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'app_name' is set if ('app_name' not in local_var_params or local_var_params['app_name'] is None): raise ApiValueError( "Missing the required parameter `app_name` when calling `get_file_contents`" ) # noqa: E501 # verify the required parameter 'app_version' is set if ('app_version' not in local_var_params or local_var_params['app_version'] is None): raise ApiValueError( "Missing the required parameter `app_version` when calling `get_file_contents`" ) # noqa: E501 # verify the required parameter 'file_path' is set if ('file_path' not in local_var_params or local_var_params['file_path'] is None): raise ApiValueError( "Missing the required parameter `file_path` when calling `get_file_contents`" ) # noqa: E501 collection_formats = {} path_params = {} if 'app_name' in local_var_params: path_params['app_name'] = local_var_params[ 'app_name'] # noqa: E501 if 'app_version' in local_var_params: path_params['app_version'] = local_var_params[ 'app_version'] # noqa: E501 query_params = [] if 'file_path' in local_var_params: query_params.append( ('file_path', local_var_params['file_path'])) # 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 = ['AuthenticationToken'] # noqa: E501 return self.api_client.call_api( '/umpire/file/{app_name}/{app_version}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='WorkflowJSON', # 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_build_status_with_http_info(self, **kwargs): # noqa: E501 """Gets build status of all current build # 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_build_status_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: tuple(WorkflowJSON, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [] # 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 get_build_status" % 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 = ['AuthenticationToken'] # noqa: E501 return self.api_client.call_api( '/umpire/build', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='WorkflowJSON', # 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 update_scheduler_status_with_http_info(self, inline_object1, **kwargs): # noqa: E501 """Update the status of the scheduler # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_scheduler_status_with_http_info(inline_object1, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param InlineObject1 inline_object1: (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(InlineResponse2001, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['inline_object1'] # 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 update_scheduler_status" % key) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'inline_object1' is set if ('inline_object1' not in local_var_params or local_var_params['inline_object1'] is None): raise ApiValueError( "Missing the required parameter `inline_object1` when calling `update_scheduler_status`" ) # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'inline_object1' in local_var_params: body_params = local_var_params['inline_object1'] # 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 = ['AuthenticationToken'] # noqa: E501 return self.api_client.call_api( '/scheduler', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='InlineResponse2001', # 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 update_workflow_status_with_http_info(self, execution_id, event, json_patch, **kwargs): # noqa: E501 """Patch parts of a WorkflowStatusMessage object # noqa: E501 For internal use only. This endpoint should only be available to the docker network. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.update_workflow_status_with_http_info(execution_id, event, json_patch, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str execution_id: execution_id of workflow status to update (required) :param str event: The event type that is being submitted (required) :param JSONPatch json_patch: (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(WorkflowStatus, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = ['execution_id', 'event', 'json_patch'] # 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 update_workflow_status" % key) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'execution_id' is set if ('execution_id' not in local_var_params or local_var_params['execution_id'] is None): raise ApiValueError( "Missing the required parameter `execution_id` when calling `update_workflow_status`" ) # noqa: E501 # verify the required parameter 'event' is set if ('event' not in local_var_params or local_var_params['event'] is None): raise ApiValueError( "Missing the required parameter `event` when calling `update_workflow_status`" ) # noqa: E501 # verify the required parameter 'json_patch' is set if ('json_patch' not in local_var_params or local_var_params['json_patch'] is None): raise ApiValueError( "Missing the required parameter `json_patch` when calling `update_workflow_status`" ) # noqa: E501 collection_formats = {} path_params = {} if 'execution_id' in local_var_params: path_params['execution_id'] = local_var_params[ 'execution_id'] # noqa: E501 query_params = [] if 'event' in local_var_params: query_params.append( ('event', local_var_params['event'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None if 'json_patch' in local_var_params: body_params = local_var_params['json_patch'] # 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 = [] # noqa: E501 return self.api_client.call_api( '/internal/workflowstatus/{execution_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='WorkflowStatus', # 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_scheduled_task_with_http_info(self, scheduled_task_id, **kwargs): # noqa: E501 """Delete the scheduled task # 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_scheduled_task_with_http_info(scheduled_task_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str scheduled_task_id: The ID of the scheduled task. (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 = ['scheduled_task_id'] # 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 delete_scheduled_task" % key) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'scheduled_task_id' is set if ('scheduled_task_id' not in local_var_params or local_var_params['scheduled_task_id'] is None): raise ApiValueError( "Missing the required parameter `scheduled_task_id` when calling `delete_scheduled_task`" ) # noqa: E501 collection_formats = {} path_params = {} if 'scheduled_task_id' in local_var_params: path_params['scheduled_task_id'] = local_var_params[ 'scheduled_task_id'] # 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 = ['AuthenticationToken'] # noqa: E501 return self.api_client.call_api( '/scheduledtasks/{scheduled_task_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)