-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy patheducation_add_to_calendar_options.go
45 lines (42 loc) · 1.63 KB
/
education_add_to_calendar_options.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
// Code generated by Microsoft Kiota - DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package models
type EducationAddToCalendarOptions int
const (
NONE_EDUCATIONADDTOCALENDAROPTIONS EducationAddToCalendarOptions = iota
STUDENTSANDPUBLISHER_EDUCATIONADDTOCALENDAROPTIONS
STUDENTSANDTEAMOWNERS_EDUCATIONADDTOCALENDAROPTIONS
UNKNOWNFUTUREVALUE_EDUCATIONADDTOCALENDAROPTIONS
STUDENTSONLY_EDUCATIONADDTOCALENDAROPTIONS
)
func (i EducationAddToCalendarOptions) String() string {
return []string{"none", "studentsAndPublisher", "studentsAndTeamOwners", "unknownFutureValue", "studentsOnly"}[i]
}
func ParseEducationAddToCalendarOptions(v string) (any, error) {
result := NONE_EDUCATIONADDTOCALENDAROPTIONS
switch v {
case "none":
result = NONE_EDUCATIONADDTOCALENDAROPTIONS
case "studentsAndPublisher":
result = STUDENTSANDPUBLISHER_EDUCATIONADDTOCALENDAROPTIONS
case "studentsAndTeamOwners":
result = STUDENTSANDTEAMOWNERS_EDUCATIONADDTOCALENDAROPTIONS
case "unknownFutureValue":
result = UNKNOWNFUTUREVALUE_EDUCATIONADDTOCALENDAROPTIONS
case "studentsOnly":
result = STUDENTSONLY_EDUCATIONADDTOCALENDAROPTIONS
default:
return nil, nil
}
return &result, nil
}
func SerializeEducationAddToCalendarOptions(values []EducationAddToCalendarOptions) []string {
result := make([]string, len(values))
for i, v := range values {
result[i] = v.String()
}
return result
}
func (i EducationAddToCalendarOptions) isMultiValue() bool {
return false
}