outlooktaskgrouptaskfoldertaskattachment

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/outlooktaskgrouptaskfoldertaskattachment Documentation

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

Client Initialization

client := outlooktaskgrouptaskfoldertaskattachment.NewOutlookTaskGroupTaskFolderTaskAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: OutlookTaskGroupTaskFolderTaskAttachmentClient.CreateOutlookTaskGroupTaskFolderTaskAttachment

ctx := context.TODO()
id := outlooktaskgrouptaskfoldertaskattachment.NewUserIdOutlookTaskGroupIdTaskFolderIdTaskID("userId", "outlookTaskGroupId", "outlookTaskFolderId", "outlookTaskId")

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


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

Example Usage: OutlookTaskGroupTaskFolderTaskAttachmentClient.CreateOutlookTaskGroupTaskFolderTaskAttachmentsUploadSession

ctx := context.TODO()
id := outlooktaskgrouptaskfoldertaskattachment.NewUserIdOutlookTaskGroupIdTaskFolderIdTaskID("userId", "outlookTaskGroupId", "outlookTaskFolderId", "outlookTaskId")

payload := outlooktaskgrouptaskfoldertaskattachment.CreateOutlookTaskGroupTaskFolderTaskAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: OutlookTaskGroupTaskFolderTaskAttachmentClient.DeleteOutlookTaskGroupTaskFolderTaskAttachment

ctx := context.TODO()
id := outlooktaskgrouptaskfoldertaskattachment.NewUserIdOutlookTaskGroupIdTaskFolderIdTaskIdAttachmentID("userId", "outlookTaskGroupId", "outlookTaskFolderId", "outlookTaskId", "attachmentId")

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

Example Usage: OutlookTaskGroupTaskFolderTaskAttachmentClient.GetOutlookTaskGroupTaskFolderTaskAttachment

ctx := context.TODO()
id := outlooktaskgrouptaskfoldertaskattachment.NewUserIdOutlookTaskGroupIdTaskFolderIdTaskIdAttachmentID("userId", "outlookTaskGroupId", "outlookTaskFolderId", "outlookTaskId", "attachmentId")

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

Example Usage: OutlookTaskGroupTaskFolderTaskAttachmentClient.GetOutlookTaskGroupTaskFolderTaskAttachmentsCount

ctx := context.TODO()
id := outlooktaskgrouptaskfoldertaskattachment.NewUserIdOutlookTaskGroupIdTaskFolderIdTaskID("userId", "outlookTaskGroupId", "outlookTaskFolderId", "outlookTaskId")

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

Example Usage: OutlookTaskGroupTaskFolderTaskAttachmentClient.ListOutlookTaskGroupTaskFolderTaskAttachments

ctx := context.TODO()
id := outlooktaskgrouptaskfoldertaskattachment.NewUserIdOutlookTaskGroupIdTaskFolderIdTaskID("userId", "outlookTaskGroupId", "outlookTaskFolderId", "outlookTaskId")

// alternatively `client.ListOutlookTaskGroupTaskFolderTaskAttachments(ctx, id, outlooktaskgrouptaskfoldertaskattachment.DefaultListOutlookTaskGroupTaskFolderTaskAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListOutlookTaskGroupTaskFolderTaskAttachmentsComplete(ctx, id, outlooktaskgrouptaskfoldertaskattachment.DefaultListOutlookTaskGroupTaskFolderTaskAttachmentsOperationOptions())
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 CreateOutlookTaskGroupTaskFolderTaskAttachmentOperationOptions

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

func (CreateOutlookTaskGroupTaskFolderTaskAttachmentOperationOptions) ToHeaders

func (CreateOutlookTaskGroupTaskFolderTaskAttachmentOperationOptions) ToOData

func (CreateOutlookTaskGroupTaskFolderTaskAttachmentOperationOptions) ToQuery

type CreateOutlookTaskGroupTaskFolderTaskAttachmentOperationResponse

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

type CreateOutlookTaskGroupTaskFolderTaskAttachmentsUploadSessionOperationOptions

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

func (CreateOutlookTaskGroupTaskFolderTaskAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateOutlookTaskGroupTaskFolderTaskAttachmentsUploadSessionOperationOptions) ToOData

func (CreateOutlookTaskGroupTaskFolderTaskAttachmentsUploadSessionOperationOptions) ToQuery

type CreateOutlookTaskGroupTaskFolderTaskAttachmentsUploadSessionOperationResponse

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

