From 91dd070fa8a24df1886d59eee6d484be4647c9e3 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 11 Jul 2025 08:54:41 -0600 Subject: feat: import project policies --- share/misc/entities_example.json | 58 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 share/misc/entities_example.json (limited to 'share/misc') diff --git a/share/misc/entities_example.json b/share/misc/entities_example.json new file mode 100644 index 00000000..c93f76f3 --- /dev/null +++ b/share/misc/entities_example.json @@ -0,0 +1,58 @@ +[ + { + "uid": {"type": "Project", "id": "123"}, + "attrs": { + "name": "GitLab", + "path": "gitlab", + "full_path": "gitlab-org/gitlab", + "visibility": "public", + "archived": false, + "members": ["User::\"1\"", "User::\"2\"", "User::\"3\""] + }, + "parents": [{"type": "Group", "id": "456"}] + }, + { + "uid": {"type": "Group", "id": "456"}, + "attrs": { + "name": "GitLab.org", + "path": "gitlab-org", + "full_path": "gitlab-org", + "visibility": "private", + "members": ["User::\"1\"", "User::\"2\""] + }, + "parents": [] + }, + { + "uid": {"type": "User", "id": "1"}, + "attrs": { + "username": "alice", + "access_level": 40, + "admin": false, + "blocked": false, + "external": false + }, + "parents": [] + }, + { + "uid": {"type": "User", "id": "2"}, + "attrs": { + "username": "bob", + "access_level": 30, + "admin": false, + "blocked": false, + "external": false + }, + "parents": [] + }, + { + "uid": {"type": "User", "id": "3"}, + "attrs": { + "username": "charlie", + "access_level": 20, + "admin": false, + "blocked": false, + "external": false + }, + "parents": [] + } +] \ No newline at end of file -- cgit v1.2.3