joinedteamchannelmessage

package
v0.20241029.1112340 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/joinedteamchannelmessage Documentation

The joinedteamchannelmessage SDK allows for interaction with Microsoft Graph users (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/users/stable/joinedteamchannelmessage"

Client Initialization

client := joinedteamchannelmessage.NewJoinedTeamChannelMessageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: JoinedTeamChannelMessageClient.CreateJoinedTeamChannelMessage

ctx := context.TODO()
id := joinedteamchannelmessage.NewUserIdJoinedTeamIdChannelID("userId", "teamId", "channelId")

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


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

Example Usage: JoinedTeamChannelMessageClient.CreateJoinedTeamChannelMessageSoftDelete

ctx := context.TODO()
id := joinedteamchannelmessage.NewUserIdJoinedTeamIdChannelIdMessageID("userId", "teamId", "channelId", "chatMessageId")

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

Example Usage: JoinedTeamChannelMessageClient.CreateJoinedTeamChannelMessageUndoSoftDelete

ctx := context.TODO()
id := joinedteamchannelmessage.NewUserIdJoinedTeamIdChannelIdMessageID("userId", "teamId", "channelId", "chatMessageId")

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

Example Usage: JoinedTeamChannelMessageClient.DeleteJoinedTeamChannelMessage

ctx := context.TODO()
id := joinedteamchannelmessage.NewUserIdJoinedTeamIdChannelIdMessageID("userId", "teamId", "channelId", "chatMessageId")

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

Example Usage: JoinedTeamChannelMessageClient.GetJoinedTeamChannelMessage

ctx := context.TODO()
id := joinedteamchannelmessage.NewUserIdJoinedTeamIdChannelIdMessageID("userId", "teamId", "channelId", "chatMessageId")

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

Example Usage: JoinedTeamChannelMessageClient.GetJoinedTeamChannelMessagesCount

ctx := context.TODO()
id := joinedteamchannelmessage.NewUserIdJoinedTeamIdChannelID("userId", "teamId", "channelId")

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

Example Usage: JoinedTeamChannelMessageClient.ListJoinedTeamChannelMessages

ctx := context.TODO()
id := joinedteamchannelmessage.NewUserIdJoinedTeamIdChannelID("userId", "teamId", "channelId")

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

Example Usage: JoinedTeamChannelMessageClient.SetJoinedTeamChannelMessageReaction

ctx := context.TODO()
id := joinedteamchannelmessage.NewUserIdJoinedTeamIdChannelIdMessageID("userId", "teamId", "channelId", "chatMessageId")

payload := joinedteamchannelmessage.SetJoinedTeamChannelMessageReactionRequest{
	// ...
}


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

Example Usage: JoinedTeamChannelMessageClient.UnsetJoinedTeamChannelMessageReaction

ctx := context.TODO()
id := joinedteamchannelmessage.NewUserIdJoinedTeamIdChannelIdMessageID("userId", "teamId", "channelId", "chatMessageId")

payload := joinedteamchannelmessage.UnsetJoinedTeamChannelMessageReactionRequest{
	// ...
}


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

Example Usage: JoinedTeamChannelMessageClient.UpdateJoinedTeamChannelMessage

ctx := context.TODO()
id := joinedteamchannelmessage.NewUserIdJoinedTeamIdChannelIdMessageID("userId", "teamId", "channelId", "chatMessageId")

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


read, err := client.UpdateJoinedTeamChannelMessage(ctx, id, payload, joinedteamchannelmessage.DefaultUpdateJoinedTeamChannelMessageOperationOptions())
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 CreateJoinedTeamChannelMessageOperationOptions

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

func DefaultCreateJoinedTeamChannelMessageOperationOptions

func DefaultCreateJoinedTeamChannelMessageOperationOptions() CreateJoinedTeamChannelMessageOperationOptions

func (CreateJoinedTeamChannelMessageOperationOptions) ToHeaders

func (CreateJoinedTeamChannelMessageOperationOptions) ToOData

func (CreateJoinedTeamChannelMessageOperationOptions) ToQuery

type CreateJoinedTeamChannelMessageOperationResponse

type CreateJoinedTeamChannelMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.ChatMessage
}

