chatmessagereply

package
v0.20241104.1140654 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/chatmessagereply Documentation

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

Client Initialization

client := chatmessagereply.NewChatMessageReplyClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ChatMessageReplyClient.CreateChatMessageReply

ctx := context.TODO()
id := chatmessagereply.NewMeChatIdMessageID("chatId", "chatMessageId")

payload := chatmessagereply.ChatMessage{
	// ...
}


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

Example Usage: ChatMessageReplyClient.CreateChatMessageReplySoftDelete

ctx := context.TODO()
id := chatmessagereply.NewMeChatIdMessageIdReplyID("chatId", "chatMessageId", "chatMessageId1")

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

Example Usage: ChatMessageReplyClient.CreateChatMessageReplyUndoSoftDelete

ctx := context.TODO()
id := chatmessagereply.NewMeChatIdMessageIdReplyID("chatId", "chatMessageId", "chatMessageId1")

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

Example Usage: ChatMessageReplyClient.DeleteChatMessageReply

ctx := context.TODO()
id := chatmessagereply.NewMeChatIdMessageIdReplyID("chatId", "chatMessageId", "chatMessageId1")

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

Example Usage: ChatMessageReplyClient.GetChatMessageRepliesCount

ctx := context.TODO()
id := chatmessagereply.NewMeChatIdMessageID("chatId", "chatMessageId")

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

Example Usage: ChatMessageReplyClient.GetChatMessageReply

ctx := context.TODO()
id := chatmessagereply.NewMeChatIdMessageIdReplyID("chatId", "chatMessageId", "chatMessageId1")

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

Example Usage: ChatMessageReplyClient.ListChatMessageReplies

ctx := context.TODO()
id := chatmessagereply.NewMeChatIdMessageID("chatId", "chatMessageId")

// alternatively `client.ListChatMessageReplies(ctx, id, chatmessagereply.DefaultListChatMessageRepliesOperationOptions())` can be used to do batched pagination
items, err := client.ListChatMessageRepliesComplete(ctx, id, chatmessagereply.DefaultListChatMessageRepliesOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ChatMessageReplyClient.SetChatMessageReplyReaction

ctx := context.TODO()
id := chatmessagereply.NewMeChatIdMessageIdReplyID("chatId", "chatMessageId", "chatMessageId1")

payload := chatmessagereply.SetChatMessageReplyReactionRequest{
	// ...
}


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

Example Usage: ChatMessageReplyClient.UnsetChatMessageReplyReaction

ctx := context.TODO()
id := chatmessagereply.NewMeChatIdMessageIdReplyID("chatId", "chatMessageId", "chatMessageId1")

payload := chatmessagereply.UnsetChatMessageReplyReactionRequest{
	// ...
}


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

Example Usage: ChatMessageReplyClient.UpdateChatMessageReply

ctx := context.TODO()
id := chatmessagereply.NewMeChatIdMessageIdReplyID("chatId", "chatMessageId", "chatMessageId1")

payload := chatmessagereply.ChatMessage{
	// ...
}


read, err := client.UpdateChatMessageReply(ctx, id, payload, chatmessagereply.DefaultUpdateChatMessageReplyOperationOptions())
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 ChatMessageOperationPredicate

type ChatMessageOperationPredicate struct {
}

func (ChatMessageOperationPredicate) Matches

type ChatMessageReplyClient

type ChatMessageReplyClient struct {
	Client *msgraph.Client
}

func NewChatMessageReplyClientWithBaseURI

func NewChatMessageReplyClientWithBaseURI(sdkApi sdkEnv.Api) (*ChatMessageReplyClient, error)

func (ChatMessageReplyClient) CreateChatMessageReply

CreateChatMessageReply - Create new navigation property to replies for me

func (ChatMessageReplyClient) CreateChatMessageReplySoftDelete

CreateChatMessageReplySoftDelete - Invoke action softDelete. Delete a single chatMessage or a chat message reply in a channel or a chat.

func (ChatMessageReplyClient) CreateChatMessageReplyUndoSoftDelete

CreateChatMessageReplyUndoSoftDelete - Invoke action undoSoftDelete. Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat.

func (ChatMessageReplyClient) DeleteChatMessageReply

DeleteChatMessageReply - Delete navigation property replies for me

func (ChatMessageReplyClient) GetChatMessageRepliesCount

GetChatMessageRepliesCount - Get the number of the resource

func (ChatMessageReplyClient) GetChatMessageReply

GetChatMessageReply - Get replies from me. Replies for a specified message. Supports $expand for channel messages.

func (ChatMessageReplyClient) ListChatMessageReplies

ListChatMessageReplies - Get replies from me. Replies for a specified message. Supports $expand for channel messages.

func (ChatMessageReplyClient) ListChatMessageRepliesComplete

ListChatMessageRepliesComplete retrieves all the results into a single object

func (ChatMessageReplyClient) ListChatMessageRepliesCompleteMatchingPredicate

func (c ChatMessageReplyClient) ListChatMessageRepliesCompleteMatchingPredicate(ctx context.Context, id beta.MeChatIdMessageId, options ListChatMessageRepliesOperationOptions, predicate ChatMessageOperationPredicate) (result ListChatMessageRepliesCompleteResult, err error)

ListChatMessageRepliesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ChatMessageReplyClient) SetChatMessageReplyReaction

SetChatMessageReplyReaction - Invoke action setReaction

func (ChatMessageReplyClient) UnsetChatMessageReplyReaction

UnsetChatMessageReplyReaction - Invoke action unsetReaction

func (ChatMessageReplyClient) UpdateChatMessageReply

UpdateChatMessageReply - Update the navigation property replies in me

type CreateChatMessageReplyOperationOptions

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

func DefaultCreateChatMessageReplyOperationOptions

