getSecretVersion method
Gets metadata for a
SecretVersion.
projects/*/secrets/*/versions/latest is an alias to the most recently
created SecretVersion.
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<SecretVersion> getSecretVersion(
GetSecretVersionRequest request,
) async {
final url = Uri.https(_host, '/v1/${request.name}');
final response = await _client.get(url);
return SecretVersion.fromJson(response);
}