mailfoldermessageattachment

package
v0.20241209.1115630 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

README

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

The mailfoldermessageattachment 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/mailfoldermessageattachment"

Client Initialization

client := mailfoldermessageattachment.NewMailFolderMessageAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: MailFolderMessageAttachmentClient.CreateMailFolderMessageAttachment

ctx := context.TODO()
id := mailfoldermessageattachment.NewMeMailFolderIdMessageID("mailFolderId", "messageId")

payload := mailfoldermessageattachment.Attachment{
	// ...
}


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

Example Usage: MailFolderMessageAttachmentClient.CreateMailFolderMessageAttachmentsUploadSession

ctx := context.TODO()
id := mailfoldermessageattachment.NewMeMailFolderIdMessageID("mailFolderId", "messageId")

payload := mailfoldermessageattachment.CreateMailFolderMessageAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: MailFolderMessageAttachmentClient.DeleteMailFolderMessageAttachment

ctx := context.TODO()
id := mailfoldermessageattachment.NewMeMailFolderIdMessageIdAttachmentID("mailFolderId", "messageId", "attachmentId")

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

Example Usage: MailFolderMessageAttachmentClient.GetMailFolderMessageAttachment

ctx := context.TODO()
id := mailfoldermessageattachment.NewMeMailFolderIdMessageIdAttachmentID("mailFolderId", "messageId", "attachmentId")

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

Example Usage: MailFolderMessageAttachmentClient.GetMailFolderMessageAttachmentsCount

ctx := context.TODO()
id := mailfoldermessageattachment.NewMeMailFolderIdMessageID("mailFolderId", "messageId")

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

Example Usage: MailFolderMessageAttachmentClient.ListMailFolderMessageAttachments

ctx := context.TODO()
id := mailfoldermessageattachment.NewMeMailFolderIdMessageID("mailFolderId", "messageId")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentOperationPredicate

type AttachmentOperationPredicate struct {
}

func (AttachmentOperationPredicate) Matches

type CreateMailFolderMessageAttachmentOperationOptions

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

func DefaultCreateMailFolderMessageAttachmentOperationOptions

func DefaultCreateMailFolderMessageAttachmentOperationOptions() CreateMailFolderMessageAttachmentOperationOptions

func (CreateMailFolderMessageAttachmentOperationOptions) ToHeaders

func (CreateMailFolderMessageAttachmentOperationOptions) ToOData

func (CreateMailFolderMessageAttachmentOperationOptions) ToQuery

type CreateMailFolderMessageAttachmentOperationResponse

type CreateMailFolderMessageAttachmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Attachment
}

type CreateMailFolderMessageAttachmentsUploadSessionOperationOptions

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

func (CreateMailFolderMessageAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateMailFolderMessageAttachmentsUploadSessionOperationOptions) ToOData

func (CreateMailFolderMessageAttachmentsUploadSessionOperationOptions) ToQuery

type CreateMailFolderMessageAttachmentsUploadSessionOperationResponse

type CreateMailFolderMessageAttachmentsUploadSessionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.UploadSession
}

type CreateMailFolderMessageAttachmentsUploadSessionRequest

type CreateMailFolderMessageAttachmentsUploadSessionRequest struct {
	AttachmentItem *beta.AttachmentItem `json:"AttachmentItem,omitempty"`
}

type DeleteMailFolderMessageAttachmentOperationOptions

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

func DefaultDeleteMailFolderMessageAttachmentOperationOptions

func DefaultDeleteMailFolderMessageAttachmentOperationOptions() DeleteMailFolderMessageAttachmentOperationOptions

func (DeleteMailFolderMessageAttachmentOperationOptions) ToHeaders

func (DeleteMailFolderMessageAttachmentOperationOptions) ToOData

func (DeleteMailFolderMessageAttachmentOperationOptions) ToQuery

type DeleteMailFolderMessageAttachmentOperationResponse

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

type GetMailFolderMessageAttachmentOperationOptions

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

func DefaultGetMailFolderMessageAttachmentOperationOptions

func DefaultGetMailFolderMessageAttachmentOperationOptions() GetMailFolderMessageAttachmentOperationOptions

func (GetMailFolderMessageAttachmentOperationOptions) ToHeaders

func (GetMailFolderMessageAttachmentOperationOptions) ToOData

func (GetMailFolderMessageAttachmentOperationOptions) ToQuery

type GetMailFolderMessageAttachmentOperationResponse

type GetMailFolderMessageAttachmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.Attachment
}

type GetMailFolderMessageAttachmentsCountOperationOptions

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

func DefaultGetMailFolderMessageAttachmentsCountOperationOptions

func DefaultGetMailFolderMessageAttachmentsCountOperationOptions() GetMailFolderMessageAttachmentsCountOperationOptions

func (GetMailFolderMessageAttachmentsCountOperationOptions) ToHeaders

func (GetMailFolderMessageAttachmentsCountOperationOptions) ToOData

func (GetMailFolderMessageAttachmentsCountOperationOptions) ToQuery

type GetMailFolderMessageAttachmentsCountOperationResponse

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

type ListMailFolderMessageAttachmentsCompleteResult

type ListMailFolderMessageAttachmentsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.Attachment
}

type ListMailFolderMessageAttachmentsCustomPager

type ListMailFolderMessageAttachmentsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListMailFolderMessageAttachmentsOperationOptions

type ListMailFolderMessageAttachmentsOperationOptions 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 DefaultListMailFolderMessageAttachmentsOperationOptions

func DefaultListMailFolderMessageAttachmentsOperationOptions() ListMailFolderMessageAttachmentsOperationOptions

func (ListMailFolderMessageAttachmentsOperationOptions) ToHeaders

func (ListMailFolderMessageAttachmentsOperationOptions) ToOData

func (ListMailFolderMessageAttachmentsOperationOptions) ToQuery

type ListMailFolderMessageAttachmentsOperationResponse

type ListMailFolderMessageAttachmentsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.Attachment
}

type MailFolderMessageAttachmentClient

type MailFolderMessageAttachmentClient struct {
	Client *msgraph.Client
}

func NewMailFolderMessageAttachmentClientWithBaseURI

func NewMailFolderMessageAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*MailFolderMessageAttachmentClient, error)

func (MailFolderMessageAttachmentClient) CreateMailFolderMessageAttachment

CreateMailFolderMessageAttachment - Create new navigation property to attachments for me

func (MailFolderMessageAttachmentClient) CreateMailFolderMessageAttachmentsUploadSession

CreateMailFolderMessageAttachmentsUploadSession - Invoke action createUploadSession. Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example.

func (MailFolderMessageAttachmentClient) DeleteMailFolderMessageAttachment

DeleteMailFolderMessageAttachment - Delete navigation property attachments for me

func (MailFolderMessageAttachmentClient) GetMailFolderMessageAttachment

GetMailFolderMessageAttachment - Get attachments from me. The fileAttachment and itemAttachment attachments for the message.

func (MailFolderMessageAttachmentClient) GetMailFolderMessageAttachmentsCount

GetMailFolderMessageAttachmentsCount - Get the number of the resource

func (MailFolderMessageAttachmentClient) ListMailFolderMessageAttachments

ListMailFolderMessageAttachments - Get attachments from me. The fileAttachment and itemAttachment attachments for the message.

func (MailFolderMessageAttachmentClient) ListMailFolderMessageAttachmentsComplete

ListMailFolderMessageAttachmentsComplete retrieves all the results into a single object

func (MailFolderMessageAttachmentClient) ListMailFolderMessageAttachmentsCompleteMatchingPredicate

ListMailFolderMessageAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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