Webhooks Interface

public interface Webhooks

Resource collection API of Webhooks.

Method Summary

Modifier and Type Method and Description
abstract WebhookResource createOrUpdate(String reportName, String webhookName, WebhookResourceInner properties)

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

abstract Response<WebhookResource> createOrUpdateWithResponse(String reportName, String webhookName, WebhookResourceInner properties, Context context)

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

abstract void deleteByResourceGroup(String reportName, String webhookName)

Delete an AppComplianceAutomation webhook.

abstract Response<Void> deleteByResourceGroupWithResponse(String reportName, String webhookName, Context context)

Delete an AppComplianceAutomation webhook.

abstract WebhookResource get(String reportName, String webhookName)

Get the AppComplianceAutomation webhook and its properties.

abstract Response<WebhookResource> getWithResponse(String reportName, String webhookName, Context context)

Get the AppComplianceAutomation webhook and its properties.

abstract PagedIterable<WebhookResource> list(String reportName)

Get the AppComplianceAutomation webhook list.

abstract PagedIterable<WebhookResource> list(String reportName, String skipToken, Integer top, String select, String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context)

Get the AppComplianceAutomation webhook list.

abstract WebhookResource update(String reportName, String webhookName, WebhookResourcePatch properties)

Update an exiting AppComplianceAutomation webhook.

abstract Response<WebhookResource> updateWithResponse(String reportName, String webhookName, WebhookResourcePatch properties, Context context)

Update an exiting AppComplianceAutomation webhook.

Method Details

createOrUpdate

public abstract WebhookResource createOrUpdate(String reportName, String webhookName, WebhookResourceInner properties)

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

Parameters:

reportName - Report Name.
webhookName - Webhook Name.
properties - Parameters for the create or update operation.

Returns:

a class represent an AppComplianceAutomation webhook resource.

createOrUpdateWithResponse

public abstract Response<WebhookResource> createOrUpdateWithResponse(String reportName, String webhookName, WebhookResourceInner properties, Context context)

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

Parameters:

reportName - Report Name.
webhookName - Webhook Name.
properties - Parameters for the create or update operation.
context - The context to associate with this operation.

Returns:

a class represent an AppComplianceAutomation webhook resource along with Response<T>.

deleteByResourceGroup

public abstract void deleteByResourceGroup(String reportName, String webhookName)

Delete an AppComplianceAutomation webhook.

Parameters:

reportName - Report Name.
webhookName - Webhook Name.

deleteByResourceGroupWithResponse

public abstract Response<Void> deleteByResourceGroupWithResponse(String reportName, String webhookName, Context context)

Delete an AppComplianceAutomation webhook.

Parameters:

reportName - Report Name.
webhookName - Webhook Name.
context - The context to associate with this operation.

Returns:

get

public abstract WebhookResource get(String reportName, String webhookName)

Get the AppComplianceAutomation webhook and its properties.

Parameters:

reportName - Report Name.
webhookName - Webhook Name.

Returns:

the AppComplianceAutomation webhook and its properties.

getWithResponse

public abstract Response<WebhookResource> getWithResponse(String reportName, String webhookName, Context context)

Get the AppComplianceAutomation webhook and its properties.

Parameters:

reportName - Report Name.
webhookName - Webhook Name.
context - The context to associate with this operation.

Returns:

the AppComplianceAutomation webhook and its properties along with Response<T>.

list

public abstract PagedIterable<WebhookResource> list(String reportName)

Get the AppComplianceAutomation webhook list.

Parameters:

reportName - Report Name.

Returns:

the AppComplianceAutomation webhook list as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<WebhookResource> list(String reportName, String skipToken, Integer top, String select, String filter, String orderby, String offerGuid, String reportCreatorTenantId, Context context)

Get the AppComplianceAutomation webhook list.

Parameters:

reportName - Report Name.
skipToken - Skip over when retrieving results.
top - Number of elements to return when retrieving results.
select - OData Select statement. Limits the properties on each entry to just those requested, e.g. ?$select=reportName,id.
filter - The filter to apply on the operation.
orderby - OData order by query option.
offerGuid - The offerGuid which mapping to the reports.
reportCreatorTenantId - The tenant id of the report creator.
context - The context to associate with this operation.

Returns:

the AppComplianceAutomation webhook list as paginated response with PagedIterable<T>.

update

public abstract WebhookResource update(String reportName, String webhookName, WebhookResourcePatch properties)

Update an exiting AppComplianceAutomation webhook.

Parameters:

reportName - Report Name.
webhookName - Webhook Name.
properties - Parameters for the create or update operation.

Returns:

a class represent an AppComplianceAutomation webhook resource.

updateWithResponse

public abstract Response<WebhookResource> updateWithResponse(String reportName, String webhookName, WebhookResourcePatch properties, Context context)

Update an exiting AppComplianceAutomation webhook.

Parameters:

reportName - Report Name.
webhookName - Webhook Name.
properties - Parameters for the create or update operation.
context - The context to associate with this operation.

Returns:

a class represent an AppComplianceAutomation webhook resource along with Response<T>.

Applies to