/// <summary>Snippet for SetNodeTemplateAsync</summary> public async Task SetNodeTemplateAsync() { // Snippet: SetNodeTemplateAsync(string, string, string, NodeGroupsSetNodeTemplateRequest, CallSettings) // Additional: SetNodeTemplateAsync(string, string, string, NodeGroupsSetNodeTemplateRequest, CancellationToken) // Create client NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync(); // Initialize request argument(s) string project = ""; string zone = ""; string nodeGroup = ""; NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest(); // Make the request Operation response = await nodeGroupsClient.SetNodeTemplateAsync(project, zone, nodeGroup, nodeGroupsSetNodeTemplateRequestResource); // End snippet }
/// <summary>Snippet for SetNodeTemplateAsync</summary> public async Task SetNodeTemplateRequestObjectAsync() { // Snippet: SetNodeTemplateAsync(SetNodeTemplateNodeGroupRequest, CallSettings) // Additional: SetNodeTemplateAsync(SetNodeTemplateNodeGroupRequest, CancellationToken) // Create client NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync(); // Initialize request argument(s) SetNodeTemplateNodeGroupRequest request = new SetNodeTemplateNodeGroupRequest { Zone = "", RequestId = "", NodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest(), NodeGroup = "", Project = "", }; // Make the request Operation response = await nodeGroupsClient.SetNodeTemplateAsync(request); // End snippet }