conversationthreadpost

package
v0.20241118.1115603 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := conversationthreadpost.NewConversationThreadPostClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ConversationThreadPostClient.ForwardConversationThreadPost

ctx := context.TODO()
id := conversationthreadpost.NewGroupIdConversationIdThreadIdPostID("groupId", "conversationId", "conversationThreadId", "postId")

payload := conversationthreadpost.ForwardConversationThreadPostRequest{
	// ...
}


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

Example Usage: ConversationThreadPostClient.GetConversationThreadPost

ctx := context.TODO()
id := conversationthreadpost.NewGroupIdConversationIdThreadIdPostID("groupId", "conversationId", "conversationThreadId", "postId")

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

Example Usage: ConversationThreadPostClient.GetConversationThreadPostsCount

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

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

Example Usage: ConversationThreadPostClient.ListConversationThreadPosts

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

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

Example Usage: ConversationThreadPostClient.ReplyConversationThreadPost

ctx := context.TODO()
id := conversationthreadpost.NewGroupIdConversationIdThreadIdPostID("groupId", "conversationId", "conversationThreadId", "postId")

payload := conversationthreadpost.ReplyConversationThreadPostRequest{
	// ...
}


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

Example Usage: ConversationThreadPostClient.UpdateConversationThreadPost

ctx := context.TODO()
id := conversationthreadpost.NewGroupIdConversationIdThreadIdPostID("groupId", "conversationId", "conversationThreadId", "postId")

payload := conversationthreadpost.Post{
	// ...
}


read, err := client.UpdateConversationThreadPost(ctx, id, payload, conversationthreadpost.DefaultUpdateConversationThreadPostOperationOptions())
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 ConversationThreadPostClient

type ConversationThreadPostClient struct {
	Client *msgraph.Client
}

func NewConversationThreadPostClientWithBaseURI

func NewConversationThreadPostClientWithBaseURI(sdkApi sdkEnv.Api) (*ConversationThreadPostClient, error)

func (ConversationThreadPostClient) ForwardConversationThreadPost

ForwardConversationThreadPost - Invoke action forward. Forward a post to a recipient. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation.

func (ConversationThreadPostClient) GetConversationThreadPost

GetConversationThreadPost - Get posts from groups

func (ConversationThreadPostClient) GetConversationThreadPostsCount

GetConversationThreadPostsCount - Get the number of the resource

func (ConversationThreadPostClient) ListConversationThreadPosts

ListConversationThreadPosts - Get posts from groups

func (ConversationThreadPostClient) ListConversationThreadPostsComplete

ListConversationThreadPostsComplete retrieves all the results into a single object

func (ConversationThreadPostClient) ListConversationThreadPostsCompleteMatchingPredicate

ListConversationThreadPostsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ConversationThreadPostClient) ReplyConversationThreadPost

ReplyConversationThreadPost - Invoke action reply

func (ConversationThreadPostClient) UpdateConversationThreadPost

UpdateConversationThreadPost - Update the navigation property posts in groups

type ForwardConversationThreadPostOperationOptions

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

func DefaultForwardConversationThreadPostOperationOptions

func DefaultForwardConversationThreadPostOperationOptions() ForwardConversationThreadPostOperationOptions

func (ForwardConversationThreadPostOperationOptions) ToHeaders

func (ForwardConversationThreadPostOperationOptions) ToOData

func (ForwardConversationThreadPostOperationOptions) ToQuery

type ForwardConversationThreadPostOperationResponse

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

type ForwardConversationThreadPostRequest

type ForwardConversationThreadPostRequest struct {
	Comment      nullable.Type[string] `json:"Comment,omitempty"`
	ToRecipients *[]beta.Recipient     `json:"ToRecipients,omitempty"`
}

type GetConversationThreadPostOperationOptions

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

func DefaultGetConversationThreadPostOperationOptions

func DefaultGetConversationThreadPostOperationOptions() GetConversationThreadPostOperationOptions

func (GetConversationThreadPostOperationOptions) ToHeaders

func (GetConversationThreadPostOperationOptions) ToOData

func (GetConversationThreadPostOperationOptions) ToQuery

type GetConversationThreadPostOperationResponse

type GetConversationThreadPostOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.Post
}

type GetConversationThreadPostsCountOperationOptions

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

func DefaultGetConversationThreadPostsCountOperationOptions

func DefaultGetConversationThreadPostsCountOperationOptions() GetConversationThreadPostsCountOperationOptions

func (GetConversationThreadPostsCountOperationOptions) ToHeaders

func (GetConversationThreadPostsCountOperationOptions) ToOData

func (GetConversationThreadPostsCountOperationOptions) ToQuery

type GetConversationThreadPostsCountOperationResponse

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

type ListConversationThreadPostsCompleteResult

type ListConversationThreadPostsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.Post
}

type ListConversationThreadPostsCustomPager

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

type ListConversationThreadPostsOperationOptions

type ListConversationThreadPostsOperationOptions 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 DefaultListConversationThreadPostsOperationOptions

func DefaultListConversationThreadPostsOperationOptions() ListConversationThreadPostsOperationOptions

func (ListConversationThreadPostsOperationOptions) ToHeaders

func (ListConversationThreadPostsOperationOptions) ToOData

func (ListConversationThreadPostsOperationOptions) ToQuery

type ListConversationThreadPostsOperationResponse

type ListConversationThreadPostsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.Post
}

type PostOperationPredicate

type PostOperationPredicate struct {
}

func (PostOperationPredicate) Matches

func (p PostOperationPredicate) Matches(input beta.Post) bool

type ReplyConversationThreadPostOperationOptions

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

func DefaultReplyConversationThreadPostOperationOptions

func DefaultReplyConversationThreadPostOperationOptions() ReplyConversationThreadPostOperationOptions

func (ReplyConversationThreadPostOperationOptions) ToHeaders

func (ReplyConversationThreadPostOperationOptions) ToOData

func (ReplyConversationThreadPostOperationOptions) ToQuery

type ReplyConversationThreadPostOperationResponse

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

type ReplyConversationThreadPostRequest

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

type UpdateConversationThreadPostOperationOptions

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

func DefaultUpdateConversationThreadPostOperationOptions

func DefaultUpdateConversationThreadPostOperationOptions() UpdateConversationThreadPostOperationOptions

func (UpdateConversationThreadPostOperationOptions) ToHeaders

func (UpdateConversationThreadPostOperationOptions) ToOData

func (UpdateConversationThreadPostOperationOptions) ToQuery

type UpdateConversationThreadPostOperationResponse

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