teamchannelmessagereply

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/groups/beta/teamchannelmessagereply Documentation

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

Client Initialization

client := teamchannelmessagereply.NewTeamChannelMessageReplyClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: TeamChannelMessageReplyClient.CreateTeamChannelMessageReply

ctx := context.TODO()
id := teamchannelmessagereply.NewGroupIdTeamChannelIdMessageID("groupId", "channelId", "chatMessageId")

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


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

Example Usage: TeamChannelMessageReplyClient.CreateTeamChannelMessageReplySoftDelete

ctx := context.TODO()
id := teamchannelmessagereply.NewGroupIdTeamChannelIdMessageIdReplyID("groupId", "channelId", "chatMessageId", "chatMessageId1")

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

Example Usage: TeamChannelMessageReplyClient.CreateTeamChannelMessageReplyUndoSoftDelete

ctx := context.TODO()
id := teamchannelmessagereply.NewGroupIdTeamChannelIdMessageIdReplyID("groupId", "channelId", "chatMessageId", "chatMessageId1")

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

Example Usage: TeamChannelMessageReplyClient.DeleteTeamChannelMessageReply

ctx := context.TODO()
id := teamchannelmessagereply.NewGroupIdTeamChannelIdMessageIdReplyID("groupId", "channelId", "chatMessageId", "chatMessageId1")

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

Example Usage: TeamChannelMessageReplyClient.GetTeamChannelMessageRepliesCount

ctx := context.TODO()
id := teamchannelmessagereply.NewGroupIdTeamChannelIdMessageID("groupId", "channelId", "chatMessageId")

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

Example Usage: TeamChannelMessageReplyClient.GetTeamChannelMessageReply

ctx := context.TODO()
id := teamchannelmessagereply.NewGroupIdTeamChannelIdMessageIdReplyID("groupId", "channelId", "chatMessageId", "chatMessageId1")

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

Example Usage: TeamChannelMessageReplyClient.ListTeamChannelMessageReplies

ctx := context.TODO()
id := teamchannelmessagereply.NewGroupIdTeamChannelIdMessageID("groupId", "channelId", "chatMessageId")

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

Example Usage: TeamChannelMessageReplyClient.SetTeamChannelMessageReplyReaction

ctx := context.TODO()
id := teamchannelmessagereply.NewGroupIdTeamChannelIdMessageIdReplyID("groupId", "channelId", "chatMessageId", "chatMessageId1")

payload := teamchannelmessagereply.SetTeamChannelMessageReplyReactionRequest{
	// ...
}


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

Example Usage: TeamChannelMessageReplyClient.UnsetTeamChannelMessageReplyReaction

ctx := context.TODO()
id := teamchannelmessagereply.NewGroupIdTeamChannelIdMessageIdReplyID("groupId", "channelId", "chatMessageId", "chatMessageId1")

payload := teamchannelmessagereply.UnsetTeamChannelMessageReplyReactionRequest{
	// ...
}


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

Example Usage: TeamChannelMessageReplyClient.UpdateTeamChannelMessageReply

ctx := context.TODO()
id := teamchannelmessagereply.NewGroupIdTeamChannelIdMessageIdReplyID("groupId", "channelId", "chatMessageId", "chatMessageId1")

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


read, err := client.UpdateTeamChannelMessageReply(ctx, id, payload, teamchannelmessagereply.DefaultUpdateTeamChannelMessageReplyOperationOptions())
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 CreateTeamChannelMessageReplyOperationOptions

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

func DefaultCreateTeamChannelMessageReplyOperationOptions

func DefaultCreateTeamChannelMessageReplyOperationOptions() CreateTeamChannelMessageReplyOperationOptions

func (CreateTeamChannelMessageReplyOperationOptions) ToHeaders

func (CreateTeamChannelMessageReplyOperationOptions) ToOData

func (CreateTeamChannelMessageReplyOperationOptions) ToQuery

type CreateTeamChannelMessageReplyOperationResponse

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

type CreateTeamChannelMessageReplySoftDeleteOperationOptions

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

func (CreateTeamChannelMessageReplySoftDeleteOperationOptions) ToHeaders

func (CreateTeamChannelMessageReplySoftDeleteOperationOptions) ToOData

func (CreateTeamChannelMessageReplySoftDeleteOperationOptions) ToQuery

type CreateTeamChannelMessageReplySoftDeleteOperationResponse

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

type CreateTeamChannelMessageReplyUndoSoftDeleteOperationOptions

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

func (CreateTeamChannelMessageReplyUndoSoftDeleteOperationOptions) ToHeaders

func (CreateTeamChannelMessageReplyUndoSoftDeleteOperationOptions) ToOData

func (CreateTeamChannelMessageReplyUndoSoftDeleteOperationOptions) ToQuery

type CreateTeamChannelMessageReplyUndoSoftDeleteOperationResponse

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

type DeleteTeamChannelMessageReplyOperationOptions

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

func DefaultDeleteTeamChannelMessageReplyOperationOptions

func DefaultDeleteTeamChannelMessageReplyOperationOptions() DeleteTeamChannelMessageReplyOperationOptions

func (DeleteTeamChannelMessageReplyOperationOptions) ToHeaders

func (DeleteTeamChannelMessageReplyOperationOptions) ToOData

func (DeleteTeamChannelMessageReplyOperationOptions) ToQuery

type DeleteTeamChannelMessageReplyOperationResponse

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

type GetTeamChannelMessageRepliesCountOperationOptions

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

func DefaultGetTeamChannelMessageRepliesCountOperationOptions

func DefaultGetTeamChannelMessageRepliesCountOperationOptions() GetTeamChannelMessageRepliesCountOperationOptions

