Edit

Share via


BuildHttpClientBase.RestoreWebhooksAsync Method

Definition

Overloads

RestoreWebhooksAsync(List<DefinitionTriggerType>, String, String, Nullable<Guid>, String, Object, CancellationToken)

[Preview API] Recreates the webhooks for the specified triggers in the given source code repository.

RestoreWebhooksAsync(List<DefinitionTriggerType>, Guid, String, Nullable<Guid>, String, Object, CancellationToken)

[Preview API] Recreates the webhooks for the specified triggers in the given source code repository.

RestoreWebhooksAsync(List<DefinitionTriggerType>, String, String, Nullable<Guid>, String, Object, CancellationToken)

[Preview API] Recreates the webhooks for the specified triggers in the given source code repository.

public virtual System.Threading.Tasks.Task RestoreWebhooksAsync (System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.DefinitionTriggerType> triggerTypes, string project, string providerName, Nullable<Guid> serviceEndpointId = null, string repository = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member RestoreWebhooksAsync : System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.DefinitionTriggerType> * string * string * Nullable<Guid> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RestoreWebhooksAsync : System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.DefinitionTriggerType> * string * string * Nullable<Guid> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

triggerTypes
List<DefinitionTriggerType>

The types of triggers to restore webhooks for.

project
String

Project ID or project name

providerName
String

The name of the source provider.

serviceEndpointId
Nullable<Guid>

If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.

repository
String

If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to

RestoreWebhooksAsync(List<DefinitionTriggerType>, Guid, String, Nullable<Guid>, String, Object, CancellationToken)

[Preview API] Recreates the webhooks for the specified triggers in the given source code repository.

public virtual System.Threading.Tasks.Task RestoreWebhooksAsync (System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.DefinitionTriggerType> triggerTypes, Guid project, string providerName, Nullable<Guid> serviceEndpointId = null, string repository = null, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member RestoreWebhooksAsync : System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.DefinitionTriggerType> * Guid * string * Nullable<Guid> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RestoreWebhooksAsync : System.Collections.Generic.List<Microsoft.TeamFoundation.Build.WebApi.DefinitionTriggerType> * Guid * string * Nullable<Guid> * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

triggerTypes
List<DefinitionTriggerType>

The types of triggers to restore webhooks for.

project
Guid

Project ID

providerName
String

The name of the source provider.

serviceEndpointId
Nullable<Guid>

If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit.

repository
String

If specified, the vendor-specific identifier or the name of the repository to get webhooks. Can only be omitted for providers that do not support multiple repositories.

userState
Object
cancellationToken
CancellationToken

The cancellation token to cancel operation.

Returns

Applies to