type CreateOutlookTaskGroupTaskFolderTaskAttachmentsUploadSessionRequest

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

type DeleteOutlookTaskGroupTaskFolderTaskAttachmentOperationOptions

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

func (DeleteOutlookTaskGroupTaskFolderTaskAttachmentOperationOptions) ToHeaders

func (DeleteOutlookTaskGroupTaskFolderTaskAttachmentOperationOptions) ToOData

func (DeleteOutlookTaskGroupTaskFolderTaskAttachmentOperationOptions) ToQuery

type DeleteOutlookTaskGroupTaskFolderTaskAttachmentOperationResponse

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

type GetOutlookTaskGroupTaskFolderTaskAttachmentOperationOptions

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

func (GetOutlookTaskGroupTaskFolderTaskAttachmentOperationOptions) ToHeaders

func (GetOutlookTaskGroupTaskFolderTaskAttachmentOperationOptions) ToOData

func (GetOutlookTaskGroupTaskFolderTaskAttachmentOperationOptions) ToQuery

type GetOutlookTaskGroupTaskFolderTaskAttachmentOperationResponse

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

type GetOutlookTaskGroupTaskFolderTaskAttachmentsCountOperationOptions

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

func (GetOutlookTaskGroupTaskFolderTaskAttachmentsCountOperationOptions) ToHeaders

func (GetOutlookTaskGroupTaskFolderTaskAttachmentsCountOperationOptions) ToOData

func (GetOutlookTaskGroupTaskFolderTaskAttachmentsCountOperationOptions) ToQuery

type GetOutlookTaskGroupTaskFolderTaskAttachmentsCountOperationResponse

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

type ListOutlookTaskGroupTaskFolderTaskAttachmentsCompleteResult

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

type ListOutlookTaskGroupTaskFolderTaskAttachmentsCustomPager

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

type ListOutlookTaskGroupTaskFolderTaskAttachmentsOperationOptions

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

func (ListOutlookTaskGroupTaskFolderTaskAttachmentsOperationOptions) ToOData

func (ListOutlookTaskGroupTaskFolderTaskAttachmentsOperationOptions) ToQuery

type ListOutlookTaskGroupTaskFolderTaskAttachmentsOperationResponse

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

type OutlookTaskGroupTaskFolderTaskAttachmentClient

type OutlookTaskGroupTaskFolderTaskAttachmentClient struct {
	Client *msgraph.Client
}

func NewOutlookTaskGroupTaskFolderTaskAttachmentClientWithBaseURI

func NewOutlookTaskGroupTaskFolderTaskAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*OutlookTaskGroupTaskFolderTaskAttachmentClient, error)

func (OutlookTaskGroupTaskFolderTaskAttachmentClient) CreateOutlookTaskGroupTaskFolderTaskAttachment

CreateOutlookTaskGroupTaskFolderTaskAttachment - Create new navigation property to attachments for users

func (OutlookTaskGroupTaskFolderTaskAttachmentClient) CreateOutlookTaskGroupTaskFolderTaskAttachmentsUploadSession

CreateOutlookTaskGroupTaskFolderTaskAttachmentsUploadSession - 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 (OutlookTaskGroupTaskFolderTaskAttachmentClient) DeleteOutlookTaskGroupTaskFolderTaskAttachment

DeleteOutlookTaskGroupTaskFolderTaskAttachment - Delete navigation property attachments for users

func (OutlookTaskGroupTaskFolderTaskAttachmentClient) GetOutlookTaskGroupTaskFolderTaskAttachment

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

func (OutlookTaskGroupTaskFolderTaskAttachmentClient) GetOutlookTaskGroupTaskFolderTaskAttachmentsCount

GetOutlookTaskGroupTaskFolderTaskAttachmentsCount - Get the number of the resource

func (OutlookTaskGroupTaskFolderTaskAttachmentClient) ListOutlookTaskGroupTaskFolderTaskAttachments

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

func (OutlookTaskGroupTaskFolderTaskAttachmentClient) ListOutlookTaskGroupTaskFolderTaskAttachmentsComplete

ListOutlookTaskGroupTaskFolderTaskAttachmentsComplete retrieves all the results into a single object

func (OutlookTaskGroupTaskFolderTaskAttachmentClient) ListOutlookTaskGroupTaskFolderTaskAttachmentsCompleteMatchingPredicate

ListOutlookTaskGroupTaskFolderTaskAttachmentsCompleteMatchingPredicate 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