/// <summary>Snippet for UpdateSink</summary> public void UpdateSink2() { // Snippet: UpdateSink(SinkNameOneof,LogSink,CallSettings) // Create client ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create(); // Initialize request argument(s) SinkNameOneof sinkName = SinkNameOneof.From(new SinkName("[PROJECT]", "[SINK]")); LogSink sink = new LogSink(); // Make the request LogSink response = configServiceV2Client.UpdateSink(sinkName, sink); // End snippet }
public void UpdateSink() { // Snippet: UpdateSink(string,LogSink,CallSettings) // 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 = configServiceV2Client.UpdateSink(formattedSinkName, sink); // End snippet }
/// <summary>Snippet for UpdateSink</summary> public void UpdateSink_RequestObject() { // Snippet: UpdateSink(UpdateSinkRequest,CallSettings) // Create client ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create(); // Initialize request argument(s) UpdateSinkRequest request = new UpdateSinkRequest { SinkNameAsSinkNameOneof = SinkNameOneof.From(new SinkName("[PROJECT]", "[SINK]")), Sink = new LogSink(), }; // Make the request LogSink response = configServiceV2Client.UpdateSink(request); // End snippet }