/// <summary>
 /// Initializes a new instance of the ApiKeyAuthentication class.
 /// </summary>
 /// <param name="name">The key name of the authentication key/value
 /// pair.</param>
 /// <param name="inProperty">The location of the authentication
 /// key/value pair in the request. Possible values include: 'Query',
 /// 'Header'</param>
 /// <param name="value">The value of the authentication key/value
 /// pair.</param>
 public ApiKeyAuthentication(string name, RestAuthLocation inProperty, string value)
 {
     Name       = name;
     InProperty = inProperty;
     Value      = value;
     CustomInit();
 }
        internal static string ToSerializedValue(this RestAuthLocation value)
        {
            switch (value)
            {
            case RestAuthLocation.Query:
                return("Query");

            case RestAuthLocation.Header:
                return("Header");
            }
            return(null);
        }