teamprimarychannelmember

package
v0.20241205.1102105 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/stable/teamprimarychannelmember Documentation

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

Client Initialization

client := teamprimarychannelmember.NewTeamPrimaryChannelMemberClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: TeamPrimaryChannelMemberClient.AddTeamPrimaryChannelMembers

ctx := context.TODO()
id := teamprimarychannelmember.NewGroupID("groupId")

payload := teamprimarychannelmember.AddTeamPrimaryChannelMembersRequest{
	// ...
}


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

Example Usage: TeamPrimaryChannelMemberClient.CreateTeamPrimaryChannelMember

ctx := context.TODO()
id := teamprimarychannelmember.NewGroupID("groupId")

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


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

Example Usage: TeamPrimaryChannelMemberClient.DeleteTeamPrimaryChannelMember

ctx := context.TODO()
id := teamprimarychannelmember.NewGroupIdTeamPrimaryChannelMemberID("groupId", "conversationMemberId")

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

Example Usage: TeamPrimaryChannelMemberClient.GetTeamPrimaryChannelMember

ctx := context.TODO()
id := teamprimarychannelmember.NewGroupIdTeamPrimaryChannelMemberID("groupId", "conversationMemberId")

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

Example Usage: TeamPrimaryChannelMemberClient.GetTeamPrimaryChannelMembersCount

ctx := context.TODO()
id := teamprimarychannelmember.NewGroupID("groupId")

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

Example Usage: TeamPrimaryChannelMemberClient.ListTeamPrimaryChannelMembers

ctx := context.TODO()
id := teamprimarychannelmember.NewGroupID("groupId")

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

Example Usage: TeamPrimaryChannelMemberClient.UpdateTeamPrimaryChannelMember

ctx := context.TODO()
id := teamprimarychannelmember.NewGroupIdTeamPrimaryChannelMemberID("groupId", "conversationMemberId")

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


read, err := client.UpdateTeamPrimaryChannelMember(ctx, id, payload, teamprimarychannelmember.DefaultUpdateTeamPrimaryChannelMemberOperationOptions())
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 AddTeamPrimaryChannelMembersCompleteResult

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

type AddTeamPrimaryChannelMembersCustomPager

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

type AddTeamPrimaryChannelMembersOperationOptions

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

func DefaultAddTeamPrimaryChannelMembersOperationOptions

func DefaultAddTeamPrimaryChannelMembersOperationOptions() AddTeamPrimaryChannelMembersOperationOptions

func (AddTeamPrimaryChannelMembersOperationOptions) ToHeaders

func (AddTeamPrimaryChannelMembersOperationOptions) ToOData

func (AddTeamPrimaryChannelMembersOperationOptions) ToQuery

type AddTeamPrimaryChannelMembersOperationResponse

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

type AddTeamPrimaryChannelMembersRequest

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

type ConversationMemberOperationPredicate

type ConversationMemberOperationPredicate struct {
}

func (ConversationMemberOperationPredicate) Matches

type CreateTeamPrimaryChannelMemberOperationOptions

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

func DefaultCreateTeamPrimaryChannelMemberOperationOptions

func DefaultCreateTeamPrimaryChannelMemberOperationOptions() CreateTeamPrimaryChannelMemberOperationOptions

func (CreateTeamPrimaryChannelMemberOperationOptions) ToHeaders

func (CreateTeamPrimaryChannelMemberOperationOptions) ToOData

func (CreateTeamPrimaryChannelMemberOperationOptions) ToQuery

type CreateTeamPrimaryChannelMemberOperationResponse

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

type DeleteTeamPrimaryChannelMemberOperationOptions

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

func DefaultDeleteTeamPrimaryChannelMemberOperationOptions

func DefaultDeleteTeamPrimaryChannelMemberOperationOptions() DeleteTeamPrimaryChannelMemberOperationOptions

func (DeleteTeamPrimaryChannelMemberOperationOptions) ToHeaders

func (DeleteTeamPrimaryChannelMemberOperationOptions) ToOData

func (DeleteTeamPrimaryChannelMemberOperationOptions) ToQuery

type DeleteTeamPrimaryChannelMemberOperationResponse

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

type GetTeamPrimaryChannelMemberOperationOptions

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

func DefaultGetTeamPrimaryChannelMemberOperationOptions

