Skip to content

Commit 1d39479

Browse files
committed
Merge remote-tracking branch 'origin/main' into APP-443-Update-specific-application
# Conflicts: # application/cli/cli.go # application/commands/application/create_app_cmd.go # application/commands/application/create_app_cmd_test.go # application/commands/flags.go # application/service/applications/application_service.go # application/service/applications/application_service_test.go
2 parents 9741a02 + ed64b7d commit 1d39479

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package model
2+
3+
const (
4+
BusinessCriticalityUnspecified = "unspecified"
5+
BusinessCriticalityLow = "low"
6+
BusinessCriticalityMedium = "medium"
7+
BusinessCriticalityHigh = "high"
8+
BusinessCriticalityCritical = "critical"
9+
10+
MaturityLevelUnspecified = "unspecified"
11+
MaturityLevelExperimental = "experimental"
12+
MaturityLevelProduction = "production"
13+
MaturityLevelEndOfLife = "end_of_life"
14+
)
15+
16+
var (
17+
BusinessCriticalityValues = []string{
18+
BusinessCriticalityUnspecified,
19+
BusinessCriticalityLow,
20+
BusinessCriticalityMedium,
21+
BusinessCriticalityHigh,
22+
BusinessCriticalityCritical,
23+
}
24+
25+
MaturityLevelValues = []string{
26+
MaturityLevelUnspecified,
27+
MaturityLevelExperimental,
28+
MaturityLevelProduction,
29+
MaturityLevelEndOfLife,
30+
}
31+
)
32+
33+
type CreateAppRequest struct {
34+
ApplicationName string `json:"application_name"`
35+
ApplicationKey string `json:"application_key"`
36+
ProjectKey string `json:"project_key"`
37+
Description string `json:"description,omitempty"`
38+
MaturityLevel string `json:"maturity_level,omitempty"`
39+
BusinessCriticality string `json:"criticality,omitempty"`
40+
Labels map[string]string `json:"labels,omitempty"`
41+
UserOwners []string `json:"user_owners,omitempty"`
42+
GroupOwners []string `json:"group_owners,omitempty"`
43+
}

0 commit comments

Comments
 (0)