/// <summary>Snippet for DeleteExclusionAsync</summary> public async Task DeleteExclusionAsync() { // Snippet: DeleteExclusionAsync(ExclusionNameOneof,CallSettings) // Additional: DeleteExclusionAsync(ExclusionNameOneof,CancellationToken) // Create client ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync(); // Initialize request argument(s) ExclusionNameOneof name = ExclusionNameOneof.From(new ExclusionName("[PROJECT]", "[EXCLUSION]")); // Make the request await configServiceV2Client.DeleteExclusionAsync(name); // End snippet }
/// <summary>Snippet for DeleteExclusionAsync</summary> public async Task DeleteExclusionAsync_RequestObject() { // Snippet: DeleteExclusionAsync(DeleteExclusionRequest,CallSettings) // Create client ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync(); // Initialize request argument(s) DeleteExclusionRequest request = new DeleteExclusionRequest { ExclusionNameOneof = ExclusionNameOneof.From(new ExclusionName("[PROJECT]", "[EXCLUSION]")), }; // Make the request await configServiceV2Client.DeleteExclusionAsync(request); // End snippet }