deleteSecret method

Future<void> deleteSecret(
  1. DeleteSecretRequest request
)

Deletes a Secret.

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

Future<void> deleteSecret(DeleteSecretRequest request) async {
  final url = _endPoint.replace(
    path: '/v1/${request.name}',
    queryParameters: {
      if (request.etag case final $1 when $1.isNotDefault) 'etag': $1,
    },
  );
  await _client.delete(url);
}