conversationthreadpostattachment

package
v0.20241111.1164443 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := conversationthreadpostattachment.NewConversationThreadPostAttachmentClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ConversationThreadPostAttachmentClient.CreateConversationThreadPostAttachment

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

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


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

Example Usage: ConversationThreadPostAttachmentClient.CreateConversationThreadPostAttachmentsUploadSession

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

payload := conversationthreadpostattachment.CreateConversationThreadPostAttachmentsUploadSessionRequest{
	// ...
}


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

Example Usage: ConversationThreadPostAttachmentClient.DeleteConversationThreadPostAttachment

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

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

Example Usage: ConversationThreadPostAttachmentClient.GetConversationThreadPostAttachment

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

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

Example Usage: ConversationThreadPostAttachmentClient.GetConversationThreadPostAttachmentsCount

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

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

Example Usage: ConversationThreadPostAttachmentClient.ListConversationThreadPostAttachments

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

// alternatively `client.ListConversationThreadPostAttachments(ctx, id, conversationthreadpostattachment.DefaultListConversationThreadPostAttachmentsOperationOptions())` can be used to do batched pagination
items, err := client.ListConversationThreadPostAttachmentsComplete(ctx, id, conversationthreadpostattachment.DefaultListConversationThreadPostAttachmentsOperationOptions())
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 ConversationThreadPostAttachmentClient

type ConversationThreadPostAttachmentClient struct {
	Client *msgraph.Client
}

func NewConversationThreadPostAttachmentClientWithBaseURI

func NewConversationThreadPostAttachmentClientWithBaseURI(sdkApi sdkEnv.Api) (*ConversationThreadPostAttachmentClient, error)

func (ConversationThreadPostAttachmentClient) CreateConversationThreadPostAttachment

CreateConversationThreadPostAttachment - Create new navigation property to attachments for groups

func (ConversationThreadPostAttachmentClient) CreateConversationThreadPostAttachmentsUploadSession

CreateConversationThreadPostAttachmentsUploadSession - 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 (ConversationThreadPostAttachmentClient) DeleteConversationThreadPostAttachment

DeleteConversationThreadPostAttachment - Delete navigation property attachments for groups

func (ConversationThreadPostAttachmentClient) GetConversationThreadPostAttachment

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

func (ConversationThreadPostAttachmentClient) GetConversationThreadPostAttachmentsCount

GetConversationThreadPostAttachmentsCount - Get the number of the resource

func (ConversationThreadPostAttachmentClient) ListConversationThreadPostAttachments

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

func (ConversationThreadPostAttachmentClient) ListConversationThreadPostAttachmentsComplete

ListConversationThreadPostAttachmentsComplete retrieves all the results into a single object

func (ConversationThreadPostAttachmentClient) ListConversationThreadPostAttachmentsCompleteMatchingPredicate

ListConversationThreadPostAttachmentsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateConversationThreadPostAttachmentOperationOptions

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

func DefaultCreateConversationThreadPostAttachmentOperationOptions

func DefaultCreateConversationThreadPostAttachmentOperationOptions() CreateConversationThreadPostAttachmentOperationOptions

func (CreateConversationThreadPostAttachmentOperationOptions) ToHeaders

func (CreateConversationThreadPostAttachmentOperationOptions) ToOData

func (CreateConversationThreadPostAttachmentOperationOptions) ToQuery

type CreateConversationThreadPostAttachmentOperationResponse

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

type CreateConversationThreadPostAttachmentsUploadSessionOperationOptions

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

func (CreateConversationThreadPostAttachmentsUploadSessionOperationOptions) ToHeaders

func (CreateConversationThreadPostAttachmentsUploadSessionOperationOptions) ToOData

func (CreateConversationThreadPostAttachmentsUploadSessionOperationOptions) ToQuery

type CreateConversationThreadPostAttachmentsUploadSessionOperationResponse

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

type CreateConversationThreadPostAttachmentsUploadSessionRequest

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

type DeleteConversationThreadPostAttachmentOperationOptions

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

func DefaultDeleteConversationThreadPostAttachmentOperationOptions

func DefaultDeleteConversationThreadPostAttachmentOperationOptions() DeleteConversationThreadPostAttachmentOperationOptions

func (DeleteConversationThreadPostAttachmentOperationOptions) ToHeaders

func (DeleteConversationThreadPostAttachmentOperationOptions) ToOData

func (DeleteConversationThreadPostAttachmentOperationOptions) ToQuery

type DeleteConversationThreadPostAttachmentOperationResponse

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

type GetConversationThreadPostAttachmentOperationOptions

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

func DefaultGetConversationThreadPostAttachmentOperationOptions

func DefaultGetConversationThreadPostAttachmentOperationOptions() GetConversationThreadPostAttachmentOperationOptions

func (GetConversationThreadPostAttachmentOperationOptions) ToHeaders

func (GetConversationThreadPostAttachmentOperationOptions) ToOData

func (GetConversationThreadPostAttachmentOperationOptions) ToQuery

type GetConversationThreadPostAttachmentOperationResponse

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

type GetConversationThreadPostAttachmentsCountOperationOptions

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

func (GetConversationThreadPostAttachmentsCountOperationOptions) ToHeaders

func (GetConversationThreadPostAttachmentsCountOperationOptions) ToOData

func (GetConversationThreadPostAttachmentsCountOperationOptions) ToQuery

type GetConversationThreadPostAttachmentsCountOperationResponse

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

type ListConversationThreadPostAttachmentsCompleteResult

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

type ListConversationThreadPostAttachmentsCustomPager

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

type ListConversationThreadPostAttachmentsOperationOptions

type ListConversationThreadPostAttachmentsOperationOptions 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 DefaultListConversationThreadPostAttachmentsOperationOptions

func DefaultListConversationThreadPostAttachmentsOperationOptions() ListConversationThreadPostAttachmentsOperationOptions

func (ListConversationThreadPostAttachmentsOperationOptions) ToHeaders

func (ListConversationThreadPostAttachmentsOperationOptions) ToOData

func (ListConversationThreadPostAttachmentsOperationOptions) ToQuery

type ListConversationThreadPostAttachmentsOperationResponse

type ListConversationThreadPostAttachmentsOperationResponse 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