teamprimarychannelmessagereply

package
v0.20241209.1115630 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := teamprimarychannelmessagereply.NewTeamPrimaryChannelMessageReplyClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: TeamPrimaryChannelMessageReplyClient.CreateTeamPrimaryChannelMessageReply

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

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


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

Example Usage: TeamPrimaryChannelMessageReplyClient.CreateTeamPrimaryChannelMessageReplySoftDelete

ctx := context.TODO()
id := teamprimarychannelmessagereply.NewGroupIdTeamPrimaryChannelMessageIdReplyID("groupId", "chatMessageId", "chatMessageId1")

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

Example Usage: TeamPrimaryChannelMessageReplyClient.CreateTeamPrimaryChannelMessageReplyUndoSoftDelete

ctx := context.TODO()
id := teamprimarychannelmessagereply.NewGroupIdTeamPrimaryChannelMessageIdReplyID("groupId", "chatMessageId", "chatMessageId1")

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

Example Usage: TeamPrimaryChannelMessageReplyClient.DeleteTeamPrimaryChannelMessageReply

ctx := context.TODO()
id := teamprimarychannelmessagereply.NewGroupIdTeamPrimaryChannelMessageIdReplyID("groupId", "chatMessageId", "chatMessageId1")

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

Example Usage: TeamPrimaryChannelMessageReplyClient.GetTeamPrimaryChannelMessageRepliesCount

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

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

Example Usage: TeamPrimaryChannelMessageReplyClient.GetTeamPrimaryChannelMessageReply

ctx := context.TODO()
id := teamprimarychannelmessagereply.NewGroupIdTeamPrimaryChannelMessageIdReplyID("groupId", "chatMessageId", "chatMessageId1")

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

Example Usage: TeamPrimaryChannelMessageReplyClient.ListTeamPrimaryChannelMessageReplies

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

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

Example Usage: TeamPrimaryChannelMessageReplyClient.SetTeamPrimaryChannelMessageReplyReaction

ctx := context.TODO()
id := teamprimarychannelmessagereply.NewGroupIdTeamPrimaryChannelMessageIdReplyID("groupId", "chatMessageId", "chatMessageId1")

payload := teamprimarychannelmessagereply.SetTeamPrimaryChannelMessageReplyReactionRequest{
	// ...
}


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

Example Usage: TeamPrimaryChannelMessageReplyClient.UnsetTeamPrimaryChannelMessageReplyReaction

ctx := context.TODO()
id := teamprimarychannelmessagereply.NewGroupIdTeamPrimaryChannelMessageIdReplyID("groupId", "chatMessageId", "chatMessageId1")

payload := teamprimarychannelmessagereply.UnsetTeamPrimaryChannelMessageReplyReactionRequest{
	// ...
}


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

Example Usage: TeamPrimaryChannelMessageReplyClient.UpdateTeamPrimaryChannelMessageReply

ctx := context.TODO()
id := teamprimarychannelmessagereply.NewGroupIdTeamPrimaryChannelMessageIdReplyID("groupId", "chatMessageId", "chatMessageId1")

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


read, err := client.UpdateTeamPrimaryChannelMessageReply(ctx, id, payload, teamprimarychannelmessagereply.DefaultUpdateTeamPrimaryChannelMessageReplyOperationOptions())
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 CreateTeamPrimaryChannelMessageReplyOperationOptions

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

func DefaultCreateTeamPrimaryChannelMessageReplyOperationOptions

func DefaultCreateTeamPrimaryChannelMessageReplyOperationOptions() CreateTeamPrimaryChannelMessageReplyOperationOptions

func (CreateTeamPrimaryChannelMessageReplyOperationOptions) ToHeaders

func (CreateTeamPrimaryChannelMessageReplyOperationOptions) ToOData

func (CreateTeamPrimaryChannelMessageReplyOperationOptions) ToQuery

type CreateTeamPrimaryChannelMessageReplyOperationResponse

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

