Sha256: 9852c09b18bc1303f57823fdde694d596ea3877c6d92e7a628e43153e49f21b2
Contents?: true
Size: 654 Bytes
Versions: 16
Compression:
Stored size: 654 Bytes
Contents
package org.embulk.input.zendesk.models; import com.fasterxml.jackson.annotation.JsonCreator; import org.embulk.config.ConfigException; import java.util.Arrays; public enum AuthenticationMethod { BASIC, OAUTH, TOKEN; @JsonCreator public static AuthenticationMethod fromString(final String value) { try { return AuthenticationMethod.valueOf(value.trim().toUpperCase()); } catch (IllegalArgumentException e) { throw new ConfigException("Unsupported Authentication mode '" + value + "', supported values: '" + Arrays.toString(Target.values()) + "'"); } } }
Version data entries
16 entries across 16 versions & 2 rubygems