joinedteamprimarychannelmessage

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/me/stable/joinedteamprimarychannelmessage Documentation

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

Client Initialization

client := joinedteamprimarychannelmessage.NewJoinedTeamPrimaryChannelMessageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: JoinedTeamPrimaryChannelMessageClient.CreateJoinedTeamPrimaryChannelMessage

ctx := context.TODO()
id := joinedteamprimarychannelmessage.NewMeJoinedTeamID("teamId")

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


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

Example Usage: JoinedTeamPrimaryChannelMessageClient.CreateJoinedTeamPrimaryChannelMessageSoftDelete

ctx := context.TODO()
id := joinedteamprimarychannelmessage.NewMeJoinedTeamIdPrimaryChannelMessageID("teamId", "chatMessageId")

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

Example Usage: JoinedTeamPrimaryChannelMessageClient.CreateJoinedTeamPrimaryChannelMessageUndoSoftDelete

ctx := context.TODO()
id := joinedteamprimarychannelmessage.NewMeJoinedTeamIdPrimaryChannelMessageID("teamId", "chatMessageId")

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

Example Usage: JoinedTeamPrimaryChannelMessageClient.DeleteJoinedTeamPrimaryChannelMessage

ctx := context.TODO()
id := joinedteamprimarychannelmessage.NewMeJoinedTeamIdPrimaryChannelMessageID("teamId", "chatMessageId")

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

Example Usage: JoinedTeamPrimaryChannelMessageClient.GetJoinedTeamPrimaryChannelMessage

ctx := context.TODO()
id := joinedteamprimarychannelmessage.NewMeJoinedTeamIdPrimaryChannelMessageID("teamId", "chatMessageId")

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

Example Usage: JoinedTeamPrimaryChannelMessageClient.GetJoinedTeamPrimaryChannelMessagesCount

ctx := context.TODO()
id := joinedteamprimarychannelmessage.NewMeJoinedTeamID("teamId")

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

Example Usage: JoinedTeamPrimaryChannelMessageClient.ListJoinedTeamPrimaryChannelMessages

ctx := context.TODO()
id := joinedteamprimarychannelmessage.NewMeJoinedTeamID("teamId")

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

Example Usage: JoinedTeamPrimaryChannelMessageClient.SetJoinedTeamPrimaryChannelMessageReaction

ctx := context.TODO()
id := joinedteamprimarychannelmessage.NewMeJoinedTeamIdPrimaryChannelMessageID("teamId", "chatMessageId")

payload := joinedteamprimarychannelmessage.SetJoinedTeamPrimaryChannelMessageReactionRequest{
	// ...
}


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

Example Usage: JoinedTeamPrimaryChannelMessageClient.UnsetJoinedTeamPrimaryChannelMessageReaction

ctx := context.TODO()
id := joinedteamprimarychannelmessage.NewMeJoinedTeamIdPrimaryChannelMessageID("teamId", "chatMessageId")

payload := joinedteamprimarychannelmessage.UnsetJoinedTeamPrimaryChannelMessageReactionRequest{
	// ...
}


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

Example Usage: JoinedTeamPrimaryChannelMessageClient.UpdateJoinedTeamPrimaryChannelMessage

ctx := context.TODO()
id := joinedteamprimarychannelmessage.NewMeJoinedTeamIdPrimaryChannelMessageID("teamId", "chatMessageId")

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


read, err := client.UpdateJoinedTeamPrimaryChannelMessage(ctx, id, payload, joinedteamprimarychannelmessage.DefaultUpdateJoinedTeamPrimaryChannelMessageOperationOptions())
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 CreateJoinedTeamPrimaryChannelMessageOperationOptions

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

func DefaultCreateJoinedTeamPrimaryChannelMessageOperationOptions

func DefaultCreateJoinedTeamPrimaryChannelMessageOperationOptions() CreateJoinedTeamPrimaryChannelMessageOperationOptions

func (CreateJoinedTeamPrimaryChannelMessageOperationOptions) ToHeaders

func (CreateJoinedTeamPrimaryChannelMessageOperationOptions) ToOData

func (CreateJoinedTeamPrimaryChannelMessageOperationOptions) ToQuery

