/// <summary>Snippet for SetIamPolicyAsync</summary> public async Task SetIamPolicyAsync() { // Snippet: SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CallSettings) // Additional: SetIamPolicyAsync(string, string, string, RegionSetPolicyRequest, CancellationToken) // Create client NodeTemplatesClient nodeTemplatesClient = await NodeTemplatesClient.CreateAsync(); // Initialize request argument(s) string project = ""; string region = ""; string resource = ""; RegionSetPolicyRequest regionSetPolicyRequestResource = new RegionSetPolicyRequest(); // Make the request Policy response = await nodeTemplatesClient.SetIamPolicyAsync(project, region, resource, regionSetPolicyRequestResource); // End snippet }
/// <summary>Snippet for SetIamPolicyAsync</summary> public async Task SetIamPolicyRequestObjectAsync() { // Snippet: SetIamPolicyAsync(SetIamPolicyNodeTemplateRequest, CallSettings) // Additional: SetIamPolicyAsync(SetIamPolicyNodeTemplateRequest, CancellationToken) // Create client NodeTemplatesClient nodeTemplatesClient = await NodeTemplatesClient.CreateAsync(); // Initialize request argument(s) SetIamPolicyNodeTemplateRequest request = new SetIamPolicyNodeTemplateRequest { Region = "", Resource = "", Project = "", RegionSetPolicyRequestResource = new RegionSetPolicyRequest(), }; // Make the request Policy response = await nodeTemplatesClient.SetIamPolicyAsync(request); // End snippet }