msgraph

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 10 Imported by: 0

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