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

EncodedTaskRunRequest 构造函数

定义

重载

EncodedTaskRunRequest()

初始化 EncodedTaskRunRequest 类的新实例。

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

初始化 EncodedTaskRunRequest 类的新实例。

EncodedTaskRunRequest()

初始化 EncodedTaskRunRequest 类的新实例。

public EncodedTaskRunRequest ();
Public Sub New ()

适用于

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

初始化 EncodedTaskRunRequest 类的新实例。

public EncodedTaskRunRequest (string encodedTaskContent, Microsoft.Azure.Management.ContainerRegistry.Models.PlatformProperties platform, bool? isArchiveEnabled = default, string agentPoolName = default, string logTemplate = default, string encodedValuesContent = 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.EncodedTaskRunRequest : 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.EncodedTaskRunRequest
Public Sub New (encodedTaskContent As String, platform As PlatformProperties, Optional isArchiveEnabled As Nullable(Of Boolean) = Nothing, Optional agentPoolName As String = Nothing, Optional logTemplate As String = Nothing, Optional encodedValuesContent 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)

参数

encodedTaskContent
String

模板/定义文件内容的 Base64 编码值。

platform
PlatformProperties

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

isArchiveEnabled
Nullable<Boolean>

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

agentPoolName
String

运行的专用代理池。

logTemplate
String

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

encodedValuesContent
String

参数/值文件内容的 Base64 编码值。

values
IList<SetValue>

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

timeout
Nullable<Int32>

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

agentConfiguration
AgentProperties

运行代理的计算机配置。

sourceLocation
String

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

credentials
Credentials

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

适用于