todolisttaskattachment

package
v0.20240923.1151247 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := todolisttaskattachment.NewTodoListTaskAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: TodoListTaskAttachmentClient.CreateTodoListTaskAttachment

ctx := context.TODO()
id := todolisttaskattachment.NewMeTodoListIdTaskID("todoTaskListId", "todoTaskId")

payload := todolisttaskattachment.AttachmentBase{
	// ...
}


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

Example Usage: TodoListTaskAttachmentClient.CreateTodoListTaskAttachmentsUploadSession

ctx := context.TODO()
id := todolisttaskattachment.NewMeTodoListIdTaskID("todoTaskListId", "todoTaskId")

payload := todolisttaskattachment.CreateTodoListTaskAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: TodoListTaskAttachmentClient.DeleteTodoListTaskAttachment

ctx := context.TODO()
id := todolisttaskattachment.NewMeTodoListIdTaskIdAttachmentID("todoTaskListId", "todoTaskId", "attachmentBaseId")

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

Example Usage: TodoListTaskAttachmentClient.GetTodoListTaskAttachment

ctx := context.TODO()
id := todolisttaskattachment.NewMeTodoListIdTaskIdAttachmentID("todoTaskListId", "todoTaskId", "attachmentBaseId")

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

Example Usage: TodoListTaskAttachmentClient.GetTodoListTaskAttachmentValue

ctx := context.TODO()
id := todolisttaskattachment.NewMeTodoListIdTaskIdAttachmentID("todoTaskListId", "todoTaskId", "attachmentBaseId")

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

Example Usage: TodoListTaskAttachmentClient.GetTodoListTaskAttachmentsCount

ctx := context.TODO()
id := todolisttaskattachment.NewMeTodoListIdTaskID("todoTaskListId", "todoTaskId")

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

Example Usage: TodoListTaskAttachmentClient.ListTodoListTaskAttachments

ctx := context.TODO()
id := todolisttaskattachment.NewMeTodoListIdTaskID("todoTaskListId", "todoTaskId")

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

Example Usage: TodoListTaskAttachmentClient.RemoveTodoListTaskAttachmentValue

ctx := context.TODO()
id := todolisttaskattachment.NewMeTodoListIdTaskIdAttachmentID("todoTaskListId", "todoTaskId", "attachmentBaseId")

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

Example Usage: TodoListTaskAttachmentClient.SetTodoListTaskAttachmentValue

ctx := context.TODO()
id := todolisttaskattachment.NewMeTodoListIdTaskIdAttachmentID("todoTaskListId", "todoTaskId", "attachmentBaseId")
var payload []byte

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentBaseOperationPredicate

type AttachmentBaseOperationPredicate struct {
}

func (AttachmentBaseOperationPredicate) Matches

type CreateTodoListTaskAttachmentOperationOptions

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

func DefaultCreateTodoListTaskAttachmentOperationOptions

func DefaultCreateTodoListTaskAttachmentOperationOptions() CreateTodoListTaskAttachmentOperationOptions

func (CreateTodoListTaskAttachmentOperationOptions) ToHeaders

func (CreateTodoListTaskAttachmentOperationOptions) ToOData

func (CreateTodoListTaskAttachmentOperationOptions) ToQuery

type CreateTodoListTaskAttachmentOperationResponse

type CreateTodoListTaskAttachmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.AttachmentBase
}

type CreateTodoListTaskAttachmentsUploadSessionOperationOptions

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

func (CreateTodoListTaskAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateTodoListTaskAttachmentsUploadSessionOperationOptions) ToOData

func (CreateTodoListTaskAttachmentsUploadSessionOperationOptions) ToQuery

type CreateTodoListTaskAttachmentsUploadSessionOperationResponse

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

type CreateTodoListTaskAttachmentsUploadSessionRequest

type CreateTodoListTaskAttachmentsUploadSessionRequest struct {
	AttachmentInfo *beta.AttachmentInfo `json:"attachmentInfo,omitempty"`
}

type DeleteTodoListTaskAttachmentOperationOptions

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

func DefaultDeleteTodoListTaskAttachmentOperationOptions

func DefaultDeleteTodoListTaskAttachmentOperationOptions() DeleteTodoListTaskAttachmentOperationOptions

func (DeleteTodoListTaskAttachmentOperationOptions) ToHeaders

func (DeleteTodoListTaskAttachmentOperationOptions) ToOData

func (DeleteTodoListTaskAttachmentOperationOptions) ToQuery

type DeleteTodoListTaskAttachmentOperationResponse

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

type GetTodoListTaskAttachmentOperationOptions

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

func DefaultGetTodoListTaskAttachmentOperationOptions

func DefaultGetTodoListTaskAttachmentOperationOptions() GetTodoListTaskAttachmentOperationOptions

func (GetTodoListTaskAttachmentOperationOptions) ToHeaders

func (GetTodoListTaskAttachmentOperationOptions) ToOData

func (GetTodoListTaskAttachmentOperationOptions) ToQuery

type GetTodoListTaskAttachmentOperationResponse

type GetTodoListTaskAttachmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.AttachmentBase
}

type GetTodoListTaskAttachmentValueOperationOptions

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

func DefaultGetTodoListTaskAttachmentValueOperationOptions

func DefaultGetTodoListTaskAttachmentValueOperationOptions() GetTodoListTaskAttachmentValueOperationOptions

func (GetTodoListTaskAttachmentValueOperationOptions) ToHeaders

func (GetTodoListTaskAttachmentValueOperationOptions) ToOData

