joinedteamprimarychannelmember

package
v0.20240927.1005214 Latest Latest
Warning

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

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

README

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

The joinedteamprimarychannelmember 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/joinedteamprimarychannelmember"

Client Initialization

client := joinedteamprimarychannelmember.NewJoinedTeamPrimaryChannelMemberClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: JoinedTeamPrimaryChannelMemberClient.AddJoinedTeamPrimaryChannelMembers

ctx := context.TODO()
id := joinedteamprimarychannelmember.NewUserIdJoinedTeamID("userId", "teamId")

payload := joinedteamprimarychannelmember.AddJoinedTeamPrimaryChannelMembersRequest{
	// ...
}


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

Example Usage: JoinedTeamPrimaryChannelMemberClient.CreateJoinedTeamPrimaryChannelMember

ctx := context.TODO()
id := joinedteamprimarychannelmember.NewUserIdJoinedTeamID("userId", "teamId")

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


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

Example Usage: JoinedTeamPrimaryChannelMemberClient.DeleteJoinedTeamPrimaryChannelMember

ctx := context.TODO()
id := joinedteamprimarychannelmember.NewUserIdJoinedTeamIdPrimaryChannelMemberID("userId", "teamId", "conversationMemberId")

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

Example Usage: JoinedTeamPrimaryChannelMemberClient.GetJoinedTeamPrimaryChannelMember

ctx := context.TODO()
id := joinedteamprimarychannelmember.NewUserIdJoinedTeamIdPrimaryChannelMemberID("userId", "teamId", "conversationMemberId")

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

Example Usage: JoinedTeamPrimaryChannelMemberClient.GetJoinedTeamPrimaryChannelMembersCount

ctx := context.TODO()
id := joinedteamprimarychannelmember.NewUserIdJoinedTeamID("userId", "teamId")

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

Example Usage: JoinedTeamPrimaryChannelMemberClient.ListJoinedTeamPrimaryChannelMembers

ctx := context.TODO()
id := joinedteamprimarychannelmember.NewUserIdJoinedTeamID("userId", "teamId")

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

Example Usage: JoinedTeamPrimaryChannelMemberClient.UpdateJoinedTeamPrimaryChannelMember

ctx := context.TODO()
id := joinedteamprimarychannelmember.NewUserIdJoinedTeamIdPrimaryChannelMemberID("userId", "teamId", "conversationMemberId")

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


read, err := client.UpdateJoinedTeamPrimaryChannelMember(ctx, id, payload, joinedteamprimarychannelmember.DefaultUpdateJoinedTeamPrimaryChannelMemberOperationOptions())
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 AddJoinedTeamPrimaryChannelMembersCompleteResult

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

type AddJoinedTeamPrimaryChannelMembersCustomPager

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

type AddJoinedTeamPrimaryChannelMembersOperationOptions

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

func DefaultAddJoinedTeamPrimaryChannelMembersOperationOptions

func DefaultAddJoinedTeamPrimaryChannelMembersOperationOptions() AddJoinedTeamPrimaryChannelMembersOperationOptions

func (AddJoinedTeamPrimaryChannelMembersOperationOptions) ToHeaders

func (AddJoinedTeamPrimaryChannelMembersOperationOptions) ToOData

func (AddJoinedTeamPrimaryChannelMembersOperationOptions) ToQuery

type AddJoinedTeamPrimaryChannelMembersOperationResponse

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

type AddJoinedTeamPrimaryChannelMembersRequest

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

type ConversationMemberOperationPredicate

type ConversationMemberOperationPredicate struct {
}

func (ConversationMemberOperationPredicate) Matches

type CreateJoinedTeamPrimaryChannelMemberOperationOptions

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

func DefaultCreateJoinedTeamPrimaryChannelMemberOperationOptions

func DefaultCreateJoinedTeamPrimaryChannelMemberOperationOptions() CreateJoinedTeamPrimaryChannelMemberOperationOptions

func (CreateJoinedTeamPrimaryChannelMemberOperationOptions) ToHeaders

func (CreateJoinedTeamPrimaryChannelMemberOperationOptions) ToOData

func (CreateJoinedTeamPrimaryChannelMemberOperationOptions) ToQuery

type CreateJoinedTeamPrimaryChannelMemberOperationResponse

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

type DeleteJoinedTeamPrimaryChannelMemberOperationOptions

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

func DefaultDeleteJoinedTeamPrimaryChannelMemberOperationOptions

func DefaultDeleteJoinedTeamPrimaryChannelMemberOperationOptions() DeleteJoinedTeamPrimaryChannelMemberOperationOptions

func (DeleteJoinedTeamPrimaryChannelMemberOperationOptions) ToHeaders

func (DeleteJoinedTeamPrimaryChannelMemberOperationOptions) ToOData

func (DeleteJoinedTeamPrimaryChannelMemberOperationOptions) ToQuery

type DeleteJoinedTeamPrimaryChannelMemberOperationResponse

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

