mirror of
https://github.com/actions/runner.git
synced 2025-12-10 12:36:23 +00:00
delete more unused code. (#230)
* delete more unused code. * pr feedback.
This commit is contained in:
@@ -58,8 +58,8 @@ namespace GitHub.Runner.Common
|
||||
private CancellationTokenSource _runnerShutdownTokenSource = new CancellationTokenSource();
|
||||
private object _perfLock = new object();
|
||||
private Tracing _trace;
|
||||
private Tracing _vssTrace;
|
||||
private Tracing _httpTrace;
|
||||
private Tracing _actionsHttpTrace;
|
||||
private Tracing _netcoreHttpTrace;
|
||||
private ITraceManager _traceManager;
|
||||
private AssemblyLoadContext _loadContext;
|
||||
private IDisposable _httpTraceSubscription;
|
||||
@@ -117,8 +117,7 @@ namespace GitHub.Runner.Common
|
||||
}
|
||||
|
||||
_trace = GetTrace(nameof(HostContext));
|
||||
_vssTrace = GetTrace("GitHubActionsRunner"); // VisualStudioService
|
||||
|
||||
_actionsHttpTrace = GetTrace("GitHubActionsService");
|
||||
// Enable Http trace
|
||||
bool enableHttpTrace;
|
||||
if (bool.TryParse(Environment.GetEnvironmentVariable("GITHUB_ACTIONS_RUNNER_HTTPTRACE"), out enableHttpTrace) && enableHttpTrace)
|
||||
@@ -130,7 +129,7 @@ namespace GitHub.Runner.Common
|
||||
_trace.Warning("** **");
|
||||
_trace.Warning("*****************************************************************************************");
|
||||
|
||||
_httpTrace = GetTrace("HttpTrace");
|
||||
_netcoreHttpTrace = GetTrace("HttpTrace");
|
||||
_diagListenerSubscription = DiagnosticListener.AllListeners.Subscribe(this);
|
||||
}
|
||||
|
||||
@@ -478,12 +477,12 @@ namespace GitHub.Runner.Common
|
||||
|
||||
void IObserver<DiagnosticListener>.OnCompleted()
|
||||
{
|
||||
_httpTrace.Info("DiagListeners finished transmitting data.");
|
||||
_netcoreHttpTrace.Info("DiagListeners finished transmitting data.");
|
||||
}
|
||||
|
||||
void IObserver<DiagnosticListener>.OnError(Exception error)
|
||||
{
|
||||
_httpTrace.Error(error);
|
||||
_netcoreHttpTrace.Error(error);
|
||||
}
|
||||
|
||||
void IObserver<DiagnosticListener>.OnNext(DiagnosticListener listener)
|
||||
@@ -496,22 +495,22 @@ namespace GitHub.Runner.Common
|
||||
|
||||
void IObserver<KeyValuePair<string, object>>.OnCompleted()
|
||||
{
|
||||
_httpTrace.Info("HttpHandlerDiagnosticListener finished transmitting data.");
|
||||
_netcoreHttpTrace.Info("HttpHandlerDiagnosticListener finished transmitting data.");
|
||||
}
|
||||
|
||||
void IObserver<KeyValuePair<string, object>>.OnError(Exception error)
|
||||
{
|
||||
_httpTrace.Error(error);
|
||||
_netcoreHttpTrace.Error(error);
|
||||
}
|
||||
|
||||
void IObserver<KeyValuePair<string, object>>.OnNext(KeyValuePair<string, object> value)
|
||||
{
|
||||
_httpTrace.Info($"Trace {value.Key} event:{Environment.NewLine}{value.Value.ToString()}");
|
||||
_netcoreHttpTrace.Info($"Trace {value.Key} event:{Environment.NewLine}{value.Value.ToString()}");
|
||||
}
|
||||
|
||||
protected override void OnEventSourceCreated(EventSource source)
|
||||
{
|
||||
if (source.Name.Equals("Microsoft-VSS-Http"))
|
||||
if (source.Name.Equals("GitHub-Actions-Http"))
|
||||
{
|
||||
EnableEvents(source, EventLevel.Verbose);
|
||||
}
|
||||
@@ -551,24 +550,24 @@ namespace GitHub.Runner.Common
|
||||
{
|
||||
case EventLevel.Critical:
|
||||
case EventLevel.Error:
|
||||
_vssTrace.Error(message);
|
||||
_actionsHttpTrace.Error(message);
|
||||
break;
|
||||
case EventLevel.Warning:
|
||||
_vssTrace.Warning(message);
|
||||
_actionsHttpTrace.Warning(message);
|
||||
break;
|
||||
case EventLevel.Informational:
|
||||
_vssTrace.Info(message);
|
||||
_actionsHttpTrace.Info(message);
|
||||
break;
|
||||
default:
|
||||
_vssTrace.Verbose(message);
|
||||
_actionsHttpTrace.Verbose(message);
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_vssTrace.Error(ex);
|
||||
_vssTrace.Info(eventData.Message);
|
||||
_vssTrace.Info(string.Join(", ", eventData.Payload?.ToArray() ?? new string[0]));
|
||||
_actionsHttpTrace.Error(ex);
|
||||
_actionsHttpTrace.Info(eventData.Message);
|
||||
_actionsHttpTrace.Info(string.Join(", ", eventData.Payload?.ToArray() ?? new string[0]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace GitHub.Services.Common.ClientStorage
|
||||
public string PathKeyCombine(params string[] paths)
|
||||
{
|
||||
StringBuilder combinedPath = new StringBuilder();
|
||||
foreach(string segment in paths)
|
||||
foreach (string segment in paths)
|
||||
{
|
||||
if (segment != null)
|
||||
{
|
||||
@@ -152,8 +152,8 @@ namespace GitHub.Services.Common.ClientStorage
|
||||
/// <summary>
|
||||
/// Gets an instance of a VssLocalFileStorage under the current user directory.
|
||||
/// </summary>
|
||||
/// <param name="pathSuffix">This pathSuffix will be combined at the end of the current user data directory for VSS to make a full path. Something like: "%localappdata%\Microsoft\VisualStudio Services\[pathSuffix]"</param>
|
||||
/// <param name="storeByVssVersion">Adds the current product version as a path segment. ...\Microsoft\VisualStudio Services\v[GeneratedVersionInfo.ProductVersion]\[pathSuffix]"</param>
|
||||
/// <param name="pathSuffix">This pathSuffix will be combined at the end of the current user data directory for VSS to make a full path. Something like: "%localappdata%\GitHub\ActionsService\[pathSuffix]"</param>
|
||||
/// <param name="storeByVssVersion">Adds the current product version as a path segment. ...\GitHub\ActionsService\v[GeneratedVersionInfo.ProductVersion]\[pathSuffix]"</param>
|
||||
/// <param name="pathSeparatorForKeys">The separator to use between the path segments of the storage keys.</param>
|
||||
/// <param name="ignoreCaseInPaths">If true the dictionary will use the OrdinalIgnoreCase StringComparer to compare keys.</param>
|
||||
/// <returns></returns>
|
||||
@@ -166,7 +166,7 @@ namespace GitHub.Services.Common.ClientStorage
|
||||
/// Directory containing the client settings files.
|
||||
///
|
||||
/// This will look something like this:
|
||||
/// C:\Users\[user]\AppData\Local\Microsoft\VisualStudio Services\v[GeneratedVersionInfo.ProductVersion]
|
||||
/// C:\Users\[user]\AppData\Local\GitHub\ActionsService\v[GeneratedVersionInfo.ProductVersion]
|
||||
/// </summary>
|
||||
internal static string ClientSettingsDirectoryByVersion
|
||||
{
|
||||
@@ -182,7 +182,7 @@ namespace GitHub.Services.Common.ClientStorage
|
||||
/// Directory containing the client settings files.
|
||||
///
|
||||
/// This will look something like this:
|
||||
/// C:\Users\[user]\AppData\Local\Microsoft\VisualStudio Services
|
||||
/// C:\Users\[user]\AppData\Local\GitHub\ActionsService
|
||||
/// </summary>
|
||||
internal static string ClientSettingsDirectory
|
||||
{
|
||||
@@ -192,7 +192,7 @@ namespace GitHub.Services.Common.ClientStorage
|
||||
// Windows Impersonation is being used.
|
||||
|
||||
// Check to see if we can find the user's local application data directory.
|
||||
string subDir = "Microsoft\\VisualStudio Services";
|
||||
string subDir = "GitHub\\ActionsService";
|
||||
string path = Environment.GetEnvironmentVariable("localappdata");
|
||||
SafeGetFolderPath(Environment.SpecialFolder.LocalApplicationData);
|
||||
if (string.IsNullOrEmpty(path))
|
||||
@@ -204,10 +204,10 @@ namespace GitHub.Services.Common.ClientStorage
|
||||
{
|
||||
// The user does not have a roaming network directory either. Just place the cache in the
|
||||
// common area.
|
||||
// If we are using the common dir, we might not have access to create a folder under "Microsoft"
|
||||
// If we are using the common dir, we might not have access to create a folder under "GitHub"
|
||||
// so we just create a top level folder.
|
||||
path = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
|
||||
subDir = "Microsoft VisualStudio Services";
|
||||
subDir = "GitHubActionsService";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1127,6 +1127,6 @@ namespace GitHub.Services.Common.Diagnostics
|
||||
|
||||
public static class VssEventSources
|
||||
{
|
||||
public const String Http = "Microsoft-VSS-Http";
|
||||
public const String Http = "GitHub-Actions-Http";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -523,8 +523,6 @@ namespace GitHub.Services.Common
|
||||
}
|
||||
set
|
||||
{
|
||||
// requested by Insights team to be able to set a default Proxy that only affects this handler.
|
||||
// see following bug for details: https://mseng.visualstudio.com/DefaultCollection/VSOnline/_workitems#_a=edit&id=425575&triage=true
|
||||
s_defaultWebProxy = value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,8 +16,6 @@ namespace GitHub.Services.Common
|
||||
public const String AssemblyMajorVersion = "16";
|
||||
|
||||
// Derived versions
|
||||
public const String TfsMajorVersion = "8";
|
||||
public const String TfsMinorVersion = "0";
|
||||
public const String TfsProductVersion = TfsMajorVersion + "." + TfsMinorVersion;
|
||||
public const String ActionsProductVersion = "8.0";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -161,216 +161,6 @@ namespace GitHub.Services.Common.Internal
|
||||
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}.";
|
||||
@@ -485,42 +275,6 @@ namespace GitHub.Services.Common.Internal
|
||||
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.";
|
||||
@@ -545,12 +299,6 @@ namespace GitHub.Services.Common.Internal
|
||||
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}'.";
|
||||
@@ -592,17 +340,5 @@ namespace GitHub.Services.Common.Internal
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,37 +4,12 @@ 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}";
|
||||
@@ -52,65 +27,5 @@ namespace GitHub.DistributedTask.Expressions
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace GitHub.Services.WebApi
|
||||
{
|
||||
public static class FileContainerResources
|
||||
{
|
||||
|
||||
public static string ArtifactUriNotSupportedException(object arg0)
|
||||
{
|
||||
const string Format = @"The artifact Uri {0} is not supported.";
|
||||
|
||||
@@ -4,397 +4,10 @@ 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ namespace GitHub.Services.WebApi
|
||||
{
|
||||
public static class JwtResources
|
||||
{
|
||||
|
||||
public static string ActorValidationException()
|
||||
{
|
||||
const string Format = @"The ActorToken within the JsonWebToken is invalid.";
|
||||
@@ -95,12 +94,6 @@ namespace GitHub.Services.WebApi
|
||||
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.";
|
||||
|
||||
@@ -4,13 +4,6 @@ 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.";
|
||||
|
||||
@@ -4,7 +4,6 @@ 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}.";
|
||||
@@ -41,12 +40,6 @@ namespace GitHub.Services.WebApi
|
||||
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.";
|
||||
@@ -107,12 +100,6 @@ namespace GitHub.Services.WebApi
|
||||
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.";
|
||||
|
||||
@@ -4,497 +4,22 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,6 @@ 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";
|
||||
@@ -35,12 +34,6 @@ namespace GitHub.DistributedTask.ObjectTemplating
|
||||
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";
|
||||
|
||||
@@ -4,19 +4,6 @@ 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";
|
||||
@@ -83,18 +70,6 @@ namespace GitHub.Services.WebApi
|
||||
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.";
|
||||
@@ -143,120 +118,6 @@ namespace GitHub.Services.WebApi
|
||||
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>().";
|
||||
@@ -281,30 +142,6 @@ namespace GitHub.Services.WebApi
|
||||
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.";
|
||||
@@ -323,42 +160,6 @@ namespace GitHub.Services.WebApi
|
||||
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.";
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.IO;
|
||||
using GitHub.Services.Common;
|
||||
using GitHub.Services.Common.ClientStorage;
|
||||
using GitHub.Services.WebApi.Internal;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace GitHub.Services.WebApi
|
||||
{
|
||||
@@ -16,7 +13,7 @@ namespace GitHub.Services.WebApi
|
||||
/// Directory containing the client cache files which resides below the settings directory.
|
||||
///
|
||||
/// This will look something like this:
|
||||
/// C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\VisualStudio Services\[GeneratedVersionInfo.TfsProductVersion]\Cache
|
||||
/// C:\Documents and Settings\username\Local Settings\Application Data\GitHub\ActionsService\[GeneratedVersionInfo.ActionsProductVersion]\Cache
|
||||
/// </summary>
|
||||
internal static string ClientCacheDirectory
|
||||
{
|
||||
@@ -30,7 +27,7 @@ namespace GitHub.Services.WebApi
|
||||
/// Directory containing the client settings files.
|
||||
///
|
||||
/// This will look something like this:
|
||||
/// C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\VisualStudio Services\[GeneratedVersionInfo.TfsProductVersion]
|
||||
/// C:\Documents and Settings\username\Local Settings\Application Data\GitHub\ActionsService\[GeneratedVersionInfo.ActionsProductVersion]
|
||||
/// </summary>
|
||||
internal static string ClientSettingsDirectory
|
||||
{
|
||||
@@ -38,11 +35,8 @@ namespace GitHub.Services.WebApi
|
||||
{
|
||||
// We purposely do not cache this value. This value needs to change if
|
||||
// Windows Impersonation is being used.
|
||||
return Path.Combine(VssFileStorage.ClientSettingsDirectory, GeneratedVersionInfo.TfsProductVersion);
|
||||
return Path.Combine(VssFileStorage.ClientSettingsDirectory, GeneratedVersionInfo.ActionsProductVersion);
|
||||
}
|
||||
}
|
||||
|
||||
private const string c_cacheSettingsKey = "Services\\CacheSettings";
|
||||
private const string c_settingClientCacheTimeToLive = "ClientCacheTimeToLive";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace GitHub.Runner.Common.Tests.Worker
|
||||
_message.Resources.Endpoints.Add(new ServiceEndpoint()
|
||||
{
|
||||
Name = WellKnownServiceEndpointNames.SystemVssConnection,
|
||||
Url = new Uri("https://test.visualstudio.com"),
|
||||
Url = new Uri("https://pipelines.actions.githubusercontent.com"),
|
||||
Authorization = new EndpointAuthorization()
|
||||
{
|
||||
Scheme = "Test",
|
||||
@@ -96,7 +96,7 @@ namespace GitHub.Runner.Common.Tests.Worker
|
||||
{
|
||||
AgentId = 1,
|
||||
AgentName = "agent1",
|
||||
ServerUrl = "https://test.visualstudio.com",
|
||||
ServerUrl = "https://pipelines.actions.githubusercontent.com",
|
||||
WorkFolder = "_work",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user