-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelSchedule.go
162 lines (145 loc) · 5.58 KB
/
ModelSchedule.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
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
import "time"
// Schedule undocumented
type Schedule struct {
// Entity is the base model of Schedule
Entity
ODataType string `json:"@odata.type,omitempty"`
// Enabled undocumented
Enabled *bool `json:"enabled,omitempty"`
// OfferShiftRequestsEnabled undocumented
OfferShiftRequestsEnabled *bool `json:"offerShiftRequestsEnabled,omitempty"`
// OpenShiftsEnabled undocumented
OpenShiftsEnabled *bool `json:"openShiftsEnabled,omitempty"`
// ProvisionStatus undocumented
ProvisionStatus *OperationStatus `json:"provisionStatus,omitempty"`
// ProvisionStatusCode undocumented
ProvisionStatusCode *string `json:"provisionStatusCode,omitempty"`
// SwapShiftsRequestsEnabled undocumented
SwapShiftsRequestsEnabled *bool `json:"swapShiftsRequestsEnabled,omitempty"`
// TimeClockEnabled undocumented
TimeClockEnabled *bool `json:"timeClockEnabled,omitempty"`
// TimeOffRequestsEnabled undocumented
TimeOffRequestsEnabled *bool `json:"timeOffRequestsEnabled,omitempty"`
// TimeZone undocumented
TimeZone *string `json:"timeZone,omitempty"`
// WorkforceIntegrationIDs undocumented
WorkforceIntegrationIDs []string `json:"workforceIntegrationIds,omitempty"`
// OfferShiftRequests undocumented
OfferShiftRequests []OfferShiftRequestObject `json:"offerShiftRequests,omitempty"`
// OpenShiftChangeRequests undocumented
OpenShiftChangeRequests []OpenShiftChangeRequestObject `json:"openShiftChangeRequests,omitempty"`
// OpenShifts undocumented
OpenShifts []OpenShift `json:"openShifts,omitempty"`
// SchedulingGroups undocumented
SchedulingGroups []SchedulingGroup `json:"schedulingGroups,omitempty"`
// Shifts undocumented
Shifts []Shift `json:"shifts,omitempty"`
// SwapShiftsChangeRequests undocumented
SwapShiftsChangeRequests []SwapShiftsChangeRequestObject `json:"swapShiftsChangeRequests,omitempty"`
// TimeOffReasons undocumented
TimeOffReasons []TimeOffReason `json:"timeOffReasons,omitempty"`
// TimeOffRequests undocumented
TimeOffRequests []TimeOffRequestObject `json:"timeOffRequests,omitempty"`
// TimesOff undocumented
TimesOff []TimeOff `json:"timesOff,omitempty"`
}
func NewSchedule() (*Schedule, error) {
newSchedule := &Schedule{
ODataType: "#microsoft.graph.Schedule",
}
return newSchedule, nil
}
// ScheduleChangeRequestObject undocumented
type ScheduleChangeRequestObject struct {
// ChangeTrackedEntity is the base model of ScheduleChangeRequestObject
ChangeTrackedEntity
ODataType string `json:"@odata.type,omitempty"`
// AssignedTo undocumented
AssignedTo *ScheduleChangeRequestActor `json:"assignedTo,omitempty"`
// ManagerActionDateTime undocumented
ManagerActionDateTime *time.Time `json:"managerActionDateTime,omitempty"`
// ManagerActionMessage undocumented
ManagerActionMessage *string `json:"managerActionMessage,omitempty"`
// ManagerUserID undocumented
ManagerUserID *string `json:"managerUserId,omitempty"`
// SenderDateTime undocumented
SenderDateTime *time.Time `json:"senderDateTime,omitempty"`
// SenderMessage undocumented
SenderMessage *string `json:"senderMessage,omitempty"`
// SenderUserID undocumented
SenderUserID *string `json:"senderUserId,omitempty"`
// State undocumented
State *ScheduleChangeState `json:"state,omitempty"`
}
func NewScheduleChangeRequestObject() (*ScheduleChangeRequestObject, error) {
newScheduleChangeRequestObject := &ScheduleChangeRequestObject{
ODataType: "#microsoft.graph.ScheduleChangeRequestObject",
}
return newScheduleChangeRequestObject, nil
}
// ScheduleEntity undocumented
type ScheduleEntity struct {
// Object is the base model of ScheduleEntity
Object
ODataType string `json:"@odata.type,omitempty"`
// EndDateTime undocumented
EndDateTime *time.Time `json:"endDateTime,omitempty"`
// StartDateTime undocumented
StartDateTime *time.Time `json:"startDateTime,omitempty"`
// Theme undocumented
Theme *ScheduleEntityTheme `json:"theme,omitempty"`
}
func NewScheduleEntity() (*ScheduleEntity, error) {
newScheduleEntity := &ScheduleEntity{
ODataType: "#microsoft.graph.ScheduleEntity",
}
return newScheduleEntity, nil
}
// ScheduleInformation undocumented
type ScheduleInformation struct {
// Object is the base model of ScheduleInformation
Object
ODataType string `json:"@odata.type,omitempty"`
// AvailabilityView undocumented
AvailabilityView *string `json:"availabilityView,omitempty"`
// Error undocumented
Error *FreeBusyError `json:"error,omitempty"`
// ScheduleID undocumented
ScheduleID *string `json:"scheduleId,omitempty"`
// ScheduleItems undocumented
ScheduleItems []ScheduleItem `json:"scheduleItems,omitempty"`
// WorkingHours undocumented
WorkingHours *WorkingHours `json:"workingHours,omitempty"`
}
func NewScheduleInformation() (*ScheduleInformation, error) {
newScheduleInformation := &ScheduleInformation{
ODataType: "#microsoft.graph.ScheduleInformation",
}
return newScheduleInformation, nil
}
// ScheduleItem undocumented
type ScheduleItem struct {
// Object is the base model of ScheduleItem
Object
ODataType string `json:"@odata.type,omitempty"`
// End undocumented
End *DateTimeTimeZone `json:"end,omitempty"`
// IsPrivate undocumented
IsPrivate *bool `json:"isPrivate,omitempty"`
// Location undocumented
Location *string `json:"location,omitempty"`
// Start undocumented
Start *DateTimeTimeZone `json:"start,omitempty"`
// Status undocumented
Status *FreeBusyStatus `json:"status,omitempty"`
// Subject undocumented
Subject *string `json:"subject,omitempty"`
}
func NewScheduleItem() (*ScheduleItem, error) {
newScheduleItem := &ScheduleItem{
ODataType: "#microsoft.graph.ScheduleItem",
}
return newScheduleItem, nil
}