forked from aws-ia/cloudformation-gitlab-resource-providers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitlab-projects-usermemberofproject.json
More file actions
109 lines (109 loc) · 3.18 KB
/
gitlab-projects-usermemberofproject.json
File metadata and controls
109 lines (109 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"typeName": "GitLab::Projects::UserMemberOfProject",
"description": "Adds a user as a member of a GitLab project",
"sourceUrl": "https://github.com/aws-ia/cloudformation-gitlab-resource-providers.git",
"documentationUrl": "https://github.com/aws-ia/cloudformation-gitlab-resource-providers",
"definitions": {
"GitLabAccess": {
"type": "object",
"properties": {
"Url": {
"description": "URL of the GitLab Server",
"type": "string"
},
"AccessToken": {
"description": "Access Token",
"type": "string"
}
},
"required": [
"AccessToken"
],
"additionalProperties": false
}
},
"properties": {
"MembershipId": {
"description": "Unique identifier for this membership resource, constructed by concatenating the other IDs",
"type": "string"
},
"ProjectId": {
"description": "ID of the project to which the user should be added",
"type": "integer"
},
"UserId": {
"description": "ID (numeric) of the user to add to the project. Either this or Username but not both should be supplied.",
"type": "integer"
},
"Username": {
"description": "Username (handle, e.g. often written starting with '@') of the user to add to the project. Either this or the UserId but not both should be supplied.",
"type": "string"
},
"AccessLevel": {
"description": "The access level to grant to this user on the project, e.g. 'Guest', 'Developer', or 'Maintainer'. Note the GitLab API may not allow all values.",
"type": "string",
"enum": [
"None",
"Minimal Access",
"Guest",
"Reporter",
"Developer",
"Maintainer",
"Owner",
"Admin"
]
}
},
"additionalProperties": false,
"required": [
"ProjectId",
"AccessLevel"
],
"readOnlyProperties": [
"/properties/MembershipId"
],
"createOnlyProperties": [
"/properties/ProjectId",
"/properties/UserId",
"/properties/Username"
],
"primaryIdentifier": [
"/properties/ProjectId",
"/properties/MembershipId",
"/properties/UserId",
"/properties/Username"
],
"handlers": {
"create": {
"permissions": [
]
},
"read": {
"permissions": [
]
},
"update": {
"permissions": [
]
},
"delete": {
"permissions": [
]
},
"list": {
"permissions": [
]
}
},
"typeConfiguration": {
"properties": {
"GitLabAccess": {
"$ref": "#/definitions/GitLabAccess"
}
},
"additionalProperties": false,
"required": [
"GitLabAccess"
]
}
}