threadpostattachment

package
v0.20241126.2320 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/threadpostattachment Documentation

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

Client Initialization

client := threadpostattachment.NewThreadPostAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ThreadPostAttachmentClient.CreateThreadPostAttachment

ctx := context.TODO()
id := threadpostattachment.NewGroupIdThreadIdPostID("groupId", "conversationThreadId", "postId")

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


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

Example Usage: ThreadPostAttachmentClient.CreateThreadPostAttachmentsUploadSession

ctx := context.TODO()
id := threadpostattachment.NewGroupIdThreadIdPostID("groupId", "conversationThreadId", "postId")

payload := threadpostattachment.CreateThreadPostAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: ThreadPostAttachmentClient.DeleteThreadPostAttachment

ctx := context.TODO()
id := threadpostattachment.NewGroupIdThreadIdPostIdAttachmentID("groupId", "conversationThreadId", "postId", "attachmentId")

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

Example Usage: ThreadPostAttachmentClient.GetThreadPostAttachment

ctx := context.TODO()
id := threadpostattachment.NewGroupIdThreadIdPostIdAttachmentID("groupId", "conversationThreadId", "postId", "attachmentId")

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

Example Usage: ThreadPostAttachmentClient.GetThreadPostAttachmentsCount

ctx := context.TODO()
id := threadpostattachment.NewGroupIdThreadIdPostID("groupId", "conversationThreadId", "postId")

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

Example Usage: ThreadPostAttachmentClient.ListThreadPostAttachments

ctx := context.TODO()
id := threadpostattachment.NewGroupIdThreadIdPostID("groupId", "conversationThreadId", "postId")

// alternatively `client.ListThreadPostAttachments(ctx, id, threadpostattachment.DefaultListThreadPostAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListThreadPostAttachmentsComplete(ctx, id, threadpostattachment.DefaultListThreadPostAttachmentsOperationOptions())
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 CreateThreadPostAttachmentOperationOptions

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

func DefaultCreateThreadPostAttachmentOperationOptions

func DefaultCreateThreadPostAttachmentOperationOptions() CreateThreadPostAttachmentOperationOptions

func (CreateThreadPostAttachmentOperationOptions) ToHeaders

func (CreateThreadPostAttachmentOperationOptions) ToOData

func (CreateThreadPostAttachmentOperationOptions) ToQuery

type CreateThreadPostAttachmentOperationResponse

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

type CreateThreadPostAttachmentsUploadSessionOperationOptions

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

func (CreateThreadPostAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateThreadPostAttachmentsUploadSessionOperationOptions) ToOData

func (CreateThreadPostAttachmentsUploadSessionOperationOptions) ToQuery

type CreateThreadPostAttachmentsUploadSessionOperationResponse

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

type CreateThreadPostAttachmentsUploadSessionRequest

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

type DeleteThreadPostAttachmentOperationOptions

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

func DefaultDeleteThreadPostAttachmentOperationOptions

func DefaultDeleteThreadPostAttachmentOperationOptions() DeleteThreadPostAttachmentOperationOptions

func (DeleteThreadPostAttachmentOperationOptions) ToHeaders

func (DeleteThreadPostAttachmentOperationOptions) ToOData

func (DeleteThreadPostAttachmentOperationOptions) ToQuery

type DeleteThreadPostAttachmentOperationResponse

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

type GetThreadPostAttachmentOperationOptions

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

func DefaultGetThreadPostAttachmentOperationOptions

func DefaultGetThreadPostAttachmentOperationOptions() GetThreadPostAttachmentOperationOptions

func (GetThreadPostAttachmentOperationOptions) ToHeaders

func (GetThreadPostAttachmentOperationOptions) ToOData

func (GetThreadPostAttachmentOperationOptions) ToQuery

type GetThreadPostAttachmentOperationResponse

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

type GetThreadPostAttachmentsCountOperationOptions

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

func DefaultGetThreadPostAttachmentsCountOperationOptions

func DefaultGetThreadPostAttachmentsCountOperationOptions() GetThreadPostAttachmentsCountOperationOptions

func (GetThreadPostAttachmentsCountOperationOptions) ToHeaders

func (GetThreadPostAttachmentsCountOperationOptions) ToOData

func (GetThreadPostAttachmentsCountOperationOptions) ToQuery

type GetThreadPostAttachmentsCountOperationResponse

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

type ListThreadPostAttachmentsCompleteResult

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

type ListThreadPostAttachmentsCustomPager

type ListThreadPostAttachmentsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListThreadPostAttachmentsCustomPager) NextPageLink() *odata.Link

type ListThreadPostAttachmentsOperationOptions

type ListThreadPostAttachmentsOperationOptions 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 DefaultListThreadPostAttachmentsOperationOptions

func DefaultListThreadPostAttachmentsOperationOptions() ListThreadPostAttachmentsOperationOptions

func (ListThreadPostAttachmentsOperationOptions) ToHeaders

func (ListThreadPostAttachmentsOperationOptions) ToOData

func (ListThreadPostAttachmentsOperationOptions) ToQuery

type ListThreadPostAttachmentsOperationResponse

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

type ThreadPostAttachmentClient

type ThreadPostAttachmentClient struct {
	Client *msgraph.Client
}

func NewThreadPostAttachmentClientWithBaseURI

func NewThreadPostAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*ThreadPostAttachmentClient, error)

func (ThreadPostAttachmentClient) CreateThreadPostAttachment

CreateThreadPostAttachment - Create new navigation property to attachments for groups

func (ThreadPostAttachmentClient) CreateThreadPostAttachmentsUploadSession

CreateThreadPostAttachmentsUploadSession - 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 (ThreadPostAttachmentClient) DeleteThreadPostAttachment

DeleteThreadPostAttachment - Delete navigation property attachments for groups

func (ThreadPostAttachmentClient) GetThreadPostAttachment

GetThreadPostAttachment - Get attachments from groups. The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the post. Read-only. Nullable. Supports $expand.

func (ThreadPostAttachmentClient) GetThreadPostAttachmentsCount

GetThreadPostAttachmentsCount - Get the number of the resource

func (ThreadPostAttachmentClient) ListThreadPostAttachments

ListThreadPostAttachments - List attachments. Retrieve a list of attachment objects attached to a post.

func (ThreadPostAttachmentClient) ListThreadPostAttachmentsComplete

ListThreadPostAttachmentsComplete retrieves all the results into a single object

func (ThreadPostAttachmentClient) ListThreadPostAttachmentsCompleteMatchingPredicate

ListThreadPostAttachmentsCompleteMatchingPredicate 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