threadpostinreplytoattachment

package
v0.20241017.1093842 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/stable/threadpostinreplytoattachment Documentation

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

Client Initialization

client := threadpostinreplytoattachment.NewThreadPostInReplyToAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ThreadPostInReplyToAttachmentClient.CreateThreadPostInReplyToAttachment

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

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


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

Example Usage: ThreadPostInReplyToAttachmentClient.CreateThreadPostInReplyToAttachmentsUploadSession

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

payload := threadpostinreplytoattachment.CreateThreadPostInReplyToAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: ThreadPostInReplyToAttachmentClient.DeleteThreadPostInReplyToAttachment

ctx := context.TODO()
id := threadpostinreplytoattachment.NewGroupIdThreadIdPostIdInReplyToAttachmentID("groupId", "conversationThreadId", "postId", "attachmentId")

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

Example Usage: ThreadPostInReplyToAttachmentClient.GetThreadPostInReplyToAttachment

ctx := context.TODO()
id := threadpostinreplytoattachment.NewGroupIdThreadIdPostIdInReplyToAttachmentID("groupId", "conversationThreadId", "postId", "attachmentId")

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

Example Usage: ThreadPostInReplyToAttachmentClient.GetThreadPostInReplyToAttachmentsCount

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

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

Example Usage: ThreadPostInReplyToAttachmentClient.ListThreadPostInReplyToAttachments

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

// alternatively `client.ListThreadPostInReplyToAttachments(ctx, id, threadpostinreplytoattachment.DefaultListThreadPostInReplyToAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListThreadPostInReplyToAttachmentsComplete(ctx, id, threadpostinreplytoattachment.DefaultListThreadPostInReplyToAttachmentsOperationOptions())
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 CreateThreadPostInReplyToAttachmentOperationOptions

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

func DefaultCreateThreadPostInReplyToAttachmentOperationOptions

func DefaultCreateThreadPostInReplyToAttachmentOperationOptions() CreateThreadPostInReplyToAttachmentOperationOptions

func (CreateThreadPostInReplyToAttachmentOperationOptions) ToHeaders

func (CreateThreadPostInReplyToAttachmentOperationOptions) ToOData

func (CreateThreadPostInReplyToAttachmentOperationOptions) ToQuery

type CreateThreadPostInReplyToAttachmentOperationResponse

type CreateThreadPostInReplyToAttachmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Attachment
}

type CreateThreadPostInReplyToAttachmentsUploadSessionOperationOptions

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

func (CreateThreadPostInReplyToAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateThreadPostInReplyToAttachmentsUploadSessionOperationOptions) ToOData

func (CreateThreadPostInReplyToAttachmentsUploadSessionOperationOptions) ToQuery

type CreateThreadPostInReplyToAttachmentsUploadSessionOperationResponse

type CreateThreadPostInReplyToAttachmentsUploadSessionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.UploadSession
}

type CreateThreadPostInReplyToAttachmentsUploadSessionRequest

type CreateThreadPostInReplyToAttachmentsUploadSessionRequest struct {
	AttachmentItem *stable.AttachmentItem `json:"AttachmentItem,omitempty"`
}

type DeleteThreadPostInReplyToAttachmentOperationOptions

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

func DefaultDeleteThreadPostInReplyToAttachmentOperationOptions

func DefaultDeleteThreadPostInReplyToAttachmentOperationOptions() DeleteThreadPostInReplyToAttachmentOperationOptions

func (DeleteThreadPostInReplyToAttachmentOperationOptions) ToHeaders

func (DeleteThreadPostInReplyToAttachmentOperationOptions) ToOData

func (DeleteThreadPostInReplyToAttachmentOperationOptions) ToQuery

type DeleteThreadPostInReplyToAttachmentOperationResponse

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

type GetThreadPostInReplyToAttachmentOperationOptions

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

func DefaultGetThreadPostInReplyToAttachmentOperationOptions

