createAnnotationStore method

Future<CreateAnnotationStoreResponse> createAnnotationStore({
  1. required StoreFormat storeFormat,
  2. String? description,
  3. String? name,
  4. ReferenceItem? reference,
  5. SseConfig? sseConfig,
  6. StoreOptions? storeOptions,
  7. Map<String, String>? tags,
  8. String? versionName,
})
Creates an annotation store.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter storeFormat : The annotation file format of the store.

Parameter description : A description for the store.

Parameter name : A name for the store.

Parameter reference : The genome reference for the store's annotations.

Parameter sseConfig : Server-side encryption (SSE) settings for the store.

Parameter storeOptions : File parsing options for the annotation store.

Parameter tags : Tags for the store.

Parameter versionName : The name given to an annotation store version to distinguish it from other versions.

Implementation

Future<CreateAnnotationStoreResponse> createAnnotationStore({
  required StoreFormat storeFormat,
  String? description,
  String? name,
  ReferenceItem? reference,
  SseConfig? sseConfig,
  StoreOptions? storeOptions,
  Map<String, String>? tags,
  String? versionName,
}) async {
  final $payload = <String, dynamic>{
    'storeFormat': storeFormat.value,
    if (description != null) 'description': description,
    if (name != null) 'name': name,
    if (reference != null) 'reference': reference,
    if (sseConfig != null) 'sseConfig': sseConfig,
    if (storeOptions != null) 'storeOptions': storeOptions,
    if (tags != null) 'tags': tags,
    if (versionName != null) 'versionName': versionName,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/annotationStore',
    exceptionFnMap: _exceptionFns,
  );
  return CreateAnnotationStoreResponse.fromJson(response);
}