Documentation
¶
Index ¶
- Variables
- func GetDefaultClient(options *GraphClientOptions, middleware ...khttp.Middleware) *nethttp.Client
- func GetDefaultMiddlewaresWithOptions(options *GraphClientOptions) []khttp.Middleware
- type GraphClientOptions
- type GraphODataQueryHandler
- type GraphODataQueryHandlerOptions
- type GraphRequestAdapterBase
- func NewGraphRequestAdapterBase(authenticationProvider absauth.AuthenticationProvider, ...) (*GraphRequestAdapterBase, error)
- func NewGraphRequestAdapterBaseWithParseNodeFactory(authenticationProvider absauth.AuthenticationProvider, ...) (*GraphRequestAdapterBase, error)
- func NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactory(authenticationProvider absauth.AuthenticationProvider, ...) (*GraphRequestAdapterBase, error)
- func NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactoryAndHttpClient(authenticationProvider absauth.AuthenticationProvider, ...) (*GraphRequestAdapterBase, error)
- type GraphTelemetryHandler
Constants ¶
This section is empty.
Variables ¶
var CoreVersion = "0.0.3"
Functions ¶
func GetDefaultClient ¶
func GetDefaultClient(options *GraphClientOptions, middleware ...khttp.Middleware) *nethttp.Client
GetDefaultClient creates a new http client with a preconfigured middleware pipeline
func GetDefaultMiddlewaresWithOptions ¶
func GetDefaultMiddlewaresWithOptions(options *GraphClientOptions) []khttp.Middleware
GetDefaultMiddlewaresWithOptions creates a default slice of middleware for the Graph Client.
Types ¶
type GraphClientOptions ¶
GraphClientOptions represents a combination of GraphServiceVersion and GraphServiceLibraryVersion
GraphServiceVersion is version of the targeted service. GraphServiceLibraryVersion is the version of the service library
type GraphODataQueryHandler ¶
type GraphODataQueryHandler struct {
// contains filtered or unexported fields
}
GraphODataQueryHandler is a handler that adds the dollar sign in front of OData query parameters
func NewGraphODataQueryHandler ¶
func NewGraphODataQueryHandler() *GraphODataQueryHandler
NewGraphODataQueryHandler creates a new instance of GraphODataQueryHandler
func NewGraphODataQueryHandlerWithOptions ¶
func NewGraphODataQueryHandlerWithOptions(options GraphODataQueryHandlerOptions) *GraphODataQueryHandler
NewGraphODataQueryHandlerWithOptions creates a new instance of GraphODataQueryHandler
type GraphODataQueryHandlerOptions ¶
func (*GraphODataQueryHandlerOptions) GetKey ¶
func (o *GraphODataQueryHandlerOptions) GetKey() abs.RequestOptionKey
func (*GraphODataQueryHandlerOptions) GetShouldReplace ¶
func (o *GraphODataQueryHandlerOptions) GetShouldReplace() func(req *nethttp.Request) bool
type GraphRequestAdapterBase ¶
type GraphRequestAdapterBase struct {
khttp.NetHttpRequestAdapter
}
GraphRequestAdapterBase is the core service used by GraphServiceClient to make requests to Microsoft Graph.
func NewGraphRequestAdapterBase ¶
func NewGraphRequestAdapterBase(authenticationProvider absauth.AuthenticationProvider, clientOptions GraphClientOptions) (*GraphRequestAdapterBase, error)
NewGraphRequestAdapterBase creates a new GraphRequestAdapterBase with the given parameters
func NewGraphRequestAdapterBaseWithParseNodeFactory ¶
func NewGraphRequestAdapterBaseWithParseNodeFactory(authenticationProvider absauth.AuthenticationProvider, clientOptions GraphClientOptions, parseNodeFactory absser.ParseNodeFactory) (*GraphRequestAdapterBase, error)
NewGraphRequestAdapterBaseWithParseNodeFactory creates a new GraphRequestAdapterBase with the given parameters
func NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactory ¶
func NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactory(authenticationProvider absauth.AuthenticationProvider, clientOptions GraphClientOptions, parseNodeFactory absser.ParseNodeFactory, serializationWriterFactory absser.SerializationWriterFactory) (*GraphRequestAdapterBase, error)
NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactory creates a new GraphRequestAdapterBase with the given parameters
func NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactoryAndHttpClient ¶
func NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactoryAndHttpClient(authenticationProvider absauth.AuthenticationProvider, clientOptions GraphClientOptions, parseNodeFactory absser.ParseNodeFactory, serializationWriterFactory absser.SerializationWriterFactory, httpClient *nethttp.Client) (*GraphRequestAdapterBase, error)
NewGraphRequestAdapterBaseWithParseNodeFactoryAndSerializationWriterFactoryAndHttpClient creates a new GraphRequestAdapterBase with the given parameters
type GraphTelemetryHandler ¶
type GraphTelemetryHandler struct {
// contains filtered or unexported fields
}
GraphTelemetryHandler is a middleware handler that adds telemetry headers to requests.
func NewGraphTelemetryHandler ¶
func NewGraphTelemetryHandler(options *GraphClientOptions) *GraphTelemetryHandler
NewGraphTelemetryHandler creates a new GraphTelemetryHandler.