func DefaultCreateChatMessageReplyOperationOptions() CreateChatMessageReplyOperationOptions

func (CreateChatMessageReplyOperationOptions) ToHeaders

func (CreateChatMessageReplyOperationOptions) ToOData

func (CreateChatMessageReplyOperationOptions) ToQuery

type CreateChatMessageReplyOperationResponse

type CreateChatMessageReplyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ChatMessage
}

type CreateChatMessageReplySoftDeleteOperationOptions

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

func DefaultCreateChatMessageReplySoftDeleteOperationOptions

func DefaultCreateChatMessageReplySoftDeleteOperationOptions() CreateChatMessageReplySoftDeleteOperationOptions

func (CreateChatMessageReplySoftDeleteOperationOptions) ToHeaders

func (CreateChatMessageReplySoftDeleteOperationOptions) ToOData

func (CreateChatMessageReplySoftDeleteOperationOptions) ToQuery

type CreateChatMessageReplySoftDeleteOperationResponse

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

type CreateChatMessageReplyUndoSoftDeleteOperationOptions

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

func DefaultCreateChatMessageReplyUndoSoftDeleteOperationOptions

func DefaultCreateChatMessageReplyUndoSoftDeleteOperationOptions() CreateChatMessageReplyUndoSoftDeleteOperationOptions

func (CreateChatMessageReplyUndoSoftDeleteOperationOptions) ToHeaders

func (CreateChatMessageReplyUndoSoftDeleteOperationOptions) ToOData

func (CreateChatMessageReplyUndoSoftDeleteOperationOptions) ToQuery

type CreateChatMessageReplyUndoSoftDeleteOperationResponse

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

type DeleteChatMessageReplyOperationOptions

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

func DefaultDeleteChatMessageReplyOperationOptions

func DefaultDeleteChatMessageReplyOperationOptions() DeleteChatMessageReplyOperationOptions

func (DeleteChatMessageReplyOperationOptions) ToHeaders

func (DeleteChatMessageReplyOperationOptions) ToOData

func (DeleteChatMessageReplyOperationOptions) ToQuery

type DeleteChatMessageReplyOperationResponse

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

type GetChatMessageRepliesCountOperationOptions

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

func DefaultGetChatMessageRepliesCountOperationOptions

func DefaultGetChatMessageRepliesCountOperationOptions() GetChatMessageRepliesCountOperationOptions

func (GetChatMessageRepliesCountOperationOptions) ToHeaders

func (GetChatMessageRepliesCountOperationOptions) ToOData

func (GetChatMessageRepliesCountOperationOptions) ToQuery

type GetChatMessageRepliesCountOperationResponse

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

type GetChatMessageReplyOperationOptions

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

func DefaultGetChatMessageReplyOperationOptions

func DefaultGetChatMessageReplyOperationOptions() GetChatMessageReplyOperationOptions

func (GetChatMessageReplyOperationOptions) ToHeaders

func (GetChatMessageReplyOperationOptions) ToOData

func (GetChatMessageReplyOperationOptions) ToQuery

type GetChatMessageReplyOperationResponse

type GetChatMessageReplyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ChatMessage
}

type ListChatMessageRepliesCompleteResult

type ListChatMessageRepliesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.ChatMessage
}

type ListChatMessageRepliesCustomPager

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

type ListChatMessageRepliesOperationOptions

type ListChatMessageRepliesOperationOptions 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 DefaultListChatMessageRepliesOperationOptions

func DefaultListChatMessageRepliesOperationOptions() ListChatMessageRepliesOperationOptions

func (ListChatMessageRepliesOperationOptions) ToHeaders

func (ListChatMessageRepliesOperationOptions) ToOData

func (ListChatMessageRepliesOperationOptions) ToQuery

type ListChatMessageRepliesOperationResponse

type ListChatMessageRepliesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.ChatMessage
}

type SetChatMessageReplyReactionOperationOptions

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

func DefaultSetChatMessageReplyReactionOperationOptions

func DefaultSetChatMessageReplyReactionOperationOptions() SetChatMessageReplyReactionOperationOptions

func (SetChatMessageReplyReactionOperationOptions) ToHeaders

func (SetChatMessageReplyReactionOperationOptions) ToOData

func (SetChatMessageReplyReactionOperationOptions) ToQuery

type SetChatMessageReplyReactionOperationResponse

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

type SetChatMessageReplyReactionRequest

type SetChatMessageReplyReactionRequest struct {
	ReactionType nullable.Type[string] `json:"reactionType,omitempty"`
}

type UnsetChatMessageReplyReactionOperationOptions

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

func DefaultUnsetChatMessageReplyReactionOperationOptions

func DefaultUnsetChatMessageReplyReactionOperationOptions() UnsetChatMessageReplyReactionOperationOptions

func (UnsetChatMessageReplyReactionOperationOptions) ToHeaders

func (UnsetChatMessageReplyReactionOperationOptions) ToOData

func (UnsetChatMessageReplyReactionOperationOptions) ToQuery

type UnsetChatMessageReplyReactionOperationResponse

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

type UnsetChatMessageReplyReactionRequest

type UnsetChatMessageReplyReactionRequest struct {
	ReactionType nullable.Type[string] `json:"reactionType,omitempty"`
}

type UpdateChatMessageReplyOperationOptions

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

func DefaultUpdateChatMessageReplyOperationOptions

func DefaultUpdateChatMessageReplyOperationOptions() UpdateChatMessageReplyOperationOptions

func (UpdateChatMessageReplyOperationOptions) ToHeaders

func (UpdateChatMessageReplyOperationOptions) ToOData

func (UpdateChatMessageReplyOperationOptions) ToQuery

type UpdateChatMessageReplyOperationResponse

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

Jump to

Keyboard shortcuts

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