createExecution method

  1. @override
Future<Execution> createExecution(
  1. CreateExecutionRequest request
)
override

Creates an Execution associated with a MetadataStore.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<Execution> createExecution(CreateExecutionRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_createExecution case final createExecution?) {
    return createExecution(request);
  }
  throw UnsupportedError('createExecution');
}