public async Task DeleteSinkAsync() { // Snippet: DeleteSinkAsync(string,CallSettings) // Additional: DeleteSinkAsync(string,CancellationToken) // Create client ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create(); // Initialize request argument(s) string formattedSinkName = ConfigServiceV2Client.FormatSinkName("[PROJECT]", "[SINK]"); // Make the request await configServiceV2Client.DeleteSinkAsync(formattedSinkName); // End snippet }
/// <summary>Snippet for DeleteSinkAsync</summary> public async Task DeleteSinkAsync() { // Snippet: DeleteSinkAsync(SinkNameOneof,CallSettings) // Additional: DeleteSinkAsync(SinkNameOneof,CancellationToken) // Create client ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync(); // Initialize request argument(s) SinkNameOneof sinkName = SinkNameOneof.From(new SinkName("[PROJECT]", "[SINK]")); // Make the request await configServiceV2Client.DeleteSinkAsync(sinkName); // End snippet }
/// <summary>Snippet for DeleteSinkAsync</summary> public async Task DeleteSinkAsync_RequestObject() { // Snippet: DeleteSinkAsync(DeleteSinkRequest,CallSettings) // Create client ConfigServiceV2Client configServiceV2Client = await ConfigServiceV2Client.CreateAsync(); // Initialize request argument(s) DeleteSinkRequest request = new DeleteSinkRequest { SinkNameAsSinkNameOneof = SinkNameOneof.From(new SinkName("[PROJECT]", "[SINK]")), }; // Make the request await configServiceV2Client.DeleteSinkAsync(request); // End snippet }