Webhook interface

Interface representing a Webhook.

Methods

createOrUpdate(string, string, WebhookResource, WebhookCreateOrUpdateOptionalParams)

Create a new AppComplianceAutomation webhook or update an exiting AppComplianceAutomation webhook.

delete(string, string, WebhookDeleteOptionalParams)

Delete an AppComplianceAutomation webhook.

get(string, string, WebhookGetOptionalParams)

Get the AppComplianceAutomation webhook and its properties.

list(string, WebhookListOptionalParams)

Get the AppComplianceAutomation webhook list.

update(string, string, WebhookResourcePatch, WebhookUpdateOptionalParams)

Update an exiting AppComplianceAutomation webhook.

Method Details

createOrUpdate(string, string, WebhookResource, WebhookCreateOrUpdateOptionalParams)

Create a new AppComplianceAutomation webhook or update an exiting AppComplianceAutomation webhook.

function createOrUpdate(reportName: string, webhookName: string, properties: WebhookResource, options?: WebhookCreateOrUpdateOptionalParams): Promise<WebhookResource>

Parameters

reportName

string

Report Name.

webhookName

string

Webhook Name.

properties
WebhookResource

Parameters for the create or update operation

options
WebhookCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<WebhookResource>

delete(string, string, WebhookDeleteOptionalParams)

Delete an AppComplianceAutomation webhook.

function delete(reportName: string, webhookName: string, options?: WebhookDeleteOptionalParams): Promise<void>

Parameters

reportName

string

Report Name.

webhookName

string

Webhook Name.

options
WebhookDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, WebhookGetOptionalParams)

Get the AppComplianceAutomation webhook and its properties.

function get(reportName: string, webhookName: string, options?: WebhookGetOptionalParams): Promise<WebhookResource>

Parameters

reportName

string

Report Name.

webhookName

string

Webhook Name.

options
WebhookGetOptionalParams

The options parameters.

Returns

Promise<WebhookResource>

list(string, WebhookListOptionalParams)

Get the AppComplianceAutomation webhook list.

function list(reportName: string, options?: WebhookListOptionalParams): PagedAsyncIterableIterator<WebhookResource, WebhookResource[], PageSettings>

Parameters

reportName

string

Report Name.

options
WebhookListOptionalParams

The options parameters.

Returns

update(string, string, WebhookResourcePatch, WebhookUpdateOptionalParams)

Update an exiting AppComplianceAutomation webhook.

function update(reportName: string, webhookName: string, properties: WebhookResourcePatch, options?: WebhookUpdateOptionalParams): Promise<WebhookResource>

Parameters

reportName

string

Report Name.

webhookName

string

Webhook Name.

properties
WebhookResourcePatch

Parameters for the create or update operation

options
WebhookUpdateOptionalParams

The options parameters.

Returns

Promise<WebhookResource>