type CreateTeamPrimaryChannelMessageReplySoftDeleteOperationOptions

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

func (CreateTeamPrimaryChannelMessageReplySoftDeleteOperationOptions) ToHeaders

func (CreateTeamPrimaryChannelMessageReplySoftDeleteOperationOptions) ToOData

func (CreateTeamPrimaryChannelMessageReplySoftDeleteOperationOptions) ToQuery

type CreateTeamPrimaryChannelMessageReplySoftDeleteOperationResponse

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

type CreateTeamPrimaryChannelMessageReplyUndoSoftDeleteOperationOptions

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

func (CreateTeamPrimaryChannelMessageReplyUndoSoftDeleteOperationOptions) ToHeaders

func (CreateTeamPrimaryChannelMessageReplyUndoSoftDeleteOperationOptions) ToOData

func (CreateTeamPrimaryChannelMessageReplyUndoSoftDeleteOperationOptions) ToQuery

type CreateTeamPrimaryChannelMessageReplyUndoSoftDeleteOperationResponse

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

type DeleteTeamPrimaryChannelMessageReplyOperationOptions

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

func DefaultDeleteTeamPrimaryChannelMessageReplyOperationOptions

func DefaultDeleteTeamPrimaryChannelMessageReplyOperationOptions() DeleteTeamPrimaryChannelMessageReplyOperationOptions

func (DeleteTeamPrimaryChannelMessageReplyOperationOptions) ToHeaders

func (DeleteTeamPrimaryChannelMessageReplyOperationOptions) ToOData

func (DeleteTeamPrimaryChannelMessageReplyOperationOptions) ToQuery

type DeleteTeamPrimaryChannelMessageReplyOperationResponse

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

type GetTeamPrimaryChannelMessageRepliesCountOperationOptions

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

func (GetTeamPrimaryChannelMessageRepliesCountOperationOptions) ToHeaders

func (GetTeamPrimaryChannelMessageRepliesCountOperationOptions) ToOData

func (GetTeamPrimaryChannelMessageRepliesCountOperationOptions) ToQuery

type GetTeamPrimaryChannelMessageRepliesCountOperationResponse

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

type GetTeamPrimaryChannelMessageReplyOperationOptions

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

func DefaultGetTeamPrimaryChannelMessageReplyOperationOptions

func DefaultGetTeamPrimaryChannelMessageReplyOperationOptions() GetTeamPrimaryChannelMessageReplyOperationOptions

func (GetTeamPrimaryChannelMessageReplyOperationOptions) ToHeaders

func (GetTeamPrimaryChannelMessageReplyOperationOptions) ToOData

func (GetTeamPrimaryChannelMessageReplyOperationOptions) ToQuery

type GetTeamPrimaryChannelMessageReplyOperationResponse

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

type ListTeamPrimaryChannelMessageRepliesCompleteResult

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

type ListTeamPrimaryChannelMessageRepliesCustomPager

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

type ListTeamPrimaryChannelMessageRepliesOperationOptions

type ListTeamPrimaryChannelMessageRepliesOperationOptions 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 DefaultListTeamPrimaryChannelMessageRepliesOperationOptions

func DefaultListTeamPrimaryChannelMessageRepliesOperationOptions() ListTeamPrimaryChannelMessageRepliesOperationOptions

func (ListTeamPrimaryChannelMessageRepliesOperationOptions) ToHeaders

func (ListTeamPrimaryChannelMessageRepliesOperationOptions) ToOData

func (ListTeamPrimaryChannelMessageRepliesOperationOptions) ToQuery

type ListTeamPrimaryChannelMessageRepliesOperationResponse

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

type SetTeamPrimaryChannelMessageReplyReactionOperationOptions

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

func (SetTeamPrimaryChannelMessageReplyReactionOperationOptions) ToHeaders

func (SetTeamPrimaryChannelMessageReplyReactionOperationOptions) ToOData

