msgraph

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	TenantId     string `json:"tenant_id"`
	ClientId     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
	AccessToken  string `json:"access_token"`
	// contains filtered or unexported fields
}

func NewClient

func NewClient(tenantId, clientId, clientSecret, scope string) *Client

func (*Client) Ping

func (client *Client) Ping() bool

func (*Client) SecurityAlerts

func (client *Client) SecurityAlerts(params url.Values) (*GraphListResponse, error)

func (*Client) SetGraphEndpoint

func (client *Client) SetGraphEndpoint(graphEndpoint string) error

func (*Client) SetLogger

func (client *Client) SetLogger(logger *log.Entry) error

func (*Client) SetLoginEndpoint

func (client *Client) SetLoginEndpoint(loginEndpoint string) error

type GraphListResponse

type GraphListResponse struct {
	Context  string        `json:"@odata.context"`
	NextLink string        `json:"@odata.nextLink"`
	Value    []interface{} `json:"value"`
}

type Scope

type Scope string
const (
	AtpScope   Scope = "https://api.securitycenter.windows.com/.default"
	GraphScope Scope = "https://graph.microsoft.com/.default"
)

func (Scope) String

func (s Scope) String() string

String makes Scope satisfy the Stringer interface.

Jump to

Keyboard shortcuts

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