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: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/todolisttaskattachment Documentation

The todolisttaskattachment SDK allows for interaction with Microsoft Graph users (API Version stable).

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

Client Initialization

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

Example Usage: TodoListTaskAttachmentClient.CreateTodoListTaskAttachment

ctx := context.TODO()
id := todolisttaskattachment.NewUserIdTodoListIdTaskID("userId", "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.NewUserIdTodoListIdTaskID("userId", "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.NewUserIdTodoListIdTaskIdAttachmentID("userId", "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.NewUserIdTodoListIdTaskIdAttachmentID("userId", "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.NewUserIdTodoListIdTaskIdAttachmentID("userId", "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.NewUserIdTodoListIdTaskID("userId", "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.NewUserIdTodoListIdTaskID("userId", "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.NewUserIdTodoListIdTaskIdAttachmentID("userId", "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.NewUserIdTodoListIdTaskIdAttachmentID("userId", "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        stable.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        *stable.UploadSession
}

type CreateTodoListTaskAttachmentsUploadSessionRequest

type CreateTodoListTaskAttachmentsUploadSessionRequest struct {
	AttachmentInfo *stable.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        stable.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              []stable.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        *[]stable.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 new navigation property to attachments for users

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 navigation property attachments for users

func (TodoListTaskAttachmentClient) GetTodoListTaskAttachment

GetTodoListTaskAttachment - Get attachments from users. A collection of file attachments for the task.

func (TodoListTaskAttachmentClient) GetTodoListTaskAttachmentValue

GetTodoListTaskAttachmentValue - Get media content for the navigation property attachments from users. The unique identifier for an entity. Read-only.

func (TodoListTaskAttachmentClient) GetTodoListTaskAttachmentsCount

GetTodoListTaskAttachmentsCount - Get the number of the resource

func (TodoListTaskAttachmentClient) ListTodoListTaskAttachments

ListTodoListTaskAttachments - Get attachments from users. A collection of file attachments for the task.

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 media content for the navigation property attachments in users. The unique identifier for an entity. Read-only.

func (TodoListTaskAttachmentClient) SetTodoListTaskAttachmentValue

SetTodoListTaskAttachmentValue - Update media content for the navigation property attachments in users. 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