message

package
v0.20241126.2320 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/message Documentation

The message SDK allows for interaction with Microsoft Graph me (API Version beta).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/message"

Client Initialization

client := message.NewMessageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: MessageClient.CopyMessage

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

payload := message.CopyMessageRequest{
	// ...
}


read, err := client.CopyMessage(ctx, id, payload, message.DefaultCopyMessageOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.CreateMessage

ctx := context.TODO()

payload := message.Message{
	// ...
}


read, err := client.CreateMessage(ctx, payload, message.DefaultCreateMessageOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.CreateMessageForward

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

payload := message.CreateMessageForwardRequest{
	// ...
}


read, err := client.CreateMessageForward(ctx, id, payload, message.DefaultCreateMessageForwardOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.CreateMessageReply

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

payload := message.CreateMessageReplyRequest{
	// ...
}


read, err := client.CreateMessageReply(ctx, id, payload, message.DefaultCreateMessageReplyOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.CreateMessageReplyAll

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

payload := message.CreateMessageReplyAllRequest{
	// ...
}


read, err := client.CreateMessageReplyAll(ctx, id, payload, message.DefaultCreateMessageReplyAllOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.CreateMessageUnsubscribe

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

read, err := client.CreateMessageUnsubscribe(ctx, id, message.DefaultCreateMessageUnsubscribeOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.DeleteMessage

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

read, err := client.DeleteMessage(ctx, id, message.DefaultDeleteMessageOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.ForwardMessage

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

payload := message.ForwardMessageRequest{
	// ...
}


read, err := client.ForwardMessage(ctx, id, payload, message.DefaultForwardMessageOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.GetMessage

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

read, err := client.GetMessage(ctx, id, message.DefaultGetMessageOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.GetMessageValue

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

read, err := client.GetMessageValue(ctx, id, message.DefaultGetMessageValueOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.GetMessagesCount

ctx := context.TODO()


read, err := client.GetMessagesCount(ctx, message.DefaultGetMessagesCountOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.ListMessages

ctx := context.TODO()


// alternatively `client.ListMessages(ctx, message.DefaultListMessagesOperationOptions())` can be used to do batched pagination
items, err := client.ListMessagesComplete(ctx, message.DefaultListMessagesOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MessageClient.MarkMessageAsJunk

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

payload := message.MarkMessageAsJunkRequest{
	// ...
}


read, err := client.MarkMessageAsJunk(ctx, id, payload, message.DefaultMarkMessageAsJunkOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.MarkMessageAsNotJunk

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

payload := message.MarkMessageAsNotJunkRequest{
	// ...
}


read, err := client.MarkMessageAsNotJunk(ctx, id, payload, message.DefaultMarkMessageAsNotJunkOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.MoveMessage

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

payload := message.MoveMessageRequest{
	// ...
}


read, err := client.MoveMessage(ctx, id, payload, message.DefaultMoveMessageOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.RemoveMessageValue

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

read, err := client.RemoveMessageValue(ctx, id, message.DefaultRemoveMessageValueOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.ReplyAllMessage

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

payload := message.ReplyAllMessageRequest{
	// ...
}


read, err := client.ReplyAllMessage(ctx, id, payload, message.DefaultReplyAllMessageOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.ReplyMessage

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

payload := message.ReplyMessageRequest{
	// ...
}


read, err := client.ReplyMessage(ctx, id, payload, message.DefaultReplyMessageOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.SendMessage

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

read, err := client.SendMessage(ctx, id, message.DefaultSendMessageOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.SetMessageValue

ctx := context.TODO()
id := message.NewMeMessageID("messageId")
var payload []byte

read, err := client.SetMessageValue(ctx, id, payload, message.DefaultSetMessageValueOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MessageClient.UpdateMessage

ctx := context.TODO()
id := message.NewMeMessageID("messageId")

payload := message.Message{
	// ...
}


read, err := client.UpdateMessage(ctx, id, payload, message.DefaultUpdateMessageOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CopyMessageOperationOptions

type CopyMessageOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCopyMessageOperationOptions

func DefaultCopyMessageOperationOptions() CopyMessageOperationOptions

func (CopyMessageOperationOptions) ToHeaders

func (CopyMessageOperationOptions) ToOData

func (CopyMessageOperationOptions) ToQuery

type CopyMessageOperationResponse

type CopyMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Message
}

type CopyMessageRequest

type CopyMessageRequest struct {
	DestinationId *string `json:"DestinationId,omitempty"`
}

type CreateMessageForwardOperationOptions

type CreateMessageForwardOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateMessageForwardOperationOptions

func DefaultCreateMessageForwardOperationOptions() CreateMessageForwardOperationOptions

func (CreateMessageForwardOperationOptions) ToHeaders

func (CreateMessageForwardOperationOptions) ToOData

func (CreateMessageForwardOperationOptions) ToQuery

type CreateMessageForwardOperationResponse

type CreateMessageForwardOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Message
}

type CreateMessageForwardRequest

type CreateMessageForwardRequest struct {
	Comment      nullable.Type[string] `json:"Comment,omitempty"`
	Message      *beta.Message         `json:"Message,omitempty"`
	ToRecipients *[]beta.Recipient     `json:"ToRecipients,omitempty"`
}

type CreateMessageOperationOptions

type CreateMessageOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateMessageOperationOptions

func DefaultCreateMessageOperationOptions() CreateMessageOperationOptions

func (CreateMessageOperationOptions) ToHeaders

func (CreateMessageOperationOptions) ToOData

func (CreateMessageOperationOptions) ToQuery

type CreateMessageOperationResponse

type CreateMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Message
}

type CreateMessageReplyAllOperationOptions

type CreateMessageReplyAllOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateMessageReplyAllOperationOptions

func DefaultCreateMessageReplyAllOperationOptions() CreateMessageReplyAllOperationOptions

func (CreateMessageReplyAllOperationOptions) ToHeaders

func (CreateMessageReplyAllOperationOptions) ToOData

func (CreateMessageReplyAllOperationOptions) ToQuery

type CreateMessageReplyAllOperationResponse

type CreateMessageReplyAllOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Message
}

type CreateMessageReplyAllRequest

type CreateMessageReplyAllRequest struct {
	Comment nullable.Type[string] `json:"Comment,omitempty"`
	Message *beta.Message         `json:"Message,omitempty"`
}

type CreateMessageReplyOperationOptions

type CreateMessageReplyOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateMessageReplyOperationOptions

func DefaultCreateMessageReplyOperationOptions() CreateMessageReplyOperationOptions

func (CreateMessageReplyOperationOptions) ToHeaders

func (CreateMessageReplyOperationOptions) ToOData

func (CreateMessageReplyOperationOptions) ToQuery

type CreateMessageReplyOperationResponse

type CreateMessageReplyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Message
}

type CreateMessageReplyRequest

type CreateMessageReplyRequest struct {
	Comment nullable.Type[string] `json:"Comment,omitempty"`
	Message *beta.Message         `json:"Message,omitempty"`
}

type CreateMessageUnsubscribeOperationOptions

type CreateMessageUnsubscribeOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateMessageUnsubscribeOperationOptions

func DefaultCreateMessageUnsubscribeOperationOptions() CreateMessageUnsubscribeOperationOptions

func (CreateMessageUnsubscribeOperationOptions) ToHeaders

func (CreateMessageUnsubscribeOperationOptions) ToOData

func (CreateMessageUnsubscribeOperationOptions) ToQuery

type CreateMessageUnsubscribeOperationResponse

type CreateMessageUnsubscribeOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeleteMessageOperationOptions

type DeleteMessageOperationOptions struct {
	IfMatch   *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultDeleteMessageOperationOptions

func DefaultDeleteMessageOperationOptions() DeleteMessageOperationOptions

func (DeleteMessageOperationOptions) ToHeaders

func (DeleteMessageOperationOptions) ToOData

func (DeleteMessageOperationOptions) ToQuery

type DeleteMessageOperationResponse

type DeleteMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ForwardMessageOperationOptions

type ForwardMessageOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultForwardMessageOperationOptions

func DefaultForwardMessageOperationOptions() ForwardMessageOperationOptions

func (ForwardMessageOperationOptions) ToHeaders

func (ForwardMessageOperationOptions) ToOData

func (ForwardMessageOperationOptions) ToQuery

type ForwardMessageOperationResponse

type ForwardMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ForwardMessageRequest

type ForwardMessageRequest struct {
	Comment      nullable.Type[string] `json:"Comment,omitempty"`
	Message      *beta.Message         `json:"Message,omitempty"`
	ToRecipients *[]beta.Recipient     `json:"ToRecipients,omitempty"`
}

type GetMessageOperationOptions

type GetMessageOperationOptions struct {
	Expand    *odata.Expand
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Select    *[]string
}

func DefaultGetMessageOperationOptions

func DefaultGetMessageOperationOptions() GetMessageOperationOptions

func (GetMessageOperationOptions) ToHeaders

func (o GetMessageOperationOptions) ToHeaders() *client.Headers

func (GetMessageOperationOptions) ToOData

func (o GetMessageOperationOptions) ToOData() *odata.Query

func (GetMessageOperationOptions) ToQuery

type GetMessageOperationResponse

type GetMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Message
}

type GetMessageValueOperationOptions

type GetMessageValueOperationOptions struct {
	IncludeHiddenMessages *string
	Metadata              *odata.Metadata
	RetryFunc             client.RequestRetryFunc
}

func DefaultGetMessageValueOperationOptions

func DefaultGetMessageValueOperationOptions() GetMessageValueOperationOptions

func (GetMessageValueOperationOptions) ToHeaders

func (GetMessageValueOperationOptions) ToOData

func (GetMessageValueOperationOptions) ToQuery

type GetMessageValueOperationResponse

type GetMessageValueOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]byte
}

type GetMessagesCountOperationOptions

type GetMessagesCountOperationOptions struct {
	Filter                *string
	IncludeHiddenMessages *string
	Metadata              *odata.Metadata
	RetryFunc             client.RequestRetryFunc
	Search                *string
}

func DefaultGetMessagesCountOperationOptions

func DefaultGetMessagesCountOperationOptions() GetMessagesCountOperationOptions

func (GetMessagesCountOperationOptions) ToHeaders

func (GetMessagesCountOperationOptions) ToOData

func (GetMessagesCountOperationOptions) ToQuery

type GetMessagesCountOperationResponse

type GetMessagesCountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]byte
}

type ListMessagesCompleteResult

type ListMessagesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.Message
}

type ListMessagesCustomPager

type ListMessagesCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListMessagesCustomPager) NextPageLink() *odata.Link

type ListMessagesOperationOptions

type ListMessagesOperationOptions struct {
	Count                 *bool
	Expand                *odata.Expand
	Filter                *string
	IncludeHiddenMessages *string
	Metadata              *odata.Metadata
	OrderBy               *odata.OrderBy
	RetryFunc             client.RequestRetryFunc
	Search                *string
	Select                *[]string
	Skip                  *int64
	Top                   *int64
}

func DefaultListMessagesOperationOptions

func DefaultListMessagesOperationOptions() ListMessagesOperationOptions

func (ListMessagesOperationOptions) ToHeaders

func (ListMessagesOperationOptions) ToOData

func (ListMessagesOperationOptions) ToQuery

type ListMessagesOperationResponse

type ListMessagesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.Message
}

type MarkMessageAsJunkOperationOptions

type MarkMessageAsJunkOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultMarkMessageAsJunkOperationOptions

func DefaultMarkMessageAsJunkOperationOptions() MarkMessageAsJunkOperationOptions

func (MarkMessageAsJunkOperationOptions) ToHeaders

func (MarkMessageAsJunkOperationOptions) ToOData

func (MarkMessageAsJunkOperationOptions) ToQuery

type MarkMessageAsJunkOperationResponse

type MarkMessageAsJunkOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Message
}

type MarkMessageAsJunkRequest

type MarkMessageAsJunkRequest struct {
	MoveToJunk *bool `json:"MoveToJunk,omitempty"`
}

type MarkMessageAsNotJunkOperationOptions

type MarkMessageAsNotJunkOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultMarkMessageAsNotJunkOperationOptions

func DefaultMarkMessageAsNotJunkOperationOptions() MarkMessageAsNotJunkOperationOptions

func (MarkMessageAsNotJunkOperationOptions) ToHeaders

func (MarkMessageAsNotJunkOperationOptions) ToOData

func (MarkMessageAsNotJunkOperationOptions) ToQuery

type MarkMessageAsNotJunkOperationResponse

type MarkMessageAsNotJunkOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Message
}

type MarkMessageAsNotJunkRequest

type MarkMessageAsNotJunkRequest struct {
	MoveToInbox *bool `json:"MoveToInbox,omitempty"`
}

type MessageClient

type MessageClient struct {
	Client *msgraph.Client
}

func NewMessageClientWithBaseURI

func NewMessageClientWithBaseURI(sdkApi sdkEnv.Api) (*MessageClient, error)

func (MessageClient) CopyMessage

CopyMessage - Invoke action copy. Copy a message to a folder within the user's mailbox.

func (MessageClient) CreateMessage

CreateMessage - Create openTypeExtension. Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions.

func (MessageClient) CreateMessageForward

CreateMessageForward - Invoke action createForward. Create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can: - Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error. - Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. - Update the draft later to add content to the body or change other message properties. When using MIME format: - Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body. - Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation.

func (MessageClient) CreateMessageReply

CreateMessageReply - Invoke action createReply. Create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format: - Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error. - If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from. - You can update the draft later to add reply content to the body or change other message properties. When using MIME format: - Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body. - Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation.

func (MessageClient) CreateMessageReplyAll

CreateMessageReplyAll - Invoke action createReplyAll. Create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format: - Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error. - If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties. - You can update the draft message later. When using MIME format: - Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body. - Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action.

func (MessageClient) CreateMessageUnsubscribe

CreateMessageUnsubscribe - Invoke action unsubscribe. Submits an email request on behalf of the signed-in user to unsubscribe from an email distribution list. Uses the information in the List-Unsubscribe header. Message senders can use mailing lists in a user-friendly way by including an option for recipients to opt out. They can do so by specifying the List-Unsubscribe header in each message following RFC-2369. Note In particular, for the unsubscribe action to work, the sender must specify mailto: and not URL-based unsubscribe information. Setting that header would also set the unsubscribeEnabled property of the message instance to true, and the unsubscribeData property to the header data. If the unsubscribeEnabled property of a message is true, you can use the unsubscribe action to unsubscribe the user from similar future messages as managed by the message sender. A successful unsubscribe action moves the message to the Deleted Items folder. The actual exclusion of the user from future mail distribution is managed by the sender.

func (MessageClient) DeleteMessage

DeleteMessage - Delete message. Delete a message in the specified user's mailbox, or delete a relationship of the message. For example, you can delete a specific @-mention of the specified user in the message.

func (MessageClient) ForwardMessage

ForwardMessage - Invoke action forward. Forward a message using either JSON or MIME format. When using JSON format, you can: - Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error. - Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format: - Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body. - Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later.

func (MessageClient) GetMessage

GetMessage - Get singleValueLegacyExtendedProperty. You can get a single resource instance expanded with a specific extended property, or a collection of resource instances that include extended properties matching a filter. Using the query parameter $expand allows you to get the specified resource instance expanded with a specific extended property. Use a $filter and eq operator on the id property to specify the extended property. This is currently the only way to get the singleValueLegacyExtendedProperty object that represents an extended property. To get resource instances that have certain extended properties, use the $filter query parameter and apply an eq operator on the id property. In addition, for numeric extended properties, apply one of the following operators on the value property: eq, ne,ge, gt, le, or lt. For string-typed extended properties, apply a contains, startswith, eq, or ne operator on value. Filtering the string name (Name) in the id of an extended property is case-sensitive. Filtering the value property of an extended property is case-insensitive. The following user resources are supported: As well as the following group resources: See Extended properties overview for more information about when to use open extensions or extended properties, and how to specify extended properties.

func (MessageClient) GetMessageValue

GetMessageValue - Get openTypeExtension. Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance.

func (MessageClient) GetMessagesCount

GetMessagesCount - Get the number of the resource

func (MessageClient) ListMessages

ListMessages - Get openTypeExtension. Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance.

func (MessageClient) ListMessagesComplete

ListMessagesComplete retrieves all the results into a single object

func (MessageClient) ListMessagesCompleteMatchingPredicate

func (c MessageClient) ListMessagesCompleteMatchingPredicate(ctx context.Context, options ListMessagesOperationOptions, predicate MessageOperationPredicate) (result ListMessagesCompleteResult, err error)

ListMessagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MessageClient) MarkMessageAsJunk

MarkMessageAsJunk - Invoke action markAsJunk. Mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the Junk Email folder, when moveToJunk is true.

func (MessageClient) MarkMessageAsNotJunk

MarkMessageAsNotJunk - Invoke action markAsNotJunk. Mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the Inbox folder, when moveToInbox is true.

func (MessageClient) MoveMessage

MoveMessage - Invoke action move. Move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message.

func (MessageClient) RemoveMessageValue

RemoveMessageValue - Delete message. Delete a message in the specified user's mailbox, or delete a relationship of the message. For example, you can delete a specific @-mention of the specified user in the message.

func (MessageClient) ReplyAllMessage

ReplyAllMessage - Invoke action replyAll. Reply to all recipients of a message using either JSON or MIME format. When using JSON format: - Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error. - If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format: - Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body. - Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message, and send it later.

func (MessageClient) ReplyMessage

ReplyMessage - Invoke action reply. Reply to the sender of a message using either JSON or MIME format. When using JSON format: * Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error. * If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format: - Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body. - Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to a message, and send it later.

func (MessageClient) SendMessage

SendMessage - Invoke action send. Send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation.

func (MessageClient) SetMessageValue

func (c MessageClient) SetMessageValue(ctx context.Context, id beta.MeMessageId, input []byte, options SetMessageValueOperationOptions) (result SetMessageValueOperationResponse, err error)

SetMessageValue - Update eventMessage. Update the properties of an eventMessage object.

func (MessageClient) UpdateMessage

UpdateMessage - Update eventMessage. Update the properties of an eventMessage object.

type MessageOperationPredicate

type MessageOperationPredicate struct {
}

func (MessageOperationPredicate) Matches

func (p MessageOperationPredicate) Matches(input beta.Message) bool

type MoveMessageOperationOptions

type MoveMessageOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultMoveMessageOperationOptions

func DefaultMoveMessageOperationOptions() MoveMessageOperationOptions

func (MoveMessageOperationOptions) ToHeaders

func (MoveMessageOperationOptions) ToOData

func (MoveMessageOperationOptions) ToQuery

type MoveMessageOperationResponse

type MoveMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Message
}

type MoveMessageRequest

type MoveMessageRequest struct {
	DestinationId *string `json:"DestinationId,omitempty"`
}

type RemoveMessageValueOperationOptions

type RemoveMessageValueOperationOptions struct {
	IfMatch   *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultRemoveMessageValueOperationOptions

func DefaultRemoveMessageValueOperationOptions() RemoveMessageValueOperationOptions

func (RemoveMessageValueOperationOptions) ToHeaders

func (RemoveMessageValueOperationOptions) ToOData

func (RemoveMessageValueOperationOptions) ToQuery

type RemoveMessageValueOperationResponse

type RemoveMessageValueOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ReplyAllMessageOperationOptions

type ReplyAllMessageOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultReplyAllMessageOperationOptions

func DefaultReplyAllMessageOperationOptions() ReplyAllMessageOperationOptions

func (ReplyAllMessageOperationOptions) ToHeaders

func (ReplyAllMessageOperationOptions) ToOData

func (ReplyAllMessageOperationOptions) ToQuery

type ReplyAllMessageOperationResponse

type ReplyAllMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ReplyAllMessageRequest

type ReplyAllMessageRequest struct {
	Comment nullable.Type[string] `json:"Comment,omitempty"`
	Message *beta.Message         `json:"Message,omitempty"`
}

type ReplyMessageOperationOptions

type ReplyMessageOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultReplyMessageOperationOptions

func DefaultReplyMessageOperationOptions() ReplyMessageOperationOptions

func (ReplyMessageOperationOptions) ToHeaders

func (ReplyMessageOperationOptions) ToOData

func (ReplyMessageOperationOptions) ToQuery

type ReplyMessageOperationResponse

type ReplyMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ReplyMessageRequest

type ReplyMessageRequest struct {
	Comment nullable.Type[string] `json:"Comment,omitempty"`
	Message *beta.Message         `json:"Message,omitempty"`
}

type SendMessageOperationOptions

type SendMessageOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultSendMessageOperationOptions

func DefaultSendMessageOperationOptions() SendMessageOperationOptions

func (SendMessageOperationOptions) ToHeaders

func (SendMessageOperationOptions) ToOData

func (SendMessageOperationOptions) ToQuery

type SendMessageOperationResponse

type SendMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type SetMessageValueOperationOptions

type SetMessageValueOperationOptions struct {
	ContentType string
	Metadata    *odata.Metadata
	RetryFunc   client.RequestRetryFunc
}

func DefaultSetMessageValueOperationOptions

func DefaultSetMessageValueOperationOptions() SetMessageValueOperationOptions

func (SetMessageValueOperationOptions) ToHeaders

func (SetMessageValueOperationOptions) ToOData

func (SetMessageValueOperationOptions) ToQuery

type SetMessageValueOperationResponse

type SetMessageValueOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type UpdateMessageOperationOptions

type UpdateMessageOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultUpdateMessageOperationOptions

func DefaultUpdateMessageOperationOptions() UpdateMessageOperationOptions

func (UpdateMessageOperationOptions) ToHeaders

func (UpdateMessageOperationOptions) ToOData

func (UpdateMessageOperationOptions) ToQuery

type UpdateMessageOperationResponse

type UpdateMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL