你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FileTaskRunRequest 构造函数

定义

重载

FileTaskRunRequest()

初始化 FileTaskRunRequest 类的新实例。

FileTaskRunRequest(String, PlatformProperties, Nullable<Boolean>, String, String, String, IList<SetValue>, Nullable<Int32>, AgentProperties, String, Credentials)

初始化 FileTaskRunRequest 类的新实例。

FileTaskRunRequest()

初始化 FileTaskRunRequest 类的新实例。

public FileTaskRunRequest ();
Public Sub New ()

适用于

FileTaskRunRequest(String, PlatformProperties, Nullable<Boolean>, String, String, String, IList<SetValue>, Nullable<Int32>, AgentProperties, String, Credentials)

初始化 FileTaskRunRequest 类的新实例。

public FileTaskRunRequest (string taskFilePath, Microsoft.Azure.Management.ContainerRegistry.Models.PlatformProperties platform, bool? isArchiveEnabled = default, string agentPoolName = default, string logTemplate = default, string valuesFilePath = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerRegistry.Models.SetValue> values = default, int? timeout = default, Microsoft.Azure.Management.ContainerRegistry.Models.AgentProperties agentConfiguration = default, string sourceLocation = default, Microsoft.Azure.Management.ContainerRegistry.Models.Credentials credentials = default);
new Microsoft.Azure.Management.ContainerRegistry.Models.FileTaskRunRequest : string * Microsoft.Azure.Management.ContainerRegistry.Models.PlatformProperties * Nullable<bool> * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerRegistry.Models.SetValue> * Nullable<int> * Microsoft.Azure.Management.ContainerRegistry.Models.AgentProperties * string * Microsoft.Azure.Management.ContainerRegistry.Models.Credentials -> Microsoft.Azure.Management.ContainerRegistry.Models.FileTaskRunRequest
Public Sub New (taskFilePath As String, platform As PlatformProperties, Optional isArchiveEnabled As Nullable(Of Boolean) = Nothing, Optional agentPoolName As String = Nothing, Optional logTemplate As String = Nothing, Optional valuesFilePath As String = Nothing, Optional values As IList(Of SetValue) = Nothing, Optional timeout As Nullable(Of Integer) = Nothing, Optional agentConfiguration As AgentProperties = Nothing, Optional sourceLocation As String = Nothing, Optional credentials As Credentials = Nothing)

参数

taskFilePath
String

相对于源的模板/定义文件路径。

platform
PlatformProperties

必须对其执行运行的平台属性。

isArchiveEnabled
Nullable<Boolean>

指示是否为运行启用存档的值。

agentPoolName
String

运行的专用代理池。

logTemplate
String

描述运行日志项目的存储库和标记信息的模板。

valuesFilePath
String

相对于源的值/参数文件路径。

values
IList<SetValue>

运行任务时可以传递的可重写值的集合。

timeout
Nullable<Int32>

运行超时(以秒为单位)。

agentConfiguration
AgentProperties

运行代理的计算机配置。

sourceLocation
String

URL (源上下文的绝对或相对) 。 它可以是 tar 或 git 存储库的 URL。 如果它是相对 URL,则应从调用 listBuildSourceUploadUrl API 获取相对路径。

credentials
Credentials

描述调用此运行时将使用的一组凭据的属性。

适用于