outlooktaskfoldertaskattachment

package
v0.20241111.1164443 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/outlooktaskfoldertaskattachment Documentation

The outlooktaskfoldertaskattachment SDK allows for interaction with Microsoft Graph users (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/users/beta/outlooktaskfoldertaskattachment"

Client Initialization

client := outlooktaskfoldertaskattachment.NewOutlookTaskFolderTaskAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OutlookTaskFolderTaskAttachmentClient.CreateOutlookTaskFolderTaskAttachment

ctx := context.TODO()
id := outlooktaskfoldertaskattachment.NewUserIdOutlookTaskFolderIdTaskID("userId", "outlookTaskFolderId", "outlookTaskId")

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


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

Example Usage: OutlookTaskFolderTaskAttachmentClient.CreateOutlookTaskFolderTaskAttachmentsUploadSession

ctx := context.TODO()
id := outlooktaskfoldertaskattachment.NewUserIdOutlookTaskFolderIdTaskID("userId", "outlookTaskFolderId", "outlookTaskId")

payload := outlooktaskfoldertaskattachment.CreateOutlookTaskFolderTaskAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: OutlookTaskFolderTaskAttachmentClient.DeleteOutlookTaskFolderTaskAttachment

ctx := context.TODO()
id := outlooktaskfoldertaskattachment.NewUserIdOutlookTaskFolderIdTaskIdAttachmentID("userId", "outlookTaskFolderId", "outlookTaskId", "attachmentId")

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

Example Usage: OutlookTaskFolderTaskAttachmentClient.GetOutlookTaskFolderTaskAttachment

ctx := context.TODO()
id := outlooktaskfoldertaskattachment.NewUserIdOutlookTaskFolderIdTaskIdAttachmentID("userId", "outlookTaskFolderId", "outlookTaskId", "attachmentId")

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

Example Usage: OutlookTaskFolderTaskAttachmentClient.GetOutlookTaskFolderTaskAttachmentsCount

ctx := context.TODO()
id := outlooktaskfoldertaskattachment.NewUserIdOutlookTaskFolderIdTaskID("userId", "outlookTaskFolderId", "outlookTaskId")

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

Example Usage: OutlookTaskFolderTaskAttachmentClient.ListOutlookTaskFolderTaskAttachments

ctx := context.TODO()
id := outlooktaskfoldertaskattachment.NewUserIdOutlookTaskFolderIdTaskID("userId", "outlookTaskFolderId", "outlookTaskId")

// alternatively `client.ListOutlookTaskFolderTaskAttachments(ctx, id, outlooktaskfoldertaskattachment.DefaultListOutlookTaskFolderTaskAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListOutlookTaskFolderTaskAttachmentsComplete(ctx, id, outlooktaskfoldertaskattachment.DefaultListOutlookTaskFolderTaskAttachmentsOperationOptions())
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 CreateOutlookTaskFolderTaskAttachmentOperationOptions

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

func DefaultCreateOutlookTaskFolderTaskAttachmentOperationOptions

func DefaultCreateOutlookTaskFolderTaskAttachmentOperationOptions() CreateOutlookTaskFolderTaskAttachmentOperationOptions

func (CreateOutlookTaskFolderTaskAttachmentOperationOptions) ToHeaders

func (CreateOutlookTaskFolderTaskAttachmentOperationOptions) ToOData

func (CreateOutlookTaskFolderTaskAttachmentOperationOptions) ToQuery

type CreateOutlookTaskFolderTaskAttachmentOperationResponse

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

type CreateOutlookTaskFolderTaskAttachmentsUploadSessionOperationOptions

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

func (CreateOutlookTaskFolderTaskAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateOutlookTaskFolderTaskAttachmentsUploadSessionOperationOptions) ToOData

func (CreateOutlookTaskFolderTaskAttachmentsUploadSessionOperationOptions) ToQuery

type CreateOutlookTaskFolderTaskAttachmentsUploadSessionOperationResponse

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

type CreateOutlookTaskFolderTaskAttachmentsUploadSessionRequest

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

type DeleteOutlookTaskFolderTaskAttachmentOperationOptions

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

func DefaultDeleteOutlookTaskFolderTaskAttachmentOperationOptions

func DefaultDeleteOutlookTaskFolderTaskAttachmentOperationOptions() DeleteOutlookTaskFolderTaskAttachmentOperationOptions

func (DeleteOutlookTaskFolderTaskAttachmentOperationOptions) ToHeaders

func (DeleteOutlookTaskFolderTaskAttachmentOperationOptions) ToOData

func (DeleteOutlookTaskFolderTaskAttachmentOperationOptions) ToQuery

type DeleteOutlookTaskFolderTaskAttachmentOperationResponse

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

type GetOutlookTaskFolderTaskAttachmentOperationOptions

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

func DefaultGetOutlookTaskFolderTaskAttachmentOperationOptions

func DefaultGetOutlookTaskFolderTaskAttachmentOperationOptions() GetOutlookTaskFolderTaskAttachmentOperationOptions

func (GetOutlookTaskFolderTaskAttachmentOperationOptions) ToHeaders

func (GetOutlookTaskFolderTaskAttachmentOperationOptions) ToOData

func (GetOutlookTaskFolderTaskAttachmentOperationOptions) ToQuery

type GetOutlookTaskFolderTaskAttachmentOperationResponse

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

type GetOutlookTaskFolderTaskAttachmentsCountOperationOptions

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

func (GetOutlookTaskFolderTaskAttachmentsCountOperationOptions) ToHeaders

func (GetOutlookTaskFolderTaskAttachmentsCountOperationOptions) ToOData

func (GetOutlookTaskFolderTaskAttachmentsCountOperationOptions) ToQuery

type GetOutlookTaskFolderTaskAttachmentsCountOperationResponse

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

type ListOutlookTaskFolderTaskAttachmentsCompleteResult

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

type ListOutlookTaskFolderTaskAttachmentsCustomPager

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

type ListOutlookTaskFolderTaskAttachmentsOperationOptions

type ListOutlookTaskFolderTaskAttachmentsOperationOptions 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 DefaultListOutlookTaskFolderTaskAttachmentsOperationOptions

func DefaultListOutlookTaskFolderTaskAttachmentsOperationOptions() ListOutlookTaskFolderTaskAttachmentsOperationOptions

func (ListOutlookTaskFolderTaskAttachmentsOperationOptions) ToHeaders

func (ListOutlookTaskFolderTaskAttachmentsOperationOptions) ToOData

func (ListOutlookTaskFolderTaskAttachmentsOperationOptions) ToQuery

type ListOutlookTaskFolderTaskAttachmentsOperationResponse

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

type OutlookTaskFolderTaskAttachmentClient

type OutlookTaskFolderTaskAttachmentClient struct {
	Client *msgraph.Client
}

func NewOutlookTaskFolderTaskAttachmentClientWithBaseURI

func NewOutlookTaskFolderTaskAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*OutlookTaskFolderTaskAttachmentClient, error)

