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