teamprimarychannelmessage

package
v0.20241126.1723 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := teamprimarychannelmessage.NewTeamPrimaryChannelMessageClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: TeamPrimaryChannelMessageClient.CreateTeamPrimaryChannelMessage

ctx := context.TODO()
id := teamprimarychannelmessage.NewGroupID("groupId")

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


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

Example Usage: TeamPrimaryChannelMessageClient.CreateTeamPrimaryChannelMessageSoftDelete

ctx := context.TODO()
id := teamprimarychannelmessage.NewGroupIdTeamPrimaryChannelMessageID("groupId", "chatMessageId")

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

Example Usage: TeamPrimaryChannelMessageClient.CreateTeamPrimaryChannelMessageUndoSoftDelete

ctx := context.TODO()
id := teamprimarychannelmessage.NewGroupIdTeamPrimaryChannelMessageID("groupId", "chatMessageId")

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

Example Usage: TeamPrimaryChannelMessageClient.DeleteTeamPrimaryChannelMessage

ctx := context.TODO()
id := teamprimarychannelmessage.NewGroupIdTeamPrimaryChannelMessageID("groupId", "chatMessageId")

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

Example Usage: TeamPrimaryChannelMessageClient.GetTeamPrimaryChannelMessage

ctx := context.TODO()
id := teamprimarychannelmessage.NewGroupIdTeamPrimaryChannelMessageID("groupId", "chatMessageId")

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

Example Usage: TeamPrimaryChannelMessageClient.GetTeamPrimaryChannelMessagesCount

ctx := context.TODO()
id := teamprimarychannelmessage.NewGroupID("groupId")

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

Example Usage: TeamPrimaryChannelMessageClient.ListTeamPrimaryChannelMessages

ctx := context.TODO()
id := teamprimarychannelmessage.NewGroupID("groupId")

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

Example Usage: TeamPrimaryChannelMessageClient.SetTeamPrimaryChannelMessageReaction

ctx := context.TODO()
id := teamprimarychannelmessage.NewGroupIdTeamPrimaryChannelMessageID("groupId", "chatMessageId")

payload := teamprimarychannelmessage.SetTeamPrimaryChannelMessageReactionRequest{
	// ...
}


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

Example Usage: TeamPrimaryChannelMessageClient.UnsetTeamPrimaryChannelMessageReaction

ctx := context.TODO()
id := teamprimarychannelmessage.NewGroupIdTeamPrimaryChannelMessageID("groupId", "chatMessageId")

payload := teamprimarychannelmessage.UnsetTeamPrimaryChannelMessageReactionRequest{
	// ...
}


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

Example Usage: TeamPrimaryChannelMessageClient.UpdateTeamPrimaryChannelMessage

ctx := context.TODO()
id := teamprimarychannelmessage.NewGroupIdTeamPrimaryChannelMessageID("groupId", "chatMessageId")

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


read, err := client.UpdateTeamPrimaryChannelMessage(ctx, id, payload, teamprimarychannelmessage.DefaultUpdateTeamPrimaryChannelMessageOperationOptions())
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 CreateTeamPrimaryChannelMessageOperationOptions

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

func DefaultCreateTeamPrimaryChannelMessageOperationOptions

func DefaultCreateTeamPrimaryChannelMessageOperationOptions() CreateTeamPrimaryChannelMessageOperationOptions

func (CreateTeamPrimaryChannelMessageOperationOptions) ToHeaders

func (CreateTeamPrimaryChannelMessageOperationOptions) ToOData

func (CreateTeamPrimaryChannelMessageOperationOptions) ToQuery

type CreateTeamPrimaryChannelMessageOperationResponse

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

type CreateTeamPrimaryChannelMessageSoftDeleteOperationOptions

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

func (CreateTeamPrimaryChannelMessageSoftDeleteOperationOptions) ToHeaders

func (CreateTeamPrimaryChannelMessageSoftDeleteOperationOptions) ToOData

func (CreateTeamPrimaryChannelMessageSoftDeleteOperationOptions) ToQuery

type CreateTeamPrimaryChannelMessageSoftDeleteOperationResponse

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

type CreateTeamPrimaryChannelMessageUndoSoftDeleteOperationOptions

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

func (CreateTeamPrimaryChannelMessageUndoSoftDeleteOperationOptions) ToHeaders

func (CreateTeamPrimaryChannelMessageUndoSoftDeleteOperationOptions) ToOData

func (CreateTeamPrimaryChannelMessageUndoSoftDeleteOperationOptions) ToQuery

type CreateTeamPrimaryChannelMessageUndoSoftDeleteOperationResponse

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

type DeleteTeamPrimaryChannelMessageOperationOptions

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

func DefaultDeleteTeamPrimaryChannelMessageOperationOptions

func DefaultDeleteTeamPrimaryChannelMessageOperationOptions() DeleteTeamPrimaryChannelMessageOperationOptions

func (DeleteTeamPrimaryChannelMessageOperationOptions) ToHeaders

func (DeleteTeamPrimaryChannelMessageOperationOptions) ToOData

func (DeleteTeamPrimaryChannelMessageOperationOptions) ToQuery

type DeleteTeamPrimaryChannelMessageOperationResponse

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

type GetTeamPrimaryChannelMessageOperationOptions

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

func DefaultGetTeamPrimaryChannelMessageOperationOptions

func DefaultGetTeamPrimaryChannelMessageOperationOptions() GetTeamPrimaryChannelMessageOperationOptions

func (GetTeamPrimaryChannelMessageOperationOptions) ToHeaders

func (GetTeamPrimaryChannelMessageOperationOptions) ToOData

func (GetTeamPrimaryChannelMessageOperationOptions) ToQuery