func (GetTeamChannelMessageRepliesCountOperationOptions) ToHeaders

func (GetTeamChannelMessageRepliesCountOperationOptions) ToOData

func (GetTeamChannelMessageRepliesCountOperationOptions) ToQuery

type GetTeamChannelMessageRepliesCountOperationResponse

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

type GetTeamChannelMessageReplyOperationOptions

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

func DefaultGetTeamChannelMessageReplyOperationOptions

func DefaultGetTeamChannelMessageReplyOperationOptions() GetTeamChannelMessageReplyOperationOptions

func (GetTeamChannelMessageReplyOperationOptions) ToHeaders

func (GetTeamChannelMessageReplyOperationOptions) ToOData

func (GetTeamChannelMessageReplyOperationOptions) ToQuery

type GetTeamChannelMessageReplyOperationResponse

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

type ListTeamChannelMessageRepliesCompleteResult

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

type ListTeamChannelMessageRepliesCustomPager

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

type ListTeamChannelMessageRepliesOperationOptions

type ListTeamChannelMessageRepliesOperationOptions 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 DefaultListTeamChannelMessageRepliesOperationOptions

func DefaultListTeamChannelMessageRepliesOperationOptions() ListTeamChannelMessageRepliesOperationOptions

func (ListTeamChannelMessageRepliesOperationOptions) ToHeaders

func (ListTeamChannelMessageRepliesOperationOptions) ToOData

func (ListTeamChannelMessageRepliesOperationOptions) ToQuery

type ListTeamChannelMessageRepliesOperationResponse

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

type SetTeamChannelMessageReplyReactionOperationOptions

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

func DefaultSetTeamChannelMessageReplyReactionOperationOptions

func DefaultSetTeamChannelMessageReplyReactionOperationOptions() SetTeamChannelMessageReplyReactionOperationOptions

func (SetTeamChannelMessageReplyReactionOperationOptions) ToHeaders

func (SetTeamChannelMessageReplyReactionOperationOptions) ToOData

func (SetTeamChannelMessageReplyReactionOperationOptions) ToQuery

type SetTeamChannelMessageReplyReactionOperationResponse

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

type SetTeamChannelMessageReplyReactionRequest

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

type TeamChannelMessageReplyClient

type TeamChannelMessageReplyClient struct {
	Client *msgraph.Client
}

func NewTeamChannelMessageReplyClientWithBaseURI

func NewTeamChannelMessageReplyClientWithBaseURI(sdkApi sdkEnv.Api) (*TeamChannelMessageReplyClient, error)

func (TeamChannelMessageReplyClient) CreateTeamChannelMessageReply

CreateTeamChannelMessageReply - Create new navigation property to replies for groups

func (TeamChannelMessageReplyClient) CreateTeamChannelMessageReplySoftDelete

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

func (TeamChannelMessageReplyClient) CreateTeamChannelMessageReplyUndoSoftDelete

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

func (TeamChannelMessageReplyClient) DeleteTeamChannelMessageReply

DeleteTeamChannelMessageReply - Delete navigation property replies for groups

func (TeamChannelMessageReplyClient) GetTeamChannelMessageRepliesCount

GetTeamChannelMessageRepliesCount - Get the number of the resource

func (TeamChannelMessageReplyClient) GetTeamChannelMessageReply

GetTeamChannelMessageReply - Get replies from groups. Replies for a specified message. Supports $expand for channel messages.

func (TeamChannelMessageReplyClient) ListTeamChannelMessageReplies

ListTeamChannelMessageReplies - Get replies from groups. Replies for a specified message. Supports $expand for channel messages.

func (TeamChannelMessageReplyClient) ListTeamChannelMessageRepliesComplete

ListTeamChannelMessageRepliesComplete retrieves all the results into a single object

func (TeamChannelMessageReplyClient) ListTeamChannelMessageRepliesCompleteMatchingPredicate

ListTeamChannelMessageRepliesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TeamChannelMessageReplyClient) SetTeamChannelMessageReplyReaction

SetTeamChannelMessageReplyReaction - Invoke action setReaction

func (TeamChannelMessageReplyClient) UnsetTeamChannelMessageReplyReaction

UnsetTeamChannelMessageReplyReaction - Invoke action unsetReaction

func (TeamChannelMessageReplyClient) UpdateTeamChannelMessageReply

UpdateTeamChannelMessageReply - Update the navigation property replies in groups

type UnsetTeamChannelMessageReplyReactionOperationOptions

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

func DefaultUnsetTeamChannelMessageReplyReactionOperationOptions

func DefaultUnsetTeamChannelMessageReplyReactionOperationOptions() UnsetTeamChannelMessageReplyReactionOperationOptions

func (UnsetTeamChannelMessageReplyReactionOperationOptions) ToHeaders

func (UnsetTeamChannelMessageReplyReactionOperationOptions) ToOData

func (UnsetTeamChannelMessageReplyReactionOperationOptions) ToQuery

type UnsetTeamChannelMessageReplyReactionOperationResponse

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

type UnsetTeamChannelMessageReplyReactionRequest

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

type UpdateTeamChannelMessageReplyOperationOptions

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

func DefaultUpdateTeamChannelMessageReplyOperationOptions

func DefaultUpdateTeamChannelMessageReplyOperationOptions() UpdateTeamChannelMessageReplyOperationOptions

func (UpdateTeamChannelMessageReplyOperationOptions) ToHeaders

func (UpdateTeamChannelMessageReplyOperationOptions) ToOData

func (UpdateTeamChannelMessageReplyOperationOptions) ToQuery

type UpdateTeamChannelMessageReplyOperationResponse

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