func (SetTeamPrimaryChannelMessageReplyReactionOperationOptions) ToQuery

type SetTeamPrimaryChannelMessageReplyReactionOperationResponse

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

type SetTeamPrimaryChannelMessageReplyReactionRequest

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

type TeamPrimaryChannelMessageReplyClient

type TeamPrimaryChannelMessageReplyClient struct {
	Client *msgraph.Client
}

func NewTeamPrimaryChannelMessageReplyClientWithBaseURI

func NewTeamPrimaryChannelMessageReplyClientWithBaseURI(sdkApi sdkEnv.Api) (*TeamPrimaryChannelMessageReplyClient, error)

func (TeamPrimaryChannelMessageReplyClient) CreateTeamPrimaryChannelMessageReply

CreateTeamPrimaryChannelMessageReply - Create new navigation property to replies for groups

func (TeamPrimaryChannelMessageReplyClient) CreateTeamPrimaryChannelMessageReplySoftDelete

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

func (TeamPrimaryChannelMessageReplyClient) CreateTeamPrimaryChannelMessageReplyUndoSoftDelete

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

func (TeamPrimaryChannelMessageReplyClient) DeleteTeamPrimaryChannelMessageReply

DeleteTeamPrimaryChannelMessageReply - Delete navigation property replies for groups

func (TeamPrimaryChannelMessageReplyClient) GetTeamPrimaryChannelMessageRepliesCount

GetTeamPrimaryChannelMessageRepliesCount - Get the number of the resource

func (TeamPrimaryChannelMessageReplyClient) GetTeamPrimaryChannelMessageReply

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

func (TeamPrimaryChannelMessageReplyClient) ListTeamPrimaryChannelMessageReplies

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

func (TeamPrimaryChannelMessageReplyClient) ListTeamPrimaryChannelMessageRepliesComplete

ListTeamPrimaryChannelMessageRepliesComplete retrieves all the results into a single object

func (TeamPrimaryChannelMessageReplyClient) ListTeamPrimaryChannelMessageRepliesCompleteMatchingPredicate

ListTeamPrimaryChannelMessageRepliesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TeamPrimaryChannelMessageReplyClient) SetTeamPrimaryChannelMessageReplyReaction

SetTeamPrimaryChannelMessageReplyReaction - Invoke action setReaction

func (TeamPrimaryChannelMessageReplyClient) UnsetTeamPrimaryChannelMessageReplyReaction

UnsetTeamPrimaryChannelMessageReplyReaction - Invoke action unsetReaction

func (TeamPrimaryChannelMessageReplyClient) UpdateTeamPrimaryChannelMessageReply

UpdateTeamPrimaryChannelMessageReply - Update the navigation property replies in groups

type UnsetTeamPrimaryChannelMessageReplyReactionOperationOptions

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

func (UnsetTeamPrimaryChannelMessageReplyReactionOperationOptions) ToHeaders

func (UnsetTeamPrimaryChannelMessageReplyReactionOperationOptions) ToOData

func (UnsetTeamPrimaryChannelMessageReplyReactionOperationOptions) ToQuery

type UnsetTeamPrimaryChannelMessageReplyReactionOperationResponse

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

type UnsetTeamPrimaryChannelMessageReplyReactionRequest

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

type UpdateTeamPrimaryChannelMessageReplyOperationOptions

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

func DefaultUpdateTeamPrimaryChannelMessageReplyOperationOptions

func DefaultUpdateTeamPrimaryChannelMessageReplyOperationOptions() UpdateTeamPrimaryChannelMessageReplyOperationOptions

func (UpdateTeamPrimaryChannelMessageReplyOperationOptions) ToHeaders

func (UpdateTeamPrimaryChannelMessageReplyOperationOptions) ToOData

func (UpdateTeamPrimaryChannelMessageReplyOperationOptions) ToQuery

type UpdateTeamPrimaryChannelMessageReplyOperationResponse

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