mailfoldermessage

package
v0.20241126.1723 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/users/stable/mailfoldermessage Documentation

The mailfoldermessage SDK allows for interaction with Microsoft Graph users (API Version stable).

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/users/stable/mailfoldermessage"

Client Initialization

client := mailfoldermessage.NewMailFolderMessageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: MailFolderMessageClient.CopyMailFolderMessage

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

payload := mailfoldermessage.CopyMailFolderMessageRequest{
	// ...
}


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

Example Usage: MailFolderMessageClient.CreateMailFolderMessage

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderID("userId", "mailFolderId")

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


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

Example Usage: MailFolderMessageClient.CreateMailFolderMessageForward

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

payload := mailfoldermessage.CreateMailFolderMessageForwardRequest{
	// ...
}


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

Example Usage: MailFolderMessageClient.CreateMailFolderMessageReply

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

payload := mailfoldermessage.CreateMailFolderMessageReplyRequest{
	// ...
}


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

Example Usage: MailFolderMessageClient.CreateMailFolderMessageReplyAll

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

payload := mailfoldermessage.CreateMailFolderMessageReplyAllRequest{
	// ...
}


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

Example Usage: MailFolderMessageClient.DeleteMailFolderMessage

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

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

Example Usage: MailFolderMessageClient.ForwardMailFolderMessage

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

payload := mailfoldermessage.ForwardMailFolderMessageRequest{
	// ...
}


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

Example Usage: MailFolderMessageClient.GetMailFolderMessage

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

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

Example Usage: MailFolderMessageClient.GetMailFolderMessageValue

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

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

Example Usage: MailFolderMessageClient.GetMailFolderMessagesCount

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderID("userId", "mailFolderId")

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

Example Usage: MailFolderMessageClient.ListMailFolderMessages

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderID("userId", "mailFolderId")

// alternatively `client.ListMailFolderMessages(ctx, id, mailfoldermessage.DefaultListMailFolderMessagesOperationOptions())` can be used to do batched pagination
items, err := client.ListMailFolderMessagesComplete(ctx, id, mailfoldermessage.DefaultListMailFolderMessagesOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: MailFolderMessageClient.MoveMailFolderMessage

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

payload := mailfoldermessage.MoveMailFolderMessageRequest{
	// ...
}


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

Example Usage: MailFolderMessageClient.RemoveMailFolderMessageValue

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

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

Example Usage: MailFolderMessageClient.ReplyAllMailFolderMessage

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

payload := mailfoldermessage.ReplyAllMailFolderMessageRequest{
	// ...
}


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

Example Usage: MailFolderMessageClient.ReplyMailFolderMessage

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

payload := mailfoldermessage.ReplyMailFolderMessageRequest{
	// ...
}


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

Example Usage: MailFolderMessageClient.SendMailFolderMessage

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

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

Example Usage: MailFolderMessageClient.SetMailFolderMessageValue

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")
var payload []byte

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

Example Usage: MailFolderMessageClient.UpdateMailFolderMessage

ctx := context.TODO()
id := mailfoldermessage.NewUserIdMailFolderIdMessageID("userId", "mailFolderId", "messageId")

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


read, err := client.UpdateMailFolderMessage(ctx, id, payload, mailfoldermessage.DefaultUpdateMailFolderMessageOperationOptions())
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 CopyMailFolderMessageOperationOptions

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

func DefaultCopyMailFolderMessageOperationOptions

func DefaultCopyMailFolderMessageOperationOptions() CopyMailFolderMessageOperationOptions

func (CopyMailFolderMessageOperationOptions) ToHeaders

func (CopyMailFolderMessageOperationOptions) ToOData

func (CopyMailFolderMessageOperationOptions) ToQuery

type CopyMailFolderMessageOperationResponse

type CopyMailFolderMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Message
}

type CopyMailFolderMessageRequest

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

type CreateMailFolderMessageForwardOperationOptions

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

func DefaultCreateMailFolderMessageForwardOperationOptions

func DefaultCreateMailFolderMessageForwardOperationOptions() CreateMailFolderMessageForwardOperationOptions

