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