package iam import ( "fmt" ) // GoogleAPISvcAccount returns the identifier for the Google APIs service // account for a given project number: // https://cloud.google.com/compute/docs/access/service-accounts#google_apis_service_account func GoogleAPISvcAccount(projectNumber string) string { return fmt.Sprintf("%s@cloudservices.gserviceaccount.com", projectNumber) } // GoogleAPISvcAccountMember returns the member reference for a given project number func GoogleAPISvcAccountMember(projectNumber string) string { return SvcAccountMember(GoogleAPISvcAccount(projectNumber)) }