/
FindItemResponseMessage.go
39 lines (33 loc) · 2.49 KB
/
FindItemResponseMessage.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
package elements
// The FindItemResponseMessage element contains the status and result of a single FindItem operation request.
// https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/finditemresponsemessage
import "encoding/xml"
type FindItemResponseMessage struct {
XMLName xml.Name
// The DescriptiveLinkKey element is currently unused and is reserved for future use. It contains a value of 0.
DescriptiveLinkKey *DescriptiveLinkKey `xml:"DescriptiveLinkKey"`
// The MessageText element provides a text description of the status of the response.
MessageText *MessageText `xml:"MessageText"`
// The MessageXml element provides additional error response information.
MessageXml *MessageXml `xml:"MessageXml"`
// The ResponseCode element provides status information about the request.
ResponseCode *ResponseCode `xml:"ResponseCode"`
// The RootFolder element contains the results of a search of a single root folder during a FindItem operation.
RootFolder *RootFolderFindItemResponseMessage `xml:"RootFolder"`
// Describes the status of a FindItem operation response. The following values are valid for this attribute: - Success - Warning - Error
ResponseClass *string `xml:"ResponseClass,attr"`
}
const (
// Describes a request that is fulfilled.
FindItemResponseMessageSuccess = `Success`
// Describes a request that was not processed. A warning may be returned if an error occurred while processing an item in the request was processing and subsequent items could not be processed. The following are examples of sources of warnings: - The Exchange store goes offline during the batch. - Active Directory Domain Services (AD DS) goes offline. - Mailboxes are moved. - The message database (MDB) goes offline. - A password is expired. - A quota was exceeded.
FindItemResponseMessageWarning = `Warning`
// Describes a request that cannot be fulfilled. The following are examples of sources of errors: - Invalid attributes or elements - Attributes or elements that are out of range - An unknown tag - An attribute or element that is not valid in the context - An unauthorized access attempt by any client - A server-side failure in response to a valid client-side call Information about the error can be found in the ResponseCode and MessageText elements.
FindItemResponseMessageError = `Error`
)
func (F *FindItemResponseMessage) SetForMarshal() {
F.XMLName.Local = "m:FindItemResponseMessage"
}
func (F *FindItemResponseMessage) GetSchema() *Schema {
return &SchemaMessages
}