outlooktaskattachment

package
v0.20241128.1112539 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := outlooktaskattachment.NewOutlookTaskAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OutlookTaskAttachmentClient.CreateOutlookTaskAttachment

ctx := context.TODO()
id := outlooktaskattachment.NewMeOutlookTaskID("outlookTaskId")

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


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

Example Usage: OutlookTaskAttachmentClient.CreateOutlookTaskAttachmentsUploadSession

ctx := context.TODO()
id := outlooktaskattachment.NewMeOutlookTaskID("outlookTaskId")

payload := outlooktaskattachment.CreateOutlookTaskAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: OutlookTaskAttachmentClient.DeleteOutlookTaskAttachment

ctx := context.TODO()
id := outlooktaskattachment.NewMeOutlookTaskIdAttachmentID("outlookTaskId", "attachmentId")

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

Example Usage: OutlookTaskAttachmentClient.GetOutlookTaskAttachment

ctx := context.TODO()
id := outlooktaskattachment.NewMeOutlookTaskIdAttachmentID("outlookTaskId", "attachmentId")

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

Example Usage: OutlookTaskAttachmentClient.GetOutlookTaskAttachmentsCount

ctx := context.TODO()
id := outlooktaskattachment.NewMeOutlookTaskID("outlookTaskId")

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

Example Usage: OutlookTaskAttachmentClient.ListOutlookTaskAttachments

ctx := context.TODO()
id := outlooktaskattachment.NewMeOutlookTaskID("outlookTaskId")

// alternatively `client.ListOutlookTaskAttachments(ctx, id, outlooktaskattachment.DefaultListOutlookTaskAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListOutlookTaskAttachmentsComplete(ctx, id, outlooktaskattachment.DefaultListOutlookTaskAttachmentsOperationOptions())
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 CreateOutlookTaskAttachmentOperationOptions

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

func DefaultCreateOutlookTaskAttachmentOperationOptions

func DefaultCreateOutlookTaskAttachmentOperationOptions() CreateOutlookTaskAttachmentOperationOptions

func (CreateOutlookTaskAttachmentOperationOptions) ToHeaders

func (CreateOutlookTaskAttachmentOperationOptions) ToOData

func (CreateOutlookTaskAttachmentOperationOptions) ToQuery

type CreateOutlookTaskAttachmentOperationResponse

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

type CreateOutlookTaskAttachmentsUploadSessionOperationOptions

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

func (CreateOutlookTaskAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateOutlookTaskAttachmentsUploadSessionOperationOptions) ToOData

func (CreateOutlookTaskAttachmentsUploadSessionOperationOptions) ToQuery

type CreateOutlookTaskAttachmentsUploadSessionOperationResponse

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

type CreateOutlookTaskAttachmentsUploadSessionRequest

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

type DeleteOutlookTaskAttachmentOperationOptions

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

func DefaultDeleteOutlookTaskAttachmentOperationOptions

func DefaultDeleteOutlookTaskAttachmentOperationOptions() DeleteOutlookTaskAttachmentOperationOptions

func (DeleteOutlookTaskAttachmentOperationOptions) ToHeaders

func (DeleteOutlookTaskAttachmentOperationOptions) ToOData

func (DeleteOutlookTaskAttachmentOperationOptions) ToQuery

type DeleteOutlookTaskAttachmentOperationResponse

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

type GetOutlookTaskAttachmentOperationOptions

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

func DefaultGetOutlookTaskAttachmentOperationOptions

func DefaultGetOutlookTaskAttachmentOperationOptions() GetOutlookTaskAttachmentOperationOptions

func (GetOutlookTaskAttachmentOperationOptions) ToHeaders

func (GetOutlookTaskAttachmentOperationOptions) ToOData

func (GetOutlookTaskAttachmentOperationOptions) ToQuery

type GetOutlookTaskAttachmentOperationResponse

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

type GetOutlookTaskAttachmentsCountOperationOptions

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

func DefaultGetOutlookTaskAttachmentsCountOperationOptions

func DefaultGetOutlookTaskAttachmentsCountOperationOptions() GetOutlookTaskAttachmentsCountOperationOptions

func (GetOutlookTaskAttachmentsCountOperationOptions) ToHeaders

func (GetOutlookTaskAttachmentsCountOperationOptions) ToOData

func (GetOutlookTaskAttachmentsCountOperationOptions) ToQuery

type GetOutlookTaskAttachmentsCountOperationResponse

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

type ListOutlookTaskAttachmentsCompleteResult

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

type ListOutlookTaskAttachmentsCustomPager

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

type ListOutlookTaskAttachmentsOperationOptions

type ListOutlookTaskAttachmentsOperationOptions 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 DefaultListOutlookTaskAttachmentsOperationOptions

func DefaultListOutlookTaskAttachmentsOperationOptions() ListOutlookTaskAttachmentsOperationOptions

func (ListOutlookTaskAttachmentsOperationOptions) ToHeaders

func (ListOutlookTaskAttachmentsOperationOptions) ToOData

func (ListOutlookTaskAttachmentsOperationOptions) ToQuery

type ListOutlookTaskAttachmentsOperationResponse

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

type OutlookTaskAttachmentClient

type OutlookTaskAttachmentClient struct {
	Client *msgraph.Client
}

func NewOutlookTaskAttachmentClientWithBaseURI

func NewOutlookTaskAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*OutlookTaskAttachmentClient, error)

func (OutlookTaskAttachmentClient) CreateOutlookTaskAttachment

CreateOutlookTaskAttachment - Create attachment (deprecated). Use this API to add an attachment to an outlookTask. The attachment can be a file (of fileAttachment type) or Outlook item (itemAttachment type).

func (OutlookTaskAttachmentClient) CreateOutlookTaskAttachmentsUploadSession

CreateOutlookTaskAttachmentsUploadSession - 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 (OutlookTaskAttachmentClient) DeleteOutlookTaskAttachment

DeleteOutlookTaskAttachment - Delete navigation property attachments for me

func (OutlookTaskAttachmentClient) GetOutlookTaskAttachment

GetOutlookTaskAttachment - Get attachments from me. The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable.

func (OutlookTaskAttachmentClient) GetOutlookTaskAttachmentsCount

GetOutlookTaskAttachmentsCount - Get the number of the resource

func (OutlookTaskAttachmentClient) ListOutlookTaskAttachments

ListOutlookTaskAttachments - Get attachments from me. The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable.

func (OutlookTaskAttachmentClient) ListOutlookTaskAttachmentsComplete

ListOutlookTaskAttachmentsComplete retrieves all the results into a single object

func (OutlookTaskAttachmentClient) ListOutlookTaskAttachmentsCompleteMatchingPredicate

ListOutlookTaskAttachmentsCompleteMatchingPredicate 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