clients

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MPL-2.0 Imports: 13 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 {
	Environment environments.Environment
	TenantID    string
	ClientID    string
	ObjectID    string
	Claims      auth.Claims

	TerraformVersion string

	AuthenticatedAsAServicePrincipal bool
	EnableMsGraphBeta                bool // TODO: remove in v2.0

	StopContext context.Context

	Applications      *applications.Client
	Domains           *domains.Client
	Groups            *groups.Client
	ServicePrincipals *serviceprincipals.Client
	Users             *users.Client
}

Client contains the handles to all the specific Azure AD resource classes' respective clients

type ClientBuilder

type ClientBuilder struct {
	AuthConfig       *auth.Config
	AadAuthConfig    *authentication.Config
	EnableMsGraph    bool
	PartnerID        string
	TerraformVersion string
}

func (*ClientBuilder) Build

func (b *ClientBuilder) Build(ctx context.Context) (*Client, error)

Build is a helper method which returns a fully instantiated *Client based on the auth Config's current settings.

Jump to

Keyboard shortcuts

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