mirror of
https://github.com/actions/runner.git
synced 2025-12-25 19:08:20 +08:00
GitHub Actions Runner
This commit is contained in:
608
src/Sdk/Resources/CommonResources.g.cs
Normal file
608
src/Sdk/Resources/CommonResources.g.cs
Normal file
@@ -0,0 +1,608 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.Services.Common.Internal
|
||||
{
|
||||
public static class CommonResources
|
||||
{
|
||||
|
||||
public static string EmptyCollectionNotAllowed()
|
||||
{
|
||||
const string Format = @"The collection must contain at least one element.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string EmptyStringNotAllowed()
|
||||
{
|
||||
const string Format = @"The string must have at least one character.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string StringLengthNotAllowed(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Length of '{0}' is invalid. It must be between {1} and {2} characters.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string EmptyGuidNotAllowed(object arg0)
|
||||
{
|
||||
const string Format = @"The guid specified for parameter {0} must not be Guid.Empty.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidPropertyName(object arg0)
|
||||
{
|
||||
const string Format = @"Invalid property name: '{0}'. Property names cannot contain leading or trailing whitespace.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidPropertyValueSize(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"The value of property '{0}' exceeds the maximum size allowed. '{1}' values must not exceed '{2}' bytes.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string DateTimeKindMustBeSpecified()
|
||||
{
|
||||
const string Format = @"The DateTimeKind (Local, UTC) must be specified for DateTime arguments.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string PropertyArgumentExceededMaximumSizeAllowed(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The argument '{0}' is too long. It must not contain more than '{1}' characters.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string InvalidStringPropertyValueNullAllowed(object arg0, object arg1, object arg2, object arg3, object arg4)
|
||||
{
|
||||
const string Format = @"""{0}"" is an invalid value for the {1} of a {2}. The text must be null or between {3} and {4} characters long.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3, arg4);
|
||||
}
|
||||
|
||||
public static string InvalidStringPropertyValueNullForbidden(object arg0, object arg1, object arg2, object arg3, object arg4)
|
||||
{
|
||||
const string Format = @"""{0}"" is an invalid value for the {1} of a {2}. The text must be between {3} and {4} characters long and cannot be null.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3, arg4);
|
||||
}
|
||||
|
||||
public static string ValueTypeOutOfRange(object arg0, object arg1, object arg2, object arg3, object arg4)
|
||||
{
|
||||
const string Format = @"{0} is out of range for the {1} of a {2}. The value must be between {3} and {4}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3, arg4);
|
||||
}
|
||||
|
||||
public static string VssPropertyValueOutOfRange(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"Property '{0}' with value '{1}' is out of range for the Properties service. The value must be between {2} and {3}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
public static string VssInvalidUnicodeCharacter(object arg0)
|
||||
{
|
||||
const string Format = @"The string argument contains a character that is not valid:'u{0:X4}'. Correct the argument, and then try the operation again.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorReadingFile(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Error reading file: {0} ({1}).";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string IllegalBase64String()
|
||||
{
|
||||
const string Format = @"Illegal attempt to decode a malformed Base64-encoded string.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string CannotPromptIfNonInteractive()
|
||||
{
|
||||
const string Format = @"The prompt option is invalid because the process is not interactive.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string StringContainsInvalidCharacters(object arg0)
|
||||
{
|
||||
const string Format = @"The string argument contains a character that is not valid:'{0}'. Correct the argument, and then try the operation again.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string DoubleValueOutOfRange(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Property '{0}' with value '{1}' is out of range for the Team Foundation Properties service. Double values must be 0, within -1.79E+308 to -2.23E-308, or within 2.23E-308 to 1.79E+308.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string HttpRequestTimeout(object arg0)
|
||||
{
|
||||
const string Format = @"The HTTP request timed out after {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string VssUnauthorized(object arg0)
|
||||
{
|
||||
const string Format = @"You are not authorized to access {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string VssUnauthorizedUnknownServer()
|
||||
{
|
||||
const string Format = @"You are not authorized to access the server.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string XmlAttributeEmpty(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The attribute '{0}' on node '{1}' cannot be empty";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string XmlAttributeNull(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The node '{0}' must only have the attribute '{1}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string XmlNodeEmpty(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The xml node '{0}' under node '{1}' cannot be empty";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string XmlNodeMissing(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The mandatory xml node '{0}' is missing under '{1}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string VssUnsupportedPropertyValueType(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Property '{0}' of type '{1}' is not supported by the Properties service. Convert the value to an Int32, DateTime, Double, String or Byte array for storage.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ErrorDependencyOptionNotProvided(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Option '{0}' requires that option '{1}' be provided as well";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ErrorInvalidEnumValueTypeConversion(object arg0)
|
||||
{
|
||||
const string Format = @"Invalid enumeration data type '{0}'. The type must be a valid enumeration.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorInvalidResponseFileOption(object arg0)
|
||||
{
|
||||
const string Format = @"The value provided {0} does not represent a valid response file option. A response file option must be a valid path that begins with the '@' sign (ex: @C:\Folder\ResponseFile.txt)";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorInvalidValueTypeConversion(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The value '{0}' is not a valid value for argument of type '{1}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ErrorOptionArgumentsNotDefined()
|
||||
{
|
||||
const string Format = @"Option arguments are not defined";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ErrorOptionMultiplesNotAllowed(object arg0)
|
||||
{
|
||||
const string Format = @"Option '{0}' does not allow multiples/duplicates";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOptionMustExist(object arg0)
|
||||
{
|
||||
const string Format = @"Option '{0}' is required";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOptionNotRecognized(object arg0)
|
||||
{
|
||||
const string Format = @"Invalid option usage. Option '{0}' is not a recognized argument.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOptionRequired(object arg0)
|
||||
{
|
||||
const string Format = @"Option '{0}' is required.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOptionRequiresValue(object arg0)
|
||||
{
|
||||
const string Format = @"Option '{0}' requires a value";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOptionRunsDoNotSupportValues()
|
||||
{
|
||||
const string Format = @"Option runs do not support values";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ErrorOptionsAreMutuallyExclusive(object arg0)
|
||||
{
|
||||
const string Format = @"The following options are mutually exclusive. Only 1 may be defined at a time with respect to the others: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOptionsAreMutuallyInclusive(object arg0)
|
||||
{
|
||||
const string Format = @"The following options are mutually inclusive. If one or more are defined, then all must be defined: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOptionValueConverterNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"Option value conversion failed. A value converter to handle converting arguments of type '{0}' was not found in the set of converters provided.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOptionValueNotAllowed(object arg0)
|
||||
{
|
||||
const string Format = @"Option '{0}' does not require or allow a value";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOptionValuesDoNotMatchExpected(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The value for option {0} does not match any of the expected values: {1}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ErrorPositionalArgumentsNotAllowed()
|
||||
{
|
||||
const string Format = @"Positional arguments are not allowed";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ErrorRequiredOptionDoesNotExist(object arg0)
|
||||
{
|
||||
const string Format = @"Option '{0}' is a required option but was not provided";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorResponseFileNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"Response file not found at path '{0}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorResponseFileOptionNotSupported()
|
||||
{
|
||||
const string Format = @"A response file option was provided, but the parser does not support the usage of response files.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ErrorValueCannotBeConvertedToEnum(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The value '{0}' cannot be converted to a valid '{1}' enumeration value.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string OperationHandlerNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"Operation handler not found for the set of arguments provided: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorInvalidValueConverterOrNoDefaultFound(object arg0)
|
||||
{
|
||||
const string Format = @"A valid value converter was not defined for the class member '{0}' option definition and no default value converter could be found. Define the Converter property on the option to supply the value converter.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOperationHandlerConstructorNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"Operation handler creation failed. A valid constructor taking the parameters provided was not found on handler of type '{0}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOperationHandlerNotFound()
|
||||
{
|
||||
const string Format = @"Operation handler not found. An operation mode handler was not found for the arguments provided.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ErrorDuplicateDefaultOperationModeHandlerFound()
|
||||
{
|
||||
const string Format = @"Duplicate default operation handler found. A distinct operation handler could not be determined because no handler matched the mode provided on the command-line and more than 1 handler marked as default was found.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ErrorDuplicateOperationModeHandlerFound()
|
||||
{
|
||||
const string Format = @"Duplicate operation handler found. A distinct operation handler could not be determined because more than 1 matched the operation mode provided on the command-line.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ErrorInvalidValueConverterDataType(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Invalid value converter data type. The type {0} is not a valid {1} implementation. Value converters must implement this interface.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ErrorMembersContainingPositionalsRequireCollection()
|
||||
{
|
||||
const string Format = @"Invalid backing field or property for positional arguments. Class members containing the values for positional arguments must be a collection type having an 'Add' method.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ErrorDuplicatePositionalOptionAttributes(object arg0)
|
||||
{
|
||||
const string Format = @"Duplicate {0} attribute definition. Only a single member (including inherited members) may be decorated with a {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOptionsAllowingMultiplesRequireCollection(object arg0)
|
||||
{
|
||||
const string Format = @"Invalid backing field or property for option '{0}'. Class members containing the values for options that allow multiples must be a collection type having an 'Add' method.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOptionNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"Option not found or is case-sensitive: '{0}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ErrorOptionFlagRequiresBooleanMember(object arg0)
|
||||
{
|
||||
const string Format = @"Option '{0}' must have a boolean member type. Options that do not take arguments (i.e. used as flags, ex: /v /f) must have a System.Boolean member type. This member is set to true when the flag exists and false if not.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ContentIdCalculationBlockSizeError(object arg0)
|
||||
{
|
||||
const string Format = @"All blocks except the final block must be {0} bytes.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string BasicAuthenticationRequiresSsl()
|
||||
{
|
||||
const string Format = @"Basic authentication requires a secure connection to the server.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ValueOutOfRange(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"The value {0} is out of range of valid values for parameter {1}. Valid values must be between {2} and {3}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
public static string OutOfRange(object arg0)
|
||||
{
|
||||
const string Format = @"The value {0} is outside of the allowed range.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ValueMustBeGreaterThanZero()
|
||||
{
|
||||
const string Format = @"The value must be greater than zero.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string NullValueNecessary(object arg0)
|
||||
{
|
||||
const string Format = @"The value specified for the following variable must be null: {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string LowercaseStringRequired(object arg0)
|
||||
{
|
||||
const string Format = @"The string argument '{0}' must only consist of lowercase characters.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string UppercaseStringRequired(object arg0)
|
||||
{
|
||||
const string Format = @"The string argument '{0}' must only consist of uppercase characters.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string EmptyArrayNotAllowed()
|
||||
{
|
||||
const string Format = @"The array must contain at least one element.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string EmptyOrWhiteSpaceStringNotAllowed()
|
||||
{
|
||||
const string Format = @"The string must have at least one non-white-space character.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string StringLengthNotMatch(object arg0)
|
||||
{
|
||||
const string Format = @"Length of the string does not match with '{0}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string BothStringsCannotBeNull(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"One of the following values must not be null or String.Empty: {0}, {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string WhiteSpaceNotAllowed()
|
||||
{
|
||||
const string Format = @"The string cannot contain any whitespace characters.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string UnexpectedType(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Expecting '{0}' to be of type '{1}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string InvalidEmailAddressError()
|
||||
{
|
||||
const string Format = @"The supplied email address is invalid.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string AbsoluteVirtualPathNotAllowed(object arg0)
|
||||
{
|
||||
const string Format = @"An absolute virtual path is not allowed. Remove the leading slash: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string UriUtility_AbsoluteUriRequired(object arg0)
|
||||
{
|
||||
const string Format = @"The following URL is not valid: {0}. You must specify an absolute path.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string UriUtility_RelativePathInvalid(object arg0)
|
||||
{
|
||||
const string Format = @"The following relative path is not valid: {0}. It must be both well formed and relative. It might be an absolute path.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string UriUtility_UriNotAllowed(object arg0)
|
||||
{
|
||||
const string Format = @"The following URL is not valid: {0}. It must begin with http or https.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string UriUtility_MustBeAuthorityOnlyUri(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The following URL is not valid: {0}. Try removing any relative path information from the URL (for example, {1}).";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string UrlNotValid()
|
||||
{
|
||||
const string Format = @"The URL that you specified is not valid. The URL must begin with either HTTP or HTTPS and be a valid address.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string MalformedArtifactId(object arg0)
|
||||
{
|
||||
const string Format = @"The artifact is not understood by this application. Either the artifact supplied is invalid or the application doesn't have the required software updates. Artifact Id: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string MalformedUri(object arg0)
|
||||
{
|
||||
const string Format = @"Malformed Artifact URI: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string MalformedUrl(object arg0)
|
||||
{
|
||||
const string Format = @"Malformed Artifact URL: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string NullArtifactUrl()
|
||||
{
|
||||
const string Format = @"Null Artifact Url";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string FailureGetArtifact()
|
||||
{
|
||||
const string Format = @"Unable to get artifacts from tool.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string NullArtifactUriRoot()
|
||||
{
|
||||
const string Format = @"ArtifactUriRoot is Null";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string UnknownTypeForSerialization(object arg0)
|
||||
{
|
||||
const string Format = @"Unknown object type '{0}' for serialization.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string StringContainsIllegalChars()
|
||||
{
|
||||
const string Format = @"The value contains characters that are not allowed (control characters, 0xFFFE, or 0xFFFF). Please remove those characters.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ValueEqualsToInfinity()
|
||||
{
|
||||
const string Format = @"The value must be a finite value.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string SingleBitRequired(object arg0)
|
||||
{
|
||||
const string Format = @"The value {0} must contain a single bit flag.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidEnumArgument(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"The value of argument '{0}' ({1}) is invalid for Enum type '{2}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string ConflictingPathSeparatorForVssFileStorage(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"There is a conflict with the path separator character '{0}' requested for VssFileStorage at file path: {1} A previous instance was created with a path separator of '{2}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string ConflictingStringComparerForVssFileStorage(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"There is a conflict with the string comparer '{0}' requested for VssFileStorage at file path: {1} A previous instance was created with a string comparer of '{2}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string InvalidClientStoragePath(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The storage path specified is invalid: '{0}' This storage path cannot be null or empty. It should begin with the '{1}' path separator character, and have no empty path segments.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string CollectionSizeLimitExceeded(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Collection '{0}' can have maximum '{1}' elements.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string DefaultValueNotAllowed(object arg0)
|
||||
{
|
||||
const string Format = @"The value {0} must not be set to the default.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string NullElementNotAllowedInCollection()
|
||||
{
|
||||
const string Format = @"Null elements are not allowed in the collection.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidUriError(object arg0)
|
||||
{
|
||||
const string Format = @"Supplied URI is invalid. The URI should match {0} URI kind format.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string SubjectDescriptorEmpty(object arg0)
|
||||
{
|
||||
const string Format = @"The subject descriptor specified for parameter {0} must not be empty.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string EUIILeakException(object arg0)
|
||||
{
|
||||
const string Format = @"Event payload contains EUII. Message: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
}
|
||||
}
|
||||
20
src/Sdk/Resources/ContentResources.g.cs
Normal file
20
src/Sdk/Resources/ContentResources.g.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.Services.Content.Common
|
||||
{
|
||||
public static class ContentResources
|
||||
{
|
||||
|
||||
public static string InvalidHexString(object arg0)
|
||||
{
|
||||
const string Format = @"Invalid hex string. The string value provided {0} is not a valid hex string.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ArtifactBillingException()
|
||||
{
|
||||
const string Format = @"Artifact cannot be uploaded because max quantity has been exceeded or the payment instrument is invalid.";
|
||||
return Format;
|
||||
}
|
||||
}
|
||||
}
|
||||
116
src/Sdk/Resources/ExpressionResources.g.cs
Normal file
116
src/Sdk/Resources/ExpressionResources.g.cs
Normal file
@@ -0,0 +1,116 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.DistributedTask.Expressions
|
||||
{
|
||||
public static class ExpressionResources
|
||||
{
|
||||
|
||||
public static string ExceededAllowedMemory(object arg0)
|
||||
{
|
||||
const string Format = @"The maximum allowed memory size was exceeded while evaluating the following expression: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ExceededMaxExpressionDepth(object arg0)
|
||||
{
|
||||
const string Format = @"Exceeded max expression depth {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ExceededMaxExpressionLength(object arg0)
|
||||
{
|
||||
const string Format = @"Exceeded max expression length {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ExpectedPropertyName()
|
||||
{
|
||||
const string Format = @"Expected a property name to follow the dereference operator '.'";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ExpectedStartParameter()
|
||||
{
|
||||
const string Format = @"Expected '(' to follow a function";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidFormatArgIndex(object arg0)
|
||||
{
|
||||
const string Format = @"The following format string references more arguments than were supplied: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidFormatSpecifiers(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The format specifiers '{0}' are not valid for objects of type '{1}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string InvalidFormatString(object arg0)
|
||||
{
|
||||
const string Format = @"The following format string is invalid: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string KeyNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"Key not found '{0}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ParseErrorWithFwlink(object arg0)
|
||||
{
|
||||
const string Format = @"{0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ParseErrorWithTokenInfo(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"{0}: '{1}'. Located at position {2} within expression: {3}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
public static string TypeCastError(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Unable to convert from {0} to {1}. Value: {2}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string TypeCastErrorNoValue(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Unable to convert from {0} to {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string TypeCastErrorWithError(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"Unable to convert from {0} to {1}. Value: {2}. Error: {3}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
public static string UnclosedFunction()
|
||||
{
|
||||
const string Format = @"Unclosed function";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string UnclosedIndexer()
|
||||
{
|
||||
const string Format = @"Unclosed indexer";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string UnexpectedSymbol()
|
||||
{
|
||||
const string Format = @"Unexpected symbol";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string UnrecognizedValue()
|
||||
{
|
||||
const string Format = @"Unrecognized value";
|
||||
return Format;
|
||||
}
|
||||
}
|
||||
}
|
||||
104
src/Sdk/Resources/FileContainerResources.g.cs
Normal file
104
src/Sdk/Resources/FileContainerResources.g.cs
Normal file
@@ -0,0 +1,104 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.Services.WebApi
|
||||
{
|
||||
public static class FileContainerResources
|
||||
{
|
||||
|
||||
public static string ArtifactUriNotSupportedException(object arg0)
|
||||
{
|
||||
const string Format = @"The artifact Uri {0} is not supported.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ContainerNotFoundException(object arg0)
|
||||
{
|
||||
const string Format = @"The container {0} could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ContainerItemNotFoundException(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The item {0} in container {1} could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ContainerItemWithDifferentTypeExists(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The items could not be created because an item with type {0} already exists at {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string PendingUploadNotFoundException(object arg0)
|
||||
{
|
||||
const string Format = @"The pending upload {0} could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ContainerItemDoesNotExist(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The item {0} of type {1} could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ContainerItemCopySourcePendingUpload(object arg0)
|
||||
{
|
||||
const string Format = @"The source item {0} is in the pending upload state.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ContainerItemCopyTargetChildOfSource(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The target folder {0} of the copy operation is a child of the source folder {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ContainerItemCopyDuplicateTargets(object arg0)
|
||||
{
|
||||
const string Format = @"The target location {0} is specified for two or more sources.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ContainerAlreadyExists(object arg0)
|
||||
{
|
||||
const string Format = @"Container with artifact {0} already exists.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string UnexpectedContentType(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Requested content type {0} but got back content type {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string NoContentReturned()
|
||||
{
|
||||
const string Format = @"The request returned no content.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string GzipNotSupportedOnServer()
|
||||
{
|
||||
const string Format = @"The server does not support gzipped content.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string BadCompression()
|
||||
{
|
||||
const string Format = @"The file length passed in is less than or equal to the compressed stream length.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ChunksizeWrongWithContentId(object arg0)
|
||||
{
|
||||
const string Format = @"The chunk size must be a multiple of {0} bytes when specifying a contentId.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ContentIdCollision(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"There was a contentId collision for file {0} with length {1} and file {2} with length {3}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
}
|
||||
}
|
||||
92
src/Sdk/Resources/GraphResources.g.cs
Normal file
92
src/Sdk/Resources/GraphResources.g.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.Services.WebApi
|
||||
{
|
||||
public static class GraphResources
|
||||
{
|
||||
|
||||
public static string CannotEditChildrenOfNonGroup(object arg0)
|
||||
{
|
||||
const string Format = @"VS403339: Cannot add or remove child from graph subject with descriptor '{0}' because it is not a group.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string EmptySubjectDescriptorNotAllowed(object arg0)
|
||||
{
|
||||
const string Format = @"VS403350: The empty subject descriptor is not a valid value for parameter '{0}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string WellKnownSidNotAllowed(object arg0)
|
||||
{
|
||||
const string Format = @"VS403350: Well-known SIDs are not valid for the parameter '{0}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string GraphMembershipNotFound(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"VS403328: The graph membership for member descriptor '{0}' and container descriptor '{1}' could not be found. You may need to create this membership in the enclosing enterprise or organization.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string GraphSubjectNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"VS403325: The graph subject with descriptor '{0}' could not be found. You may need to create the subject in the enclosing enterprise, or add organization-level memberships to make a subject in the enterprise visible in the enclosing organization";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidGraphLegacyDescriptor(object arg0)
|
||||
{
|
||||
const string Format = @"VS860018: The provided legacy descriptor '{0}' is not a valid legacy descriptor for this end point.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidGraphMemberCuid(object arg0)
|
||||
{
|
||||
const string Format = @"VS403323: Cannot find graph member storage key for cuid: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidGraphMemberStorageKey(object arg0)
|
||||
{
|
||||
const string Format = @"VS403324: Cannot find graph member cuid for storage key {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidGraphSubjectDescriptor(object arg0)
|
||||
{
|
||||
const string Format = @"VS860021: The provided descriptor '{0}' is not a valid graph subject descriptor for this end point.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string StorageKeyNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"VS403369: The storage key for descriptor '{0}' could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string SubjectDescriptorNotFoundWithIdentityDescriptor(object arg0)
|
||||
{
|
||||
const string Format = @"VS403370: The subject descriptor for identity descriptor '{0}' could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string SubjectDescriptorNotFoundWithStorageKey(object arg0)
|
||||
{
|
||||
const string Format = @"VS403368: The subject descriptor for storage key '{0}' could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IdentifierLengthOutOfRange()
|
||||
{
|
||||
const string Format = @"Given identifier length is out of range of valid values.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string SubjectTypeLengthOutOfRange()
|
||||
{
|
||||
const string Format = @"Given subject type length is out of range of valid values.";
|
||||
return Format;
|
||||
}
|
||||
}
|
||||
}
|
||||
400
src/Sdk/Resources/IdentityResources.g.cs
Normal file
400
src/Sdk/Resources/IdentityResources.g.cs
Normal file
@@ -0,0 +1,400 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.Services.WebApi
|
||||
{
|
||||
public static class IdentityResources
|
||||
{
|
||||
|
||||
public static string FieldReadOnly(object arg0)
|
||||
{
|
||||
const string Format = @"{0} is read-only.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string GROUPCREATIONERROR(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"A group named {0} already exists in scope {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ADDMEMBERCYCLICMEMBERSHIPERROR(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"A cyclic group containment error occurred when adding a group member. The group {1} already has the group {0} as a contained member.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string GROUPSCOPECREATIONERROR(object arg0)
|
||||
{
|
||||
const string Format = @"The group scope {0} already exists";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ADDMEMBERIDENTITYALREADYMEMBERERROR(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The group {0} already has a member {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string REMOVEGROUPMEMBERNOTMEMBERERROR(object arg0)
|
||||
{
|
||||
const string Format = @"An error occurred removing the group member. There is no group member with the security identifier (SID) {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string REMOVEADMINGROUPERROR()
|
||||
{
|
||||
const string Format = @"This group cannot be removed. The existence of this Administrators group is required.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string REMOVEEVERYONEGROUPERROR()
|
||||
{
|
||||
const string Format = @"This group cannot be removed. The existence of this Valid Users group is required.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string REMOVESERVICEGROUPERROR()
|
||||
{
|
||||
const string Format = @"This group cannot be removed. The existence of this Service Accounts group is required.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string REMOVESPECIALGROUPERROR()
|
||||
{
|
||||
const string Format = @"This group cannot be removed. The existence of this group is required.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string FINDGROUPSIDDOESNOTEXISTERROR(object arg0)
|
||||
{
|
||||
const string Format = @"An error occurred finding the group. There is no group with the security identifier (SID) {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string GROUPRENAMEERROR(object arg0)
|
||||
{
|
||||
const string Format = @"Error renaming group, a group named {0} already exists.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string GROUPSCOPEDOESNOTEXISTERROR(object arg0)
|
||||
{
|
||||
const string Format = @"The identity scope {0} does not exist";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IdentityNotFoundMessage(object arg0)
|
||||
{
|
||||
const string Format = @"The identity with type '{0}' could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IdentityNotFoundWithDescriptor(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The identity with type '{0}' and identifier '{1}' could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string IdentityNotFoundSimpleMessage()
|
||||
{
|
||||
const string Format = @"The identity could not be found.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string IdentityNotFoundWithTfid(object arg0)
|
||||
{
|
||||
const string Format = @"The identity with TeamFoundationId {0} could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IdentityNotFoundWithName(object arg0)
|
||||
{
|
||||
const string Format = @"The identity with name {0} could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IdentityAccountNameAlreadyInUseError(object arg0)
|
||||
{
|
||||
const string Format = @"The identity account name '{0}' is already in use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IdentityAccountNameCollisionRepairFailedError(object arg0)
|
||||
{
|
||||
const string Format = @"Support will be required to repair this account. An attempt to repair an account name collision for identity '{0}' failed and cannot be completed automatically.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IdentityAccountNameCollisionRepairUnsafeError(object arg0)
|
||||
{
|
||||
const string Format = @"Support will be required to repair this account. An attempt to repair an account name collision for identity '{0}' is unsafe and cannot be completed automatically.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IdentityAliasAlreadyInUseError(object arg0)
|
||||
{
|
||||
const string Format = @"The identity alias '{0}' is already in use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidNameNotRecognized(object arg0)
|
||||
{
|
||||
const string Format = @"You have specified a name, {0}, that contains character(s) that are not recognized. Specify a name that only contains characters that are supported by the database collation setting and try again.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IdentityMapReadOnlyException()
|
||||
{
|
||||
const string Format = @"The identity map cannot be accessed while the collection is detached.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string IdentityAccountNamesAlreadyInUseError(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"{0} identity account names including '{1}' are already in use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string InvalidServiceIdentityName(object arg0)
|
||||
{
|
||||
const string Format = @"Service identities are limited to a maximum of 200 characters, and may only contain alpha numeric, dash, and space characters. The name '{0}' is not a valid service identity name.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string AccountPreferencesAlreadyExist()
|
||||
{
|
||||
const string Format = @"Organization preferences have already been set. You can only set the preferences for language, culture, and time zone when the organization is created, and these preferences cannot be changed.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ADDGROUPMEMBERILLEGALINTERNETIDENTITY(object arg0)
|
||||
{
|
||||
const string Format = @"Internet identities cannot be added to this server. Unable to add {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ADDGROUPMEMBERILLEGALWINDOWSIDENTITY(object arg0)
|
||||
{
|
||||
const string Format = @"Windows users cannot be added to this server. Unable to add {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ADDPROJECTGROUPTPROJECTMISMATCHERROR(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Project group '{1}' cannot be added to group '{0}', it is from a different project.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string CANNOT_REMOVE_SERVICE_ACCOUNT()
|
||||
{
|
||||
const string Format = @"You cannot remove the service account from the Service Accounts group.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string IDENTITYDOMAINDOESNOTEXISTERROR(object arg0)
|
||||
{
|
||||
const string Format = @"No identity domain exists with the following security identifier (SID): {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IDENTITYDOMAINMISMATCHERROR(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The group that you wish to manage is not owned by service host {0}, it is owned by {1}. Please target your request at the correct host.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string IdentityProviderUnavailable(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The identity provider for type {0}, identifier {1} is unavailable.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string IDENTITY_SYNC_ERROR(object arg0)
|
||||
{
|
||||
const string Format = @"Sync error for identity: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IllegalIdentityException(object arg0)
|
||||
{
|
||||
const string Format = @"The user or group name {0} contains unsupported characters, is empty, or too long.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string MODIFYEVERYONEGROUPEXCEPTION()
|
||||
{
|
||||
const string Format = @"The Valid Users group cannot be modified directly.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string NOT_APPLICATION_GROUP()
|
||||
{
|
||||
const string Format = @"The identity you are attempting to edit is not an application group.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string NOT_A_SECURITY_GROUP(object arg0)
|
||||
{
|
||||
const string Format = @"The group {0} is not a security group and cannot be added to Server.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string REMOVENONEXISTENTGROUPERROR(object arg0)
|
||||
{
|
||||
const string Format = @"An error occurred removing the group. There is no group with the security identifier (SID) {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string RemoveSelfFromAdminGroupError(object arg0)
|
||||
{
|
||||
const string Format = @"You cannot remove yourself from the Administrators group. This is a safeguard to prevent an enterprise locking themselves out of a deployment or project collection. Please have another administrator remove your membership. Alternatively you can disable the safeguard by setting {0} to false in the TF registry.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ADDPROJECTGROUPTOGLOBALGROUPERROR(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"You cannot add the project group {0} to the global group {1}. ";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string DynamicIdentityTypeCreationNotSupported()
|
||||
{
|
||||
const string Format = @"Dynamic creation of identity types is no longer supported. Please check that the type of the identity you are trying to create is supported. ";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string TooManyResultsError()
|
||||
{
|
||||
const string Format = @"The query was aborted because it returned too many results. Please apply additional filters to reduce the size of the resultset returned.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string IncompatibleScopeError(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Group cannot be created in the requested scope {1} since the requested scope is not within the root scope {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string InvalidIdentityIdTranslations()
|
||||
{
|
||||
const string Format = @"New translations have a record that may corrupt the existing translation data.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string MultipleIdentitiesFoundError(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Multiple identities found matching '{0}'. Please specify one of the following identities:
|
||||
|
||||
{1}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string IdentityIdTranslationsAreMigrated()
|
||||
{
|
||||
const string Format = @"Identity id translations are migrated to collection partition.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidGetDescriptorRequestWithLocalId(object arg0)
|
||||
{
|
||||
const string Format = @"Input parameter '{0}' is not a valid local id.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IdentityMaterializationFailedMessage(object arg0)
|
||||
{
|
||||
const string Format = @"Could not add user '{0}' at this time.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IdentityDescriptorNotFoundWithMasterId(object arg0)
|
||||
{
|
||||
const string Format = @"Identity descriptor for master id '{0}' not found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IdentityDescriptorNotFoundWithLocalId(object arg0)
|
||||
{
|
||||
const string Format = @"Identity descriptor for local id '{0}' not found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string TooManyRequestedItemsError()
|
||||
{
|
||||
const string Format = @"The request was aborted because it contained too many requested items.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string TooManyRequestedItemsErrorWithCount(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The request was aborted because it contained too many requested items {0}, maximum allowed is {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string InvalidIdentityKeyMaps()
|
||||
{
|
||||
const string Format = @"New identity key maps have a record that may corrupt the existing key map data.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvitationPendingMessage(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"{0} has not accepted the invitation to the {1} organization.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ShouldBePersonalAccountMessage()
|
||||
{
|
||||
const string Format = @"Your work or school account does not have access to this resource, but your personal account does.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ShouldCreatePersonalAccountMessage()
|
||||
{
|
||||
const string Format = @"The account you are trying to access only allows Microsoft Accounts. Please create a Microsoft Account with a different email address and ask your administrator to invite the new Microsoft Account.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ShouldBeWorkAccountMessage()
|
||||
{
|
||||
const string Format = @"Your personal account does not have access to this resource, but your work or school account does.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string IdentityNotFoundInCurrentDirectory()
|
||||
{
|
||||
const string Format = @"The identity could not be found in the current directory.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidIdentityIdException(object arg0)
|
||||
{
|
||||
const string Format = @"The identity ID is invalid for identity: {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidIdentityDescriptorException(object arg0)
|
||||
{
|
||||
const string Format = @"The identity descriptor is invalid for identity: {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string RestoreGroupScopeValidationError(object arg0)
|
||||
{
|
||||
const string Format = @"Restore group scope validation error: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string AccountOwnerCannotBeRemovedFromGroup(object arg0)
|
||||
{
|
||||
const string Format = @"Current account owner is not allowed to be removed from {0} group. Please change the account owner and try again.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ProjectCollectionAdministrators()
|
||||
{
|
||||
const string Format = @"Project Collection Administrators";
|
||||
return Format;
|
||||
}
|
||||
}
|
||||
}
|
||||
146
src/Sdk/Resources/JwtResources.g.cs
Normal file
146
src/Sdk/Resources/JwtResources.g.cs
Normal file
@@ -0,0 +1,146 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.Services.WebApi
|
||||
{
|
||||
public static class JwtResources
|
||||
{
|
||||
|
||||
public static string ActorValidationException()
|
||||
{
|
||||
const string Format = @"The ActorToken within the JsonWebToken is invalid.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string DeserializationException()
|
||||
{
|
||||
const string Format = @"Failed to deserialize the JsonWebToken object.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string DigestUnsupportedException(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"JsonWebTokens support only the {0} Digest, but the signing credentials specify {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string EncodedTokenDataMalformed()
|
||||
{
|
||||
const string Format = @"The encoded data in the JsonWebToken is malformed.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidAudienceException()
|
||||
{
|
||||
const string Format = @"The audience of the token is invalid.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidClockSkewException()
|
||||
{
|
||||
const string Format = @"The value supplied for ClockSkewInSeconds is invalid. It must be a positive integer.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidIssuerException()
|
||||
{
|
||||
const string Format = @"The issuer of the JsonWebToken is not valid.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidSignatureAlgorithm()
|
||||
{
|
||||
const string Format = @"The signature algorithm in the JsonWebToken header is invalid.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidValidFromValueException()
|
||||
{
|
||||
const string Format = @"The ValidFrom value in not valid.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidValidToValueException()
|
||||
{
|
||||
const string Format = @"The ValidTo value is not valid.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ProviderTypeUnsupported(object arg0)
|
||||
{
|
||||
const string Format = @"JsonWebTokens do not support crypto provider of type {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string SerializationException()
|
||||
{
|
||||
const string Format = @"Failed to serialize the JsonWebToken object.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string SignatureAlgorithmUnsupportedException(object arg0)
|
||||
{
|
||||
const string Format = @"JsonWebTokens do not support the supplied signature algorithm: {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string SignatureNotFound()
|
||||
{
|
||||
const string Format = @"The JsonWebToken is not signed, or the signature has not been found.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string SignatureValidationException()
|
||||
{
|
||||
const string Format = @"The signature is not valid.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string SymmetricSecurityKeyNotFound()
|
||||
{
|
||||
const string Format = @"The supplied Signing Credential is not a SymmetricSigningCredential and does not match the Signature Algorithm.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string TokenExpiredException()
|
||||
{
|
||||
const string Format = @"The token is expired.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string TokenNotYetValidException()
|
||||
{
|
||||
const string Format = @"The token is not yet valid.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ValidFromAfterValidToException()
|
||||
{
|
||||
const string Format = @"The time represented by the ValidFrom value come after the time represented by the ValidTo value.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string SigningTokenExpired()
|
||||
{
|
||||
const string Format = @"The supplied signing token has expired.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string SigningTokenNoPrivateKey()
|
||||
{
|
||||
const string Format = @"The signing token has no private key and cannot be used for signing.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string SigningTokenKeyTooSmall()
|
||||
{
|
||||
const string Format = @"The key size of the supplied signing token is too small. It must be at least 2048 bits.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string TokenScopeNotAuthorizedException()
|
||||
{
|
||||
const string Format = @"The token scope is not valid.";
|
||||
return Format;
|
||||
}
|
||||
}
|
||||
}
|
||||
20
src/Sdk/Resources/LocationResources.g.cs
Normal file
20
src/Sdk/Resources/LocationResources.g.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.Services.WebApi
|
||||
{
|
||||
public static class LocationResources
|
||||
{
|
||||
|
||||
public static string CannotChangeParentDefinition(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"Cannot change parent definition. Service type {0}, identifier {1}, parent service type {2}, identifier {3}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
public static string ParentDefinitionNotFound(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"Cannot save service definition with type {0} identifier {1} because parent definition with type {2} identifier {3} could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
}
|
||||
}
|
||||
122
src/Sdk/Resources/PatchResources.g.cs
Normal file
122
src/Sdk/Resources/PatchResources.g.cs
Normal file
@@ -0,0 +1,122 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.Services.WebApi
|
||||
{
|
||||
public static class PatchResources
|
||||
{
|
||||
|
||||
public static string CannotReplaceNonExistantValue(object arg0)
|
||||
{
|
||||
const string Format = @"Attempted to replace a value that does not exist at path {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string IndexOutOfRange(object arg0)
|
||||
{
|
||||
const string Format = @"Index out of range for path {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InsertNotSupported(object arg0)
|
||||
{
|
||||
const string Format = @"{0} does not support insert.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidOperation()
|
||||
{
|
||||
const string Format = @"Unrecognized operation type.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidValue(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Value {0} does not match the expected type {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string MoveCopyNotImplemented()
|
||||
{
|
||||
const string Format = @"Move/Copy is not implemented.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string NullOrEmptyOperations()
|
||||
{
|
||||
const string Format = @"At least one operation is required for Apply.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string PathCannotBeNull()
|
||||
{
|
||||
const string Format = @"Path cannot be null.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string PathInvalidEndValue()
|
||||
{
|
||||
const string Format = @"Path cannot end with /.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string PathInvalidStartValue()
|
||||
{
|
||||
const string Format = @"Path is required to start with a / or be """".";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string TargetCannotBeNull()
|
||||
{
|
||||
const string Format = @"Evaluated target should not be null.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string TestFailed(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Test Operation for path {0} failed, value {1} was not equal to test value {2}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string TestNotImplementedForDictionary()
|
||||
{
|
||||
const string Format = @"Test is not implemented for Dictionary.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string TestNotImplementedForList()
|
||||
{
|
||||
const string Format = @"Test is not implemented for List.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string UnableToEvaluatePath(object arg0)
|
||||
{
|
||||
const string Format = @"Unable to evaluate path {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ValueCannotBeNull()
|
||||
{
|
||||
const string Format = @"Value cannot be null.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ValueNotNull()
|
||||
{
|
||||
const string Format = @"Remove requires Value to be null.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string JsonPatchNull()
|
||||
{
|
||||
const string Format = @"You must pass a valid patch document in the body of the request.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidFieldName(object arg0)
|
||||
{
|
||||
const string Format = @"Replace requires {0} to have existing value. Try Add operation instead.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
}
|
||||
}
|
||||
500
src/Sdk/Resources/PipelineStrings.g.cs
Normal file
500
src/Sdk/Resources/PipelineStrings.g.cs
Normal file
@@ -0,0 +1,500 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.DistributedTask.Pipelines
|
||||
{
|
||||
public static class PipelineStrings
|
||||
{
|
||||
|
||||
public static string AmbiguousQueueSpecification(object arg0)
|
||||
{
|
||||
const string Format = @"The pool name {0} is ambiguous.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string AmbiguousSecureFileSpecification(object arg0)
|
||||
{
|
||||
const string Format = @"The secure file name {0} is ambiguous.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string AmbiguousServiceEndpointSpecification(object arg0)
|
||||
{
|
||||
const string Format = @"The service connection name {0} is ambiguous.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string AmbiguousTaskSpecification(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The task name {0} is ambiguous. Specify one of the following identifiers to resolve the ambiguity: {1}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string AmbiguousVariableGroupSpecification(object arg0)
|
||||
{
|
||||
const string Format = @"The variable group name {0} is ambiguous.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string AzureKeyVaultTaskName(object arg0)
|
||||
{
|
||||
const string Format = @"Download secrets: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ContainerResourceInvalidRegistryEndpointType(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Expected 'dockerregistry' service connection type for image registry referenced by {0}, but got {1} for service connection {2}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string ContainerResourceNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"A container resource with name {0} could not be found. The container resource does not exist. If you intended to specify an image, use NAME:TAG or NAME@DIGEST. For example, ubuntu:latest";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ContainerEndpointNotFound(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Container {0} references service connection {1} which does not exist or is not authorized for use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string CheckoutMultipleRepositoryNotSupported()
|
||||
{
|
||||
const string Format = @"Checkout of multiple repositories is not supported.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string CheckoutStepRepositoryNotSupported(object arg0)
|
||||
{
|
||||
const string Format = @"Checkout of repository '{0}' is not supported. Only 'self' and 'none' are supported.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string CheckoutMustBeTheFirstStep()
|
||||
{
|
||||
const string Format = @"Checkout should be the first step in the job.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ExpressionInvalid(object arg0)
|
||||
{
|
||||
const string Format = @"'{0}' is not a valid expression. Expressions must be enclosed with '$[' and ']'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string DemandExpansionInvalid(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Demand '{0}' is not valid when '{1}' evaluates to '{2}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string PhaseGraphCycleDetected(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Job {0} depends on job {1} which creates a cycle in the dependency graph.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string StageGraphCycleDetected(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Stage {0} depends on stage {1} which creates a cycle in the dependency graph.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string StagePhaseGraphCycleDetected(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Stage {0} job {1} depends on job {2} which creates a cycle in the dependency graph.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string InvalidRegexOptions(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Provider regex options '{0}' are invalid. Supported combination of flags: `{1}`. Eg: 'IgnoreCase, Multiline', 'Multiline'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string InvalidRetryStageNeverRun(object arg0)
|
||||
{
|
||||
const string Format = @"Unable to retry stage {0} because it has never been run.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidRetryStageNotComplete(object arg0)
|
||||
{
|
||||
const string Format = @"Unable to retry the pipeline because stage {0} is currently in progress.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidTypeForLengthFunction(object arg0)
|
||||
{
|
||||
const string Format = @"Kind '{0}' not supported. Only arrays, strings, dictionaries, or collections are supported for the length function.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidValidationOptionNoImplementation(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The validation option {0} was specified but no implementation was provided for {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string PhaseDependencyNotFound(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Job {0} depends on unknown job {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string StagePhaseDependencyNotFound(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Stage {0} job {1} depends on unknown job {2}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string StageDependencyNotFound(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Stage {0} depends on unknown stage {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string PhaseJobNameInvalidForSlicing(object arg0)
|
||||
{
|
||||
const string Format = @"The job name {0} is not valid for the specified execution options. Valid jobs names include JobN or N, where N is a value from 1 to maximum parallelism.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string PhaseJobNumberDoesNotExist(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Job {0} uses a maximum parallelism of {1}. The job {2} does not exist with the specified parallelism settings.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string PhaseJobMatrixExpansionExceedLimit(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The matrix expansion resulted in {0} jobs which exceeds the maximum allowable job count of {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string PhaseJobSlicingExpansionExceedLimit(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The slicing expansion resulted in {0} jobs which exceeds the maximum allowable job count of {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string PhaseMatrixConfigurationDoesNotExist(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Job {0} does not specify a matrix configuration named {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string PhaseNameInvalid(object arg0)
|
||||
{
|
||||
const string Format = @"Job {0} has an invalid name. Valid names may only contain alphanumeric characters and '_' and may not start with a number.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string StageNameInvalid(object arg0)
|
||||
{
|
||||
const string Format = @"Stage {0} has an invalid name. Valid names may only contain alphanumeric characters and '_' and may not start with a number.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string StagePhaseNameInvalid(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Stage {0} job {1} has an invalid name. Valid names may only contain alphanumeric characters and '_' and may not start with a number.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string PhaseNamesMustBeUnique(object arg0)
|
||||
{
|
||||
const string Format = @"The job name {0} appears more than once. Job names must be unique within a pipeline.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string StagePhaseNamesMustBeUnique(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Stage {0} job {1} appears more than once. Job names must be unique within a stage.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string PhaseTargetRequired(object arg0)
|
||||
{
|
||||
const string Format = @"Job {0}: Target is required.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string StageVariableGroupNotSupported(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Stage {0}: Variable group reference {1} is not supported.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string PhaseVariableGroupNotSupported(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Job {0}: Variable group reference {1} is not supported.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string PipelineNotValid()
|
||||
{
|
||||
const string Format = @"The pipeline is not valid.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string PipelineNotValidWithErrors(object arg0)
|
||||
{
|
||||
const string Format = @"The pipeline is not valid. {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string PipelineNotValidNoStartingPhase()
|
||||
{
|
||||
const string Format = @"The pipeline must contain at least one job with no dependencies.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string PipelineNotValidNoStartingStage()
|
||||
{
|
||||
const string Format = @"The pipeline must contain at least one stage with no dependencies.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string StageNotValidNoStartingPhase(object arg0)
|
||||
{
|
||||
const string Format = @"Stage {0} must contain at least one job with no dependencies.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string QueueNotDefined()
|
||||
{
|
||||
const string Format = @"Either a pool ID or name is required.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string QueueNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"Could not find a pool with ID {0}. The pool does not exist or has not been authorized for use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string QueueNotFoundByName(object arg0)
|
||||
{
|
||||
const string Format = @"Could not find a pool with name {0}. The pool does not exist or has not been authorized for use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string RegexFailed(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Regular expression failed evaluating '{0}' : {1}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string SecureFileNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"A secure file with name {0} could not be found. The secure file does not exist or has not been authorized for use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string SecureFileNotFoundForInput(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"Job {0}: Step {1} input {2} references secure file {3} which could not be found. The secure file does not exist or has not been authorized for use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
public static string ServiceEndpointNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"A service connection with name {0} could not be found. The service connection does not exist or has not been authorized for use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ServiceEndpointNotFoundForInput(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"Job {0}: Step {1} input {2} references service connection {3} which could not be found. The service connection does not exist or has not been authorized for use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
public static string StepConditionIsNotValid(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"Job {0}: Step {1} specifies condition {2} which is not valid. Reason: {3}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
public static string StepInputEndpointAuthSchemeMismatch(object arg0, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7)
|
||||
{
|
||||
const string Format = @"Job {0}: Step {1} input {2} expects a service connection of type {3} with authentication scheme {4} but the provided service connection {5} is of type {6} using authentication scheme {7}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
||||
}
|
||||
|
||||
public static string StepInputEndpointTypeMismatch(object arg0, object arg1, object arg2, object arg3, object arg4, object arg5)
|
||||
{
|
||||
const string Format = @"Job {0}: Step {1} input {2} expects a service connection of type {3} but the provided service connection {4} is of type {5}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3, arg4, arg5);
|
||||
}
|
||||
|
||||
public static string StepNameInvalid(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Job {0}: Step {1} has an invalid name. Valid names may only contain alphanumeric characters and '_' and may not start with a number.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string StepNamesMustBeUnique(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Job {0}: The step name {1} appears more than once. Step names must be unique within a job.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string StepNotSupported()
|
||||
{
|
||||
const string Format = @"Only task steps and group steps are supported.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string StepTaskInputInvalid(object arg0, object arg1, object arg2, object arg3, object arg4, object arg5)
|
||||
{
|
||||
const string Format = @"Job {0}: Step {1} input '{2}' with value '{3}' does not satisfy '{4}': {5}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3, arg4, arg5);
|
||||
}
|
||||
|
||||
public static string StepTaskReferenceInvalid(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Job {0}: Step {1} has an invalid task definition reference. A valid task definition reference must specify either an ID or a name and a version specification with a major version specified.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string StepActionReferenceInvalid(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Job {0}: Step {1} has an invalid action definition reference. A valid action definition reference can be either a container resource or a repository resource.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string TaskInvalidForGivenTarget(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"Job {0}: Step {1} references task '{2}' at version '{3}' which is not valid for the given job target.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
public static string TaskMissing(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"A task is missing. The pipeline references a task called '{2}'. This usually indicates the task isn't installed, and you may be able to install it from the Marketplace: https://marketplace.visualstudio.com. (Task version {3}, job '{0}', step '{1}'.)";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
public static string TaskStepReferenceInvalid(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Job {0}: Step {1} task reference is invalid. {2}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string ActionStepReferenceInvalid(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Job {0}: Step {1} action reference is invalid. {2}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string TaskTemplateNotSupported(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Task template {0} at version {1} is not supported.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string TemplateStoreNotProvided(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Unable to resolve task template {0} because no implementation was provided for {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string UnsupportedTargetType(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Job {0}: Target {1} is not supported.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string RepositoryNotSpecified()
|
||||
{
|
||||
const string Format = @"The checkout step does not specify a repository";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string RepositoryResourceNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"The checkout step references the repository '{0}' which is not defined by the pipeline";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string VariableGroupNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"Variable group {0} was not found or is not authorized for use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string VariableGroupNotFoundForPhase(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Job {0}: Variable group {1} could not be found. The variable group does not exist or has not been authorized for use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string VariableGroupNotFoundForStage(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Stage {0}: Variable group {1} could not be found. The variable group does not exist or has not been authorized for use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string JobNameWhenNoNameIsProvided(object arg0)
|
||||
{
|
||||
const string Format = @"Job{0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string StageNameWhenNoNameIsProvided(object arg0)
|
||||
{
|
||||
const string Format = @"Stage{0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string InvalidAbsoluteRollingValue()
|
||||
{
|
||||
const string Format = @"Absolute rolling value should be greater than zero.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidPercentageRollingValue()
|
||||
{
|
||||
const string Format = @"Percentage rolling value should be with in 1 to 100.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidRollingOption(object arg0)
|
||||
{
|
||||
const string Format = @"{0} is not supported as rolling option.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string EnvironmentNotFound(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Job {0}: Environment {1} could not be found. The environment does not exist or has not been authorized for use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string EnvironmentRequired(object arg0)
|
||||
{
|
||||
const string Format = @"Job {0}: Environment is required.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string EnvironmentResourceNotFound(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Job {0}: Resource {1} does not exist in environment {2}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string StageNamesMustBeUnique(object arg0)
|
||||
{
|
||||
const string Format = @"The stage name {0} appears more than once. Stage names must be unique within a pipeline.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ServiceConnectionUsedInVariableGroupNotValid(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Service connection : {0} used in variable group : {1} is not valid. Either service connection does not exist or has not been authorized for use.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
}
|
||||
}
|
||||
20
src/Sdk/Resources/SecurityResources.g.cs
Normal file
20
src/Sdk/Resources/SecurityResources.g.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.Services.WebApi
|
||||
{
|
||||
public static class SecurityResources
|
||||
{
|
||||
|
||||
public static string InvalidAclStoreException(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The ACL store with identifier '{1}' was not found in the security namespace '{0}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string InvalidPermissionsException(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Invalid operation. Unable to set bits '{1}' in security namespace '{0}' as it is reserved by the system.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
}
|
||||
}
|
||||
140
src/Sdk/Resources/TemplateStrings.g.cs
Normal file
140
src/Sdk/Resources/TemplateStrings.g.cs
Normal file
@@ -0,0 +1,140 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.DistributedTask.ObjectTemplating
|
||||
{
|
||||
public static class TemplateStrings
|
||||
{
|
||||
|
||||
public static string DirectiveNotAllowed(object arg0)
|
||||
{
|
||||
const string Format = @"The expression directive '{0}' is not supported in this context";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string DirectiveNotAllowedInline(object arg0)
|
||||
{
|
||||
const string Format = @"The directive '{0}' is not allowed in this context. Directives are not supported for expressions that are embedded within a string. Directives are only supported when the entire value is an expression.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ExpectedExpression()
|
||||
{
|
||||
const string Format = @"An expression was expected";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ExpectedMapping()
|
||||
{
|
||||
const string Format = @"Expected a mapping";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ExpectedNParametersFollowingDirective(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Exactly {0} parameter(s) were expected following the directive '{1}'. Actual parameter count: {2}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string ExpectedScalar()
|
||||
{
|
||||
const string Format = @"Expected a scalar value";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ExpectedScalarSequenceOrMapping()
|
||||
{
|
||||
const string Format = @"Expected a scalar value, a sequence, or a mapping";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ExpectedSequence()
|
||||
{
|
||||
const string Format = @"Expected a sequence";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ExpressionNotAllowed()
|
||||
{
|
||||
const string Format = @"A template expression is not allowed in this context";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ExpressionNotClosed()
|
||||
{
|
||||
const string Format = @"The expression is not closed. An unescaped ${{ sequence was found, but the closing }} sequence was not found.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string LineColumn(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"(Line: {0}, Col: {1})";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string MaxObjectDepthExceeded()
|
||||
{
|
||||
const string Format = @"Maximum object depth exceeded";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string MaxObjectSizeExceeded()
|
||||
{
|
||||
const string Format = @"Maximum object size exceeded";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string MaxTemplateEventsExceeded()
|
||||
{
|
||||
const string Format = @"Maximum events exceeded while evaluating the template. This may indicate an infinite loop or too many nested loops.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string TemplateNotValid()
|
||||
{
|
||||
const string Format = @"The template is not valid.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string TemplateNotValidWithErrors(object arg0)
|
||||
{
|
||||
const string Format = @"The template is not valid. {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string UnableToConvertToTemplateToken(object arg0)
|
||||
{
|
||||
const string Format = @"Unable to convert the object to a template token. Actual type '{0}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string UnableToDetermineOneOf(object arg0)
|
||||
{
|
||||
const string Format = @"There's not enough info to determine what you meant. Add one of these properties: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string UnexpectedMappingStart()
|
||||
{
|
||||
const string Format = @"A mapping was not expected";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string UnexpectedSequenceStart()
|
||||
{
|
||||
const string Format = @"A sequence was not expected";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string UnexpectedValue(object arg0)
|
||||
{
|
||||
const string Format = @"Unexpected value '{0}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ValueAlreadyDefined(object arg0)
|
||||
{
|
||||
const string Format = @"'{0}' is already defined";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
}
|
||||
}
|
||||
392
src/Sdk/Resources/WebApiResources.g.cs
Normal file
392
src/Sdk/Resources/WebApiResources.g.cs
Normal file
@@ -0,0 +1,392 @@
|
||||
using System.Globalization;
|
||||
|
||||
namespace GitHub.Services.WebApi
|
||||
{
|
||||
public static class WebApiResources
|
||||
{
|
||||
|
||||
public static string UnsupportedContentType(object arg0)
|
||||
{
|
||||
const string Format = @"The server returns content type {0}, which is not supported.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string DownloadCorrupted()
|
||||
{
|
||||
const string Format = @"The download file is corrupted. Get the file again.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string SerializingPhrase()
|
||||
{
|
||||
const string Format = @"being serialized";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string DeserializationCorrupt()
|
||||
{
|
||||
const string Format = @"The data presented for deserialization to the PropertiesCollection is corrupt.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ClientResourceVersionNotSupported(object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
const string Format = @"The server does not support resource {0} at API version {1}. The minimum supported version on {2} is {3}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
public static string ResourceNotFoundOnServerMessage(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"API resource location {0} is not registered on {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ResourceNotRegisteredMessage(object arg0)
|
||||
{
|
||||
const string Format = @"API resource location {0} is not registered on this server.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ContainerIdMustBeGreaterThanZero()
|
||||
{
|
||||
const string Format = @"The container ID must be greater than zero.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string FullyQualifiedLocationParameter()
|
||||
{
|
||||
const string Format = @"The value of the location parameter cannot be null if the RelativeToSetting is 'FullyQualified'";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string RelativeLocationMappingErrorMessage()
|
||||
{
|
||||
const string Format = @"You cannot add location mappings to service definitions that are not part of the FullyQualified type.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidAccessMappingLocationServiceUrl()
|
||||
{
|
||||
const string Format = @"The access mapping is not valid and cannot be registered. The location service URL cannot be null or empty.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ServiceDefinitionDoesNotExist(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The service definition with service type '{0}' and identifier '{1}' does not exist.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ServiceDefinitionWithNoLocations(object arg0)
|
||||
{
|
||||
const string Format = @"The service with the following type does not have a location mapping: {0}. You must provide at least one location in order to configure locations for an external service.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string JsonParseError(object arg0)
|
||||
{
|
||||
const string Format = @"Unable to parse JSON in: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string MissingRequiredParameterMessage(object arg0)
|
||||
{
|
||||
const string Format = @"A required parameter {0} was not specified for this request.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ProxyAuthenticationRequired()
|
||||
{
|
||||
const string Format = @"SP324097: Your network proxy requires authentication.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string InvalidApiVersionStringMessage(object arg0)
|
||||
{
|
||||
const string Format = @"Invalid api version string: ""{0}"". Api version string must be in the format: {{Major}}.{{Minor}}[-preview[.{{ResourceVersion}}]].";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ApiResourceDuplicateIdMessage(object arg0)
|
||||
{
|
||||
const string Format = @"The following location id has already been registered: {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ApiResourceDuplicateRouteNameMessage(object arg0)
|
||||
{
|
||||
const string Format = @"The following route name has already been registered: {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string RequestContentTypeNotSupported(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"The request indicated a Content-Type of ""{0}"" for method type ""{1}"" which is not supported. Valid content types for this method are: {2}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string InvalidReferenceLinkFormat()
|
||||
{
|
||||
const string Format = @"ReferenceLinks is a dictionary that contains either a single ReferenceLink or an array of ReferenceLinks.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string PreviewVersionNotSuppliedMessage(object arg0)
|
||||
{
|
||||
const string Format = @"The requested version ""{0}"" of the resource is under preview. The -preview flag must be supplied in the api-version for such requests. For example: ""{0}-preview""";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string VersionNotSuppliedMessage(object arg0)
|
||||
{
|
||||
const string Format = @"No api-version was supplied for the ""{0}"" request. The version must be supplied either as part of the Accept header (e.g. ""application/json; api-version=1.0"") or as a query parameter (e.g. ""?api-version=1.0"").";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string MustacheTemplateInvalidEndBlock(object arg0)
|
||||
{
|
||||
const string Format = @"Unexpected end block '{0}' before any start block";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string MustacheTemplateMissingBlockHelper(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Block Helper '{0}' not found for expression '{1}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string MustacheTemplateMissingHelper(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Helper '{0}' not found for expression '{1}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string MustacheTemplateNonMatchingEndBlock(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"End block '{0}' does not match start block '{1}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string MustacheTemplateBraceCountMismatch(object arg0)
|
||||
{
|
||||
const string Format = @"The expression '{0}' is invalid due to mismatching start and end brace count.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string MustacheTemplateInvalidEndBraces(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Invalid end braces before start braces at position '{0}' of template '{1}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string MustacheTemplateInvalidStartBraces(object arg0, object arg1, object arg2)
|
||||
{
|
||||
const string Format = @"Invalid start braces within template expression '{0}' at position {1} of template '{2}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
public static string MustacheTemplateInvalidEscapedStringLiteral(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Invalid escape character in string literal '{0}' within template expression '{1}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string MustacheTemplateUnterminatedStringLiteral(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Unterminated string literal '{0}' within template expression '{1}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string MustacheTemplateInvalidNumericLiteral(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"Invalid numeric literal '{0}' within template expression '{1}'";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string OperationNotFoundException(object arg0)
|
||||
{
|
||||
const string Format = @"Failed to find operation '{0}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string OperationPluginNotFoundException(object arg0)
|
||||
{
|
||||
const string Format = @"Failed to find operation plugin '{0}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string OperationPluginWithSameIdException(object arg0)
|
||||
{
|
||||
const string Format = @"Found several plugins for the id '{0}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string OperationPluginNoPermission(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The operation '{1}' for the plugin '{0}' doesn't have permission.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string OperationUpdateException(object arg0)
|
||||
{
|
||||
const string Format = @"Operation update for operation '{0}' did not complete successfully.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string CollectionDoesNotExistException(object arg0)
|
||||
{
|
||||
const string Format = @"Collection with name {0} does not exist.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string MissingCloseInlineMessage()
|
||||
{
|
||||
const string Format = @"Missing close expression for inline content.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string MissingEndingBracesMessage(object arg0)
|
||||
{
|
||||
const string Format = @"No ending braces for expression '{0}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string NestedInlinePartialsMessage()
|
||||
{
|
||||
const string Format = @"An inline partial cannot contain another inline partial";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string GetServiceArgumentError(object arg0)
|
||||
{
|
||||
const string Format = @"'{0}' must be a non-abstract class with a public parameterless or default constructor in order to use it as parameter 'T' in GetService<T>().";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ExtensibleServiceTypeNotRegistered(object arg0)
|
||||
{
|
||||
const string Format = @"The service type '{0}' does not have a registered implementation or default implementation attribute.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ExtensibleServiceTypeNotValid(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"'{1}' does not extend or implement the service type '{0}'.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ServerDataProviderNotFound(object arg0)
|
||||
{
|
||||
const string Format = @"The server data provider for service owner {0} could not be found.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ClientCertificateMissing(object arg0)
|
||||
{
|
||||
const string Format = @"No certificate capable of client authentication was found in the certificate store with thumbprint {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string SmartCardMissing(object arg0)
|
||||
{
|
||||
const string Format = @"The smart card containing the private key for the certificate with thumbprint {0} is not available.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ClientCertificateNoPermission(object arg0)
|
||||
{
|
||||
const string Format = @"The certificate with thumbprint {0} could not be used for client authentication. The current user may not have permission to use the certificate.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string ClientCertificateErrorReadingStore(object arg0)
|
||||
{
|
||||
const string Format = @"An exception occurred while loading client authentication certificates from the certificate store: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string CannotAuthenticateAsAnotherUser(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"We were unable to establish the connection because it is configured for user {0} but you attempted to connect using user {1}. To connect as a different user perform a switch user operation. To connect with the configured identity just attempt the last operation again.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string MustacheTemplateInvalidPartialReference(object arg0)
|
||||
{
|
||||
const string Format = @"Invalid partial reference: {0}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string CannotGetUnattributedClient(object arg0)
|
||||
{
|
||||
const string Format = @"The current VssConnection does not support calling GetClient for this client type: '{0}'. Instead, use the GetClient overload which accepts a serviceIdentifier parameter to specify the intended target service for the given client.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string UnknownEntityType(object arg0)
|
||||
{
|
||||
const string Format = @"Unknown entityType {0}. Cannot parse.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string GraphGroupMissingRequiredFields()
|
||||
{
|
||||
const string Format = @"Must have exactly one of originId, principlaName or displayName set.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string GraphUserMissingRequiredFields()
|
||||
{
|
||||
const string Format = @"Must have exactly one of originId or principlaName set.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string MustacheEvaluationResultLengthExceeded(object arg0)
|
||||
{
|
||||
const string Format = @"The maximum evaluation result length has been exceeded. The maximum allowed length is {0:N0} characters.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string MustacheTemplateInlinePartialsNotAllowed()
|
||||
{
|
||||
const string Format = @"Inline partial expressions are not allowed";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string MustacheTemplateMaxDepthExceeded(object arg0)
|
||||
{
|
||||
const string Format = @"The maximum expression depth has been exceeded. The maximum allowed expression depth is {0}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
|
||||
public static string UnexpectedTokenType()
|
||||
{
|
||||
const string Format = @"Unexpected token type. Only JObject, JArrays, Guid, String and Boolean are supported.";
|
||||
return Format;
|
||||
}
|
||||
|
||||
public static string ApiVersionOutOfRange(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The requested REST API version of {0} is out of range for this server. The latest REST API version this server supports is {1}.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ApiVersionOutOfRangeForRoute(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The request matched route {1}, but the requested REST API version {0} was outside the valid version range for this route.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string ApiVersionOutOfRangeForRoutes(object arg0, object arg1)
|
||||
{
|
||||
const string Format = @"The following routes matched, but the requested REST API version {0} was outside the valid version ranges: {1}";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0, arg1);
|
||||
}
|
||||
|
||||
public static string UnsafeCrossOriginRequest(object arg0)
|
||||
{
|
||||
const string Format = @"A cross-origin request from origin ""{0}"" is not allowed when using cookie-based authentication. An authentication token needs to be provided in the Authorization header of the request.";
|
||||
return string.Format(CultureInfo.CurrentCulture, Format, arg0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user