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

IWithAttach<ParentT> 接口

定义

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

public interface IWithAttach<ParentT> : Microsoft.Azure.Management.ContainerRegistry.Fluent.Webhook.UpdateResource.IWithCustomHeaders<ParentT>, Microsoft.Azure.Management.ContainerRegistry.Fluent.Webhook.UpdateResource.IWithDefaultStatus<ParentT>, Microsoft.Azure.Management.ContainerRegistry.Fluent.Webhook.UpdateResource.IWithOrWithoutTags<ParentT>, Microsoft.Azure.Management.ContainerRegistry.Fluent.Webhook.UpdateResource.IWithRepositoriesScope<ParentT>, Microsoft.Azure.Management.ContainerRegistry.Fluent.Webhook.UpdateResource.IWithServiceUri<ParentT>, Microsoft.Azure.Management.ContainerRegistry.Fluent.Webhook.UpdateResource.IWithTriggerWhen<ParentT>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ChildResourceActions.ISettable<ParentT>
type IWithAttach<'ParentT> = interface
    interface IWithTriggerWhen<'ParentT>
    interface IWithServiceUri<'ParentT>
    interface IWithCustomHeaders<'ParentT>
    interface IWithRepositoriesScope<'ParentT>
    interface IWithDefaultStatus<'ParentT>
    interface IWithOrWithoutTags<'ParentT>
    interface ISettable<'ParentT>
Public Interface IWithAttach(Of ParentT)
Implements ISettable(Of ParentT), IWithCustomHeaders(Of ParentT), IWithDefaultStatus(Of ParentT), IWithOrWithoutTags(Of ParentT), IWithRepositoriesScope(Of ParentT), IWithServiceUri(Of ParentT), IWithTriggerWhen(Of ParentT)

类型参数

ParentT

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

派生
实现

方法

Enabled(Boolean)

汇报 Webhook 的默认状态。

(继承自 IWithDefaultStatus<ParentT>)
Parent()

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

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

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

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

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

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

从资源中删除标记。

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

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

(继承自 IWithRepositoriesScope<ParentT>)
WithServiceUri(String)

指定发布通知的服务 URI。

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

将标记添加到 Webhook。

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

指定 Webhook 的标记。

(继承自 IWithOrWithoutTags<ParentT>)
WithTriggerWhen(String[])

指定将触发 Webhook 通知的操作。

(继承自 IWithTriggerWhen<ParentT>)

适用于