accessSecretVersion method

Accesses a SecretVersion. This call returns the secret data.

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<AccessSecretVersionResponse> accessSecretVersion(
  AccessSecretVersionRequest request,
) async {
  final url = Uri.https(_host, '/v1/${request.name}:access');
  final response = await _client.get(url);
  return AccessSecretVersionResponse.fromJson(response);
}