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