conversationthreadpostinreplytoattachment

package
v0.20241025.1143247 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := conversationthreadpostinreplytoattachment.NewConversationThreadPostInReplyToAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ConversationThreadPostInReplyToAttachmentClient.CreateConversationThreadPostInReplyToAttachment

ctx := context.TODO()
id := conversationthreadpostinreplytoattachment.NewGroupIdConversationIdThreadIdPostID("groupId", "conversationId", "conversationThreadId", "postId")

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


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

Example Usage: ConversationThreadPostInReplyToAttachmentClient.CreateConversationThreadPostInReplyToAttachmentsUploadSession

ctx := context.TODO()
id := conversationthreadpostinreplytoattachment.NewGroupIdConversationIdThreadIdPostID("groupId", "conversationId", "conversationThreadId", "postId")

payload := conversationthreadpostinreplytoattachment.CreateConversationThreadPostInReplyToAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: ConversationThreadPostInReplyToAttachmentClient.DeleteConversationThreadPostInReplyToAttachment

ctx := context.TODO()
id := conversationthreadpostinreplytoattachment.NewGroupIdConversationIdThreadIdPostIdInReplyToAttachmentID("groupId", "conversationId", "conversationThreadId", "postId", "attachmentId")

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

Example Usage: ConversationThreadPostInReplyToAttachmentClient.GetConversationThreadPostInReplyToAttachment

ctx := context.TODO()
id := conversationthreadpostinreplytoattachment.NewGroupIdConversationIdThreadIdPostIdInReplyToAttachmentID("groupId", "conversationId", "conversationThreadId", "postId", "attachmentId")

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

Example Usage: ConversationThreadPostInReplyToAttachmentClient.GetConversationThreadPostInReplyToAttachmentsCount

ctx := context.TODO()
id := conversationthreadpostinreplytoattachment.NewGroupIdConversationIdThreadIdPostID("groupId", "conversationId", "conversationThreadId", "postId")

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

Example Usage: ConversationThreadPostInReplyToAttachmentClient.ListConversationThreadPostInReplyToAttachments

ctx := context.TODO()
id := conversationthreadpostinreplytoattachment.NewGroupIdConversationIdThreadIdPostID("groupId", "conversationId", "conversationThreadId", "postId")

// alternatively `client.ListConversationThreadPostInReplyToAttachments(ctx, id, conversationthreadpostinreplytoattachment.DefaultListConversationThreadPostInReplyToAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListConversationThreadPostInReplyToAttachmentsComplete(ctx, id, conversationthreadpostinreplytoattachment.DefaultListConversationThreadPostInReplyToAttachmentsOperationOptions())
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 ConversationThreadPostInReplyToAttachmentClient

type ConversationThreadPostInReplyToAttachmentClient struct {
	Client *msgraph.Client
}

func NewConversationThreadPostInReplyToAttachmentClientWithBaseURI

func NewConversationThreadPostInReplyToAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*ConversationThreadPostInReplyToAttachmentClient, error)

func (ConversationThreadPostInReplyToAttachmentClient) CreateConversationThreadPostInReplyToAttachment

CreateConversationThreadPostInReplyToAttachment - Create new navigation property to attachments for groups

func (ConversationThreadPostInReplyToAttachmentClient) CreateConversationThreadPostInReplyToAttachmentsUploadSession

CreateConversationThreadPostInReplyToAttachmentsUploadSession - 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 (ConversationThreadPostInReplyToAttachmentClient) DeleteConversationThreadPostInReplyToAttachment

DeleteConversationThreadPostInReplyToAttachment - Delete navigation property attachments for groups

func (ConversationThreadPostInReplyToAttachmentClient) GetConversationThreadPostInReplyToAttachment

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

func (ConversationThreadPostInReplyToAttachmentClient) GetConversationThreadPostInReplyToAttachmentsCount

GetConversationThreadPostInReplyToAttachmentsCount - Get the number of the resource

func (ConversationThreadPostInReplyToAttachmentClient) ListConversationThreadPostInReplyToAttachments

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

func (ConversationThreadPostInReplyToAttachmentClient) ListConversationThreadPostInReplyToAttachmentsComplete

ListConversationThreadPostInReplyToAttachmentsComplete retrieves all the results into a single object

func (ConversationThreadPostInReplyToAttachmentClient) ListConversationThreadPostInReplyToAttachmentsCompleteMatchingPredicate

ListConversationThreadPostInReplyToAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateConversationThreadPostInReplyToAttachmentOperationOptions

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

func (CreateConversationThreadPostInReplyToAttachmentOperationOptions) ToHeaders

func (CreateConversationThreadPostInReplyToAttachmentOperationOptions) ToOData

func (CreateConversationThreadPostInReplyToAttachmentOperationOptions) ToQuery

type CreateConversationThreadPostInReplyToAttachmentOperationResponse

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

type CreateConversationThreadPostInReplyToAttachmentsUploadSessionOperationOptions

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

func (CreateConversationThreadPostInReplyToAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateConversationThreadPostInReplyToAttachmentsUploadSessionOperationOptions) ToOData

func (CreateConversationThreadPostInReplyToAttachmentsUploadSessionOperationOptions) ToQuery

type CreateConversationThreadPostInReplyToAttachmentsUploadSessionOperationResponse

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

type CreateConversationThreadPostInReplyToAttachmentsUploadSessionRequest

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

type DeleteConversationThreadPostInReplyToAttachmentOperationOptions

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

func (DeleteConversationThreadPostInReplyToAttachmentOperationOptions) ToHeaders

func (DeleteConversationThreadPostInReplyToAttachmentOperationOptions) ToOData

func (DeleteConversationThreadPostInReplyToAttachmentOperationOptions) ToQuery

type DeleteConversationThreadPostInReplyToAttachmentOperationResponse

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

type GetConversationThreadPostInReplyToAttachmentOperationOptions

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

func (GetConversationThreadPostInReplyToAttachmentOperationOptions) ToHeaders

func (GetConversationThreadPostInReplyToAttachmentOperationOptions) ToOData

func (GetConversationThreadPostInReplyToAttachmentOperationOptions) ToQuery

type GetConversationThreadPostInReplyToAttachmentOperationResponse

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

type GetConversationThreadPostInReplyToAttachmentsCountOperationOptions

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

func (GetConversationThreadPostInReplyToAttachmentsCountOperationOptions) ToHeaders

func (GetConversationThreadPostInReplyToAttachmentsCountOperationOptions) ToOData

func (GetConversationThreadPostInReplyToAttachmentsCountOperationOptions) ToQuery

type GetConversationThreadPostInReplyToAttachmentsCountOperationResponse

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

type ListConversationThreadPostInReplyToAttachmentsCompleteResult

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

type ListConversationThreadPostInReplyToAttachmentsCustomPager

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

type ListConversationThreadPostInReplyToAttachmentsOperationOptions

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

func (ListConversationThreadPostInReplyToAttachmentsOperationOptions) ToOData

func (ListConversationThreadPostInReplyToAttachmentsOperationOptions) ToQuery

type ListConversationThreadPostInReplyToAttachmentsOperationResponse

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

Jump to

Keyboard shortcuts

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