/// <summary>Snippet for CreateSink</summary> public void CreateSink() { // Snippet: CreateSink(ParentNameOneof,LogSink,CallSettings) // Create client ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create(); // Initialize request argument(s) ParentNameOneof parent = ParentNameOneof.From(new ProjectName("[PROJECT]")); LogSink sink = new LogSink(); // Make the request LogSink response = configServiceV2Client.CreateSink(parent, sink); // End snippet }
public void CreateSink() { // Snippet: CreateSink(string,LogSink,CallSettings) // Create client ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create(); // Initialize request argument(s) string formattedParent = ConfigServiceV2Client.FormatParentName("[PROJECT]"); LogSink sink = new LogSink(); // Make the request LogSink response = configServiceV2Client.CreateSink(formattedParent, sink); // End snippet }
/// <summary>Snippet for CreateSink</summary> public void CreateSink_RequestObject() { // Snippet: CreateSink(CreateSinkRequest,CallSettings) // Create client ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create(); // Initialize request argument(s) CreateSinkRequest request = new CreateSinkRequest { ParentAsParentNameOneof = ParentNameOneof.From(new ProjectName("[PROJECT]")), Sink = new LogSink(), }; // Make the request LogSink response = configServiceV2Client.CreateSink(request); // End snippet }