// Copyright 2017 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.dfp.jaxws.v201702;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for AuthenticationError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="AuthenticationError.Reason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="AMBIGUOUS_SOAP_REQUEST_HEADER"/>
* <enumeration value="INVALID_EMAIL"/>
* <enumeration value="AUTHENTICATION_FAILED"/>
* <enumeration value="INVALID_OAUTH_SIGNATURE"/>
* <enumeration value="INVALID_SERVICE"/>
* <enumeration value="MISSING_SOAP_REQUEST_HEADER"/>
* <enumeration value="MISSING_AUTHENTICATION_HTTP_HEADER"/>
* <enumeration value="MISSING_AUTHENTICATION"/>
* <enumeration value="NOT_WHITELISTED_FOR_API_ACCESS"/>
* <enumeration value="NO_NETWORKS_TO_ACCESS"/>
* <enumeration value="NETWORK_NOT_FOUND"/>
* <enumeration value="NETWORK_CODE_REQUIRED"/>
* <enumeration value="CONNECTION_ERROR"/>
* <enumeration value="GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK"/>
* <enumeration value="UNKNOWN"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "AuthenticationError.Reason")
@XmlEnum
public enum AuthenticationErrorReason {
/**
*
* The SOAP message contains a request header with an ambiguous definition
* of the authentication header fields. This means either the {@code
* authToken} and {@code oAuthToken} fields were both null or both were
* specified. Exactly one value should be specified with each request.
*
*
*/
AMBIGUOUS_SOAP_REQUEST_HEADER,
/**
*
* The login provided is invalid.
*
*
*/
INVALID_EMAIL,
/**
*
* Tried to authenticate with provided information, but failed.
*
*
*/
AUTHENTICATION_FAILED,
/**
*
* The OAuth provided is invalid.
*
*
*/
INVALID_OAUTH_SIGNATURE,
/**
*
* The specified service to use was not recognized.
*
*
*/
INVALID_SERVICE,
/**
*
* The SOAP message is missing a request header with an {@code authToken}
* and optional {@code networkCode}.
*
*
*/
MISSING_SOAP_REQUEST_HEADER,
/**
*
* The HTTP request is missing a request header with an {@code authToken}
*
*
*/
MISSING_AUTHENTICATION_HTTP_HEADER,
/**
*
* The request is missing an {@code authToken}
*
*
*/
MISSING_AUTHENTICATION,
/**
*
* The customer is not whitelisted for API access.
*
*
*/
NOT_WHITELISTED_FOR_API_ACCESS,
/**
*
* The user is not associated with any network.
*
*
*/
NO_NETWORKS_TO_ACCESS,
/**
*
* No network for the given {@code networkCode} was found.
*
*
*/
NETWORK_NOT_FOUND,
/**
*
* The user has access to more than one network, but did not provide a
* {@code networkCode}.
*
*
*/
NETWORK_CODE_REQUIRED,
/**
*
* An error happened on the server side during connection to authentication
* service.
*
*
*/
CONNECTION_ERROR,
/**
*
* The user tried to create a test network using an account that already is
* associated with a network.
*
*
*/
GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK,
/**
*
* The value returned if the actual value is not exposed by the requested API version.
*
*
*/
UNKNOWN;
public String value() {
return name();
}
public static AuthenticationErrorReason fromValue(String v) {
return valueOf(v);
}
}