/// <summary>Snippet for AddNodesAsync</summary> public async Task AddNodesAsync() { // Snippet: AddNodesAsync(string, string, string, NodeGroupsAddNodesRequest, CallSettings) // Additional: AddNodesAsync(string, string, string, NodeGroupsAddNodesRequest, CancellationToken) // Create client NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync(); // Initialize request argument(s) string project = ""; string zone = ""; string nodeGroup = ""; NodeGroupsAddNodesRequest nodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest(); // Make the request Operation response = await nodeGroupsClient.AddNodesAsync(project, zone, nodeGroup, nodeGroupsAddNodesRequestResource); // End snippet }
/// <summary>Snippet for AddNodesAsync</summary> public async Task AddNodesRequestObjectAsync() { // Snippet: AddNodesAsync(AddNodesNodeGroupRequest, CallSettings) // Additional: AddNodesAsync(AddNodesNodeGroupRequest, CancellationToken) // Create client NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync(); // Initialize request argument(s) AddNodesNodeGroupRequest request = new AddNodesNodeGroupRequest { Zone = "", RequestId = "", NodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest(), NodeGroup = "", Project = "", }; // Make the request Operation response = await nodeGroupsClient.AddNodesAsync(request); // End snippet }