createArtifact method

  1. @override
Future<Artifact> createArtifact(
  1. CreateArtifactRequest request
)
override

Creates an Artifact 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<Artifact> createArtifact(CreateArtifactRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_createArtifact case final createArtifact?) {
    return createArtifact(request);
  }
  throw UnsupportedError('createArtifact');
}