> +
> +import com.google.common.base.CaseFormat;
> +
> +/**
> + * Decides what type of credentials createContext is supplied with.
> + */
> +public enum CredentialType {
> +
> +   BEARER_TOKEN_CREDENTIALS,
> +
> +   SERVICE_ACCOUNT_CREDENTIALS;
> +
> +   @Override
> +   public String toString() {
> +      return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, name());
> +   }

[minor] Add a property to `CredentialType` and store this there? I.e.
```
enum CredentialType {
  BEARER_TOKEN_CREDENTIALS("bearerTokenCredentials"), ...;

  private final String stringRepresentation;

  private CredentialType(String stringRepresentation) {
    this.strin...;
  }
```
Probably not worth it unless the conversion will be called frequently, though.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/34/files#r15602824

Reply via email to