/// <summary>Snippet for ListAsync</summary> public async Task ListAsync() { // Snippet: ListAsync(string, string, CallSettings) // Additional: ListAsync(string, string, CancellationToken) // Create client NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync(); // Initialize request argument(s) string project = ""; string zone = ""; // Make the request NodeGroupList response = await nodeGroupsClient.ListAsync(project, zone); // End snippet }
/// <summary>Snippet for ListAsync</summary> public async Task ListRequestObjectAsync() { // Snippet: ListAsync(ListNodeGroupsRequest, CallSettings) // Additional: ListAsync(ListNodeGroupsRequest, CancellationToken) // Create client NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync(); // Initialize request argument(s) ListNodeGroupsRequest request = new ListNodeGroupsRequest { Zone = "", PageToken = "", MaxResults = 0U, Filter = "", OrderBy = "", Project = "", ReturnPartialSuccess = false, }; // Make the request NodeGroupList response = await nodeGroupsClient.ListAsync(request); // End snippet }