Documentation ¶
Index ¶
Constants ¶
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
}
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 ¶
func (m *GraphServiceClient) GetAdapter() abstractions.RequestAdapter
GetAdapter returns the client current adapter, Method should only be called when the user is certain an adapter has been provided