class ProjectsLocationsAgentsWebhooks extends Resource (View source)

The "webhooks" collection of methods.

Typical usage is:

 $dialogflowService = new Google\Service\Dialogflow(...);
 $webhooks = $dialogflowService->projects_locations_agents_webhooks;

Methods

create(string $parent, GoogleCloudDialogflowCxV3Webhook $postBody, array $optParams = [])

Creates a webhook in the specified agent. (webhooks.create)

delete(string $name, array $optParams = [])

Deletes the specified webhook. (webhooks.delete)

get(string $name, array $optParams = [])

Retrieves the specified webhook. (webhooks.get)

listProjectsLocationsAgentsWebhooks(string $parent, array $optParams = [])

Returns the list of all webhooks in the specified agent.

patch(string $name, GoogleCloudDialogflowCxV3Webhook $postBody, array $optParams = [])

Updates the specified webhook. (webhooks.patch)

Details

GoogleCloudDialogflowCxV3Webhook create(string $parent, GoogleCloudDialogflowCxV3Webhook $postBody, array $optParams = [])

Creates a webhook in the specified agent. (webhooks.create)

Parameters

string $parent

Required. The agent to create a webhook for. Format: projects//locations//agents/.

GoogleCloudDialogflowCxV3Webhook $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3Webhook

Exceptions

Exception

GoogleProtobufEmpty delete(string $name, array $optParams = [])

Deletes the specified webhook. (webhooks.delete)

Parameters

string $name

Required. The name of the webhook to delete. Format: projects//locations//agents//webhooks/.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

GoogleCloudDialogflowCxV3Webhook get(string $name, array $optParams = [])

Retrieves the specified webhook. (webhooks.get)

Parameters

string $name

Required. The name of the webhook. Format: projects//locations//agents//webhooks/.

array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3Webhook

Exceptions

Exception

GoogleCloudDialogflowCxV3ListWebhooksResponse listProjectsLocationsAgentsWebhooks(string $parent, array $optParams = [])

Returns the list of all webhooks in the specified agent.

(webhooks.listProjectsLocationsAgentsWebhooks)

Parameters

string $parent

Required. The agent to list all webhooks for. Format: projects//locations//agents/.

array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3ListWebhooksResponse

Exceptions

Exception

GoogleCloudDialogflowCxV3Webhook patch(string $name, GoogleCloudDialogflowCxV3Webhook $postBody, array $optParams = [])

Updates the specified webhook. (webhooks.patch)

Parameters

string $name

The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: projects//locations//agents//webhooks/.

GoogleCloudDialogflowCxV3Webhook $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDialogflowCxV3Webhook

Exceptions

Exception