你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DockerBuildRequest 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
必须对其执行运行的平台属性。
- agentPoolName
- String
运行的专用代理池。
- logTemplate
- String
描述运行日志项目的存储库和标记信息的模板。
- target
- String
Docker 生成的目标生成阶段的名称。
- agentConfiguration
- AgentProperties
运行代理的计算机配置。
- sourceLocation
- String
URL (源上下文的绝对或相对) 。 它可以是 tar 或 git 存储库的 URL。 如果它是相对 URL,则应从调用 listBuildSourceUploadUrl API 获取相对路径。
- credentials
- Credentials
描述调用此运行时将使用的一组凭据的属性。