/// <summary>Snippet for DeleteWebhook</summary> public void DeleteWebhook() { // Snippet: DeleteWebhook(string, CallSettings) // Create client WebhooksClient webhooksClient = WebhooksClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/webhooks/[WEBHOOK]"; // Make the request webhooksClient.DeleteWebhook(name); // End snippet }
/// <summary>Snippet for DeleteWebhook</summary> public void DeleteWebhookResourceNames() { // Snippet: DeleteWebhook(WebhookName, CallSettings) // Create client WebhooksClient webhooksClient = WebhooksClient.Create(); // Initialize request argument(s) WebhookName name = WebhookName.FromProjectLocationAgentWebhook("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]"); // Make the request webhooksClient.DeleteWebhook(name); // End snippet }
/// <summary>Snippet for DeleteWebhook</summary> public void DeleteWebhookRequestObject() { // Snippet: DeleteWebhook(DeleteWebhookRequest, CallSettings) // Create client WebhooksClient webhooksClient = WebhooksClient.Create(); // Initialize request argument(s) DeleteWebhookRequest request = new DeleteWebhookRequest { WebhookName = WebhookName.FromProjectLocationAgentWebhook("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]"), Force = false, }; // Make the request webhooksClient.DeleteWebhook(request); // End snippet }