Interface GcpProjectIdAccessor

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface GcpProjectIdAccessor
Interface to obtain a GCP project id for GCP IAM authentication. Implementations are used by GcpIamAuthentication.
Since:
2.1
Author:
Magnus Jungsbluth, Mark Paluch
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    getProjectId(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential)
    Get a the GCP project id to used in Google Cloud IAM API calls.
  • Method Details

    • getProjectId

      String getProjectId(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential)
      Get a the GCP project id to used in Google Cloud IAM API calls.
      Parameters:
      credential - the credential object to obtain the project id from.
      Returns:
      the service account id to use.