func DefaultGetThreadPostInReplyToAttachmentOperationOptions() GetThreadPostInReplyToAttachmentOperationOptions

func (GetThreadPostInReplyToAttachmentOperationOptions) ToHeaders

func (GetThreadPostInReplyToAttachmentOperationOptions) ToOData

func (GetThreadPostInReplyToAttachmentOperationOptions) ToQuery

type GetThreadPostInReplyToAttachmentOperationResponse

type GetThreadPostInReplyToAttachmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.Attachment
}

type GetThreadPostInReplyToAttachmentsCountOperationOptions

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

func DefaultGetThreadPostInReplyToAttachmentsCountOperationOptions

func DefaultGetThreadPostInReplyToAttachmentsCountOperationOptions() GetThreadPostInReplyToAttachmentsCountOperationOptions

func (GetThreadPostInReplyToAttachmentsCountOperationOptions) ToHeaders

func (GetThreadPostInReplyToAttachmentsCountOperationOptions) ToOData

func (GetThreadPostInReplyToAttachmentsCountOperationOptions) ToQuery

type GetThreadPostInReplyToAttachmentsCountOperationResponse

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

type ListThreadPostInReplyToAttachmentsCompleteResult

type ListThreadPostInReplyToAttachmentsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.Attachment
}

type ListThreadPostInReplyToAttachmentsCustomPager

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

type ListThreadPostInReplyToAttachmentsOperationOptions

type ListThreadPostInReplyToAttachmentsOperationOptions 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 DefaultListThreadPostInReplyToAttachmentsOperationOptions

func DefaultListThreadPostInReplyToAttachmentsOperationOptions() ListThreadPostInReplyToAttachmentsOperationOptions

func (ListThreadPostInReplyToAttachmentsOperationOptions) ToHeaders

func (ListThreadPostInReplyToAttachmentsOperationOptions) ToOData

func (ListThreadPostInReplyToAttachmentsOperationOptions) ToQuery

type ListThreadPostInReplyToAttachmentsOperationResponse

type ListThreadPostInReplyToAttachmentsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.Attachment
}

type ThreadPostInReplyToAttachmentClient

type ThreadPostInReplyToAttachmentClient struct {
	Client *msgraph.Client
}

func NewThreadPostInReplyToAttachmentClientWithBaseURI

func NewThreadPostInReplyToAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*ThreadPostInReplyToAttachmentClient, error)

func (ThreadPostInReplyToAttachmentClient) CreateThreadPostInReplyToAttachment

CreateThreadPostInReplyToAttachment - Create new navigation property to attachments for groups

func (ThreadPostInReplyToAttachmentClient) CreateThreadPostInReplyToAttachmentsUploadSession

CreateThreadPostInReplyToAttachmentsUploadSession - 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 the specified 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 (ThreadPostInReplyToAttachmentClient) DeleteThreadPostInReplyToAttachment

DeleteThreadPostInReplyToAttachment - Delete navigation property attachments for groups

func (ThreadPostInReplyToAttachmentClient) GetThreadPostInReplyToAttachment

GetThreadPostInReplyToAttachment - Get attachments from groups. Read-only. Nullable. Supports $expand.

func (ThreadPostInReplyToAttachmentClient) GetThreadPostInReplyToAttachmentsCount

GetThreadPostInReplyToAttachmentsCount - Get the number of the resource

func (ThreadPostInReplyToAttachmentClient) ListThreadPostInReplyToAttachments

ListThreadPostInReplyToAttachments - Get attachments from groups. Read-only. Nullable. Supports $expand.

func (ThreadPostInReplyToAttachmentClient) ListThreadPostInReplyToAttachmentsComplete

ListThreadPostInReplyToAttachmentsComplete retrieves all the results into a single object

func (ThreadPostInReplyToAttachmentClient) ListThreadPostInReplyToAttachmentsCompleteMatchingPredicate

ListThreadPostInReplyToAttachmentsCompleteMatchingPredicate 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