getServiceAccountEmail method

Future<String> getServiceAccountEmail({
  1. bool refresh = false,
})

Queries the GCE metadata server to retrieve the default service account email.

The result is cached for the lifetime of the Dart process.

If refresh is true, the cache is cleared and the value is re-computed.

Implementation

Future<String> getServiceAccountEmail({bool refresh = false}) async =>
    await serviceAccountEmailFromMetadataServer(
      client: this,
      refresh: refresh,
    );