Interface WebhooksClient
public interface WebhooksClient
An instance of this class provides access to all the operations defined in WebhooksClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String automationAccountName, String webhookName, WebhookCreateOrUpdateParameters parameters) Create the webhook identified by webhook name.com.azure.core.http.rest.Response<WebhookInner>
createOrUpdateWithResponse
(String resourceGroupName, String automationAccountName, String webhookName, WebhookCreateOrUpdateParameters parameters, com.azure.core.util.Context context) Create the webhook identified by webhook name.void
Delete the webhook by name.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String automationAccountName, String webhookName, com.azure.core.util.Context context) Delete the webhook by name.generateUri
(String resourceGroupName, String automationAccountName) Generates a Uri for use in creating a webhook.com.azure.core.http.rest.Response<String>
generateUriWithResponse
(String resourceGroupName, String automationAccountName, com.azure.core.util.Context context) Generates a Uri for use in creating a webhook.Retrieve the webhook identified by webhook name.com.azure.core.http.rest.Response<WebhookInner>
getWithResponse
(String resourceGroupName, String automationAccountName, String webhookName, com.azure.core.util.Context context) Retrieve the webhook identified by webhook name.com.azure.core.http.rest.PagedIterable<WebhookInner>
listByAutomationAccount
(String resourceGroupName, String automationAccountName) Retrieve a list of webhooks.com.azure.core.http.rest.PagedIterable<WebhookInner>
listByAutomationAccount
(String resourceGroupName, String automationAccountName, String filter, com.azure.core.util.Context context) Retrieve a list of webhooks.update
(String resourceGroupName, String automationAccountName, String webhookName, WebhookUpdateParameters parameters) Update the webhook identified by webhook name.com.azure.core.http.rest.Response<WebhookInner>
updateWithResponse
(String resourceGroupName, String automationAccountName, String webhookName, WebhookUpdateParameters parameters, com.azure.core.util.Context context) Update the webhook identified by webhook name.
-
Method Details
-
generateUri
Generates a Uri for use in creating a webhook.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.- Returns:
- the response.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
generateUriWithResponse
com.azure.core.http.rest.Response<String> generateUriWithResponse(String resourceGroupName, String automationAccountName, com.azure.core.util.Context context) Generates a Uri for use in creating a webhook.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.context
- The context to associate with this operation.- Returns:
- the response body along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Delete the webhook by name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.webhookName
- The webhook name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String automationAccountName, String webhookName, com.azure.core.util.Context context) Delete the webhook by name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.webhookName
- The webhook name.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Retrieve the webhook identified by webhook name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.webhookName
- The webhook name.- Returns:
- definition of the webhook type.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<WebhookInner> getWithResponse(String resourceGroupName, String automationAccountName, String webhookName, com.azure.core.util.Context context) Retrieve the webhook identified by webhook name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.webhookName
- The webhook name.context
- The context to associate with this operation.- Returns:
- definition of the webhook type along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
WebhookInner createOrUpdate(String resourceGroupName, String automationAccountName, String webhookName, WebhookCreateOrUpdateParameters parameters) Create the webhook identified by webhook name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.webhookName
- The webhook name.parameters
- The create or update parameters for webhook.- Returns:
- definition of the webhook type.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<WebhookInner> createOrUpdateWithResponse(String resourceGroupName, String automationAccountName, String webhookName, WebhookCreateOrUpdateParameters parameters, com.azure.core.util.Context context) Create the webhook identified by webhook name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.webhookName
- The webhook name.parameters
- The create or update parameters for webhook.context
- The context to associate with this operation.- Returns:
- definition of the webhook type along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
WebhookInner update(String resourceGroupName, String automationAccountName, String webhookName, WebhookUpdateParameters parameters) Update the webhook identified by webhook name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.webhookName
- The webhook name.parameters
- The update parameters for webhook.- Returns:
- definition of the webhook type.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponse
com.azure.core.http.rest.Response<WebhookInner> updateWithResponse(String resourceGroupName, String automationAccountName, String webhookName, WebhookUpdateParameters parameters, com.azure.core.util.Context context) Update the webhook identified by webhook name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.webhookName
- The webhook name.parameters
- The update parameters for webhook.context
- The context to associate with this operation.- Returns:
- definition of the webhook type along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByAutomationAccount
com.azure.core.http.rest.PagedIterable<WebhookInner> listByAutomationAccount(String resourceGroupName, String automationAccountName) Retrieve a list of webhooks.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.- Returns:
- the response model for the list webhook operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByAutomationAccount
com.azure.core.http.rest.PagedIterable<WebhookInner> listByAutomationAccount(String resourceGroupName, String automationAccountName, String filter, com.azure.core.util.Context context) Retrieve a list of webhooks.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.filter
- The filter to apply on the operation.context
- The context to associate with this operation.- Returns:
- the response model for the list webhook operation as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-