type CreateJoinedTeamPrimaryChannelMessageOperationResponse

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

type CreateJoinedTeamPrimaryChannelMessageSoftDeleteOperationOptions

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

func (CreateJoinedTeamPrimaryChannelMessageSoftDeleteOperationOptions) ToHeaders

func (CreateJoinedTeamPrimaryChannelMessageSoftDeleteOperationOptions) ToOData

func (CreateJoinedTeamPrimaryChannelMessageSoftDeleteOperationOptions) ToQuery

type CreateJoinedTeamPrimaryChannelMessageSoftDeleteOperationResponse

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

type CreateJoinedTeamPrimaryChannelMessageUndoSoftDeleteOperationOptions

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

func (CreateJoinedTeamPrimaryChannelMessageUndoSoftDeleteOperationOptions) ToHeaders

func (CreateJoinedTeamPrimaryChannelMessageUndoSoftDeleteOperationOptions) ToOData

func (CreateJoinedTeamPrimaryChannelMessageUndoSoftDeleteOperationOptions) ToQuery

type CreateJoinedTeamPrimaryChannelMessageUndoSoftDeleteOperationResponse

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

type DeleteJoinedTeamPrimaryChannelMessageOperationOptions

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

func DefaultDeleteJoinedTeamPrimaryChannelMessageOperationOptions

func DefaultDeleteJoinedTeamPrimaryChannelMessageOperationOptions() DeleteJoinedTeamPrimaryChannelMessageOperationOptions

func (DeleteJoinedTeamPrimaryChannelMessageOperationOptions) ToHeaders

func (DeleteJoinedTeamPrimaryChannelMessageOperationOptions) ToOData

func (DeleteJoinedTeamPrimaryChannelMessageOperationOptions) ToQuery

type DeleteJoinedTeamPrimaryChannelMessageOperationResponse

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

type GetJoinedTeamPrimaryChannelMessageOperationOptions

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

func DefaultGetJoinedTeamPrimaryChannelMessageOperationOptions

func DefaultGetJoinedTeamPrimaryChannelMessageOperationOptions() GetJoinedTeamPrimaryChannelMessageOperationOptions

func (GetJoinedTeamPrimaryChannelMessageOperationOptions) ToHeaders

func (GetJoinedTeamPrimaryChannelMessageOperationOptions) ToOData

func (GetJoinedTeamPrimaryChannelMessageOperationOptions) ToQuery

type GetJoinedTeamPrimaryChannelMessageOperationResponse

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

type GetJoinedTeamPrimaryChannelMessagesCountOperationOptions

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

func (GetJoinedTeamPrimaryChannelMessagesCountOperationOptions) ToHeaders

func (GetJoinedTeamPrimaryChannelMessagesCountOperationOptions) ToOData

func (GetJoinedTeamPrimaryChannelMessagesCountOperationOptions) ToQuery

type GetJoinedTeamPrimaryChannelMessagesCountOperationResponse

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

type JoinedTeamPrimaryChannelMessageClient

type JoinedTeamPrimaryChannelMessageClient struct {
	Client *msgraph.Client
}

func NewJoinedTeamPrimaryChannelMessageClientWithBaseURI

func NewJoinedTeamPrimaryChannelMessageClientWithBaseURI(sdkApi sdkEnv.Api) (*JoinedTeamPrimaryChannelMessageClient, error)

func (JoinedTeamPrimaryChannelMessageClient) CreateJoinedTeamPrimaryChannelMessage

CreateJoinedTeamPrimaryChannelMessage - Create new navigation property to messages for me

func (JoinedTeamPrimaryChannelMessageClient) CreateJoinedTeamPrimaryChannelMessageSoftDelete

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

func (JoinedTeamPrimaryChannelMessageClient) CreateJoinedTeamPrimaryChannelMessageUndoSoftDelete

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

func (JoinedTeamPrimaryChannelMessageClient) DeleteJoinedTeamPrimaryChannelMessage

DeleteJoinedTeamPrimaryChannelMessage - Delete navigation property messages for me

func (JoinedTeamPrimaryChannelMessageClient) GetJoinedTeamPrimaryChannelMessage

GetJoinedTeamPrimaryChannelMessage - Get messages from me. A collection of all the messages in the channel. A navigation property. Nullable.

