-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelSimulation.go
188 lines (165 loc) · 6.27 KB
/
ModelSimulation.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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
import "time"
// Simulation undocumented
type Simulation struct {
// Entity is the base model of Simulation
Entity
ODataType string `json:"@odata.type,omitempty"`
// AttackTechnique undocumented
AttackTechnique *SimulationAttackTechnique `json:"attackTechnique,omitempty"`
// AttackType undocumented
AttackType *SimulationAttackType `json:"attackType,omitempty"`
// AutomationID undocumented
AutomationID *string `json:"automationId,omitempty"`
// CompletionDateTime undocumented
CompletionDateTime *time.Time `json:"completionDateTime,omitempty"`
// CreatedBy undocumented
CreatedBy *EmailIdentity `json:"createdBy,omitempty"`
// CreatedDateTime undocumented
CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
// Description undocumented
Description *string `json:"description,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// IsAutomated undocumented
IsAutomated *bool `json:"isAutomated,omitempty"`
// LastModifiedBy undocumented
LastModifiedBy *EmailIdentity `json:"lastModifiedBy,omitempty"`
// LastModifiedDateTime undocumented
LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
// LaunchDateTime undocumented
LaunchDateTime *time.Time `json:"launchDateTime,omitempty"`
// PayloadDeliveryPlatform undocumented
PayloadDeliveryPlatform *PayloadDeliveryPlatform `json:"payloadDeliveryPlatform,omitempty"`
// Report undocumented
Report *SimulationReport `json:"report,omitempty"`
// Status undocumented
Status *SimulationStatus `json:"status,omitempty"`
}
func NewSimulation() (*Simulation, error) {
newSimulation := &Simulation{
ODataType: "#microsoft.graph.Simulation",
}
return newSimulation, nil
}
// SimulationAutomation undocumented
type SimulationAutomation struct {
// Entity is the base model of SimulationAutomation
Entity
ODataType string `json:"@odata.type,omitempty"`
// CreatedBy undocumented
CreatedBy *EmailIdentity `json:"createdBy,omitempty"`
// CreatedDateTime undocumented
CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
// Description undocumented
Description *string `json:"description,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// LastModifiedBy undocumented
LastModifiedBy *EmailIdentity `json:"lastModifiedBy,omitempty"`
// LastModifiedDateTime undocumented
LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
// LastRunDateTime undocumented
LastRunDateTime *time.Time `json:"lastRunDateTime,omitempty"`
// NextRunDateTime undocumented
NextRunDateTime *time.Time `json:"nextRunDateTime,omitempty"`
// Status undocumented
Status *SimulationAutomationStatus `json:"status,omitempty"`
// Runs undocumented
Runs []SimulationAutomationRun `json:"runs,omitempty"`
}
func NewSimulationAutomation() (*SimulationAutomation, error) {
newSimulationAutomation := &SimulationAutomation{
ODataType: "#microsoft.graph.SimulationAutomation",
}
return newSimulationAutomation, nil
}
// SimulationAutomationRun undocumented
type SimulationAutomationRun struct {
// Entity is the base model of SimulationAutomationRun
Entity
ODataType string `json:"@odata.type,omitempty"`
// EndDateTime undocumented
EndDateTime *time.Time `json:"endDateTime,omitempty"`
// SimulationID undocumented
SimulationID *string `json:"simulationId,omitempty"`
// StartDateTime undocumented
StartDateTime *time.Time `json:"startDateTime,omitempty"`
// Status undocumented
Status *SimulationAutomationRunStatus `json:"status,omitempty"`
}
func NewSimulationAutomationRun() (*SimulationAutomationRun, error) {
newSimulationAutomationRun := &SimulationAutomationRun{
ODataType: "#microsoft.graph.SimulationAutomationRun",
}
return newSimulationAutomationRun, nil
}
// SimulationEvent undocumented
type SimulationEvent struct {
// Object is the base model of SimulationEvent
Object
ODataType string `json:"@odata.type,omitempty"`
// Count undocumented
Count *int `json:"count,omitempty"`
// EventName undocumented
EventName *string `json:"eventName,omitempty"`
}
func NewSimulationEvent() (*SimulationEvent, error) {
newSimulationEvent := &SimulationEvent{
ODataType: "#microsoft.graph.SimulationEvent",
}
return newSimulationEvent, nil
}
// SimulationEventsContent undocumented
type SimulationEventsContent struct {
// Object is the base model of SimulationEventsContent
Object
ODataType string `json:"@odata.type,omitempty"`
// CompromisedRate undocumented
CompromisedRate *float64 `json:"compromisedRate,omitempty"`
// Events undocumented
Events []SimulationEvent `json:"events,omitempty"`
}
func NewSimulationEventsContent() (*SimulationEventsContent, error) {
newSimulationEventsContent := &SimulationEventsContent{
ODataType: "#microsoft.graph.SimulationEventsContent",
}
return newSimulationEventsContent, nil
}
// SimulationReport undocumented
type SimulationReport struct {
// Object is the base model of SimulationReport
Object
ODataType string `json:"@odata.type,omitempty"`
// Overview undocumented
Overview *SimulationReportOverview `json:"overview,omitempty"`
// SimulationUsers undocumented
SimulationUsers []UserSimulationDetails `json:"simulationUsers,omitempty"`
}
func NewSimulationReport() (*SimulationReport, error) {
newSimulationReport := &SimulationReport{
ODataType: "#microsoft.graph.SimulationReport",
}
return newSimulationReport, nil
}
// SimulationReportOverview undocumented
type SimulationReportOverview struct {
// Object is the base model of SimulationReportOverview
Object
ODataType string `json:"@odata.type,omitempty"`
// RecommendedActions undocumented
RecommendedActions []RecommendedAction `json:"recommendedActions,omitempty"`
// ResolvedTargetsCount undocumented
ResolvedTargetsCount *int `json:"resolvedTargetsCount,omitempty"`
// SimulationEventsContent undocumented
SimulationEventsContent *SimulationEventsContent `json:"simulationEventsContent,omitempty"`
// TrainingEventsContent undocumented
TrainingEventsContent *TrainingEventsContent `json:"trainingEventsContent,omitempty"`
}
func NewSimulationReportOverview() (*SimulationReportOverview, error) {
newSimulationReportOverview := &SimulationReportOverview{
ODataType: "#microsoft.graph.SimulationReportOverview",
}
return newSimulationReportOverview, nil
}