ArmSecurityInsightsModelFactory.SourceControlWebhook Method

Definition

Initializes a new instance of SourceControlWebhook.

public static Azure.ResourceManager.SecurityInsights.Models.SourceControlWebhook SourceControlWebhook (string webhookId = default, Uri webhookUri = default, DateTimeOffset? webhookSecretUpdateOn = default, bool? isWebhookSecretRotated = default);
static member SourceControlWebhook : string * Uri * Nullable<DateTimeOffset> * Nullable<bool> -> Azure.ResourceManager.SecurityInsights.Models.SourceControlWebhook
Public Shared Function SourceControlWebhook (Optional webhookId As String = Nothing, Optional webhookUri As Uri = Nothing, Optional webhookSecretUpdateOn As Nullable(Of DateTimeOffset) = Nothing, Optional isWebhookSecretRotated As Nullable(Of Boolean) = Nothing) As SourceControlWebhook

Parameters

webhookId
String

Unique identifier for the webhook.

webhookUri
Uri

URL that gets invoked by the webhook.

webhookSecretUpdateOn
Nullable<DateTimeOffset>

Time when the webhook secret was updated.

isWebhookSecretRotated
Nullable<Boolean>

A flag to instruct the backend service to rotate webhook secret.

Returns

A new SourceControlWebhook instance for mocking.

Applies to