type GetJoinedTeamPrimaryChannelMemberOperationOptions

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

func DefaultGetJoinedTeamPrimaryChannelMemberOperationOptions

func DefaultGetJoinedTeamPrimaryChannelMemberOperationOptions() GetJoinedTeamPrimaryChannelMemberOperationOptions

func (GetJoinedTeamPrimaryChannelMemberOperationOptions) ToHeaders

func (GetJoinedTeamPrimaryChannelMemberOperationOptions) ToOData

func (GetJoinedTeamPrimaryChannelMemberOperationOptions) ToQuery

type GetJoinedTeamPrimaryChannelMemberOperationResponse

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

type GetJoinedTeamPrimaryChannelMembersCountOperationOptions

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

func (GetJoinedTeamPrimaryChannelMembersCountOperationOptions) ToHeaders

func (GetJoinedTeamPrimaryChannelMembersCountOperationOptions) ToOData

func (GetJoinedTeamPrimaryChannelMembersCountOperationOptions) ToQuery

type GetJoinedTeamPrimaryChannelMembersCountOperationResponse

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

type JoinedTeamPrimaryChannelMemberClient

type JoinedTeamPrimaryChannelMemberClient struct {
	Client *msgraph.Client
}

func NewJoinedTeamPrimaryChannelMemberClientWithBaseURI

func NewJoinedTeamPrimaryChannelMemberClientWithBaseURI(sdkApi sdkEnv.Api) (*JoinedTeamPrimaryChannelMemberClient, error)

func (JoinedTeamPrimaryChannelMemberClient) AddJoinedTeamPrimaryChannelMembers

AddJoinedTeamPrimaryChannelMembers - 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 (JoinedTeamPrimaryChannelMemberClient) AddJoinedTeamPrimaryChannelMembersComplete

AddJoinedTeamPrimaryChannelMembersComplete retrieves all the results into a single object

func (JoinedTeamPrimaryChannelMemberClient) AddJoinedTeamPrimaryChannelMembersCompleteMatchingPredicate

AddJoinedTeamPrimaryChannelMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (JoinedTeamPrimaryChannelMemberClient) CreateJoinedTeamPrimaryChannelMember

CreateJoinedTeamPrimaryChannelMember - Create new navigation property to members for users

func (JoinedTeamPrimaryChannelMemberClient) DeleteJoinedTeamPrimaryChannelMember

DeleteJoinedTeamPrimaryChannelMember - Delete navigation property members for users

func (JoinedTeamPrimaryChannelMemberClient) GetJoinedTeamPrimaryChannelMember

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

func (JoinedTeamPrimaryChannelMemberClient) GetJoinedTeamPrimaryChannelMembersCount

GetJoinedTeamPrimaryChannelMembersCount - Get the number of the resource

func (JoinedTeamPrimaryChannelMemberClient) ListJoinedTeamPrimaryChannelMembers

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

func (JoinedTeamPrimaryChannelMemberClient) ListJoinedTeamPrimaryChannelMembersComplete

ListJoinedTeamPrimaryChannelMembersComplete retrieves all the results into a single object

func (JoinedTeamPrimaryChannelMemberClient) ListJoinedTeamPrimaryChannelMembersCompleteMatchingPredicate

ListJoinedTeamPrimaryChannelMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (JoinedTeamPrimaryChannelMemberClient) UpdateJoinedTeamPrimaryChannelMember

UpdateJoinedTeamPrimaryChannelMember - Update the navigation property members in users

type ListJoinedTeamPrimaryChannelMembersCompleteResult

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

type ListJoinedTeamPrimaryChannelMembersCustomPager

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

type ListJoinedTeamPrimaryChannelMembersOperationOptions

type ListJoinedTeamPrimaryChannelMembersOperationOptions 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 DefaultListJoinedTeamPrimaryChannelMembersOperationOptions

func DefaultListJoinedTeamPrimaryChannelMembersOperationOptions() ListJoinedTeamPrimaryChannelMembersOperationOptions

func (ListJoinedTeamPrimaryChannelMembersOperationOptions) ToHeaders

func (ListJoinedTeamPrimaryChannelMembersOperationOptions) ToOData

func (ListJoinedTeamPrimaryChannelMembersOperationOptions) ToQuery

type ListJoinedTeamPrimaryChannelMembersOperationResponse

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

type UpdateJoinedTeamPrimaryChannelMemberOperationOptions

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

func DefaultUpdateJoinedTeamPrimaryChannelMemberOperationOptions

func DefaultUpdateJoinedTeamPrimaryChannelMemberOperationOptions() UpdateJoinedTeamPrimaryChannelMemberOperationOptions

func (UpdateJoinedTeamPrimaryChannelMemberOperationOptions) ToHeaders

func (UpdateJoinedTeamPrimaryChannelMemberOperationOptions) ToOData

func (UpdateJoinedTeamPrimaryChannelMemberOperationOptions) ToQuery

type UpdateJoinedTeamPrimaryChannelMemberOperationResponse

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