chatmember

package
v0.20241205.1102105 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/chatmember Documentation

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

Client Initialization

client := chatmember.NewChatMemberClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: ChatMemberClient.AddChatMembers

ctx := context.TODO()
id := chatmember.NewMeChatID("chatId")

payload := chatmember.AddChatMembersRequest{
	// ...
}


// alternatively `client.AddChatMembers(ctx, id, payload, chatmember.DefaultAddChatMembersOperationOptions())` can be used to do batched pagination
items, err := client.AddChatMembersComplete(ctx, id, payload, chatmember.DefaultAddChatMembersOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ChatMemberClient.CreateChatMember

ctx := context.TODO()
id := chatmember.NewMeChatID("chatId")

payload := chatmember.ConversationMember{
	// ...
}


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

Example Usage: ChatMemberClient.DeleteChatMember

ctx := context.TODO()
id := chatmember.NewMeChatIdMemberID("chatId", "conversationMemberId")

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

Example Usage: ChatMemberClient.GetChatMember

ctx := context.TODO()
id := chatmember.NewMeChatIdMemberID("chatId", "conversationMemberId")

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

Example Usage: ChatMemberClient.GetChatMembersCount

ctx := context.TODO()
id := chatmember.NewMeChatID("chatId")

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

Example Usage: ChatMemberClient.ListChatMembers

ctx := context.TODO()
id := chatmember.NewMeChatID("chatId")

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

Example Usage: ChatMemberClient.UpdateChatMember

ctx := context.TODO()
id := chatmember.NewMeChatIdMemberID("chatId", "conversationMemberId")

payload := chatmember.ConversationMember{
	// ...
}


read, err := client.UpdateChatMember(ctx, id, payload, chatmember.DefaultUpdateChatMemberOperationOptions())
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 ActionResultPartOperationPredicate

type ActionResultPartOperationPredicate struct {
}

func (ActionResultPartOperationPredicate) Matches

type AddChatMembersCompleteResult

type AddChatMembersCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.ActionResultPart
}

type AddChatMembersCustomPager

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

type AddChatMembersOperationOptions

type AddChatMembersOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Skip      *int64
	Top       *int64
}

func DefaultAddChatMembersOperationOptions

func DefaultAddChatMembersOperationOptions() AddChatMembersOperationOptions

func (AddChatMembersOperationOptions) ToHeaders

func (AddChatMembersOperationOptions) ToOData

func (AddChatMembersOperationOptions) ToQuery

type AddChatMembersOperationResponse

type AddChatMembersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.ActionResultPart
}

type AddChatMembersRequest

type AddChatMembersRequest struct {
	Values *[]beta.ConversationMember `json:"values,omitempty"`
}

type ChatMemberClient

type ChatMemberClient struct {
	Client *msgraph.Client
}

func NewChatMemberClientWithBaseURI

func NewChatMemberClientWithBaseURI(sdkApi sdkEnv.Api) (*ChatMemberClient, error)

func (ChatMemberClient) AddChatMembers

AddChatMembers - Invoke action add. Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created.

func (ChatMemberClient) AddChatMembersComplete

AddChatMembersComplete retrieves all the results into a single object

func (ChatMemberClient) AddChatMembersCompleteMatchingPredicate

func (c ChatMemberClient) AddChatMembersCompleteMatchingPredicate(ctx context.Context, id beta.MeChatId, input AddChatMembersRequest, options AddChatMembersOperationOptions, predicate ActionResultPartOperationPredicate) (result AddChatMembersCompleteResult, err error)

AddChatMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ChatMemberClient) CreateChatMember

CreateChatMember - Create new navigation property to members for me

func (ChatMemberClient) DeleteChatMember

DeleteChatMember - Delete navigation property members for me

func (ChatMemberClient) GetChatMember

GetChatMember - Get members from me. A collection of all the members in the chat. Nullable.

func (ChatMemberClient) GetChatMembersCount

GetChatMembersCount - Get the number of the resource

func (ChatMemberClient) ListChatMembers

ListChatMembers - List members of a chat. List all conversation members in a chat. This method supports federation. For one-on-one chats, at least one chat member must belong to the tenant the request initiates from. For group chats, the chat must be initiated by a user in the tenant the request initiates from.

func (ChatMemberClient) ListChatMembersComplete

ListChatMembersComplete retrieves all the results into a single object

func (ChatMemberClient) ListChatMembersCompleteMatchingPredicate

func (c ChatMemberClient) ListChatMembersCompleteMatchingPredicate(ctx context.Context, id beta.MeChatId, options ListChatMembersOperationOptions, predicate ConversationMemberOperationPredicate) (result ListChatMembersCompleteResult, err error)

ListChatMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ChatMemberClient) UpdateChatMember

UpdateChatMember - Update the navigation property members in me

type ConversationMemberOperationPredicate

type ConversationMemberOperationPredicate struct {
}

func (ConversationMemberOperationPredicate) Matches

type CreateChatMemberOperationOptions

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

func DefaultCreateChatMemberOperationOptions

func DefaultCreateChatMemberOperationOptions() CreateChatMemberOperationOptions

func (CreateChatMemberOperationOptions) ToHeaders

func (CreateChatMemberOperationOptions) ToOData

func (CreateChatMemberOperationOptions) ToQuery

type CreateChatMemberOperationResponse

type CreateChatMemberOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.ConversationMember
}

type DeleteChatMemberOperationOptions

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

func DefaultDeleteChatMemberOperationOptions

func DefaultDeleteChatMemberOperationOptions() DeleteChatMemberOperationOptions

func (DeleteChatMemberOperationOptions) ToHeaders

func (DeleteChatMemberOperationOptions) ToOData

func (DeleteChatMemberOperationOptions) ToQuery

type DeleteChatMemberOperationResponse

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

type GetChatMemberOperationOptions

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

func DefaultGetChatMemberOperationOptions

func DefaultGetChatMemberOperationOptions() GetChatMemberOperationOptions

func (GetChatMemberOperationOptions) ToHeaders

func (GetChatMemberOperationOptions) ToOData

func (GetChatMemberOperationOptions) ToQuery

type GetChatMemberOperationResponse

type GetChatMemberOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        beta.ConversationMember
}

type GetChatMembersCountOperationOptions

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

func DefaultGetChatMembersCountOperationOptions

func DefaultGetChatMembersCountOperationOptions() GetChatMembersCountOperationOptions

func (GetChatMembersCountOperationOptions) ToHeaders

func (GetChatMembersCountOperationOptions) ToOData

func (GetChatMembersCountOperationOptions) ToQuery

type GetChatMembersCountOperationResponse

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

type ListChatMembersCompleteResult

type ListChatMembersCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.ConversationMember
}

type ListChatMembersCustomPager

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

type ListChatMembersOperationOptions

type ListChatMembersOperationOptions 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 DefaultListChatMembersOperationOptions

func DefaultListChatMembersOperationOptions() ListChatMembersOperationOptions

func (ListChatMembersOperationOptions) ToHeaders

func (ListChatMembersOperationOptions) ToOData

func (ListChatMembersOperationOptions) ToQuery

type ListChatMembersOperationResponse

type ListChatMembersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.ConversationMember
}

type UpdateChatMemberOperationOptions

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

func DefaultUpdateChatMemberOperationOptions

func DefaultUpdateChatMemberOperationOptions() UpdateChatMemberOperationOptions

func (UpdateChatMemberOperationOptions) ToHeaders

func (UpdateChatMemberOperationOptions) ToOData

func (UpdateChatMemberOperationOptions) ToQuery

type UpdateChatMemberOperationResponse

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