func (CreateMailFolderMessageForwardOperationOptions) ToHeaders

func (CreateMailFolderMessageForwardOperationOptions) ToOData

func (CreateMailFolderMessageForwardOperationOptions) ToQuery

type CreateMailFolderMessageForwardOperationResponse

type CreateMailFolderMessageForwardOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Message
}

type CreateMailFolderMessageForwardRequest

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

type CreateMailFolderMessageOperationOptions

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

func DefaultCreateMailFolderMessageOperationOptions

func DefaultCreateMailFolderMessageOperationOptions() CreateMailFolderMessageOperationOptions

func (CreateMailFolderMessageOperationOptions) ToHeaders

func (CreateMailFolderMessageOperationOptions) ToOData

func (CreateMailFolderMessageOperationOptions) ToQuery

type CreateMailFolderMessageOperationResponse

type CreateMailFolderMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Message
}

type CreateMailFolderMessageReplyAllOperationOptions

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

func DefaultCreateMailFolderMessageReplyAllOperationOptions

func DefaultCreateMailFolderMessageReplyAllOperationOptions() CreateMailFolderMessageReplyAllOperationOptions

func (CreateMailFolderMessageReplyAllOperationOptions) ToHeaders

func (CreateMailFolderMessageReplyAllOperationOptions) ToOData

func (CreateMailFolderMessageReplyAllOperationOptions) ToQuery

type CreateMailFolderMessageReplyAllOperationResponse

type CreateMailFolderMessageReplyAllOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Message
}

type CreateMailFolderMessageReplyAllRequest

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

type CreateMailFolderMessageReplyOperationOptions

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

func DefaultCreateMailFolderMessageReplyOperationOptions

func DefaultCreateMailFolderMessageReplyOperationOptions() CreateMailFolderMessageReplyOperationOptions

func (CreateMailFolderMessageReplyOperationOptions) ToHeaders

func (CreateMailFolderMessageReplyOperationOptions) ToOData

func (CreateMailFolderMessageReplyOperationOptions) ToQuery

type CreateMailFolderMessageReplyOperationResponse

type CreateMailFolderMessageReplyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Message
}

type CreateMailFolderMessageReplyRequest

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

type DeleteMailFolderMessageOperationOptions

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

func DefaultDeleteMailFolderMessageOperationOptions

func DefaultDeleteMailFolderMessageOperationOptions() DeleteMailFolderMessageOperationOptions

func (DeleteMailFolderMessageOperationOptions) ToHeaders

func (DeleteMailFolderMessageOperationOptions) ToOData

func (DeleteMailFolderMessageOperationOptions) ToQuery

type DeleteMailFolderMessageOperationResponse

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

type ForwardMailFolderMessageOperationOptions

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

func DefaultForwardMailFolderMessageOperationOptions

func DefaultForwardMailFolderMessageOperationOptions() ForwardMailFolderMessageOperationOptions

func (ForwardMailFolderMessageOperationOptions) ToHeaders

func (ForwardMailFolderMessageOperationOptions) ToOData

func (ForwardMailFolderMessageOperationOptions) ToQuery

type ForwardMailFolderMessageOperationResponse

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

type ForwardMailFolderMessageRequest

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

type GetMailFolderMessageOperationOptions

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

func DefaultGetMailFolderMessageOperationOptions

func DefaultGetMailFolderMessageOperationOptions() GetMailFolderMessageOperationOptions

func (GetMailFolderMessageOperationOptions) ToHeaders

func (GetMailFolderMessageOperationOptions) ToOData

func (GetMailFolderMessageOperationOptions) ToQuery

type GetMailFolderMessageOperationResponse

type GetMailFolderMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Message
}

type GetMailFolderMessageValueOperationOptions

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

func DefaultGetMailFolderMessageValueOperationOptions

func DefaultGetMailFolderMessageValueOperationOptions() GetMailFolderMessageValueOperationOptions

func (GetMailFolderMessageValueOperationOptions) ToHeaders

func (GetMailFolderMessageValueOperationOptions) ToOData

