conversationthread

package
v0.20241128.1084944 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MPL-2.0 Imports: 8 Imported by: 1

README

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

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

Client Initialization

client := conversationthread.NewConversationThreadClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ConversationThreadClient.CreateConversationThread

ctx := context.TODO()
id := conversationthread.NewGroupIdConversationID("groupId", "conversationId")

payload := conversationthread.ConversationThread{
	// ...
}


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

Example Usage: ConversationThreadClient.DeleteConversationThread

ctx := context.TODO()
id := conversationthread.NewGroupIdConversationIdThreadID("groupId", "conversationId", "conversationThreadId")

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

Example Usage: ConversationThreadClient.GetConversationThread

ctx := context.TODO()
id := conversationthread.NewGroupIdConversationIdThreadID("groupId", "conversationId", "conversationThreadId")

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

Example Usage: ConversationThreadClient.GetConversationThreadsCount

ctx := context.TODO()
id := conversationthread.NewGroupIdConversationID("groupId", "conversationId")

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

Example Usage: ConversationThreadClient.ListConversationThreads

ctx := context.TODO()
id := conversationthread.NewGroupIdConversationID("groupId", "conversationId")

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

Example Usage: ConversationThreadClient.ReplyConversationThread

ctx := context.TODO()
id := conversationthread.NewGroupIdConversationIdThreadID("groupId", "conversationId", "conversationThreadId")

payload := conversationthread.ReplyConversationThreadRequest{
	// ...
}


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

Example Usage: ConversationThreadClient.UpdateConversationThread

ctx := context.TODO()
id := conversationthread.NewGroupIdConversationIdThreadID("groupId", "conversationId", "conversationThreadId")

payload := conversationthread.ConversationThread{
	// ...
}


read, err := client.UpdateConversationThread(ctx, id, payload, conversationthread.DefaultUpdateConversationThreadOperationOptions())
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 ConversationThreadClient

type ConversationThreadClient struct {
	Client *msgraph.Client
}

func NewConversationThreadClientWithBaseURI

func NewConversationThreadClientWithBaseURI(sdkApi sdkEnv.Api) (*ConversationThreadClient, error)

func (ConversationThreadClient) CreateConversationThread

CreateConversationThread - Create thread. Create a new thread in the specified conversation. A thread and post are created as specified. Use reply thread to further post to that thread. Or, if you get the post ID, you can also reply to that post in that thread. Note: You can also start a new conversation by first creating a thread.

func (ConversationThreadClient) DeleteConversationThread

DeleteConversationThread - Delete navigation property threads for groups

func (ConversationThreadClient) GetConversationThread

GetConversationThread - Get threads from groups. A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable.

func (ConversationThreadClient) GetConversationThreadsCount

GetConversationThreadsCount - Get the number of the resource

func (ConversationThreadClient) ListConversationThreads

ListConversationThreads - List threads. Get all the threads in a group conversation. Note: You can also get all the threads of a group.

func (ConversationThreadClient) ListConversationThreadsComplete

ListConversationThreadsComplete retrieves all the results into a single object

func (ConversationThreadClient) ListConversationThreadsCompleteMatchingPredicate

ListConversationThreadsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ConversationThreadClient) ReplyConversationThread

ReplyConversationThread - Invoke action reply. Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions.

func (ConversationThreadClient) UpdateConversationThread

UpdateConversationThread - Update the navigation property threads in groups

type ConversationThreadOperationPredicate

type ConversationThreadOperationPredicate struct {
}

func (ConversationThreadOperationPredicate) Matches

type CreateConversationThreadOperationOptions

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

func DefaultCreateConversationThreadOperationOptions

func DefaultCreateConversationThreadOperationOptions() CreateConversationThreadOperationOptions

func (CreateConversationThreadOperationOptions) ToHeaders

func (CreateConversationThreadOperationOptions) ToOData

func (CreateConversationThreadOperationOptions) ToQuery

type CreateConversationThreadOperationResponse

type CreateConversationThreadOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ConversationThread
}

type DeleteConversationThreadOperationOptions

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

func DefaultDeleteConversationThreadOperationOptions

func DefaultDeleteConversationThreadOperationOptions() DeleteConversationThreadOperationOptions

func (DeleteConversationThreadOperationOptions) ToHeaders

func (DeleteConversationThreadOperationOptions) ToOData

func (DeleteConversationThreadOperationOptions) ToQuery

type DeleteConversationThreadOperationResponse

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

type GetConversationThreadOperationOptions

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

func DefaultGetConversationThreadOperationOptions

func DefaultGetConversationThreadOperationOptions() GetConversationThreadOperationOptions

func (GetConversationThreadOperationOptions) ToHeaders

func (GetConversationThreadOperationOptions) ToOData

func (GetConversationThreadOperationOptions) ToQuery

type GetConversationThreadOperationResponse

type GetConversationThreadOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.ConversationThread
}

type GetConversationThreadsCountOperationOptions

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

func DefaultGetConversationThreadsCountOperationOptions

func DefaultGetConversationThreadsCountOperationOptions() GetConversationThreadsCountOperationOptions

func (GetConversationThreadsCountOperationOptions) ToHeaders

func (GetConversationThreadsCountOperationOptions) ToOData

func (GetConversationThreadsCountOperationOptions) ToQuery

type GetConversationThreadsCountOperationResponse

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

type ListConversationThreadsCompleteResult

type ListConversationThreadsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.ConversationThread
}

type ListConversationThreadsCustomPager

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

type ListConversationThreadsOperationOptions

type ListConversationThreadsOperationOptions 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 DefaultListConversationThreadsOperationOptions

func DefaultListConversationThreadsOperationOptions() ListConversationThreadsOperationOptions

func (ListConversationThreadsOperationOptions) ToHeaders

func (ListConversationThreadsOperationOptions) ToOData

func (ListConversationThreadsOperationOptions) ToQuery

type ListConversationThreadsOperationResponse

type ListConversationThreadsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.ConversationThread
}

type ReplyConversationThreadOperationOptions

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

func DefaultReplyConversationThreadOperationOptions

func DefaultReplyConversationThreadOperationOptions() ReplyConversationThreadOperationOptions

func (ReplyConversationThreadOperationOptions) ToHeaders

func (ReplyConversationThreadOperationOptions) ToOData

func (ReplyConversationThreadOperationOptions) ToQuery

type ReplyConversationThreadOperationResponse

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

type ReplyConversationThreadRequest

type ReplyConversationThreadRequest struct {
	Post *beta.Post `json:"Post,omitempty"`
}

type UpdateConversationThreadOperationOptions

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

func DefaultUpdateConversationThreadOperationOptions

func DefaultUpdateConversationThreadOperationOptions() UpdateConversationThreadOperationOptions

func (UpdateConversationThreadOperationOptions) ToHeaders

func (UpdateConversationThreadOperationOptions) ToOData

func (UpdateConversationThreadOperationOptions) ToQuery

type UpdateConversationThreadOperationResponse

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