-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelMessage.go
294 lines (271 loc) · 10.9 KB
/
ModelMessage.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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
import "time"
// Message undocumented
type Message struct {
// OutlookItem is the base model of Message
OutlookItem
ODataType string `json:"@odata.type,omitempty"`
// BccRecipients undocumented
BccRecipients []Recipient `json:"bccRecipients,omitempty"`
// Body undocumented
Body *ItemBody `json:"body,omitempty"`
// BodyPreview undocumented
BodyPreview *string `json:"bodyPreview,omitempty"`
// CcRecipients undocumented
CcRecipients []Recipient `json:"ccRecipients,omitempty"`
// ConversationID undocumented
ConversationID *string `json:"conversationId,omitempty"`
// ConversationIndex undocumented
ConversationIndex *Binary `json:"conversationIndex,omitempty"`
// Flag undocumented
Flag *FollowupFlag `json:"flag,omitempty"`
// From undocumented
From *Recipient `json:"from,omitempty"`
// HasAttachments undocumented
HasAttachments *bool `json:"hasAttachments,omitempty"`
// Importance undocumented
Importance *Importance `json:"importance,omitempty"`
// InferenceClassification undocumented
InferenceClassification *InferenceClassificationType `json:"inferenceClassification,omitempty"`
// InternetMessageHeaders undocumented
InternetMessageHeaders []InternetMessageHeader `json:"internetMessageHeaders,omitempty"`
// InternetMessageID undocumented
InternetMessageID *string `json:"internetMessageId,omitempty"`
// IsDeliveryReceiptRequested undocumented
IsDeliveryReceiptRequested *bool `json:"isDeliveryReceiptRequested,omitempty"`
// IsDraft undocumented
IsDraft *bool `json:"isDraft,omitempty"`
// IsRead undocumented
IsRead *bool `json:"isRead,omitempty"`
// IsReadReceiptRequested undocumented
IsReadReceiptRequested *bool `json:"isReadReceiptRequested,omitempty"`
// ParentFolderID undocumented
ParentFolderID *string `json:"parentFolderId,omitempty"`
// ReceivedDateTime undocumented
ReceivedDateTime *time.Time `json:"receivedDateTime,omitempty"`
// ReplyTo undocumented
ReplyTo []Recipient `json:"replyTo,omitempty"`
// Sender undocumented
Sender *Recipient `json:"sender,omitempty"`
// SentDateTime undocumented
SentDateTime *time.Time `json:"sentDateTime,omitempty"`
// Subject undocumented
Subject *string `json:"subject,omitempty"`
// ToRecipients undocumented
ToRecipients []Recipient `json:"toRecipients,omitempty"`
// UniqueBody undocumented
UniqueBody *ItemBody `json:"uniqueBody,omitempty"`
// WebLink undocumented
WebLink *string `json:"webLink,omitempty"`
// Attachments undocumented
Attachments []Attachment `json:"attachments,omitempty"`
// Extensions undocumented
Extensions []Extension `json:"extensions,omitempty"`
// MultiValueExtendedProperties undocumented
MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
// SingleValueExtendedProperties undocumented
SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
}
func NewMessage() (*Message, error) {
newMessage := &Message{
ODataType: "#microsoft.graph.Message",
}
return newMessage, nil
}
// MessagePinnedEventMessageDetail undocumented
type MessagePinnedEventMessageDetail struct {
// EventMessageDetail is the base model of MessagePinnedEventMessageDetail
EventMessageDetail
ODataType string `json:"@odata.type,omitempty"`
// EventDateTime undocumented
EventDateTime *time.Time `json:"eventDateTime,omitempty"`
// Initiator undocumented
Initiator *IdentitySet `json:"initiator,omitempty"`
}
func NewMessagePinnedEventMessageDetail() (*MessagePinnedEventMessageDetail, error) {
newMessagePinnedEventMessageDetail := &MessagePinnedEventMessageDetail{
ODataType: "#microsoft.graph.MessagePinnedEventMessageDetail",
}
return newMessagePinnedEventMessageDetail, nil
}
// MessageRule undocumented
type MessageRule struct {
// Entity is the base model of MessageRule
Entity
ODataType string `json:"@odata.type,omitempty"`
// Actions undocumented
Actions *MessageRuleActions `json:"actions,omitempty"`
// Conditions undocumented
Conditions *MessageRulePredicates `json:"conditions,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// Exceptions undocumented
Exceptions *MessageRulePredicates `json:"exceptions,omitempty"`
// HasError undocumented
HasError *bool `json:"hasError,omitempty"`
// IsEnabled undocumented
IsEnabled *bool `json:"isEnabled,omitempty"`
// IsReadOnly undocumented
IsReadOnly *bool `json:"isReadOnly,omitempty"`
// Sequence undocumented
Sequence *int `json:"sequence,omitempty"`
}
func NewMessageRule() (*MessageRule, error) {
newMessageRule := &MessageRule{
ODataType: "#microsoft.graph.MessageRule",
}
return newMessageRule, nil
}
// MessageRuleActions undocumented
type MessageRuleActions struct {
// Object is the base model of MessageRuleActions
Object
ODataType string `json:"@odata.type,omitempty"`
// AssignCategories undocumented
AssignCategories []string `json:"assignCategories,omitempty"`
// CopyToFolder undocumented
CopyToFolder *string `json:"copyToFolder,omitempty"`
// Delete undocumented
Delete *bool `json:"delete,omitempty"`
// ForwardAsAttachmentTo undocumented
ForwardAsAttachmentTo []Recipient `json:"forwardAsAttachmentTo,omitempty"`
// ForwardTo undocumented
ForwardTo []Recipient `json:"forwardTo,omitempty"`
// MarkAsRead undocumented
MarkAsRead *bool `json:"markAsRead,omitempty"`
// MarkImportance undocumented
MarkImportance *Importance `json:"markImportance,omitempty"`
// MoveToFolder undocumented
MoveToFolder *string `json:"moveToFolder,omitempty"`
// PermanentDelete undocumented
PermanentDelete *bool `json:"permanentDelete,omitempty"`
// RedirectTo undocumented
RedirectTo []Recipient `json:"redirectTo,omitempty"`
// StopProcessingRules undocumented
StopProcessingRules *bool `json:"stopProcessingRules,omitempty"`
}
func NewMessageRuleActions() (*MessageRuleActions, error) {
newMessageRuleActions := &MessageRuleActions{
ODataType: "#microsoft.graph.MessageRuleActions",
}
return newMessageRuleActions, nil
}
// MessageRulePredicates undocumented
type MessageRulePredicates struct {
// Object is the base model of MessageRulePredicates
Object
ODataType string `json:"@odata.type,omitempty"`
// BodyContains undocumented
BodyContains []string `json:"bodyContains,omitempty"`
// BodyOrSubjectContains undocumented
BodyOrSubjectContains []string `json:"bodyOrSubjectContains,omitempty"`
// Categories undocumented
Categories []string `json:"categories,omitempty"`
// FromAddresses undocumented
FromAddresses []Recipient `json:"fromAddresses,omitempty"`
// HasAttachments undocumented
HasAttachments *bool `json:"hasAttachments,omitempty"`
// HeaderContains undocumented
HeaderContains []string `json:"headerContains,omitempty"`
// Importance undocumented
Importance *Importance `json:"importance,omitempty"`
// IsApprovalRequest undocumented
IsApprovalRequest *bool `json:"isApprovalRequest,omitempty"`
// IsAutomaticForward undocumented
IsAutomaticForward *bool `json:"isAutomaticForward,omitempty"`
// IsAutomaticReply undocumented
IsAutomaticReply *bool `json:"isAutomaticReply,omitempty"`
// IsEncrypted undocumented
IsEncrypted *bool `json:"isEncrypted,omitempty"`
// IsMeetingRequest undocumented
IsMeetingRequest *bool `json:"isMeetingRequest,omitempty"`
// IsMeetingResponse undocumented
IsMeetingResponse *bool `json:"isMeetingResponse,omitempty"`
// IsNonDeliveryReport undocumented
IsNonDeliveryReport *bool `json:"isNonDeliveryReport,omitempty"`
// IsPermissionControlled undocumented
IsPermissionControlled *bool `json:"isPermissionControlled,omitempty"`
// IsReadReceipt undocumented
IsReadReceipt *bool `json:"isReadReceipt,omitempty"`
// IsSigned undocumented
IsSigned *bool `json:"isSigned,omitempty"`
// IsVoicemail undocumented
IsVoicemail *bool `json:"isVoicemail,omitempty"`
// MessageActionFlag undocumented
MessageActionFlag *MessageActionFlag `json:"messageActionFlag,omitempty"`
// NotSentToMe undocumented
NotSentToMe *bool `json:"notSentToMe,omitempty"`
// RecipientContains undocumented
RecipientContains []string `json:"recipientContains,omitempty"`
// SenderContains undocumented
SenderContains []string `json:"senderContains,omitempty"`
// Sensitivity undocumented
Sensitivity *Sensitivity `json:"sensitivity,omitempty"`
// SentCcMe undocumented
SentCcMe *bool `json:"sentCcMe,omitempty"`
// SentOnlyToMe undocumented
SentOnlyToMe *bool `json:"sentOnlyToMe,omitempty"`
// SentToAddresses undocumented
SentToAddresses []Recipient `json:"sentToAddresses,omitempty"`
// SentToMe undocumented
SentToMe *bool `json:"sentToMe,omitempty"`
// SentToOrCcMe undocumented
SentToOrCcMe *bool `json:"sentToOrCcMe,omitempty"`
// SubjectContains undocumented
SubjectContains []string `json:"subjectContains,omitempty"`
// WithinSizeRange undocumented
WithinSizeRange *SizeRange `json:"withinSizeRange,omitempty"`
}
func NewMessageRulePredicates() (*MessageRulePredicates, error) {
newMessageRulePredicates := &MessageRulePredicates{
ODataType: "#microsoft.graph.MessageRulePredicates",
}
return newMessageRulePredicates, nil
}
// MessageSecurityState undocumented
type MessageSecurityState struct {
// Object is the base model of MessageSecurityState
Object
ODataType string `json:"@odata.type,omitempty"`
// ConnectingIP undocumented
ConnectingIP *string `json:"connectingIP,omitempty"`
// DeliveryAction undocumented
DeliveryAction *string `json:"deliveryAction,omitempty"`
// DeliveryLocation undocumented
DeliveryLocation *string `json:"deliveryLocation,omitempty"`
// Directionality undocumented
Directionality *string `json:"directionality,omitempty"`
// InternetMessageID undocumented
InternetMessageID *string `json:"internetMessageId,omitempty"`
// MessageFingerprint undocumented
MessageFingerprint *string `json:"messageFingerprint,omitempty"`
// MessageReceivedDateTime undocumented
MessageReceivedDateTime *time.Time `json:"messageReceivedDateTime,omitempty"`
// MessageSubject undocumented
MessageSubject *string `json:"messageSubject,omitempty"`
// NetworkMessageID undocumented
NetworkMessageID *string `json:"networkMessageId,omitempty"`
}
func NewMessageSecurityState() (*MessageSecurityState, error) {
newMessageSecurityState := &MessageSecurityState{
ODataType: "#microsoft.graph.MessageSecurityState",
}
return newMessageSecurityState, nil
}
// MessageUnpinnedEventMessageDetail undocumented
type MessageUnpinnedEventMessageDetail struct {
// EventMessageDetail is the base model of MessageUnpinnedEventMessageDetail
EventMessageDetail
ODataType string `json:"@odata.type,omitempty"`
// EventDateTime undocumented
EventDateTime *time.Time `json:"eventDateTime,omitempty"`
// Initiator undocumented
Initiator *IdentitySet `json:"initiator,omitempty"`
}
func NewMessageUnpinnedEventMessageDetail() (*MessageUnpinnedEventMessageDetail, error) {
newMessageUnpinnedEventMessageDetail := &MessageUnpinnedEventMessageDetail{
ODataType: "#microsoft.graph.MessageUnpinnedEventMessageDetail",
}
return newMessageUnpinnedEventMessageDetail, nil
}