type CreateJoinedTeamChannelMessageSoftDeleteOperationOptions

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

func (CreateJoinedTeamChannelMessageSoftDeleteOperationOptions) ToHeaders

func (CreateJoinedTeamChannelMessageSoftDeleteOperationOptions) ToOData

func (CreateJoinedTeamChannelMessageSoftDeleteOperationOptions) ToQuery

type CreateJoinedTeamChannelMessageSoftDeleteOperationResponse

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

type CreateJoinedTeamChannelMessageUndoSoftDeleteOperationOptions

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

func (CreateJoinedTeamChannelMessageUndoSoftDeleteOperationOptions) ToHeaders

func (CreateJoinedTeamChannelMessageUndoSoftDeleteOperationOptions) ToOData

func (CreateJoinedTeamChannelMessageUndoSoftDeleteOperationOptions) ToQuery

type CreateJoinedTeamChannelMessageUndoSoftDeleteOperationResponse

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

type DeleteJoinedTeamChannelMessageOperationOptions

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

func DefaultDeleteJoinedTeamChannelMessageOperationOptions

func DefaultDeleteJoinedTeamChannelMessageOperationOptions() DeleteJoinedTeamChannelMessageOperationOptions

func (DeleteJoinedTeamChannelMessageOperationOptions) ToHeaders

func (DeleteJoinedTeamChannelMessageOperationOptions) ToOData

func (DeleteJoinedTeamChannelMessageOperationOptions) ToQuery

type DeleteJoinedTeamChannelMessageOperationResponse

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

type GetJoinedTeamChannelMessageOperationOptions

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

func DefaultGetJoinedTeamChannelMessageOperationOptions

func DefaultGetJoinedTeamChannelMessageOperationOptions() GetJoinedTeamChannelMessageOperationOptions

func (GetJoinedTeamChannelMessageOperationOptions) ToHeaders

func (GetJoinedTeamChannelMessageOperationOptions) ToOData

func (GetJoinedTeamChannelMessageOperationOptions) ToQuery

type GetJoinedTeamChannelMessageOperationResponse

type GetJoinedTeamChannelMessageOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *stable.ChatMessage
}

type GetJoinedTeamChannelMessagesCountOperationOptions

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

func DefaultGetJoinedTeamChannelMessagesCountOperationOptions

func DefaultGetJoinedTeamChannelMessagesCountOperationOptions() GetJoinedTeamChannelMessagesCountOperationOptions

func (GetJoinedTeamChannelMessagesCountOperationOptions) ToHeaders

func (GetJoinedTeamChannelMessagesCountOperationOptions) ToOData

func (GetJoinedTeamChannelMessagesCountOperationOptions) ToQuery

type GetJoinedTeamChannelMessagesCountOperationResponse

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

type JoinedTeamChannelMessageClient

type JoinedTeamChannelMessageClient struct {
	Client *msgraph.Client
}

func NewJoinedTeamChannelMessageClientWithBaseURI

func NewJoinedTeamChannelMessageClientWithBaseURI(sdkApi sdkEnv.Api) (*JoinedTeamChannelMessageClient, error)

func (JoinedTeamChannelMessageClient) CreateJoinedTeamChannelMessage

CreateJoinedTeamChannelMessage - Create new navigation property to messages for users

func (JoinedTeamChannelMessageClient) CreateJoinedTeamChannelMessageSoftDelete

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

func (JoinedTeamChannelMessageClient) CreateJoinedTeamChannelMessageUndoSoftDelete

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

func (JoinedTeamChannelMessageClient) DeleteJoinedTeamChannelMessage

DeleteJoinedTeamChannelMessage - Delete navigation property messages for users

func (JoinedTeamChannelMessageClient) GetJoinedTeamChannelMessage

GetJoinedTeamChannelMessage - Get messages from users. A collection of all the messages in the channel. A navigation property. Nullable.

