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