/// <summary>Snippet for GetTriggerAsync</summary> public async Task GetTriggerAsync() { // Snippet: GetTriggerAsync(string, CallSettings) // Additional: GetTriggerAsync(string, CancellationToken) // Create client EventarcClient eventarcClient = await EventarcClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/triggers/[TRIGGER]"; // Make the request Trigger response = await eventarcClient.GetTriggerAsync(name); // End snippet }
/// <summary>Snippet for GetTriggerAsync</summary> public async Task GetTriggerResourceNamesAsync() { // Snippet: GetTriggerAsync(TriggerName, CallSettings) // Additional: GetTriggerAsync(TriggerName, CancellationToken) // Create client EventarcClient eventarcClient = await EventarcClient.CreateAsync(); // Initialize request argument(s) TriggerName name = TriggerName.FromProjectLocationTrigger("[PROJECT]", "[LOCATION]", "[TRIGGER]"); // Make the request Trigger response = await eventarcClient.GetTriggerAsync(name); // End snippet }