func (GetMailFolderMessageValueOperationOptions) ToQuery

type GetMailFolderMessageValueOperationResponse

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

type GetMailFolderMessagesCountOperationOptions

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

func DefaultGetMailFolderMessagesCountOperationOptions

func DefaultGetMailFolderMessagesCountOperationOptions() GetMailFolderMessagesCountOperationOptions

func (GetMailFolderMessagesCountOperationOptions) ToHeaders

func (GetMailFolderMessagesCountOperationOptions) ToOData

func (GetMailFolderMessagesCountOperationOptions) ToQuery

type GetMailFolderMessagesCountOperationResponse

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

type ListMailFolderMessagesCompleteResult

type ListMailFolderMessagesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.Message
}

type ListMailFolderMessagesCustomPager

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

type ListMailFolderMessagesOperationOptions

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

func DefaultListMailFolderMessagesOperationOptions

func DefaultListMailFolderMessagesOperationOptions() ListMailFolderMessagesOperationOptions

func (ListMailFolderMessagesOperationOptions) ToHeaders

func (ListMailFolderMessagesOperationOptions) ToOData

func (ListMailFolderMessagesOperationOptions) ToQuery

type ListMailFolderMessagesOperationResponse

type ListMailFolderMessagesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.Message
}

type MailFolderMessageClient

type MailFolderMessageClient struct {
	Client *msgraph.Client
}

func NewMailFolderMessageClientWithBaseURI

func NewMailFolderMessageClientWithBaseURI(sdkApi sdkEnv.Api) (*MailFolderMessageClient, error)

func (MailFolderMessageClient) CopyMailFolderMessage

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

func (MailFolderMessageClient) CreateMailFolderMessage

CreateMailFolderMessage - Create new navigation property to messages for users

func (MailFolderMessageClient) CreateMailFolderMessageForward

CreateMailFolderMessageForward - 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 (MailFolderMessageClient) CreateMailFolderMessageReply

CreateMailFolderMessageReply - 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 (MailFolderMessageClient) CreateMailFolderMessageReplyAll

CreateMailFolderMessageReplyAll - 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 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-all to a message in a single action.

func (MailFolderMessageClient) DeleteMailFolderMessage

DeleteMailFolderMessage - Delete navigation property messages for users

func (MailFolderMessageClient) ForwardMailFolderMessage

ForwardMailFolderMessage - 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 (MailFolderMessageClient) GetMailFolderMessage

GetMailFolderMessage - Get messages from users. The collection of messages in the mailFolder.

func (MailFolderMessageClient) GetMailFolderMessageValue

GetMailFolderMessageValue - Get media content for the navigation property messages from users. The unique identifier for an entity. Read-only.

func (MailFolderMessageClient) GetMailFolderMessagesCount

GetMailFolderMessagesCount - Get the number of the resource

func (MailFolderMessageClient) ListMailFolderMessages

ListMailFolderMessages - Get messages from users. The collection of messages in the mailFolder.

func (MailFolderMessageClient) ListMailFolderMessagesComplete

ListMailFolderMessagesComplete retrieves all the results into a single object

func (MailFolderMessageClient) ListMailFolderMessagesCompleteMatchingPredicate

func (c MailFolderMessageClient) ListMailFolderMessagesCompleteMatchingPredicate(ctx context.Context, id stable.UserIdMailFolderId, options ListMailFolderMessagesOperationOptions, predicate MessageOperationPredicate) (result ListMailFolderMessagesCompleteResult, err error)

ListMailFolderMessagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MailFolderMessageClient) MoveMailFolderMessage

MoveMailFolderMessage - 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 (MailFolderMessageClient) RemoveMailFolderMessageValue

RemoveMailFolderMessageValue - Delete media content for the navigation property messages in users. The unique identifier for an entity. Read-only.

func (MailFolderMessageClient) ReplyAllMailFolderMessage

ReplyAllMailFolderMessage - 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 (MailFolderMessageClient) ReplyMailFolderMessage

ReplyMailFolderMessage - 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 an existing message and send it later.

func (MailFolderMessageClient) SendMailFolderMessage

