mailfolderchildfoldermessageattachment

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: 9 Imported by: 0

README

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

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

Client Initialization

client := mailfolderchildfoldermessageattachment.NewMailFolderChildFolderMessageAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: MailFolderChildFolderMessageAttachmentClient.CreateMailFolderChildFolderMessageAttachment

ctx := context.TODO()
id := mailfolderchildfoldermessageattachment.NewMeMailFolderIdChildFolderIdMessageID("mailFolderId", "mailFolderId1", "messageId")

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


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

Example Usage: MailFolderChildFolderMessageAttachmentClient.CreateMailFolderChildFolderMessageAttachmentsUploadSession

ctx := context.TODO()
id := mailfolderchildfoldermessageattachment.NewMeMailFolderIdChildFolderIdMessageID("mailFolderId", "mailFolderId1", "messageId")

payload := mailfolderchildfoldermessageattachment.CreateMailFolderChildFolderMessageAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: MailFolderChildFolderMessageAttachmentClient.DeleteMailFolderChildFolderMessageAttachment

ctx := context.TODO()
id := mailfolderchildfoldermessageattachment.NewMeMailFolderIdChildFolderIdMessageIdAttachmentID("mailFolderId", "mailFolderId1", "messageId", "attachmentId")

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

Example Usage: MailFolderChildFolderMessageAttachmentClient.GetMailFolderChildFolderMessageAttachment

ctx := context.TODO()
id := mailfolderchildfoldermessageattachment.NewMeMailFolderIdChildFolderIdMessageIdAttachmentID("mailFolderId", "mailFolderId1", "messageId", "attachmentId")

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

Example Usage: MailFolderChildFolderMessageAttachmentClient.GetMailFolderChildFolderMessageAttachmentsCount

ctx := context.TODO()
id := mailfolderchildfoldermessageattachment.NewMeMailFolderIdChildFolderIdMessageID("mailFolderId", "mailFolderId1", "messageId")

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

Example Usage: MailFolderChildFolderMessageAttachmentClient.ListMailFolderChildFolderMessageAttachments

ctx := context.TODO()
id := mailfolderchildfoldermessageattachment.NewMeMailFolderIdChildFolderIdMessageID("mailFolderId", "mailFolderId1", "messageId")

// alternatively `client.ListMailFolderChildFolderMessageAttachments(ctx, id, mailfolderchildfoldermessageattachment.DefaultListMailFolderChildFolderMessageAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListMailFolderChildFolderMessageAttachmentsComplete(ctx, id, mailfolderchildfoldermessageattachment.DefaultListMailFolderChildFolderMessageAttachmentsOperationOptions())
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 CreateMailFolderChildFolderMessageAttachmentOperationOptions

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

func (CreateMailFolderChildFolderMessageAttachmentOperationOptions) ToHeaders

func (CreateMailFolderChildFolderMessageAttachmentOperationOptions) ToOData

func (CreateMailFolderChildFolderMessageAttachmentOperationOptions) ToQuery

type CreateMailFolderChildFolderMessageAttachmentOperationResponse

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

type CreateMailFolderChildFolderMessageAttachmentsUploadSessionOperationOptions

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

func (CreateMailFolderChildFolderMessageAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateMailFolderChildFolderMessageAttachmentsUploadSessionOperationOptions) ToOData

func (CreateMailFolderChildFolderMessageAttachmentsUploadSessionOperationOptions) ToQuery

type CreateMailFolderChildFolderMessageAttachmentsUploadSessionOperationResponse

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

type CreateMailFolderChildFolderMessageAttachmentsUploadSessionRequest

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

type DeleteMailFolderChildFolderMessageAttachmentOperationOptions

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

func (DeleteMailFolderChildFolderMessageAttachmentOperationOptions) ToHeaders

func (DeleteMailFolderChildFolderMessageAttachmentOperationOptions) ToOData

func (DeleteMailFolderChildFolderMessageAttachmentOperationOptions) ToQuery

type DeleteMailFolderChildFolderMessageAttachmentOperationResponse

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

type GetMailFolderChildFolderMessageAttachmentOperationOptions

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

func (GetMailFolderChildFolderMessageAttachmentOperationOptions) ToHeaders

func (GetMailFolderChildFolderMessageAttachmentOperationOptions) ToOData

func (GetMailFolderChildFolderMessageAttachmentOperationOptions) ToQuery

type GetMailFolderChildFolderMessageAttachmentOperationResponse

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

type GetMailFolderChildFolderMessageAttachmentsCountOperationOptions

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

func (GetMailFolderChildFolderMessageAttachmentsCountOperationOptions) ToHeaders

func (GetMailFolderChildFolderMessageAttachmentsCountOperationOptions) ToOData

func (GetMailFolderChildFolderMessageAttachmentsCountOperationOptions) ToQuery

type GetMailFolderChildFolderMessageAttachmentsCountOperationResponse

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

type ListMailFolderChildFolderMessageAttachmentsCompleteResult

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

type ListMailFolderChildFolderMessageAttachmentsCustomPager

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

type ListMailFolderChildFolderMessageAttachmentsOperationOptions

type ListMailFolderChildFolderMessageAttachmentsOperationOptions 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 (ListMailFolderChildFolderMessageAttachmentsOperationOptions) ToHeaders

func (ListMailFolderChildFolderMessageAttachmentsOperationOptions) ToOData

func (ListMailFolderChildFolderMessageAttachmentsOperationOptions) ToQuery

type ListMailFolderChildFolderMessageAttachmentsOperationResponse

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

type MailFolderChildFolderMessageAttachmentClient

type MailFolderChildFolderMessageAttachmentClient struct {
	Client *msgraph.Client
}

func NewMailFolderChildFolderMessageAttachmentClientWithBaseURI

func NewMailFolderChildFolderMessageAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*MailFolderChildFolderMessageAttachmentClient, error)

func (MailFolderChildFolderMessageAttachmentClient) CreateMailFolderChildFolderMessageAttachment

CreateMailFolderChildFolderMessageAttachment - Create new navigation property to attachments for me

func (MailFolderChildFolderMessageAttachmentClient) CreateMailFolderChildFolderMessageAttachmentsUploadSession

CreateMailFolderChildFolderMessageAttachmentsUploadSession - 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 (MailFolderChildFolderMessageAttachmentClient) DeleteMailFolderChildFolderMessageAttachment

DeleteMailFolderChildFolderMessageAttachment - Delete navigation property attachments for me

func (MailFolderChildFolderMessageAttachmentClient) GetMailFolderChildFolderMessageAttachment

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

func (MailFolderChildFolderMessageAttachmentClient) GetMailFolderChildFolderMessageAttachmentsCount

GetMailFolderChildFolderMessageAttachmentsCount - Get the number of the resource

func (MailFolderChildFolderMessageAttachmentClient) ListMailFolderChildFolderMessageAttachments

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

func (MailFolderChildFolderMessageAttachmentClient) ListMailFolderChildFolderMessageAttachmentsComplete

ListMailFolderChildFolderMessageAttachmentsComplete retrieves all the results into a single object

func (MailFolderChildFolderMessageAttachmentClient) ListMailFolderChildFolderMessageAttachmentsCompleteMatchingPredicate

ListMailFolderChildFolderMessageAttachmentsCompleteMatchingPredicate 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