-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelApproval.go
76 lines (65 loc) · 2.23 KB
/
ModelApproval.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
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
import "time"
// Approval undocumented
type Approval struct {
// Entity is the base model of Approval
Entity
ODataType string `json:"@odata.type,omitempty"`
// Stages undocumented
Stages []ApprovalStage `json:"stages,omitempty"`
}
func NewApproval() (*Approval, error) {
newApproval := &Approval{
ODataType: "#microsoft.graph.Approval",
}
return newApproval, nil
}
// ApprovalSettings undocumented
type ApprovalSettings struct {
// Object is the base model of ApprovalSettings
Object
ODataType string `json:"@odata.type,omitempty"`
// ApprovalMode undocumented
ApprovalMode *string `json:"approvalMode,omitempty"`
// ApprovalStages undocumented
ApprovalStages []UnifiedApprovalStage `json:"approvalStages,omitempty"`
// IsApprovalRequired undocumented
IsApprovalRequired *bool `json:"isApprovalRequired,omitempty"`
// IsApprovalRequiredForExtension undocumented
IsApprovalRequiredForExtension *bool `json:"isApprovalRequiredForExtension,omitempty"`
// IsRequestorJustificationRequired undocumented
IsRequestorJustificationRequired *bool `json:"isRequestorJustificationRequired,omitempty"`
}
func NewApprovalSettings() (*ApprovalSettings, error) {
newApprovalSettings := &ApprovalSettings{
ODataType: "#microsoft.graph.ApprovalSettings",
}
return newApprovalSettings, nil
}
// ApprovalStage undocumented
type ApprovalStage struct {
// Entity is the base model of ApprovalStage
Entity
ODataType string `json:"@odata.type,omitempty"`
// AssignedToMe undocumented
AssignedToMe *bool `json:"assignedToMe,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// Justification undocumented
Justification *string `json:"justification,omitempty"`
// ReviewedBy undocumented
ReviewedBy *Identity `json:"reviewedBy,omitempty"`
// ReviewedDateTime undocumented
ReviewedDateTime *time.Time `json:"reviewedDateTime,omitempty"`
// ReviewResult undocumented
ReviewResult *string `json:"reviewResult,omitempty"`
// Status undocumented
Status *string `json:"status,omitempty"`
}
func NewApprovalStage() (*ApprovalStage, error) {
newApprovalStage := &ApprovalStage{
ODataType: "#microsoft.graph.ApprovalStage",
}
return newApprovalStage, nil
}