graph

package
v0.0.0-...-37f2402 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ENV_DEBUG_TRACE = "ARO_MSGRAPH_TRACE"

Variables

This section is empty.

Functions

func GetServicePrincipalIDByAppID

func GetServicePrincipalIDByAppID(ctx context.Context, graph *GraphServiceClient, appId string) (*string, error)

GetServicePrincipalIDByAppID returns a service principal's object ID from an application (client) ID.

Types

type DebugTransport

type DebugTransport struct {
	Transport http.RoundTripper
}

func (*DebugTransport) RoundTrip

func (t *DebugTransport) RoundTrip(req *http.Request) (*http.Response, error)

type GraphRequestAdapter

type GraphRequestAdapter struct {
	core.GraphRequestAdapterBase
}

GraphRequestAdapter is the core service used by GraphBaseServiceClient to make requests to Microsoft Graph.

func NewGraphRequestAdapter

func NewGraphRequestAdapter(authenticationProvider absauth.AuthenticationProvider) (*GraphRequestAdapter, error)

NewGraphRequestAdapter creates a new GraphRequestAdapter with the given parameters Parameters: authenticationProvider: the provider used to authenticate requests Returns: a new GraphRequestAdapter

type GraphServiceClient

type GraphServiceClient struct {
	graphsdk.GraphBaseServiceClient
}

func NewGraphServiceClient

func NewGraphServiceClient(adapter abstractions.RequestAdapter) *GraphServiceClient

Create a GraphServiceClient for use.

NOTE: If you want to update the underlying SDK, see docs/updating-graphsdk.md for instructions.

func NewGraphServiceClientWithCredentials

func NewGraphServiceClientWithCredentials(credential azcore.TokenCredential, scopes []string) (*GraphServiceClient, error)

NewGraphServiceClientWithCredentials instantiates a new GraphServiceClient with provided credentials and scopes

func (*GraphServiceClient) GetAdapter

GetAdapter returns the client current adapter, Method should only be called when the user is certain an adapter has been provided

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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