-
Notifications
You must be signed in to change notification settings - Fork 11
/
cedar_deployment.go
49 lines (44 loc) · 1.63 KB
/
cedar_deployment.go
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
package models
import (
"github.com/guregu/null/zero"
)
// CedarDataCenter represents a single DataCenter object returned from the CEDAR API
type CedarDataCenter struct {
ID zero.String
Name zero.String
Version zero.String
Description zero.String
State zero.String // example: "Active" - NOT geographical state
Status zero.String
StartDate zero.Time
EndDate zero.Time
// address components
Address1 zero.String
Address2 zero.String
City zero.String
AddressState zero.String
Zip zero.String
}
// CedarDeployment represents a single Deployment object returned from the CEDAR API
type CedarDeployment struct {
// always-present fields
ID zero.String
Name zero.String
SystemID zero.String
// possibly-null fields
StartDate zero.Time
EndDate zero.Time
IsHotSite zero.String // currently echoes CEDAR data exactly. in the future, this could potentially be nullable Bool; sample values from CEDAR seem to be "Yes" or null
Description zero.String
ContractorName zero.String
SystemVersion zero.String
HasProductionData zero.String // currently echoes CEDAR data exactly. in the future, this could potentially be nullable Bool; sample values from CEDAR seem to be "Yes" or null
ReplicatedSystemElements []string
DeploymentType zero.String
SystemName zero.String
DeploymentElementID zero.String
State zero.String
Status zero.String
WanType zero.String
DataCenter *CedarDataCenter
}