-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelTime.go
178 lines (149 loc) · 4.58 KB
/
ModelTime.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
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
import "time"
// TimeConstraint undocumented
type TimeConstraint struct {
// Object is the base model of TimeConstraint
Object
ODataType string `json:"@odata.type,omitempty"`
// ActivityDomain undocumented
ActivityDomain *ActivityDomain `json:"activityDomain,omitempty"`
// TimeSlots undocumented
TimeSlots []TimeSlot `json:"timeSlots,omitempty"`
}
func NewTimeConstraint() (*TimeConstraint, error) {
newTimeConstraint := &TimeConstraint{
ODataType: "#microsoft.graph.TimeConstraint",
}
return newTimeConstraint, nil
}
// TimeOff undocumented
type TimeOff struct {
// ChangeTrackedEntity is the base model of TimeOff
ChangeTrackedEntity
ODataType string `json:"@odata.type,omitempty"`
// DraftTimeOff undocumented
DraftTimeOff *TimeOffItem `json:"draftTimeOff,omitempty"`
// SharedTimeOff undocumented
SharedTimeOff *TimeOffItem `json:"sharedTimeOff,omitempty"`
// UserID undocumented
UserID *string `json:"userId,omitempty"`
}
func NewTimeOff() (*TimeOff, error) {
newTimeOff := &TimeOff{
ODataType: "#microsoft.graph.TimeOff",
}
return newTimeOff, nil
}
// TimeOffItem undocumented
type TimeOffItem struct {
// ScheduleEntity is the base model of TimeOffItem
ScheduleEntity
ODataType string `json:"@odata.type,omitempty"`
// TimeOffReasonID undocumented
TimeOffReasonID *string `json:"timeOffReasonId,omitempty"`
}
func NewTimeOffItem() (*TimeOffItem, error) {
newTimeOffItem := &TimeOffItem{
ODataType: "#microsoft.graph.TimeOffItem",
}
return newTimeOffItem, nil
}
// TimeOffReason undocumented
type TimeOffReason struct {
// ChangeTrackedEntity is the base model of TimeOffReason
ChangeTrackedEntity
ODataType string `json:"@odata.type,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// IconType undocumented
IconType *TimeOffReasonIconType `json:"iconType,omitempty"`
// IsActive undocumented
IsActive *bool `json:"isActive,omitempty"`
}
func NewTimeOffReason() (*TimeOffReason, error) {
newTimeOffReason := &TimeOffReason{
ODataType: "#microsoft.graph.TimeOffReason",
}
return newTimeOffReason, nil
}
// TimeOffRequestObject undocumented
type TimeOffRequestObject struct {
// ScheduleChangeRequestObject is the base model of TimeOffRequestObject
ScheduleChangeRequestObject
ODataType string `json:"@odata.type,omitempty"`
// EndDateTime undocumented
EndDateTime *time.Time `json:"endDateTime,omitempty"`
// StartDateTime undocumented
StartDateTime *time.Time `json:"startDateTime,omitempty"`
// TimeOffReasonID undocumented
TimeOffReasonID *string `json:"timeOffReasonId,omitempty"`
}
func NewTimeOffRequestObject() (*TimeOffRequestObject, error) {
newTimeOffRequestObject := &TimeOffRequestObject{
ODataType: "#microsoft.graph.TimeOffRequestObject",
}
return newTimeOffRequestObject, nil
}
// TimeRange undocumented
type TimeRange struct {
// Object is the base model of TimeRange
Object
ODataType string `json:"@odata.type,omitempty"`
// EndTime undocumented
EndTime *TimeOfDay `json:"endTime,omitempty"`
// StartTime undocumented
StartTime *TimeOfDay `json:"startTime,omitempty"`
}
func NewTimeRange() (*TimeRange, error) {
newTimeRange := &TimeRange{
ODataType: "#microsoft.graph.TimeRange",
}
return newTimeRange, nil
}
// TimeSlot undocumented
type TimeSlot struct {
// Object is the base model of TimeSlot
Object
ODataType string `json:"@odata.type,omitempty"`
// End undocumented
End *DateTimeTimeZone `json:"end,omitempty"`
// Start undocumented
Start *DateTimeTimeZone `json:"start,omitempty"`
}
func NewTimeSlot() (*TimeSlot, error) {
newTimeSlot := &TimeSlot{
ODataType: "#microsoft.graph.TimeSlot",
}
return newTimeSlot, nil
}
// TimeZoneBase undocumented
type TimeZoneBase struct {
// Object is the base model of TimeZoneBase
Object
ODataType string `json:"@odata.type,omitempty"`
// Name undocumented
Name *string `json:"name,omitempty"`
}
func NewTimeZoneBase() (*TimeZoneBase, error) {
newTimeZoneBase := &TimeZoneBase{
ODataType: "#microsoft.graph.TimeZoneBase",
}
return newTimeZoneBase, nil
}
// TimeZoneInformation undocumented
type TimeZoneInformation struct {
// Object is the base model of TimeZoneInformation
Object
ODataType string `json:"@odata.type,omitempty"`
// Alias undocumented
Alias *string `json:"alias,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
}
func NewTimeZoneInformation() (*TimeZoneInformation, error) {
newTimeZoneInformation := &TimeZoneInformation{
ODataType: "#microsoft.graph.TimeZoneInformation",
}
return newTimeZoneInformation, nil
}