func (OutlookTaskFolderTaskAttachmentClient) CreateOutlookTaskFolderTaskAttachment

CreateOutlookTaskFolderTaskAttachment - Create new navigation property to attachments for users

func (OutlookTaskFolderTaskAttachmentClient) CreateOutlookTaskFolderTaskAttachmentsUploadSession

CreateOutlookTaskFolderTaskAttachmentsUploadSession - 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 (OutlookTaskFolderTaskAttachmentClient) DeleteOutlookTaskFolderTaskAttachment

DeleteOutlookTaskFolderTaskAttachment - Delete navigation property attachments for users

func (OutlookTaskFolderTaskAttachmentClient) GetOutlookTaskFolderTaskAttachment

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

func (OutlookTaskFolderTaskAttachmentClient) GetOutlookTaskFolderTaskAttachmentsCount

GetOutlookTaskFolderTaskAttachmentsCount - Get the number of the resource

func (OutlookTaskFolderTaskAttachmentClient) ListOutlookTaskFolderTaskAttachments

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

func (OutlookTaskFolderTaskAttachmentClient) ListOutlookTaskFolderTaskAttachmentsComplete

ListOutlookTaskFolderTaskAttachmentsComplete retrieves all the results into a single object

func (OutlookTaskFolderTaskAttachmentClient) ListOutlookTaskFolderTaskAttachmentsCompleteMatchingPredicate

ListOutlookTaskFolderTaskAttachmentsCompleteMatchingPredicate 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