func DefaultGetTeamPrimaryChannelMemberOperationOptions() GetTeamPrimaryChannelMemberOperationOptions

func (GetTeamPrimaryChannelMemberOperationOptions) ToHeaders

func (GetTeamPrimaryChannelMemberOperationOptions) ToOData

func (GetTeamPrimaryChannelMemberOperationOptions) ToQuery

type GetTeamPrimaryChannelMemberOperationResponse

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

type GetTeamPrimaryChannelMembersCountOperationOptions

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

func DefaultGetTeamPrimaryChannelMembersCountOperationOptions

func DefaultGetTeamPrimaryChannelMembersCountOperationOptions() GetTeamPrimaryChannelMembersCountOperationOptions

func (GetTeamPrimaryChannelMembersCountOperationOptions) ToHeaders

func (GetTeamPrimaryChannelMembersCountOperationOptions) ToOData

func (GetTeamPrimaryChannelMembersCountOperationOptions) ToQuery

type GetTeamPrimaryChannelMembersCountOperationResponse

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

type ListTeamPrimaryChannelMembersCompleteResult

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

type ListTeamPrimaryChannelMembersCustomPager

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

type ListTeamPrimaryChannelMembersOperationOptions

type ListTeamPrimaryChannelMembersOperationOptions 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 DefaultListTeamPrimaryChannelMembersOperationOptions

func DefaultListTeamPrimaryChannelMembersOperationOptions() ListTeamPrimaryChannelMembersOperationOptions

func (ListTeamPrimaryChannelMembersOperationOptions) ToHeaders

func (ListTeamPrimaryChannelMembersOperationOptions) ToOData

func (ListTeamPrimaryChannelMembersOperationOptions) ToQuery

type ListTeamPrimaryChannelMembersOperationResponse

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

type TeamPrimaryChannelMemberClient

type TeamPrimaryChannelMemberClient struct {
	Client *msgraph.Client
}

func NewTeamPrimaryChannelMemberClientWithBaseURI

func NewTeamPrimaryChannelMemberClientWithBaseURI(sdkApi sdkEnv.Api) (*TeamPrimaryChannelMemberClient, error)

func (TeamPrimaryChannelMemberClient) AddTeamPrimaryChannelMembers

AddTeamPrimaryChannelMembers - 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 (TeamPrimaryChannelMemberClient) AddTeamPrimaryChannelMembersComplete

AddTeamPrimaryChannelMembersComplete retrieves all the results into a single object

func (TeamPrimaryChannelMemberClient) AddTeamPrimaryChannelMembersCompleteMatchingPredicate

AddTeamPrimaryChannelMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TeamPrimaryChannelMemberClient) CreateTeamPrimaryChannelMember

CreateTeamPrimaryChannelMember - Create new navigation property to members for groups

func (TeamPrimaryChannelMemberClient) DeleteTeamPrimaryChannelMember

DeleteTeamPrimaryChannelMember - Delete navigation property members for groups

func (TeamPrimaryChannelMemberClient) GetTeamPrimaryChannelMember

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

func (TeamPrimaryChannelMemberClient) GetTeamPrimaryChannelMembersCount

GetTeamPrimaryChannelMembersCount - Get the number of the resource

func (TeamPrimaryChannelMemberClient) ListTeamPrimaryChannelMembers

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

func (TeamPrimaryChannelMemberClient) ListTeamPrimaryChannelMembersComplete

ListTeamPrimaryChannelMembersComplete retrieves all the results into a single object

func (TeamPrimaryChannelMemberClient) ListTeamPrimaryChannelMembersCompleteMatchingPredicate

ListTeamPrimaryChannelMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TeamPrimaryChannelMemberClient) UpdateTeamPrimaryChannelMember

UpdateTeamPrimaryChannelMember - Update the navigation property members in groups

type UpdateTeamPrimaryChannelMemberOperationOptions

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

func DefaultUpdateTeamPrimaryChannelMemberOperationOptions

func DefaultUpdateTeamPrimaryChannelMemberOperationOptions() UpdateTeamPrimaryChannelMemberOperationOptions

func (UpdateTeamPrimaryChannelMemberOperationOptions) ToHeaders

func (UpdateTeamPrimaryChannelMemberOperationOptions) ToOData

func (UpdateTeamPrimaryChannelMemberOperationOptions) ToQuery

type UpdateTeamPrimaryChannelMemberOperationResponse

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