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

DockerBuildRequest 构造函数

定义

重载

DockerBuildRequest()

初始化 DockerBuildRequest 类的新实例。

DockerBuildRequest(String, PlatformProperties, Nullable<Boolean>, String, String, IList<String>, Nullable<Boolean>, Nullable<Boolean>, String, IList<Argument>, Nullable<Int32>, AgentProperties, String, Credentials)

初始化 DockerBuildRequest 类的新实例。

DockerBuildRequest()

初始化 DockerBuildRequest 类的新实例。

public DockerBuildRequest ();
Public Sub New ()

适用于

DockerBuildRequest(String, PlatformProperties, Nullable<Boolean>, String, String, IList<String>, Nullable<Boolean>, Nullable<Boolean>, String, IList<Argument>, Nullable<Int32>, AgentProperties, String, Credentials)

初始化 DockerBuildRequest 类的新实例。

public DockerBuildRequest (string dockerFilePath, Microsoft.Azure.Management.ContainerRegistry.Models.PlatformProperties platform, bool? isArchiveEnabled = default, string agentPoolName = default, string logTemplate = default, System.Collections.Generic.IList<string> imageNames = default, bool? isPushEnabled = default, bool? noCache = default, string target = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerRegistry.Models.Argument> arguments = 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.DockerBuildRequest : string * Microsoft.Azure.Management.ContainerRegistry.Models.PlatformProperties * Nullable<bool> * string * string * System.Collections.Generic.IList<string> * Nullable<bool> * Nullable<bool> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ContainerRegistry.Models.Argument> * Nullable<int> * Microsoft.Azure.Management.ContainerRegistry.Models.AgentProperties * string * Microsoft.Azure.Management.ContainerRegistry.Models.Credentials -> Microsoft.Azure.Management.ContainerRegistry.Models.DockerBuildRequest
Public Sub New (dockerFilePath As String, platform As PlatformProperties, Optional isArchiveEnabled As Nullable(Of Boolean) = Nothing, Optional agentPoolName As String = Nothing, Optional logTemplate As String = Nothing, Optional imageNames As IList(Of String) = Nothing, Optional isPushEnabled As Nullable(Of Boolean) = Nothing, Optional noCache As Nullable(Of Boolean) = Nothing, Optional target As String = Nothing, Optional arguments As IList(Of Argument) = Nothing, Optional timeout As Nullable(Of Integer) = Nothing, Optional agentConfiguration As AgentProperties = Nothing, Optional sourceLocation As String = Nothing, Optional credentials As Credentials = Nothing)

参数

dockerFilePath
String

相对于源位置的 Docker 文件路径。

platform
PlatformProperties

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

isArchiveEnabled
Nullable<Boolean>

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

agentPoolName
String

运行的专用代理池。

logTemplate
String

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

imageNames
IList<String>

完全限定的映像名称,包括存储库和标记。

isPushEnabled
Nullable<Boolean>

此属性的值指示是否应将生成的映像推送到注册表。

noCache
Nullable<Boolean>

此属性的值指示是否启用图像缓存。

target
String

Docker 生成的目标生成阶段的名称。

arguments
IList<Argument>

在执行运行时要使用的重写参数的集合。

timeout
Nullable<Int32>

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

agentConfiguration
AgentProperties

运行代理的计算机配置。

sourceLocation
String

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

credentials
Credentials

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

适用于