joinedgroup

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/users/beta/joinedgroup Documentation

The joinedgroup SDK allows for interaction with Microsoft Graph users (API Version beta).

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/beta/joinedgroup"

Client Initialization

client := joinedgroup.NewJoinedGroupClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: JoinedGroupClient.EvaluateJoinedGroupsDynamicMembership

ctx := context.TODO()
id := joinedgroup.NewUserID("userId")

payload := joinedgroup.EvaluateJoinedGroupsDynamicMembershipRequest{
	// ...
}


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

Example Usage: JoinedGroupClient.ListJoinedGroups

ctx := context.TODO()
id := joinedgroup.NewUserID("userId")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvaluateJoinedGroupsDynamicMembershipOperationOptions

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

func DefaultEvaluateJoinedGroupsDynamicMembershipOperationOptions

func DefaultEvaluateJoinedGroupsDynamicMembershipOperationOptions() EvaluateJoinedGroupsDynamicMembershipOperationOptions

func (EvaluateJoinedGroupsDynamicMembershipOperationOptions) ToHeaders

func (EvaluateJoinedGroupsDynamicMembershipOperationOptions) ToOData

func (EvaluateJoinedGroupsDynamicMembershipOperationOptions) ToQuery

type EvaluateJoinedGroupsDynamicMembershipOperationResponse

type EvaluateJoinedGroupsDynamicMembershipOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.EvaluateDynamicMembershipResult
}

type EvaluateJoinedGroupsDynamicMembershipRequest

type EvaluateJoinedGroupsDynamicMembershipRequest struct {
	MemberId       nullable.Type[string] `json:"memberId,omitempty"`
	MembershipRule nullable.Type[string] `json:"membershipRule,omitempty"`
}

type GroupOperationPredicate

type GroupOperationPredicate struct {
}

func (GroupOperationPredicate) Matches

func (p GroupOperationPredicate) Matches(input beta.Group) bool

type JoinedGroupClient

type JoinedGroupClient struct {
	Client *msgraph.Client
}

func NewJoinedGroupClientWithBaseURI

func NewJoinedGroupClientWithBaseURI(sdkApi sdkEnv.Api) (*JoinedGroupClient, error)

func (JoinedGroupClient) EvaluateJoinedGroupsDynamicMembership

EvaluateJoinedGroupsDynamicMembership - Invoke action evaluateDynamicMembership

func (JoinedGroupClient) ListJoinedGroups

ListJoinedGroups - Get joinedGroups from users

func (JoinedGroupClient) ListJoinedGroupsComplete

ListJoinedGroupsComplete retrieves all the results into a single object

func (JoinedGroupClient) ListJoinedGroupsCompleteMatchingPredicate

func (c JoinedGroupClient) ListJoinedGroupsCompleteMatchingPredicate(ctx context.Context, id beta.UserId, options ListJoinedGroupsOperationOptions, predicate GroupOperationPredicate) (result ListJoinedGroupsCompleteResult, err error)

ListJoinedGroupsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ListJoinedGroupsCompleteResult

type ListJoinedGroupsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.Group
}

type ListJoinedGroupsCustomPager

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

type ListJoinedGroupsOperationOptions

type ListJoinedGroupsOperationOptions 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 DefaultListJoinedGroupsOperationOptions

func DefaultListJoinedGroupsOperationOptions() ListJoinedGroupsOperationOptions

func (ListJoinedGroupsOperationOptions) ToHeaders

func (ListJoinedGroupsOperationOptions) ToOData

func (ListJoinedGroupsOperationOptions) ToQuery

type ListJoinedGroupsOperationResponse

type ListJoinedGroupsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.Group
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL