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 ¶
- type ActionResultPartOperationPredicate
- type AddChatMembersCompleteResult
- type AddChatMembersCustomPager
- type AddChatMembersOperationOptions
- type AddChatMembersOperationResponse
- type AddChatMembersRequest
- type ChatMemberClient
- func (c ChatMemberClient) AddChatMembers(ctx context.Context, id beta.MeChatId, input AddChatMembersRequest, ...) (result AddChatMembersOperationResponse, err error)
- func (c ChatMemberClient) AddChatMembersComplete(ctx context.Context, id beta.MeChatId, input AddChatMembersRequest, ...) (AddChatMembersCompleteResult, error)
- func (c ChatMemberClient) AddChatMembersCompleteMatchingPredicate(ctx context.Context, id beta.MeChatId, input AddChatMembersRequest, ...) (result AddChatMembersCompleteResult, err error)
- func (c ChatMemberClient) CreateChatMember(ctx context.Context, id beta.MeChatId, input beta.ConversationMember, ...) (result CreateChatMemberOperationResponse, err error)
- func (c ChatMemberClient) DeleteChatMember(ctx context.Context, id beta.MeChatIdMemberId, ...) (result DeleteChatMemberOperationResponse, err error)
- func (c ChatMemberClient) GetChatMember(ctx context.Context, id beta.MeChatIdMemberId, ...) (result GetChatMemberOperationResponse, err error)
- func (c ChatMemberClient) GetChatMembersCount(ctx context.Context, id beta.MeChatId, ...) (result GetChatMembersCountOperationResponse, err error)
- func (c ChatMemberClient) ListChatMembers(ctx context.Context, id beta.MeChatId, options ListChatMembersOperationOptions) (result ListChatMembersOperationResponse, err error)
- func (c ChatMemberClient) ListChatMembersComplete(ctx context.Context, id beta.MeChatId, options ListChatMembersOperationOptions) (ListChatMembersCompleteResult, error)
- func (c ChatMemberClient) ListChatMembersCompleteMatchingPredicate(ctx context.Context, id beta.MeChatId, options ListChatMembersOperationOptions, ...) (result ListChatMembersCompleteResult, err error)
- func (c ChatMemberClient) UpdateChatMember(ctx context.Context, id beta.MeChatIdMemberId, input beta.ConversationMember, ...) (result UpdateChatMemberOperationResponse, err error)
- type ConversationMemberOperationPredicate
- type CreateChatMemberOperationOptions
- type CreateChatMemberOperationResponse
- type DeleteChatMemberOperationOptions
- type DeleteChatMemberOperationResponse
- type GetChatMemberOperationOptions
- type GetChatMemberOperationResponse
- type GetChatMembersCountOperationOptions
- type GetChatMembersCountOperationResponse
- type ListChatMembersCompleteResult
- type ListChatMembersCustomPager
- type ListChatMembersOperationOptions
- type ListChatMembersOperationResponse
- type UpdateChatMemberOperationOptions
- type UpdateChatMemberOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionResultPartOperationPredicate ¶
type ActionResultPartOperationPredicate struct { }
func (ActionResultPartOperationPredicate) Matches ¶
func (p ActionResultPartOperationPredicate) Matches(input beta.ActionResultPart) bool
type AddChatMembersCompleteResult ¶
type AddChatMembersCompleteResult struct { LatestHttpResponse *http.Response Items []beta.ActionResultPart }
type AddChatMembersCustomPager ¶
func (*AddChatMembersCustomPager) NextPageLink ¶
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 (o AddChatMembersOperationOptions) ToHeaders() *client.Headers
func (AddChatMembersOperationOptions) ToOData ¶
func (o AddChatMembersOperationOptions) ToOData() *odata.Query
func (AddChatMembersOperationOptions) ToQuery ¶
func (o AddChatMembersOperationOptions) ToQuery() *client.QueryParams
type AddChatMembersRequest ¶
type AddChatMembersRequest struct {
Values *[]beta.ConversationMember `json:"values,omitempty"`
}
type ChatMemberClient ¶
func NewChatMemberClientWithBaseURI ¶
func NewChatMemberClientWithBaseURI(sdkApi sdkEnv.Api) (*ChatMemberClient, error)
func (ChatMemberClient) AddChatMembers ¶
func (c ChatMemberClient) AddChatMembers(ctx context.Context, id beta.MeChatId, input AddChatMembersRequest, options AddChatMembersOperationOptions) (result AddChatMembersOperationResponse, err error)
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 ¶
func (c ChatMemberClient) AddChatMembersComplete(ctx context.Context, id beta.MeChatId, input AddChatMembersRequest, options AddChatMembersOperationOptions) (AddChatMembersCompleteResult, error)
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 ¶
func (c ChatMemberClient) CreateChatMember(ctx context.Context, id beta.MeChatId, input beta.ConversationMember, options CreateChatMemberOperationOptions) (result CreateChatMemberOperationResponse, err error)
CreateChatMember - Create new navigation property to members for me
func (ChatMemberClient) DeleteChatMember ¶
func (c ChatMemberClient) DeleteChatMember(ctx context.Context, id beta.MeChatIdMemberId, options DeleteChatMemberOperationOptions) (result DeleteChatMemberOperationResponse, err error)
DeleteChatMember - Delete navigation property members for me
func (ChatMemberClient) GetChatMember ¶
func (c ChatMemberClient) GetChatMember(ctx context.Context, id beta.MeChatIdMemberId, options GetChatMemberOperationOptions) (result GetChatMemberOperationResponse, err error)
GetChatMember - Get members from me. A collection of all the members in the chat. Nullable.
func (ChatMemberClient) GetChatMembersCount ¶
func (c ChatMemberClient) GetChatMembersCount(ctx context.Context, id beta.MeChatId, options GetChatMembersCountOperationOptions) (result GetChatMembersCountOperationResponse, err error)
GetChatMembersCount - Get the number of the resource
func (ChatMemberClient) ListChatMembers ¶
func (c ChatMemberClient) ListChatMembers(ctx context.Context, id beta.MeChatId, options ListChatMembersOperationOptions) (result ListChatMembersOperationResponse, err error)
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 ¶
func (c ChatMemberClient) ListChatMembersComplete(ctx context.Context, id beta.MeChatId, options ListChatMembersOperationOptions) (ListChatMembersCompleteResult, error)
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 ¶
func (c ChatMemberClient) UpdateChatMember(ctx context.Context, id beta.MeChatIdMemberId, input beta.ConversationMember, options UpdateChatMemberOperationOptions) (result UpdateChatMemberOperationResponse, err error)
UpdateChatMember - Update the navigation property members in me
type ConversationMemberOperationPredicate ¶
type ConversationMemberOperationPredicate struct { }
func (ConversationMemberOperationPredicate) Matches ¶
func (p ConversationMemberOperationPredicate) Matches(input beta.ConversationMember) bool
type CreateChatMemberOperationOptions ¶
type CreateChatMemberOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateChatMemberOperationOptions ¶
func DefaultCreateChatMemberOperationOptions() CreateChatMemberOperationOptions
func (CreateChatMemberOperationOptions) ToHeaders ¶
func (o CreateChatMemberOperationOptions) ToHeaders() *client.Headers
func (CreateChatMemberOperationOptions) ToOData ¶
func (o CreateChatMemberOperationOptions) ToOData() *odata.Query
func (CreateChatMemberOperationOptions) ToQuery ¶
func (o CreateChatMemberOperationOptions) ToQuery() *client.QueryParams
type DeleteChatMemberOperationOptions ¶
type DeleteChatMemberOperationOptions struct { IfMatch *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultDeleteChatMemberOperationOptions ¶
func DefaultDeleteChatMemberOperationOptions() DeleteChatMemberOperationOptions
func (DeleteChatMemberOperationOptions) ToHeaders ¶
func (o DeleteChatMemberOperationOptions) ToHeaders() *client.Headers
func (DeleteChatMemberOperationOptions) ToOData ¶
func (o DeleteChatMemberOperationOptions) ToOData() *odata.Query
func (DeleteChatMemberOperationOptions) ToQuery ¶
func (o DeleteChatMemberOperationOptions) ToQuery() *client.QueryParams
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 (o GetChatMemberOperationOptions) ToHeaders() *client.Headers
func (GetChatMemberOperationOptions) ToOData ¶
func (o GetChatMemberOperationOptions) ToOData() *odata.Query
func (GetChatMemberOperationOptions) ToQuery ¶
func (o GetChatMemberOperationOptions) ToQuery() *client.QueryParams
type GetChatMembersCountOperationOptions ¶
type GetChatMembersCountOperationOptions struct { Filter *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Search *string }
func DefaultGetChatMembersCountOperationOptions ¶
func DefaultGetChatMembersCountOperationOptions() GetChatMembersCountOperationOptions
func (GetChatMembersCountOperationOptions) ToHeaders ¶
func (o GetChatMembersCountOperationOptions) ToHeaders() *client.Headers
func (GetChatMembersCountOperationOptions) ToOData ¶
func (o GetChatMembersCountOperationOptions) ToOData() *odata.Query
func (GetChatMembersCountOperationOptions) ToQuery ¶
func (o GetChatMembersCountOperationOptions) ToQuery() *client.QueryParams
type ListChatMembersCompleteResult ¶
type ListChatMembersCompleteResult struct { LatestHttpResponse *http.Response Items []beta.ConversationMember }
type ListChatMembersCustomPager ¶
func (*ListChatMembersCustomPager) NextPageLink ¶
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 (o ListChatMembersOperationOptions) ToHeaders() *client.Headers
func (ListChatMembersOperationOptions) ToOData ¶
func (o ListChatMembersOperationOptions) ToOData() *odata.Query
func (ListChatMembersOperationOptions) ToQuery ¶
func (o ListChatMembersOperationOptions) ToQuery() *client.QueryParams
type UpdateChatMemberOperationOptions ¶
type UpdateChatMemberOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultUpdateChatMemberOperationOptions ¶
func DefaultUpdateChatMemberOperationOptions() UpdateChatMemberOperationOptions
func (UpdateChatMemberOperationOptions) ToHeaders ¶
func (o UpdateChatMemberOperationOptions) ToHeaders() *client.Headers
func (UpdateChatMemberOperationOptions) ToOData ¶
func (o UpdateChatMemberOperationOptions) ToOData() *odata.Query
func (UpdateChatMemberOperationOptions) ToQuery ¶
func (o UpdateChatMemberOperationOptions) ToQuery() *client.QueryParams