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