type GetTeamPrimaryChannelMessageOperationResponse

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

type GetTeamPrimaryChannelMessagesCountOperationOptions

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

func DefaultGetTeamPrimaryChannelMessagesCountOperationOptions

func DefaultGetTeamPrimaryChannelMessagesCountOperationOptions() GetTeamPrimaryChannelMessagesCountOperationOptions

func (GetTeamPrimaryChannelMessagesCountOperationOptions) ToHeaders

func (GetTeamPrimaryChannelMessagesCountOperationOptions) ToOData

func (GetTeamPrimaryChannelMessagesCountOperationOptions) ToQuery

type GetTeamPrimaryChannelMessagesCountOperationResponse

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

type ListTeamPrimaryChannelMessagesCompleteResult

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

type ListTeamPrimaryChannelMessagesCustomPager

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

type ListTeamPrimaryChannelMessagesOperationOptions

type ListTeamPrimaryChannelMessagesOperationOptions 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 DefaultListTeamPrimaryChannelMessagesOperationOptions

func DefaultListTeamPrimaryChannelMessagesOperationOptions() ListTeamPrimaryChannelMessagesOperationOptions

func (ListTeamPrimaryChannelMessagesOperationOptions) ToHeaders

func (ListTeamPrimaryChannelMessagesOperationOptions) ToOData

func (ListTeamPrimaryChannelMessagesOperationOptions) ToQuery

type ListTeamPrimaryChannelMessagesOperationResponse

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

type SetTeamPrimaryChannelMessageReactionOperationOptions

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

func DefaultSetTeamPrimaryChannelMessageReactionOperationOptions

func DefaultSetTeamPrimaryChannelMessageReactionOperationOptions() SetTeamPrimaryChannelMessageReactionOperationOptions

func (SetTeamPrimaryChannelMessageReactionOperationOptions) ToHeaders

func (SetTeamPrimaryChannelMessageReactionOperationOptions) ToOData

func (SetTeamPrimaryChannelMessageReactionOperationOptions) ToQuery

type SetTeamPrimaryChannelMessageReactionOperationResponse

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

type SetTeamPrimaryChannelMessageReactionRequest

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

type TeamPrimaryChannelMessageClient

type TeamPrimaryChannelMessageClient struct {
	Client *msgraph.Client
}

func NewTeamPrimaryChannelMessageClientWithBaseURI

func NewTeamPrimaryChannelMessageClientWithBaseURI(sdkApi sdkEnv.Api) (*TeamPrimaryChannelMessageClient, error)

func (TeamPrimaryChannelMessageClient) CreateTeamPrimaryChannelMessage

CreateTeamPrimaryChannelMessage - Create new navigation property to messages for groups

func (TeamPrimaryChannelMessageClient) CreateTeamPrimaryChannelMessageSoftDelete

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

func (TeamPrimaryChannelMessageClient) CreateTeamPrimaryChannelMessageUndoSoftDelete

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

func (TeamPrimaryChannelMessageClient) DeleteTeamPrimaryChannelMessage

DeleteTeamPrimaryChannelMessage - Delete navigation property messages for groups

func (TeamPrimaryChannelMessageClient) GetTeamPrimaryChannelMessage

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

func (TeamPrimaryChannelMessageClient) GetTeamPrimaryChannelMessagesCount

GetTeamPrimaryChannelMessagesCount - Get the number of the resource

func (TeamPrimaryChannelMessageClient) ListTeamPrimaryChannelMessages

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

func (TeamPrimaryChannelMessageClient) ListTeamPrimaryChannelMessagesComplete

ListTeamPrimaryChannelMessagesComplete retrieves all the results into a single object

func (TeamPrimaryChannelMessageClient) ListTeamPrimaryChannelMessagesCompleteMatchingPredicate

ListTeamPrimaryChannelMessagesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TeamPrimaryChannelMessageClient) SetTeamPrimaryChannelMessageReaction

SetTeamPrimaryChannelMessageReaction - Invoke action setReaction

func (TeamPrimaryChannelMessageClient) UnsetTeamPrimaryChannelMessageReaction

UnsetTeamPrimaryChannelMessageReaction - Invoke action unsetReaction

func (TeamPrimaryChannelMessageClient) UpdateTeamPrimaryChannelMessage

UpdateTeamPrimaryChannelMessage - Update the navigation property messages in groups

type UnsetTeamPrimaryChannelMessageReactionOperationOptions

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

func DefaultUnsetTeamPrimaryChannelMessageReactionOperationOptions

func DefaultUnsetTeamPrimaryChannelMessageReactionOperationOptions() UnsetTeamPrimaryChannelMessageReactionOperationOptions

func (UnsetTeamPrimaryChannelMessageReactionOperationOptions) ToHeaders

func (UnsetTeamPrimaryChannelMessageReactionOperationOptions) ToOData

func (UnsetTeamPrimaryChannelMessageReactionOperationOptions) ToQuery

type UnsetTeamPrimaryChannelMessageReactionOperationResponse

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

type UnsetTeamPrimaryChannelMessageReactionRequest

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

type UpdateTeamPrimaryChannelMessageOperationOptions

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

func DefaultUpdateTeamPrimaryChannelMessageOperationOptions

func DefaultUpdateTeamPrimaryChannelMessageOperationOptions() UpdateTeamPrimaryChannelMessageOperationOptions

func (UpdateTeamPrimaryChannelMessageOperationOptions) ToHeaders

func (UpdateTeamPrimaryChannelMessageOperationOptions) ToOData

func (UpdateTeamPrimaryChannelMessageOperationOptions) ToQuery

type UpdateTeamPrimaryChannelMessageOperationResponse

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