-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelShift.go
114 lines (97 loc) · 3.06 KB
/
ModelShift.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
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
import "time"
// Shift undocumented
type Shift struct {
// ChangeTrackedEntity is the base model of Shift
ChangeTrackedEntity
ODataType string `json:"@odata.type,omitempty"`
// DraftShift undocumented
DraftShift *ShiftItem `json:"draftShift,omitempty"`
// SchedulingGroupID undocumented
SchedulingGroupID *string `json:"schedulingGroupId,omitempty"`
// SharedShift undocumented
SharedShift *ShiftItem `json:"sharedShift,omitempty"`
// UserID undocumented
UserID *string `json:"userId,omitempty"`
}
func NewShift() (*Shift, error) {
newShift := &Shift{
ODataType: "#microsoft.graph.Shift",
}
return newShift, nil
}
// ShiftActivity undocumented
type ShiftActivity struct {
// Object is the base model of ShiftActivity
Object
ODataType string `json:"@odata.type,omitempty"`
// Code undocumented
Code *string `json:"code,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// EndDateTime undocumented
EndDateTime *time.Time `json:"endDateTime,omitempty"`
// IsPaid undocumented
IsPaid *bool `json:"isPaid,omitempty"`
// StartDateTime undocumented
StartDateTime *time.Time `json:"startDateTime,omitempty"`
// Theme undocumented
Theme *ScheduleEntityTheme `json:"theme,omitempty"`
}
func NewShiftActivity() (*ShiftActivity, error) {
newShiftActivity := &ShiftActivity{
ODataType: "#microsoft.graph.ShiftActivity",
}
return newShiftActivity, nil
}
// ShiftAvailability undocumented
type ShiftAvailability struct {
// Object is the base model of ShiftAvailability
Object
ODataType string `json:"@odata.type,omitempty"`
// Recurrence undocumented
Recurrence *PatternedRecurrence `json:"recurrence,omitempty"`
// TimeSlots undocumented
TimeSlots []TimeRange `json:"timeSlots,omitempty"`
// TimeZone undocumented
TimeZone *string `json:"timeZone,omitempty"`
}
func NewShiftAvailability() (*ShiftAvailability, error) {
newShiftAvailability := &ShiftAvailability{
ODataType: "#microsoft.graph.ShiftAvailability",
}
return newShiftAvailability, nil
}
// ShiftItem undocumented
type ShiftItem struct {
// ScheduleEntity is the base model of ShiftItem
ScheduleEntity
ODataType string `json:"@odata.type,omitempty"`
// Activities undocumented
Activities []ShiftActivity `json:"activities,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// Notes undocumented
Notes *string `json:"notes,omitempty"`
}
func NewShiftItem() (*ShiftItem, error) {
newShiftItem := &ShiftItem{
ODataType: "#microsoft.graph.ShiftItem",
}
return newShiftItem, nil
}
// ShiftPreferences undocumented
type ShiftPreferences struct {
// ChangeTrackedEntity is the base model of ShiftPreferences
ChangeTrackedEntity
ODataType string `json:"@odata.type,omitempty"`
// Availability undocumented
Availability []ShiftAvailability `json:"availability,omitempty"`
}
func NewShiftPreferences() (*ShiftPreferences, error) {
newShiftPreferences := &ShiftPreferences{
ODataType: "#microsoft.graph.ShiftPreferences",
}
return newShiftPreferences, nil
}