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

Version Path
embulk-input-zendesk-all-0.4.5 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-all-0.4.4 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-all-0.4.3 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-all-0.4.1 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-all-0.4.0 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-all-0.3.9 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-0.3.7 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-all-0.3.8 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-all-0.3.7 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-0.3.6 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-0.3.5 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-0.3.4 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-0.3.3 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-0.3.2 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-0.3.1 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java
embulk-input-zendesk-0.3.0 src/main/java/org/embulk/input/zendesk/models/AuthenticationMethod.java