func (JoinedTeamPrimaryChannelMessageClient) GetJoinedTeamPrimaryChannelMessagesCount

GetJoinedTeamPrimaryChannelMessagesCount - Get the number of the resource

func (JoinedTeamPrimaryChannelMessageClient) ListJoinedTeamPrimaryChannelMessages

ListJoinedTeamPrimaryChannelMessages - Get messages from me. A collection of all the messages in the channel. A navigation property. Nullable.

func (JoinedTeamPrimaryChannelMessageClient) ListJoinedTeamPrimaryChannelMessagesComplete

ListJoinedTeamPrimaryChannelMessagesComplete retrieves all the results into a single object

func (JoinedTeamPrimaryChannelMessageClient) ListJoinedTeamPrimaryChannelMessagesCompleteMatchingPredicate

ListJoinedTeamPrimaryChannelMessagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (JoinedTeamPrimaryChannelMessageClient) SetJoinedTeamPrimaryChannelMessageReaction

SetJoinedTeamPrimaryChannelMessageReaction - Invoke action setReaction

func (JoinedTeamPrimaryChannelMessageClient) UnsetJoinedTeamPrimaryChannelMessageReaction

UnsetJoinedTeamPrimaryChannelMessageReaction - Invoke action unsetReaction

func (JoinedTeamPrimaryChannelMessageClient) UpdateJoinedTeamPrimaryChannelMessage

UpdateJoinedTeamPrimaryChannelMessage - Update the navigation property messages in me

type ListJoinedTeamPrimaryChannelMessagesCompleteResult

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

type ListJoinedTeamPrimaryChannelMessagesCustomPager

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

type ListJoinedTeamPrimaryChannelMessagesOperationOptions

type ListJoinedTeamPrimaryChannelMessagesOperationOptions 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 DefaultListJoinedTeamPrimaryChannelMessagesOperationOptions

func DefaultListJoinedTeamPrimaryChannelMessagesOperationOptions() ListJoinedTeamPrimaryChannelMessagesOperationOptions

func (ListJoinedTeamPrimaryChannelMessagesOperationOptions) ToHeaders

func (ListJoinedTeamPrimaryChannelMessagesOperationOptions) ToOData

func (ListJoinedTeamPrimaryChannelMessagesOperationOptions) ToQuery

type ListJoinedTeamPrimaryChannelMessagesOperationResponse

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

type SetJoinedTeamPrimaryChannelMessageReactionOperationOptions

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

func (SetJoinedTeamPrimaryChannelMessageReactionOperationOptions) ToHeaders

func (SetJoinedTeamPrimaryChannelMessageReactionOperationOptions) ToOData

func (SetJoinedTeamPrimaryChannelMessageReactionOperationOptions) ToQuery

type SetJoinedTeamPrimaryChannelMessageReactionOperationResponse

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

type SetJoinedTeamPrimaryChannelMessageReactionRequest

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

type UnsetJoinedTeamPrimaryChannelMessageReactionOperationOptions

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

func (UnsetJoinedTeamPrimaryChannelMessageReactionOperationOptions) ToHeaders

func (UnsetJoinedTeamPrimaryChannelMessageReactionOperationOptions) ToOData

func (UnsetJoinedTeamPrimaryChannelMessageReactionOperationOptions) ToQuery

type UnsetJoinedTeamPrimaryChannelMessageReactionOperationResponse

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

type UnsetJoinedTeamPrimaryChannelMessageReactionRequest

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

type UpdateJoinedTeamPrimaryChannelMessageOperationOptions

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

func DefaultUpdateJoinedTeamPrimaryChannelMessageOperationOptions

func DefaultUpdateJoinedTeamPrimaryChannelMessageOperationOptions() UpdateJoinedTeamPrimaryChannelMessageOperationOptions

func (UpdateJoinedTeamPrimaryChannelMessageOperationOptions) ToHeaders

func (UpdateJoinedTeamPrimaryChannelMessageOperationOptions) ToOData

func (UpdateJoinedTeamPrimaryChannelMessageOperationOptions) ToQuery

type UpdateJoinedTeamPrimaryChannelMessageOperationResponse

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