public void ListSinks()
        {
            // Snippet: ListSinks(string,string,int?,CallSettings)
            // Create client
            ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
            // Initialize request argument(s)
            string formattedParent = ConfigServiceV2Client.FormatParentName("[PROJECT]");
            // Make the request
            IPagedEnumerable <ListSinksResponse, LogSink> response =
                configServiceV2Client.ListSinks(formattedParent);

            // Iterate over all response items, lazily performing RPCs as required
            foreach (LogSink item in response)
            {
                // Do something with each item
                Console.WriteLine(item);
            }

            // Or iterate over fixed-sized pages, lazily performing RPCs as required
            int pageSize = 10;

            foreach (FixedSizePage <LogSink> page in response.AsPages().WithFixedSize(pageSize))
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (LogSink item in page)
                {
                    Console.WriteLine(item);
                }
            }
            // 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
 }
        public async Task CreateSinkAsync()
        {
            // Snippet: CreateSinkAsync(string,LogSink,CallSettings)
            // Additional: CreateSinkAsync(string,LogSink,CancellationToken)
            // Create client
            ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.Create();
            // Initialize request argument(s)
            string  formattedParent = ConfigServiceV2Client.FormatParentName("[PROJECT]");
            LogSink sink            = new LogSink();
            // Make the request
            LogSink response = await configServiceV2Client.CreateSinkAsync(formattedParent, sink);

            // End snippet
        }