SendMailFolderMessage - 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 (MailFolderMessageClient) SetMailFolderMessageValue

SetMailFolderMessageValue - Update media content for the navigation property messages in users. The unique identifier for an entity. Read-only.

func (MailFolderMessageClient) UpdateMailFolderMessage

UpdateMailFolderMessage - Update the navigation property messages in users

type MessageOperationPredicate

type MessageOperationPredicate struct {
}

func (MessageOperationPredicate) Matches

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

type MoveMailFolderMessageOperationOptions

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

func DefaultMoveMailFolderMessageOperationOptions

func DefaultMoveMailFolderMessageOperationOptions() MoveMailFolderMessageOperationOptions

func (MoveMailFolderMessageOperationOptions) ToHeaders

func (MoveMailFolderMessageOperationOptions) ToOData

func (MoveMailFolderMessageOperationOptions) ToQuery

type MoveMailFolderMessageOperationResponse

type MoveMailFolderMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Message
}

type MoveMailFolderMessageRequest

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

type RemoveMailFolderMessageValueOperationOptions

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

func DefaultRemoveMailFolderMessageValueOperationOptions

func DefaultRemoveMailFolderMessageValueOperationOptions() RemoveMailFolderMessageValueOperationOptions

func (RemoveMailFolderMessageValueOperationOptions) ToHeaders

func (RemoveMailFolderMessageValueOperationOptions) ToOData

func (RemoveMailFolderMessageValueOperationOptions) ToQuery

type RemoveMailFolderMessageValueOperationResponse

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

type ReplyAllMailFolderMessageOperationOptions

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

func DefaultReplyAllMailFolderMessageOperationOptions

func DefaultReplyAllMailFolderMessageOperationOptions() ReplyAllMailFolderMessageOperationOptions

func (ReplyAllMailFolderMessageOperationOptions) ToHeaders

func (ReplyAllMailFolderMessageOperationOptions) ToOData

func (ReplyAllMailFolderMessageOperationOptions) ToQuery

type ReplyAllMailFolderMessageOperationResponse

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

type ReplyAllMailFolderMessageRequest

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

type ReplyMailFolderMessageOperationOptions

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

func DefaultReplyMailFolderMessageOperationOptions

func DefaultReplyMailFolderMessageOperationOptions() ReplyMailFolderMessageOperationOptions

func (ReplyMailFolderMessageOperationOptions) ToHeaders

func (ReplyMailFolderMessageOperationOptions) ToOData

func (ReplyMailFolderMessageOperationOptions) ToQuery

type ReplyMailFolderMessageOperationResponse

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

type ReplyMailFolderMessageRequest

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

type SendMailFolderMessageOperationOptions

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

func DefaultSendMailFolderMessageOperationOptions

func DefaultSendMailFolderMessageOperationOptions() SendMailFolderMessageOperationOptions

func (SendMailFolderMessageOperationOptions) ToHeaders

func (SendMailFolderMessageOperationOptions) ToOData

func (SendMailFolderMessageOperationOptions) ToQuery

type SendMailFolderMessageOperationResponse

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

type SetMailFolderMessageValueOperationOptions

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

func DefaultSetMailFolderMessageValueOperationOptions

func DefaultSetMailFolderMessageValueOperationOptions() SetMailFolderMessageValueOperationOptions

func (SetMailFolderMessageValueOperationOptions) ToHeaders

func (SetMailFolderMessageValueOperationOptions) ToOData

func (SetMailFolderMessageValueOperationOptions) ToQuery

type SetMailFolderMessageValueOperationResponse

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

type UpdateMailFolderMessageOperationOptions

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

func DefaultUpdateMailFolderMessageOperationOptions

func DefaultUpdateMailFolderMessageOperationOptions() UpdateMailFolderMessageOperationOptions

func (UpdateMailFolderMessageOperationOptions) ToHeaders

func (UpdateMailFolderMessageOperationOptions) ToOData

func (UpdateMailFolderMessageOperationOptions) ToQuery

type UpdateMailFolderMessageOperationResponse

type UpdateMailFolderMessageOperationResponse 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