teamchannelmember

package
v0.20241111.1164443 Latest Latest
Warning

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

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

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

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 AddTeamChannelMembersCompleteResult

type AddTeamChannelMembersCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.ActionResultPart
}

type AddTeamChannelMembersCustomPager

type AddTeamChannelMembersCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
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 (AddTeamChannelMembersOperationOptions) ToOData

func (AddTeamChannelMembersOperationOptions) ToQuery

type AddTeamChannelMembersOperationResponse

type AddTeamChannelMembersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.ActionResultPart
}

type AddTeamChannelMembersRequest

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

type ConversationMemberOperationPredicate

type ConversationMemberOperationPredicate struct {
}

func (ConversationMemberOperationPredicate) Matches

type CreateTeamChannelMemberOperationOptions

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

func DefaultCreateTeamChannelMemberOperationOptions

func DefaultCreateTeamChannelMemberOperationOptions() CreateTeamChannelMemberOperationOptions

func (CreateTeamChannelMemberOperationOptions) ToHeaders

func (CreateTeamChannelMemberOperationOptions) ToOData

func (CreateTeamChannelMemberOperationOptions) ToQuery

type CreateTeamChannelMemberOperationResponse

type CreateTeamChannelMemberOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.ConversationMember
}

type DeleteTeamChannelMemberOperationOptions

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

func DefaultDeleteTeamChannelMemberOperationOptions

func DefaultDeleteTeamChannelMemberOperationOptions() DeleteTeamChannelMemberOperationOptions

func (DeleteTeamChannelMemberOperationOptions) ToHeaders

func (DeleteTeamChannelMemberOperationOptions) ToOData

func (DeleteTeamChannelMemberOperationOptions) ToQuery

type DeleteTeamChannelMemberOperationResponse

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

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 (GetTeamChannelMemberOperationOptions) ToOData

func (GetTeamChannelMemberOperationOptions) ToQuery

type GetTeamChannelMemberOperationResponse

type GetTeamChannelMemberOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        stable.ConversationMember
}

type GetTeamChannelMembersCountOperationOptions

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

func DefaultGetTeamChannelMembersCountOperationOptions

func DefaultGetTeamChannelMembersCountOperationOptions() GetTeamChannelMembersCountOperationOptions

func (GetTeamChannelMembersCountOperationOptions) ToHeaders

func (GetTeamChannelMembersCountOperationOptions) ToOData

func (GetTeamChannelMembersCountOperationOptions) ToQuery

type GetTeamChannelMembersCountOperationResponse

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

type ListTeamChannelMembersCompleteResult

type ListTeamChannelMembersCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []stable.ConversationMember
}

type ListTeamChannelMembersCustomPager

type ListTeamChannelMembersCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
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 (ListTeamChannelMembersOperationOptions) ToOData

func (ListTeamChannelMembersOperationOptions) ToQuery

type ListTeamChannelMembersOperationResponse

type ListTeamChannelMembersOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]stable.ConversationMember
}

type TeamChannelMemberClient

type TeamChannelMemberClient struct {
	Client *msgraph.Client
}

func NewTeamChannelMemberClientWithBaseURI

func NewTeamChannelMemberClientWithBaseURI(sdkApi sdkEnv.Api) (*TeamChannelMemberClient, error)

func (TeamChannelMemberClient) AddTeamChannelMembers

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

AddTeamChannelMembersComplete retrieves all the results into a single object

func (TeamChannelMemberClient) AddTeamChannelMembersCompleteMatchingPredicate

AddTeamChannelMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TeamChannelMemberClient) CreateTeamChannelMember

CreateTeamChannelMember - Create new navigation property to members for groups

func (TeamChannelMemberClient) DeleteTeamChannelMember

DeleteTeamChannelMember - Delete navigation property members for groups

func (TeamChannelMemberClient) GetTeamChannelMember

GetTeamChannelMember - Get members from groups. A collection of membership records associated with the channel.

func (TeamChannelMemberClient) GetTeamChannelMembersCount

GetTeamChannelMembersCount - Get the number of the resource

func (TeamChannelMemberClient) ListTeamChannelMembers

ListTeamChannelMembers - Get members from groups. A collection of membership records associated with the channel.

func (TeamChannelMemberClient) ListTeamChannelMembersComplete

ListTeamChannelMembersComplete retrieves all the results into a single object

func (TeamChannelMemberClient) ListTeamChannelMembersCompleteMatchingPredicate

ListTeamChannelMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TeamChannelMemberClient) UpdateTeamChannelMember

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 (UpdateTeamChannelMemberOperationOptions) ToOData

func (UpdateTeamChannelMemberOperationOptions) ToQuery

type UpdateTeamChannelMemberOperationResponse

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