teamchannelmessage

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: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/teamchannelmessage Documentation

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

Client Initialization

client := teamchannelmessage.NewTeamChannelMessageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: TeamChannelMessageClient.CreateTeamChannelMessage

ctx := context.TODO()
id := teamchannelmessage.NewGroupIdTeamChannelID("groupId", "channelId")

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


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

Example Usage: TeamChannelMessageClient.CreateTeamChannelMessageSoftDelete

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

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

Example Usage: TeamChannelMessageClient.CreateTeamChannelMessageUndoSoftDelete

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

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

Example Usage: TeamChannelMessageClient.DeleteTeamChannelMessage

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

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

Example Usage: TeamChannelMessageClient.GetTeamChannelMessage

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

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

Example Usage: TeamChannelMessageClient.GetTeamChannelMessagesCount

ctx := context.TODO()
id := teamchannelmessage.NewGroupIdTeamChannelID("groupId", "channelId")

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

Example Usage: TeamChannelMessageClient.ListTeamChannelMessages

ctx := context.TODO()
id := teamchannelmessage.NewGroupIdTeamChannelID("groupId", "channelId")

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

Example Usage: TeamChannelMessageClient.SetTeamChannelMessageReaction

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

payload := teamchannelmessage.SetTeamChannelMessageReactionRequest{
	// ...
}


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

Example Usage: TeamChannelMessageClient.UnsetTeamChannelMessageReaction

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

payload := teamchannelmessage.UnsetTeamChannelMessageReactionRequest{
	// ...
}


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

Example Usage: TeamChannelMessageClient.UpdateTeamChannelMessage

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

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


read, err := client.UpdateTeamChannelMessage(ctx, id, payload, teamchannelmessage.DefaultUpdateTeamChannelMessageOperationOptions())
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 CreateTeamChannelMessageOperationOptions

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

func DefaultCreateTeamChannelMessageOperationOptions

func DefaultCreateTeamChannelMessageOperationOptions() CreateTeamChannelMessageOperationOptions

func (CreateTeamChannelMessageOperationOptions) ToHeaders

func (CreateTeamChannelMessageOperationOptions) ToOData

func (CreateTeamChannelMessageOperationOptions) ToQuery

type CreateTeamChannelMessageOperationResponse

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

type CreateTeamChannelMessageSoftDeleteOperationOptions

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

func DefaultCreateTeamChannelMessageSoftDeleteOperationOptions

func DefaultCreateTeamChannelMessageSoftDeleteOperationOptions() CreateTeamChannelMessageSoftDeleteOperationOptions

func (CreateTeamChannelMessageSoftDeleteOperationOptions) ToHeaders

func (CreateTeamChannelMessageSoftDeleteOperationOptions) ToOData

func (CreateTeamChannelMessageSoftDeleteOperationOptions) ToQuery

type CreateTeamChannelMessageSoftDeleteOperationResponse

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

type CreateTeamChannelMessageUndoSoftDeleteOperationOptions

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

func DefaultCreateTeamChannelMessageUndoSoftDeleteOperationOptions

func DefaultCreateTeamChannelMessageUndoSoftDeleteOperationOptions() CreateTeamChannelMessageUndoSoftDeleteOperationOptions

func (CreateTeamChannelMessageUndoSoftDeleteOperationOptions) ToHeaders

func (CreateTeamChannelMessageUndoSoftDeleteOperationOptions) ToOData

func (CreateTeamChannelMessageUndoSoftDeleteOperationOptions) ToQuery

type CreateTeamChannelMessageUndoSoftDeleteOperationResponse

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

type DeleteTeamChannelMessageOperationOptions

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

func DefaultDeleteTeamChannelMessageOperationOptions

func DefaultDeleteTeamChannelMessageOperationOptions() DeleteTeamChannelMessageOperationOptions

func (DeleteTeamChannelMessageOperationOptions) ToHeaders

func (DeleteTeamChannelMessageOperationOptions) ToOData

func (DeleteTeamChannelMessageOperationOptions) ToQuery

type DeleteTeamChannelMessageOperationResponse

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

type GetTeamChannelMessageOperationOptions

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

func DefaultGetTeamChannelMessageOperationOptions

func DefaultGetTeamChannelMessageOperationOptions() GetTeamChannelMessageOperationOptions

func (GetTeamChannelMessageOperationOptions) ToHeaders

func (GetTeamChannelMessageOperationOptions) ToOData

func (GetTeamChannelMessageOperationOptions) ToQuery

type GetTeamChannelMessageOperationResponse

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

type GetTeamChannelMessagesCountOperationOptions

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

func DefaultGetTeamChannelMessagesCountOperationOptions

