/// <summary>Snippet for TestIamPermissionsAsync</summary> public async Task TestIamPermissionsAsync() { // Snippet: TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CallSettings) // Additional: TestIamPermissionsAsync(string, string, string, TestPermissionsRequest, CancellationToken) // Create client NodeTemplatesClient nodeTemplatesClient = await NodeTemplatesClient.CreateAsync(); // Initialize request argument(s) string project = ""; string region = ""; string resource = ""; TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest(); // Make the request TestPermissionsResponse response = await nodeTemplatesClient.TestIamPermissionsAsync(project, region, resource, testPermissionsRequestResource); // End snippet }
/// <summary>Snippet for TestIamPermissionsAsync</summary> public async Task TestIamPermissionsRequestObjectAsync() { // Snippet: TestIamPermissionsAsync(TestIamPermissionsNodeTemplateRequest, CallSettings) // Additional: TestIamPermissionsAsync(TestIamPermissionsNodeTemplateRequest, CancellationToken) // Create client NodeTemplatesClient nodeTemplatesClient = await NodeTemplatesClient.CreateAsync(); // Initialize request argument(s) TestIamPermissionsNodeTemplateRequest request = new TestIamPermissionsNodeTemplateRequest { Region = "", Resource = "", Project = "", TestPermissionsRequestResource = new TestPermissionsRequest(), }; // Make the request TestPermissionsResponse response = await nodeTemplatesClient.TestIamPermissionsAsync(request); // End snippet }