joinedteamchannelmember

package
v0.20241126.2320 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/stable/joinedteamchannelmember Documentation

The joinedteamchannelmember SDK allows for interaction with Microsoft Graph users (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/users/stable/joinedteamchannelmember"

Client Initialization

client := joinedteamchannelmember.NewJoinedTeamChannelMemberClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: JoinedTeamChannelMemberClient.AddJoinedTeamChannelMembers

ctx := context.TODO()
id := joinedteamchannelmember.NewUserIdJoinedTeamIdChannelID("userId", "teamId", "channelId")

payload := joinedteamchannelmember.AddJoinedTeamChannelMembersRequest{
	// ...
}


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

Example Usage: JoinedTeamChannelMemberClient.CreateJoinedTeamChannelMember

ctx := context.TODO()
id := joinedteamchannelmember.NewUserIdJoinedTeamIdChannelID("userId", "teamId", "channelId")

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


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

Example Usage: JoinedTeamChannelMemberClient.DeleteJoinedTeamChannelMember

ctx := context.TODO()
id := joinedteamchannelmember.NewUserIdJoinedTeamIdChannelIdMemberID("userId", "teamId", "channelId", "conversationMemberId")

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

Example Usage: JoinedTeamChannelMemberClient.GetJoinedTeamChannelMember

ctx := context.TODO()
id := joinedteamchannelmember.NewUserIdJoinedTeamIdChannelIdMemberID("userId", "teamId", "channelId", "conversationMemberId")

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

Example Usage: JoinedTeamChannelMemberClient.GetJoinedTeamChannelMembersCount

ctx := context.TODO()
id := joinedteamchannelmember.NewUserIdJoinedTeamIdChannelID("userId", "teamId", "channelId")

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

Example Usage: JoinedTeamChannelMemberClient.ListJoinedTeamChannelMembers

ctx := context.TODO()
id := joinedteamchannelmember.NewUserIdJoinedTeamIdChannelID("userId", "teamId", "channelId")

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

Example Usage: JoinedTeamChannelMemberClient.UpdateJoinedTeamChannelMember

ctx := context.TODO()
id := joinedteamchannelmember.NewUserIdJoinedTeamIdChannelIdMemberID("userId", "teamId", "channelId", "conversationMemberId")

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


read, err := client.UpdateJoinedTeamChannelMember(ctx, id, payload, joinedteamchannelmember.DefaultUpdateJoinedTeamChannelMemberOperationOptions())
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 AddJoinedTeamChannelMembersCompleteResult

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

type AddJoinedTeamChannelMembersCustomPager

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

type AddJoinedTeamChannelMembersOperationOptions

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

func DefaultAddJoinedTeamChannelMembersOperationOptions

func DefaultAddJoinedTeamChannelMembersOperationOptions() AddJoinedTeamChannelMembersOperationOptions

func (AddJoinedTeamChannelMembersOperationOptions) ToHeaders

func (AddJoinedTeamChannelMembersOperationOptions) ToOData

func (AddJoinedTeamChannelMembersOperationOptions) ToQuery

type AddJoinedTeamChannelMembersOperationResponse

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

type AddJoinedTeamChannelMembersRequest

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

type ConversationMemberOperationPredicate

type ConversationMemberOperationPredicate struct {
}

func (ConversationMemberOperationPredicate) Matches

type CreateJoinedTeamChannelMemberOperationOptions

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

func DefaultCreateJoinedTeamChannelMemberOperationOptions

func DefaultCreateJoinedTeamChannelMemberOperationOptions() CreateJoinedTeamChannelMemberOperationOptions

func (CreateJoinedTeamChannelMemberOperationOptions) ToHeaders

func (CreateJoinedTeamChannelMemberOperationOptions) ToOData

func (CreateJoinedTeamChannelMemberOperationOptions) ToQuery

type CreateJoinedTeamChannelMemberOperationResponse

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

type DeleteJoinedTeamChannelMemberOperationOptions

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

func DefaultDeleteJoinedTeamChannelMemberOperationOptions

func DefaultDeleteJoinedTeamChannelMemberOperationOptions() DeleteJoinedTeamChannelMemberOperationOptions

func (DeleteJoinedTeamChannelMemberOperationOptions) ToHeaders

func (DeleteJoinedTeamChannelMemberOperationOptions) ToOData

func (DeleteJoinedTeamChannelMemberOperationOptions) ToQuery

type DeleteJoinedTeamChannelMemberOperationResponse

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

type GetJoinedTeamChannelMemberOperationOptions

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

func DefaultGetJoinedTeamChannelMemberOperationOptions

func DefaultGetJoinedTeamChannelMemberOperationOptions() GetJoinedTeamChannelMemberOperationOptions

func (GetJoinedTeamChannelMemberOperationOptions) ToHeaders

func (GetJoinedTeamChannelMemberOperationOptions) ToOData

func (GetJoinedTeamChannelMemberOperationOptions) ToQuery

type GetJoinedTeamChannelMemberOperationResponse

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

type GetJoinedTeamChannelMembersCountOperationOptions

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

func DefaultGetJoinedTeamChannelMembersCountOperationOptions

func DefaultGetJoinedTeamChannelMembersCountOperationOptions() GetJoinedTeamChannelMembersCountOperationOptions

func (GetJoinedTeamChannelMembersCountOperationOptions) ToHeaders

func (GetJoinedTeamChannelMembersCountOperationOptions) ToOData

func (GetJoinedTeamChannelMembersCountOperationOptions) ToQuery

type GetJoinedTeamChannelMembersCountOperationResponse

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

type JoinedTeamChannelMemberClient

type JoinedTeamChannelMemberClient struct {
	Client *msgraph.Client
}

func NewJoinedTeamChannelMemberClientWithBaseURI

func NewJoinedTeamChannelMemberClientWithBaseURI(sdkApi sdkEnv.Api) (*JoinedTeamChannelMemberClient, error)

func (JoinedTeamChannelMemberClient) AddJoinedTeamChannelMembers

AddJoinedTeamChannelMembers - 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 (JoinedTeamChannelMemberClient) AddJoinedTeamChannelMembersComplete

AddJoinedTeamChannelMembersComplete retrieves all the results into a single object

func (JoinedTeamChannelMemberClient) AddJoinedTeamChannelMembersCompleteMatchingPredicate

AddJoinedTeamChannelMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (JoinedTeamChannelMemberClient) CreateJoinedTeamChannelMember

CreateJoinedTeamChannelMember - Create new navigation property to members for users

func (JoinedTeamChannelMemberClient) DeleteJoinedTeamChannelMember

DeleteJoinedTeamChannelMember - Delete navigation property members for users

func (JoinedTeamChannelMemberClient) GetJoinedTeamChannelMember

GetJoinedTeamChannelMember - Get members from users. A collection of membership records associated with the channel.

func (JoinedTeamChannelMemberClient) GetJoinedTeamChannelMembersCount

GetJoinedTeamChannelMembersCount - Get the number of the resource

func (JoinedTeamChannelMemberClient) ListJoinedTeamChannelMembers

ListJoinedTeamChannelMembers - Get members from users. A collection of membership records associated with the channel.

func (JoinedTeamChannelMemberClient) ListJoinedTeamChannelMembersComplete

ListJoinedTeamChannelMembersComplete retrieves all the results into a single object

func (JoinedTeamChannelMemberClient) ListJoinedTeamChannelMembersCompleteMatchingPredicate

ListJoinedTeamChannelMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (JoinedTeamChannelMemberClient) UpdateJoinedTeamChannelMember

UpdateJoinedTeamChannelMember - Update the navigation property members in users

type ListJoinedTeamChannelMembersCompleteResult

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

type ListJoinedTeamChannelMembersCustomPager

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

type ListJoinedTeamChannelMembersOperationOptions

type ListJoinedTeamChannelMembersOperationOptions 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 DefaultListJoinedTeamChannelMembersOperationOptions

func DefaultListJoinedTeamChannelMembersOperationOptions() ListJoinedTeamChannelMembersOperationOptions

func (ListJoinedTeamChannelMembersOperationOptions) ToHeaders

func (ListJoinedTeamChannelMembersOperationOptions) ToOData

func (ListJoinedTeamChannelMembersOperationOptions) ToQuery

type ListJoinedTeamChannelMembersOperationResponse

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

type UpdateJoinedTeamChannelMemberOperationOptions

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

func DefaultUpdateJoinedTeamChannelMemberOperationOptions

func DefaultUpdateJoinedTeamChannelMemberOperationOptions() UpdateJoinedTeamChannelMemberOperationOptions

func (UpdateJoinedTeamChannelMemberOperationOptions) ToHeaders

func (UpdateJoinedTeamChannelMemberOperationOptions) ToOData

func (UpdateJoinedTeamChannelMemberOperationOptions) ToQuery

type UpdateJoinedTeamChannelMemberOperationResponse

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