public void GetSink() { // Snippet: GetSink(string,CallSettings) // Create client ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create(); // Initialize request argument(s) string formattedSinkName = ConfigServiceV2Client.FormatSinkName("[PROJECT]", "[SINK]"); // Make the request LogSink response = configServiceV2Client.GetSink(formattedSinkName); // End snippet }
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 }
public async Task UpdateSinkAsync() { // Snippet: UpdateSinkAsync(string,LogSink,CallSettings) // Additional: UpdateSinkAsync(string,LogSink,CancellationToken) // Create client ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create(); // Initialize request argument(s) string formattedSinkName = ConfigServiceV2Client.FormatSinkName("[PROJECT]", "[SINK]"); LogSink sink = new LogSink(); // Make the request LogSink response = await configServiceV2Client.UpdateSinkAsync(formattedSinkName, sink); // End snippet }