joinedteammember

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: 0

README

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

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

Client Initialization

client := joinedteammember.NewJoinedTeamMemberClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: JoinedTeamMemberClient.AddJoinedTeamMembers

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

payload := joinedteammember.AddJoinedTeamMembersRequest{
	// ...
}


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

Example Usage: JoinedTeamMemberClient.CreateJoinedTeamMember

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

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


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

Example Usage: JoinedTeamMemberClient.DeleteJoinedTeamMember

ctx := context.TODO()
id := joinedteammember.NewUserIdJoinedTeamIdMemberID("userId", "teamId", "conversationMemberId")

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

Example Usage: JoinedTeamMemberClient.GetJoinedTeamMember

ctx := context.TODO()
id := joinedteammember.NewUserIdJoinedTeamIdMemberID("userId", "teamId", "conversationMemberId")

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

Example Usage: JoinedTeamMemberClient.GetJoinedTeamMembersCount

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

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

Example Usage: JoinedTeamMemberClient.ListJoinedTeamMembers

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

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

Example Usage: JoinedTeamMemberClient.UpdateJoinedTeamMember

ctx := context.TODO()
id := joinedteammember.NewUserIdJoinedTeamIdMemberID("userId", "teamId", "conversationMemberId")

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


read, err := client.UpdateJoinedTeamMember(ctx, id, payload, joinedteammember.DefaultUpdateJoinedTeamMemberOperationOptions())
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 AddJoinedTeamMembersCompleteResult

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

type AddJoinedTeamMembersCustomPager

type AddJoinedTeamMembersCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *AddJoinedTeamMembersCustomPager) NextPageLink() *odata.Link

type AddJoinedTeamMembersOperationOptions

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

func DefaultAddJoinedTeamMembersOperationOptions

func DefaultAddJoinedTeamMembersOperationOptions() AddJoinedTeamMembersOperationOptions

func (AddJoinedTeamMembersOperationOptions) ToHeaders

func (AddJoinedTeamMembersOperationOptions) ToOData

func (AddJoinedTeamMembersOperationOptions) ToQuery

type AddJoinedTeamMembersOperationResponse

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

type AddJoinedTeamMembersRequest

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

type ConversationMemberOperationPredicate

type ConversationMemberOperationPredicate struct {
}

func (ConversationMemberOperationPredicate) Matches

type CreateJoinedTeamMemberOperationOptions

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

func DefaultCreateJoinedTeamMemberOperationOptions

func DefaultCreateJoinedTeamMemberOperationOptions() CreateJoinedTeamMemberOperationOptions

func (CreateJoinedTeamMemberOperationOptions) ToHeaders

func (CreateJoinedTeamMemberOperationOptions) ToOData

func (CreateJoinedTeamMemberOperationOptions) ToQuery

type CreateJoinedTeamMemberOperationResponse

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

type DeleteJoinedTeamMemberOperationOptions

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

func DefaultDeleteJoinedTeamMemberOperationOptions

func DefaultDeleteJoinedTeamMemberOperationOptions() DeleteJoinedTeamMemberOperationOptions

func (DeleteJoinedTeamMemberOperationOptions) ToHeaders

func (DeleteJoinedTeamMemberOperationOptions) ToOData

func (DeleteJoinedTeamMemberOperationOptions) ToQuery

type DeleteJoinedTeamMemberOperationResponse

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

type GetJoinedTeamMemberOperationOptions

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

func DefaultGetJoinedTeamMemberOperationOptions

func DefaultGetJoinedTeamMemberOperationOptions() GetJoinedTeamMemberOperationOptions

func (GetJoinedTeamMemberOperationOptions) ToHeaders

func (GetJoinedTeamMemberOperationOptions) ToOData

func (GetJoinedTeamMemberOperationOptions) ToQuery

type GetJoinedTeamMemberOperationResponse

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

type GetJoinedTeamMembersCountOperationOptions

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

func DefaultGetJoinedTeamMembersCountOperationOptions

func DefaultGetJoinedTeamMembersCountOperationOptions() GetJoinedTeamMembersCountOperationOptions

func (GetJoinedTeamMembersCountOperationOptions) ToHeaders

func (GetJoinedTeamMembersCountOperationOptions) ToOData

func (GetJoinedTeamMembersCountOperationOptions) ToQuery

type GetJoinedTeamMembersCountOperationResponse

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

type JoinedTeamMemberClient

type JoinedTeamMemberClient struct {
	Client *msgraph.Client
}

func NewJoinedTeamMemberClientWithBaseURI

func NewJoinedTeamMemberClientWithBaseURI(sdkApi sdkEnv.Api) (*JoinedTeamMemberClient, error)

func (JoinedTeamMemberClient) AddJoinedTeamMembers

AddJoinedTeamMembers - 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 (JoinedTeamMemberClient) AddJoinedTeamMembersComplete

AddJoinedTeamMembersComplete retrieves all the results into a single object

func (JoinedTeamMemberClient) AddJoinedTeamMembersCompleteMatchingPredicate

AddJoinedTeamMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (JoinedTeamMemberClient) CreateJoinedTeamMember

CreateJoinedTeamMember - Create new navigation property to members for users

func (JoinedTeamMemberClient) DeleteJoinedTeamMember

DeleteJoinedTeamMember - Delete navigation property members for users

func (JoinedTeamMemberClient) GetJoinedTeamMember

GetJoinedTeamMember - Get members from users. Members and owners of the team.

func (JoinedTeamMemberClient) GetJoinedTeamMembersCount

GetJoinedTeamMembersCount - Get the number of the resource

func (JoinedTeamMemberClient) ListJoinedTeamMembers

ListJoinedTeamMembers - Get members from users. Members and owners of the team.

func (JoinedTeamMemberClient) ListJoinedTeamMembersComplete

ListJoinedTeamMembersComplete retrieves all the results into a single object

func (JoinedTeamMemberClient) ListJoinedTeamMembersCompleteMatchingPredicate

ListJoinedTeamMembersCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (JoinedTeamMemberClient) UpdateJoinedTeamMember

UpdateJoinedTeamMember - Update the navigation property members in users

type ListJoinedTeamMembersCompleteResult

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

type ListJoinedTeamMembersCustomPager

type ListJoinedTeamMembersCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListJoinedTeamMembersCustomPager) NextPageLink() *odata.Link

type ListJoinedTeamMembersOperationOptions

type ListJoinedTeamMembersOperationOptions 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 DefaultListJoinedTeamMembersOperationOptions

func DefaultListJoinedTeamMembersOperationOptions() ListJoinedTeamMembersOperationOptions

func (ListJoinedTeamMembersOperationOptions) ToHeaders

func (ListJoinedTeamMembersOperationOptions) ToOData

func (ListJoinedTeamMembersOperationOptions) ToQuery

type ListJoinedTeamMembersOperationResponse

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

type UpdateJoinedTeamMemberOperationOptions

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

func DefaultUpdateJoinedTeamMemberOperationOptions

func DefaultUpdateJoinedTeamMemberOperationOptions() UpdateJoinedTeamMemberOperationOptions

func (UpdateJoinedTeamMemberOperationOptions) ToHeaders

func (UpdateJoinedTeamMemberOperationOptions) ToOData

func (UpdateJoinedTeamMemberOperationOptions) ToQuery

type UpdateJoinedTeamMemberOperationResponse

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