func (GetTodoListTaskAttachmentValueOperationOptions) ToQuery

type GetTodoListTaskAttachmentValueOperationResponse

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

type GetTodoListTaskAttachmentsCountOperationOptions

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

func DefaultGetTodoListTaskAttachmentsCountOperationOptions

func DefaultGetTodoListTaskAttachmentsCountOperationOptions() GetTodoListTaskAttachmentsCountOperationOptions

func (GetTodoListTaskAttachmentsCountOperationOptions) ToHeaders

func (GetTodoListTaskAttachmentsCountOperationOptions) ToOData

func (GetTodoListTaskAttachmentsCountOperationOptions) ToQuery

type GetTodoListTaskAttachmentsCountOperationResponse

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

type ListTodoListTaskAttachmentsCompleteResult

type ListTodoListTaskAttachmentsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.AttachmentBase
}

type ListTodoListTaskAttachmentsCustomPager

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

type ListTodoListTaskAttachmentsOperationOptions

type ListTodoListTaskAttachmentsOperationOptions 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 DefaultListTodoListTaskAttachmentsOperationOptions

func DefaultListTodoListTaskAttachmentsOperationOptions() ListTodoListTaskAttachmentsOperationOptions

func (ListTodoListTaskAttachmentsOperationOptions) ToHeaders

func (ListTodoListTaskAttachmentsOperationOptions) ToOData

func (ListTodoListTaskAttachmentsOperationOptions) ToQuery

type ListTodoListTaskAttachmentsOperationResponse

type ListTodoListTaskAttachmentsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.AttachmentBase
}

type RemoveTodoListTaskAttachmentValueOperationOptions

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

func DefaultRemoveTodoListTaskAttachmentValueOperationOptions

func DefaultRemoveTodoListTaskAttachmentValueOperationOptions() RemoveTodoListTaskAttachmentValueOperationOptions

func (RemoveTodoListTaskAttachmentValueOperationOptions) ToHeaders

func (RemoveTodoListTaskAttachmentValueOperationOptions) ToOData

func (RemoveTodoListTaskAttachmentValueOperationOptions) ToQuery

type RemoveTodoListTaskAttachmentValueOperationResponse

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

type SetTodoListTaskAttachmentValueOperationOptions

type SetTodoListTaskAttachmentValueOperationOptions struct {
	ContentType string
	Metadata    *odata.Metadata
	RetryFunc   client.RequestRetryFunc
}

func DefaultSetTodoListTaskAttachmentValueOperationOptions

func DefaultSetTodoListTaskAttachmentValueOperationOptions() SetTodoListTaskAttachmentValueOperationOptions

func (SetTodoListTaskAttachmentValueOperationOptions) ToHeaders

func (SetTodoListTaskAttachmentValueOperationOptions) ToOData

func (SetTodoListTaskAttachmentValueOperationOptions) ToQuery

type SetTodoListTaskAttachmentValueOperationResponse

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

type TodoListTaskAttachmentClient

type TodoListTaskAttachmentClient struct {
	Client *msgraph.Client
}

func NewTodoListTaskAttachmentClientWithBaseURI

func NewTodoListTaskAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*TodoListTaskAttachmentClient, error)

func (TodoListTaskAttachmentClient) CreateTodoListTaskAttachment

CreateTodoListTaskAttachment - Create taskFileAttachment. Add a new taskFileAttachment object to a todoTask. This operation limits the size of the attachment you can add to under 3 MB. If the size of the file attachments is more than 3 MB, create an upload session to upload the attachments.

func (TodoListTaskAttachmentClient) CreateTodoListTaskAttachmentsUploadSession

CreateTodoListTaskAttachmentsUploadSession - Invoke action createUploadSession. Create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task.

func (TodoListTaskAttachmentClient) DeleteTodoListTaskAttachment

DeleteTodoListTaskAttachment - Delete taskFileAttachment. Delete a taskFileAttachment object from a todoTask resource.

func (TodoListTaskAttachmentClient) GetTodoListTaskAttachment

GetTodoListTaskAttachment - Get taskFileAttachment. Read the properties and relationships of a taskFileAttachment object.

func (TodoListTaskAttachmentClient) GetTodoListTaskAttachmentValue

GetTodoListTaskAttachmentValue - List taskFileAttachments. Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes.

func (TodoListTaskAttachmentClient) GetTodoListTaskAttachmentsCount

GetTodoListTaskAttachmentsCount - Get the number of the resource

func (TodoListTaskAttachmentClient) ListTodoListTaskAttachments

ListTodoListTaskAttachments - List taskFileAttachments. Get a list of the taskFileAttachment objects and their properties. The contentBytes property will not be returned in the response. Use the Get attachment API to view the contentBytes.

func (TodoListTaskAttachmentClient) ListTodoListTaskAttachmentsComplete

ListTodoListTaskAttachmentsComplete retrieves all the results into a single object

func (TodoListTaskAttachmentClient) ListTodoListTaskAttachmentsCompleteMatchingPredicate

ListTodoListTaskAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TodoListTaskAttachmentClient) RemoveTodoListTaskAttachmentValue

RemoveTodoListTaskAttachmentValue - Delete taskFileAttachment. Delete a taskFileAttachment object from a todoTask resource.

func (TodoListTaskAttachmentClient) SetTodoListTaskAttachmentValue

SetTodoListTaskAttachmentValue - Update media content for the navigation property attachments in me. The unique identifier for an entity. Read-only.

Jump to

Keyboard shortcuts

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