forked from railwayapp/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.go
More file actions
34 lines (29 loc) · 921 Bytes
/
Copy pathproject.go
File metadata and controls
34 lines (29 loc) · 921 Bytes
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
package entity
type CreateProjectRequest struct {
Name *string // Optional
Description *string // Optional
Plugins []string // Optional
}
type CreateProjectFromTemplateRequest struct {
Name string // Required
Owner string // Required
Template string // Required
IsPrivate bool // Optional
Plugins []string // Optional
Variables map[string]string // Optional
}
type UpdateProjectRequest struct {
Id string // Required
Name *string // Optional
Description *string // Optional
}
type CreateProjectFromTemplateResult struct {
WorkflowID string
ProjectID string
}
type Project struct {
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Environments []*Environment `json:"environments,omitempty"`
Plugins []*Plugin `json:"plugins,omitempty"`
}