README ¶
github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/stable/teamchannelmember
Documentation
The teamchannelmember
SDK allows for interaction with Microsoft Graph groups
(API Version stable
).
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/stable/teamchannelmember"
Client Initialization
client := teamchannelmember.NewTeamChannelMemberClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
Example Usage: TeamChannelMemberClient.AddTeamChannelMembers
ctx := context.TODO()
id := teamchannelmember.NewGroupIdTeamChannelID("groupId", "channelId")
payload := teamchannelmember.AddTeamChannelMembersRequest{
// ...
}
// alternatively `client.AddTeamChannelMembers(ctx, id, payload, teamchannelmember.DefaultAddTeamChannelMembersOperationOptions())` can be used to do batched pagination
items, err := client.AddTeamChannelMembersComplete(ctx, id, payload, teamchannelmember.DefaultAddTeamChannelMembersOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: TeamChannelMemberClient.CreateTeamChannelMember
ctx := context.TODO()
id := teamchannelmember.NewGroupIdTeamChannelID("groupId", "channelId")
payload := teamchannelmember.ConversationMember{
// ...
}
read, err := client.CreateTeamChannelMember(ctx, id, payload, teamchannelmember.DefaultCreateTeamChannelMemberOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: TeamChannelMemberClient.DeleteTeamChannelMember
ctx := context.TODO()
id := teamchannelmember.NewGroupIdTeamChannelIdMemberID("groupId", "channelId", "conversationMemberId")
read, err := client.DeleteTeamChannelMember(ctx, id, teamchannelmember.DefaultDeleteTeamChannelMemberOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: TeamChannelMemberClient.GetTeamChannelMember
ctx := context.TODO()
id := teamchannelmember.NewGroupIdTeamChannelIdMemberID("groupId", "channelId", "conversationMemberId")
read, err := client.GetTeamChannelMember(ctx, id, teamchannelmember.DefaultGetTeamChannelMemberOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: TeamChannelMemberClient.GetTeamChannelMembersCount
ctx := context.TODO()
id := teamchannelmember.NewGroupIdTeamChannelID("groupId", "channelId")
read, err := client.GetTeamChannelMembersCount(ctx, id, teamchannelmember.DefaultGetTeamChannelMembersCountOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: TeamChannelMemberClient.ListTeamChannelMembers
ctx := context.TODO()
id := teamchannelmember.NewGroupIdTeamChannelID("groupId", "channelId")
// alternatively `client.ListTeamChannelMembers(ctx, id, teamchannelmember.DefaultListTeamChannelMembersOperationOptions())` can be used to do batched pagination
items, err := client.ListTeamChannelMembersComplete(ctx, id, teamchannelmember.DefaultListTeamChannelMembersOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: TeamChannelMemberClient.UpdateTeamChannelMember
ctx := context.TODO()
id := teamchannelmember.NewGroupIdTeamChannelIdMemberID("groupId", "channelId", "conversationMemberId")
payload := teamchannelmember.ConversationMember{
// ...
}
read, err := client.UpdateTeamChannelMember(ctx, id, payload, teamchannelmember.DefaultUpdateTeamChannelMemberOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- type ActionResultPartOperationPredicate
- type AddTeamChannelMembersCompleteResult
- type AddTeamChannelMembersCustomPager
- type AddTeamChannelMembersOperationOptions
- type AddTeamChannelMembersOperationResponse
- type AddTeamChannelMembersRequest
- type ConversationMemberOperationPredicate
- type CreateTeamChannelMemberOperationOptions
- type CreateTeamChannelMemberOperationResponse
- type DeleteTeamChannelMemberOperationOptions
- type DeleteTeamChannelMemberOperationResponse
- type GetTeamChannelMemberOperationOptions
- type GetTeamChannelMemberOperationResponse
- type GetTeamChannelMembersCountOperationOptions
- type GetTeamChannelMembersCountOperationResponse
- type ListTeamChannelMembersCompleteResult
- type ListTeamChannelMembersCustomPager
- type ListTeamChannelMembersOperationOptions
- type ListTeamChannelMembersOperationResponse
- type TeamChannelMemberClient
- func (c TeamChannelMemberClient) AddTeamChannelMembers(ctx context.Context, id stable.GroupIdTeamChannelId, ...) (result AddTeamChannelMembersOperationResponse, err error)
- func (c TeamChannelMemberClient) AddTeamChannelMembersComplete(ctx context.Context, id stable.GroupIdTeamChannelId, ...) (AddTeamChannelMembersCompleteResult, error)
- func (c TeamChannelMemberClient) AddTeamChannelMembersCompleteMatchingPredicate(ctx context.Context, id stable.GroupIdTeamChannelId, ...) (result AddTeamChannelMembersCompleteResult, err error)
- func (c TeamChannelMemberClient) CreateTeamChannelMember(ctx context.Context, id stable.GroupIdTeamChannelId, ...) (result CreateTeamChannelMemberOperationResponse, err error)
- func (c TeamChannelMemberClient) DeleteTeamChannelMember(ctx context.Context, id stable.GroupIdTeamChannelIdMemberId, ...) (result DeleteTeamChannelMemberOperationResponse, err error)
- func (c TeamChannelMemberClient) GetTeamChannelMember(ctx context.Context, id stable.GroupIdTeamChannelIdMemberId, ...) (result GetTeamChannelMemberOperationResponse, err error)
- func (c TeamChannelMemberClient) GetTeamChannelMembersCount(ctx context.Context, id stable.GroupIdTeamChannelId, ...) (result GetTeamChannelMembersCountOperationResponse, err error)
- func (c TeamChannelMemberClient) ListTeamChannelMembers(ctx context.Context, id stable.GroupIdTeamChannelId, ...) (result ListTeamChannelMembersOperationResponse, err error)
- func (c TeamChannelMemberClient) ListTeamChannelMembersComplete(ctx context.Context, id stable.GroupIdTeamChannelId, ...) (ListTeamChannelMembersCompleteResult, error)
- func (c TeamChannelMemberClient) ListTeamChannelMembersCompleteMatchingPredicate(ctx context.Context, id stable.GroupIdTeamChannelId, ...) (result ListTeamChannelMembersCompleteResult, err error)
- func (c TeamChannelMemberClient) UpdateTeamChannelMember(ctx context.Context, id stable.GroupIdTeamChannelIdMemberId, ...) (result UpdateTeamChannelMemberOperationResponse, err error)
- type UpdateTeamChannelMemberOperationOptions
- type UpdateTeamChannelMemberOperationResponse
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 stable.ActionResultPart) bool
type AddTeamChannelMembersCompleteResult ¶
type AddTeamChannelMembersCompleteResult struct { LatestHttpResponse *http.Response Items []stable.ActionResultPart }
type AddTeamChannelMembersCustomPager ¶
func (*AddTeamChannelMembersCustomPager) NextPageLink ¶
func (p *AddTeamChannelMembersCustomPager) NextPageLink() *odata.Link
type AddTeamChannelMembersOperationOptions ¶
type AddTeamChannelMembersOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Skip *int64 Top *int64 }
func DefaultAddTeamChannelMembersOperationOptions ¶
func DefaultAddTeamChannelMembersOperationOptions() AddTeamChannelMembersOperationOptions
func (AddTeamChannelMembersOperationOptions) ToHeaders ¶
func (o AddTeamChannelMembersOperationOptions) ToHeaders() *client.Headers
func (AddTeamChannelMembersOperationOptions) ToOData ¶
func (o AddTeamChannelMembersOperationOptions) ToOData() *odata.Query
func (AddTeamChannelMembersOperationOptions) ToQuery ¶
func (o AddTeamChannelMembersOperationOptions) ToQuery() *client.QueryParams
type AddTeamChannelMembersRequest ¶
type AddTeamChannelMembersRequest struct {
Values *[]stable.ConversationMember `json:"values,omitempty"`
}
type ConversationMemberOperationPredicate ¶
type ConversationMemberOperationPredicate struct { }
func (ConversationMemberOperationPredicate) Matches ¶
func (p ConversationMemberOperationPredicate) Matches(input stable.ConversationMember) bool
type CreateTeamChannelMemberOperationOptions ¶
type CreateTeamChannelMemberOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultCreateTeamChannelMemberOperationOptions ¶
func DefaultCreateTeamChannelMemberOperationOptions() CreateTeamChannelMemberOperationOptions
func (CreateTeamChannelMemberOperationOptions) ToHeaders ¶
func (o CreateTeamChannelMemberOperationOptions) ToHeaders() *client.Headers
func (CreateTeamChannelMemberOperationOptions) ToOData ¶
func (o CreateTeamChannelMemberOperationOptions) ToOData() *odata.Query
func (CreateTeamChannelMemberOperationOptions) ToQuery ¶
func (o CreateTeamChannelMemberOperationOptions) ToQuery() *client.QueryParams
type DeleteTeamChannelMemberOperationOptions ¶
type DeleteTeamChannelMemberOperationOptions struct { IfMatch *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultDeleteTeamChannelMemberOperationOptions ¶
func DefaultDeleteTeamChannelMemberOperationOptions() DeleteTeamChannelMemberOperationOptions
func (DeleteTeamChannelMemberOperationOptions) ToHeaders ¶
func (o DeleteTeamChannelMemberOperationOptions) ToHeaders() *client.Headers
func (DeleteTeamChannelMemberOperationOptions) ToOData ¶
func (o DeleteTeamChannelMemberOperationOptions) ToOData() *odata.Query
func (DeleteTeamChannelMemberOperationOptions) ToQuery ¶
func (o DeleteTeamChannelMemberOperationOptions) ToQuery() *client.QueryParams
type GetTeamChannelMemberOperationOptions ¶
type GetTeamChannelMemberOperationOptions struct { Expand *odata.Expand Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Select *[]string }
func DefaultGetTeamChannelMemberOperationOptions ¶
func DefaultGetTeamChannelMemberOperationOptions() GetTeamChannelMemberOperationOptions
func (GetTeamChannelMemberOperationOptions) ToHeaders ¶
func (o GetTeamChannelMemberOperationOptions) ToHeaders() *client.Headers
func (GetTeamChannelMemberOperationOptions) ToOData ¶
func (o GetTeamChannelMemberOperationOptions) ToOData() *odata.Query
func (GetTeamChannelMemberOperationOptions) ToQuery ¶
func (o GetTeamChannelMemberOperationOptions) ToQuery() *client.QueryParams
type GetTeamChannelMembersCountOperationOptions ¶
type GetTeamChannelMembersCountOperationOptions struct { Filter *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Search *string }
func DefaultGetTeamChannelMembersCountOperationOptions ¶
func DefaultGetTeamChannelMembersCountOperationOptions() GetTeamChannelMembersCountOperationOptions
func (GetTeamChannelMembersCountOperationOptions) ToHeaders ¶
func (o GetTeamChannelMembersCountOperationOptions) ToHeaders() *client.Headers
func (GetTeamChannelMembersCountOperationOptions) ToOData ¶
func (o GetTeamChannelMembersCountOperationOptions) ToOData() *odata.Query
func (GetTeamChannelMembersCountOperationOptions) ToQuery ¶
func (o GetTeamChannelMembersCountOperationOptions) ToQuery() *client.QueryParams
type ListTeamChannelMembersCompleteResult ¶
type ListTeamChannelMembersCompleteResult struct { LatestHttpResponse *http.Response Items []stable.ConversationMember }
type ListTeamChannelMembersCustomPager ¶
func (*ListTeamChannelMembersCustomPager) NextPageLink ¶
func (p *ListTeamChannelMembersCustomPager) NextPageLink() *odata.Link
type ListTeamChannelMembersOperationOptions ¶
type ListTeamChannelMembersOperationOptions 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 DefaultListTeamChannelMembersOperationOptions ¶
func DefaultListTeamChannelMembersOperationOptions() ListTeamChannelMembersOperationOptions
func (ListTeamChannelMembersOperationOptions) ToHeaders ¶
func (o ListTeamChannelMembersOperationOptions) ToHeaders() *client.Headers
func (ListTeamChannelMembersOperationOptions) ToOData ¶
func (o ListTeamChannelMembersOperationOptions) ToOData() *odata.Query
func (ListTeamChannelMembersOperationOptions) ToQuery ¶
func (o ListTeamChannelMembersOperationOptions) ToQuery() *client.QueryParams
type TeamChannelMemberClient ¶
func NewTeamChannelMemberClientWithBaseURI ¶
func NewTeamChannelMemberClientWithBaseURI(sdkApi sdkEnv.Api) (*TeamChannelMemberClient, error)
func (TeamChannelMemberClient) AddTeamChannelMembers ¶
func (c TeamChannelMemberClient) AddTeamChannelMembers(ctx context.Context, id stable.GroupIdTeamChannelId, input AddTeamChannelMembersRequest, options AddTeamChannelMembersOperationOptions) (result AddTeamChannelMembersOperationResponse, err error)
AddTeamChannelMembers - 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 (TeamChannelMemberClient) AddTeamChannelMembersComplete ¶
func (c TeamChannelMemberClient) AddTeamChannelMembersComplete(ctx context.Context, id stable.GroupIdTeamChannelId, input AddTeamChannelMembersRequest, options AddTeamChannelMembersOperationOptions) (AddTeamChannelMembersCompleteResult, error)
AddTeamChannelMembersComplete retrieves all the results into a single object
func (TeamChannelMemberClient) AddTeamChannelMembersCompleteMatchingPredicate ¶
func (c TeamChannelMemberClient) AddTeamChannelMembersCompleteMatchingPredicate(ctx context.Context, id stable.GroupIdTeamChannelId, input AddTeamChannelMembersRequest, options AddTeamChannelMembersOperationOptions, predicate ActionResultPartOperationPredicate) (result AddTeamChannelMembersCompleteResult, err error)
AddTeamChannelMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (TeamChannelMemberClient) CreateTeamChannelMember ¶
func (c TeamChannelMemberClient) CreateTeamChannelMember(ctx context.Context, id stable.GroupIdTeamChannelId, input stable.ConversationMember, options CreateTeamChannelMemberOperationOptions) (result CreateTeamChannelMemberOperationResponse, err error)
CreateTeamChannelMember - Create new navigation property to members for groups
func (TeamChannelMemberClient) DeleteTeamChannelMember ¶
func (c TeamChannelMemberClient) DeleteTeamChannelMember(ctx context.Context, id stable.GroupIdTeamChannelIdMemberId, options DeleteTeamChannelMemberOperationOptions) (result DeleteTeamChannelMemberOperationResponse, err error)
DeleteTeamChannelMember - Delete navigation property members for groups
func (TeamChannelMemberClient) GetTeamChannelMember ¶
func (c TeamChannelMemberClient) GetTeamChannelMember(ctx context.Context, id stable.GroupIdTeamChannelIdMemberId, options GetTeamChannelMemberOperationOptions) (result GetTeamChannelMemberOperationResponse, err error)
GetTeamChannelMember - Get members from groups. A collection of membership records associated with the channel.
func (TeamChannelMemberClient) GetTeamChannelMembersCount ¶
func (c TeamChannelMemberClient) GetTeamChannelMembersCount(ctx context.Context, id stable.GroupIdTeamChannelId, options GetTeamChannelMembersCountOperationOptions) (result GetTeamChannelMembersCountOperationResponse, err error)
GetTeamChannelMembersCount - Get the number of the resource
func (TeamChannelMemberClient) ListTeamChannelMembers ¶
func (c TeamChannelMemberClient) ListTeamChannelMembers(ctx context.Context, id stable.GroupIdTeamChannelId, options ListTeamChannelMembersOperationOptions) (result ListTeamChannelMembersOperationResponse, err error)
ListTeamChannelMembers - Get members from groups. A collection of membership records associated with the channel.
func (TeamChannelMemberClient) ListTeamChannelMembersComplete ¶
func (c TeamChannelMemberClient) ListTeamChannelMembersComplete(ctx context.Context, id stable.GroupIdTeamChannelId, options ListTeamChannelMembersOperationOptions) (ListTeamChannelMembersCompleteResult, error)
ListTeamChannelMembersComplete retrieves all the results into a single object
func (TeamChannelMemberClient) ListTeamChannelMembersCompleteMatchingPredicate ¶
func (c TeamChannelMemberClient) ListTeamChannelMembersCompleteMatchingPredicate(ctx context.Context, id stable.GroupIdTeamChannelId, options ListTeamChannelMembersOperationOptions, predicate ConversationMemberOperationPredicate) (result ListTeamChannelMembersCompleteResult, err error)
ListTeamChannelMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (TeamChannelMemberClient) UpdateTeamChannelMember ¶
func (c TeamChannelMemberClient) UpdateTeamChannelMember(ctx context.Context, id stable.GroupIdTeamChannelIdMemberId, input stable.ConversationMember, options UpdateTeamChannelMemberOperationOptions) (result UpdateTeamChannelMemberOperationResponse, err error)
UpdateTeamChannelMember - Update the navigation property members in groups
type UpdateTeamChannelMemberOperationOptions ¶
type UpdateTeamChannelMemberOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultUpdateTeamChannelMemberOperationOptions ¶
func DefaultUpdateTeamChannelMemberOperationOptions() UpdateTeamChannelMemberOperationOptions
func (UpdateTeamChannelMemberOperationOptions) ToHeaders ¶
func (o UpdateTeamChannelMemberOperationOptions) ToHeaders() *client.Headers
func (UpdateTeamChannelMemberOperationOptions) ToOData ¶
func (o UpdateTeamChannelMemberOperationOptions) ToOData() *odata.Query
func (UpdateTeamChannelMemberOperationOptions) ToQuery ¶
func (o UpdateTeamChannelMemberOperationOptions) ToQuery() *client.QueryParams
Source Files ¶
- client.go
- method_addteamchannelmembers.go
- method_createteamchannelmember.go
- method_deleteteamchannelmember.go
- method_getteamchannelmember.go
- method_getteamchannelmemberscount.go
- method_listteamchannelmembers.go
- method_updateteamchannelmember.go
- model_addteamchannelmembersrequest.go
- predicates.go
- version.go