func (JoinedTeamChannelMessageClient) GetJoinedTeamChannelMessagesCount

GetJoinedTeamChannelMessagesCount - Get the number of the resource

func (JoinedTeamChannelMessageClient) ListJoinedTeamChannelMessages

ListJoinedTeamChannelMessages - Get messages from users. A collection of all the messages in the channel. A navigation property. Nullable.

func (JoinedTeamChannelMessageClient) ListJoinedTeamChannelMessagesComplete

ListJoinedTeamChannelMessagesComplete retrieves all the results into a single object

func (JoinedTeamChannelMessageClient) ListJoinedTeamChannelMessagesCompleteMatchingPredicate

ListJoinedTeamChannelMessagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (JoinedTeamChannelMessageClient) SetJoinedTeamChannelMessageReaction

SetJoinedTeamChannelMessageReaction - Invoke action setReaction

func (JoinedTeamChannelMessageClient) UnsetJoinedTeamChannelMessageReaction

UnsetJoinedTeamChannelMessageReaction - Invoke action unsetReaction

func (JoinedTeamChannelMessageClient) UpdateJoinedTeamChannelMessage

UpdateJoinedTeamChannelMessage - Update the navigation property messages in users

type ListJoinedTeamChannelMessagesCompleteResult

type ListJoinedTeamChannelMessagesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.ChatMessage
}

type ListJoinedTeamChannelMessagesCustomPager

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

type ListJoinedTeamChannelMessagesOperationOptions

type ListJoinedTeamChannelMessagesOperationOptions 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 DefaultListJoinedTeamChannelMessagesOperationOptions

func DefaultListJoinedTeamChannelMessagesOperationOptions() ListJoinedTeamChannelMessagesOperationOptions

func (ListJoinedTeamChannelMessagesOperationOptions) ToHeaders

func (ListJoinedTeamChannelMessagesOperationOptions) ToOData

func (ListJoinedTeamChannelMessagesOperationOptions) ToQuery

type ListJoinedTeamChannelMessagesOperationResponse

type ListJoinedTeamChannelMessagesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.ChatMessage
}

type SetJoinedTeamChannelMessageReactionOperationOptions

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

func DefaultSetJoinedTeamChannelMessageReactionOperationOptions

func DefaultSetJoinedTeamChannelMessageReactionOperationOptions() SetJoinedTeamChannelMessageReactionOperationOptions

func (SetJoinedTeamChannelMessageReactionOperationOptions) ToHeaders

func (SetJoinedTeamChannelMessageReactionOperationOptions) ToOData

func (SetJoinedTeamChannelMessageReactionOperationOptions) ToQuery

type SetJoinedTeamChannelMessageReactionOperationResponse

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

type SetJoinedTeamChannelMessageReactionRequest

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

type UnsetJoinedTeamChannelMessageReactionOperationOptions

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

func DefaultUnsetJoinedTeamChannelMessageReactionOperationOptions

func DefaultUnsetJoinedTeamChannelMessageReactionOperationOptions() UnsetJoinedTeamChannelMessageReactionOperationOptions

func (UnsetJoinedTeamChannelMessageReactionOperationOptions) ToHeaders

func (UnsetJoinedTeamChannelMessageReactionOperationOptions) ToOData

func (UnsetJoinedTeamChannelMessageReactionOperationOptions) ToQuery

type UnsetJoinedTeamChannelMessageReactionOperationResponse

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

type UnsetJoinedTeamChannelMessageReactionRequest

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

type UpdateJoinedTeamChannelMessageOperationOptions

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

func DefaultUpdateJoinedTeamChannelMessageOperationOptions

func DefaultUpdateJoinedTeamChannelMessageOperationOptions() UpdateJoinedTeamChannelMessageOperationOptions

func (UpdateJoinedTeamChannelMessageOperationOptions) ToHeaders

func (UpdateJoinedTeamChannelMessageOperationOptions) ToOData

func (UpdateJoinedTeamChannelMessageOperationOptions) ToQuery

type UpdateJoinedTeamChannelMessageOperationResponse

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