예제 #1
0
 /// <summary>Snippet for ListNodes</summary>
 public void ListNodesRequestObject()
 {
     // Snippet: ListNodes(ListNodesNodeGroupsRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     ListNodesNodeGroupsRequest request = new ListNodesNodeGroupsRequest
     {
         Zone                 = "",
         PageToken            = "",
         MaxResults           = 0U,
         Filter               = "",
         OrderBy              = "",
         NodeGroup            = "",
         Project              = "",
         ReturnPartialSuccess = false,
     };
     // Make the request
     NodeGroupsListNodes response = nodeGroupsClient.ListNodes(request);
     // End snippet
 }
예제 #2
0
        /// <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
        }