func DefaultGetTeamChannelMessagesCountOperationOptions() GetTeamChannelMessagesCountOperationOptions

func (GetTeamChannelMessagesCountOperationOptions) ToHeaders

func (GetTeamChannelMessagesCountOperationOptions) ToOData

func (GetTeamChannelMessagesCountOperationOptions) ToQuery

type GetTeamChannelMessagesCountOperationResponse

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

type ListTeamChannelMessagesCompleteResult

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

type ListTeamChannelMessagesCustomPager

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

type ListTeamChannelMessagesOperationOptions

type ListTeamChannelMessagesOperationOptions 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 DefaultListTeamChannelMessagesOperationOptions

func DefaultListTeamChannelMessagesOperationOptions() ListTeamChannelMessagesOperationOptions

func (ListTeamChannelMessagesOperationOptions) ToHeaders

func (ListTeamChannelMessagesOperationOptions) ToOData

func (ListTeamChannelMessagesOperationOptions) ToQuery

type ListTeamChannelMessagesOperationResponse

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

type SetTeamChannelMessageReactionOperationOptions

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

func DefaultSetTeamChannelMessageReactionOperationOptions

func DefaultSetTeamChannelMessageReactionOperationOptions() SetTeamChannelMessageReactionOperationOptions

func (SetTeamChannelMessageReactionOperationOptions) ToHeaders

func (SetTeamChannelMessageReactionOperationOptions) ToOData

func (SetTeamChannelMessageReactionOperationOptions) ToQuery

type SetTeamChannelMessageReactionOperationResponse

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

type SetTeamChannelMessageReactionRequest

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

type TeamChannelMessageClient

type TeamChannelMessageClient struct {
	Client *msgraph.Client
}

func NewTeamChannelMessageClientWithBaseURI

func NewTeamChannelMessageClientWithBaseURI(sdkApi sdkEnv.Api) (*TeamChannelMessageClient, error)

func (TeamChannelMessageClient) CreateTeamChannelMessage

CreateTeamChannelMessage - Create new navigation property to messages for groups

func (TeamChannelMessageClient) CreateTeamChannelMessageSoftDelete

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

func (TeamChannelMessageClient) CreateTeamChannelMessageUndoSoftDelete

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

func (TeamChannelMessageClient) DeleteTeamChannelMessage

DeleteTeamChannelMessage - Delete navigation property messages for groups

func (TeamChannelMessageClient) GetTeamChannelMessage

GetTeamChannelMessage - Get messages from groups. A collection of all the messages in the channel. A navigation property. Nullable.

func (TeamChannelMessageClient) GetTeamChannelMessagesCount

GetTeamChannelMessagesCount - Get the number of the resource

func (TeamChannelMessageClient) ListTeamChannelMessages

ListTeamChannelMessages - Get messages from groups. A collection of all the messages in the channel. A navigation property. Nullable.

func (TeamChannelMessageClient) ListTeamChannelMessagesComplete

ListTeamChannelMessagesComplete retrieves all the results into a single object

func (TeamChannelMessageClient) ListTeamChannelMessagesCompleteMatchingPredicate

ListTeamChannelMessagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TeamChannelMessageClient) SetTeamChannelMessageReaction

SetTeamChannelMessageReaction - Invoke action setReaction

func (TeamChannelMessageClient) UnsetTeamChannelMessageReaction

UnsetTeamChannelMessageReaction - Invoke action unsetReaction

func (TeamChannelMessageClient) UpdateTeamChannelMessage

UpdateTeamChannelMessage - Update the navigation property messages in groups

type UnsetTeamChannelMessageReactionOperationOptions

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

func DefaultUnsetTeamChannelMessageReactionOperationOptions

func DefaultUnsetTeamChannelMessageReactionOperationOptions() UnsetTeamChannelMessageReactionOperationOptions

func (UnsetTeamChannelMessageReactionOperationOptions) ToHeaders

func (UnsetTeamChannelMessageReactionOperationOptions) ToOData

func (UnsetTeamChannelMessageReactionOperationOptions) ToQuery

type UnsetTeamChannelMessageReactionOperationResponse

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

type UnsetTeamChannelMessageReactionRequest

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

type UpdateTeamChannelMessageOperationOptions

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

func DefaultUpdateTeamChannelMessageOperationOptions

func DefaultUpdateTeamChannelMessageOperationOptions() UpdateTeamChannelMessageOperationOptions

func (UpdateTeamChannelMessageOperationOptions) ToHeaders

func (UpdateTeamChannelMessageOperationOptions) ToOData

func (UpdateTeamChannelMessageOperationOptions) ToQuery

type UpdateTeamChannelMessageOperationResponse

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