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-accesstoken.json
More file actions
99 lines (99 loc) · 2.99 KB
/
gitlab-projects-accesstoken.json
File metadata and controls
99 lines (99 loc) · 2.99 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
{
"typeName": "GitLab::Projects::AccessToken",
"description": "Creates a Project Access Token in GitLab",
"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": {
"Name": {
"description": "The name of the Project Access Token to create.",
"type": "string",
"maxLength": 64
},
"ProjectId": {
"description": "The ID (numeric) of the project for which this Access Token is created. The project should exist and the user creating the Access Token should have rights to do this on this project.",
"type": "integer"
},
"AccessLevel" : {
"description": "A valid access level. Default value is 40 (Maintainer). Other allowed values are 10 (Guest), 20 (Reporter), and 30 (Developer).",
"type": "integer"
},
"Scopes": {
"description": "The scopes this Project Access Token will be used for. The list of supported scopes is in the official GitLab documentation here: https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html#scopes-for-a-project-access-token .",
"type": "array",
"insertionOrder": true,
"items": {
"type": "string"
}
},
"Id": {
"description": "The ID of the Project Access Token",
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"Name",
"ProjectId",
"Scopes"
],
"primaryIdentifier": [
"/properties/Id",
"/properties/ProjectId"
],
"readOnlyProperties": [
"/properties/Id"
],
"createOnlyProperties": [
"/properties/ProjectId",
"/properties/Name",
"/properties/Scopes"
],
"handlers": {
"create": {
"permissions": [
]
},
"read": {
"permissions": [
]
},
"delete": {
"permissions": [
]
},
"list": {
"permissions": [
]
}
},
"typeConfiguration": {
"properties": {
"GitLabAccess": {
"$ref": "#/definitions/GitLabAccess"
}
},
"additionalProperties": false,
"required": [
"GitLabAccess"
]
}
}