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

IWithAttach<ParentT> 接口

定义

Webhook 定义的最后一个阶段。 在此阶段,可以指定任何剩余的可选设置,也可以将 Webhook 定义附加到父容器组定义。

public interface IWithAttach<ParentT> : Microsoft.Azure.Management.ContainerRegistry.Fluent.Webhook.UpdateDefinition.IWithCustomHeaders<ParentT>, Microsoft.Azure.Management.ContainerRegistry.Fluent.Webhook.UpdateDefinition.IWithDefaultStatus<ParentT>, Microsoft.Azure.Management.ContainerRegistry.Fluent.Webhook.UpdateDefinition.IWithRepositoriesScope<ParentT>, Microsoft.Azure.Management.ContainerRegistry.Fluent.Webhook.UpdateDefinition.IWithTags<ParentT>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ChildResource.Update.IInUpdate<ParentT>
type IWithAttach<'ParentT> = interface
    interface IWithCustomHeaders<'ParentT>
    interface IWithRepositoriesScope<'ParentT>
    interface IWithDefaultStatus<'ParentT>
    interface IWithTags<'ParentT>
    interface IInUpdate<'ParentT>
Public Interface IWithAttach(Of ParentT)
Implements IInUpdate(Of ParentT), IWithCustomHeaders(Of ParentT), IWithDefaultStatus(Of ParentT), IWithRepositoriesScope(Of ParentT), IWithTags(Of ParentT)

类型参数

ParentT

附加此定义后要返回到的父定义的阶段。

派生
实现

方法

Attach()

Webhook 定义的最后一个阶段。 在此阶段,可以指定任何剩余的可选设置,也可以将 Webhook 定义附加到父容器组定义。

(继承自 IInUpdate<ParentT>)
Enabled(Boolean)

指定 Webhook 的默认状态;默认值为“enabled”。

(继承自 IWithDefaultStatus<ParentT>)
WithCustomHeader(String, String)

指定将添加到通知的自定义标头。 对此方法的连续调用将添加其他标头。

(继承自 IWithCustomHeaders<ParentT>)
WithCustomHeaders(IDictionary<String,String>)

指定将添加到通知的自定义标头。

(继承自 IWithCustomHeaders<ParentT>)
WithRepositoriesScope(String)

指定可以触发事件的存储库的范围。 例如,“foo:”表示存储库“foo”下所有标记的事件。 “foo:bar”仅表示“foo:bar”的事件。 “foo”等效于“foo:latest”,空表示所有事件。

(继承自 IWithRepositoriesScope<ParentT>)
WithTag(String, String)

将标记添加到 Webhook。

(继承自 IWithTags<ParentT>)
WithTags(IDictionary<String,String>)

指定 Webhook 的标记。

(继承自 IWithTags<ParentT>)

适用于