createVariantStore method

Future<CreateVariantStoreResponse> createVariantStore({
  1. required ReferenceItem reference,
  2. String? description,
  3. String? name,
  4. SseConfig? sseConfig,
  5. Map<String, String>? tags,
})
Creates a variant store.

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

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

Parameter description : A description for the store.

Parameter name : A name for the store.

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

Parameter tags : Tags for the store.

Implementation

Future<CreateVariantStoreResponse> createVariantStore({
  required ReferenceItem reference,
  String? description,
  String? name,
  SseConfig? sseConfig,
  Map<String, String>? tags,
}) async {
  final $payload = <String, dynamic>{
    'reference': reference,
    if (description != null) 'description': description,
    if (name != null) 'name': name,
    if (sseConfig != null) 'sseConfig': sseConfig,
    if (tags != null) 'tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/variantStore',
    exceptionFnMap: _exceptionFns,
  );
  return CreateVariantStoreResponse.fromJson(response);
}