aadgraph

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppRoleAdd

func AppRoleAdd(roles *[]graphrbac.AppRole, role *graphrbac.AppRole) (*[]graphrbac.AppRole, error)

func AppRoleFindById

func AppRoleFindById(app graphrbac.Application, roleId string) (*graphrbac.AppRole, error)

func AppRoleResultDisableById

func AppRoleResultDisableById(existing *[]graphrbac.AppRole, roleId string) (*[]graphrbac.AppRole, error)

func AppRoleResultRemoveById

func AppRoleResultRemoveById(existing *[]graphrbac.AppRole, roleId string) (*[]graphrbac.AppRole, error)

func AppRoleUpdate

func AppRoleUpdate(roles *[]graphrbac.AppRole, role *graphrbac.AppRole) (*[]graphrbac.AppRole, error)

func AppRolesSet

func AppRolesSet(ctx context.Context, client *graphrbac.ApplicationsClient, appId string, newRoles *[]graphrbac.AppRole) error

func ApplicationAddOwner

func ApplicationAddOwner(ctx context.Context, client *graphrbac.ApplicationsClient, appId string, owner string) error

func ApplicationAddOwners

func ApplicationAddOwners(ctx context.Context, client *graphrbac.ApplicationsClient, appId string, owner []string) error

func ApplicationAllOwners

func ApplicationAllOwners(ctx context.Context, client *graphrbac.ApplicationsClient, appId string) ([]string, error)

func ApplicationFindByName

func ApplicationFindByName(ctx context.Context, client *graphrbac.ApplicationsClient, name string) (*graphrbac.Application, error)

func ApplicationFlattenOAuth2PermissionScopes

func ApplicationFlattenOAuth2PermissionScopes(in *[]graphrbac.OAuth2Permission) []map[string]interface{}

func ApplicationSetOwnersTo

func ApplicationSetOwnersTo(ctx context.Context, client *graphrbac.ApplicationsClient, id string, desiredOwners []string) error

func DirectoryObjectListToIDs

func DirectoryObjectListToIDs(ctx context.Context, objects graphrbac.DirectoryObjectListResultIterator) ([]string, error)

func FlattenAppRoles

func FlattenAppRoles(in *[]graphrbac.AppRole) []map[string]interface{}

func FlattenOauth2Permissions

func FlattenOauth2Permissions(in *[]graphrbac.OAuth2Permission) []map[string]interface{}

func GroupAddMember

func GroupAddMember(ctx context.Context, client *graphrbac.GroupsClient, groupId string, member string) error

func GroupAddMembers

func GroupAddMembers(ctx context.Context, client *graphrbac.GroupsClient, groupId string, members []string) error

func GroupAddOwner

func GroupAddOwner(ctx context.Context, client *graphrbac.GroupsClient, groupId string, owner string) error

func GroupAddOwners

func GroupAddOwners(ctx context.Context, client *graphrbac.GroupsClient, groupId string, owner []string) error

func GroupAllMembers

func GroupAllMembers(ctx context.Context, client *graphrbac.GroupsClient, groupId string) ([]string, error)

func GroupAllOwners

func GroupAllOwners(ctx context.Context, client *graphrbac.GroupsClient, groupId string) ([]string, error)

func GroupFindByName

func GroupFindByName(ctx context.Context, client *graphrbac.GroupsClient, name string) (*graphrbac.ADGroup, error)

func GroupGetByDisplayName

func GroupGetByDisplayName(ctx context.Context, client *graphrbac.GroupsClient, displayName string, mailEnabled *bool, securityEnabled *bool) (*graphrbac.ADGroup, error)

func GroupRemoveMember

func GroupRemoveMember(ctx context.Context, client *graphrbac.GroupsClient, timeout time.Duration, groupId, memberId string) error

func KeyCredentialForResource

func KeyCredentialForResource(d *schema.ResourceData) (*graphrbac.KeyCredential, error)

func KeyCredentialResultFindByKeyId

func KeyCredentialResultFindByKeyId(creds graphrbac.KeyCredentialListResult, keyId string) *graphrbac.KeyCredential

func KeyCredentialResultRemoveByKeyId

func KeyCredentialResultRemoveByKeyId(existing graphrbac.KeyCredentialListResult, keyId string) (*[]graphrbac.KeyCredential, error)

func NewOdataError

func NewOdataError(resp autorest.Response) (*graphrbac.OdataError, error)

NewOdataError attempts to unmarshal an autorest.Response to *graphrbac.ODataError

func OAuth2PermissionAdd

func OAuth2PermissionAdd(permissions *[]graphrbac.OAuth2Permission, permission *graphrbac.OAuth2Permission) (*[]graphrbac.OAuth2Permission, error)

func OAuth2PermissionFindById

func OAuth2PermissionFindById(app graphrbac.Application, permissionId string) (*graphrbac.OAuth2Permission, error)

func OAuth2PermissionResultDisableById

func OAuth2PermissionResultDisableById(existing *[]graphrbac.OAuth2Permission, permissionId string) (*[]graphrbac.OAuth2Permission, error)

func OAuth2PermissionResultRemoveById

func OAuth2PermissionResultRemoveById(existing *[]graphrbac.OAuth2Permission, permissionId string) (*[]graphrbac.OAuth2Permission, error)

func OAuth2PermissionUpdate

func OAuth2PermissionUpdate(permissions *[]graphrbac.OAuth2Permission, permission *graphrbac.OAuth2Permission) (*[]graphrbac.OAuth2Permission, error)

func OAuth2PermissionsSet

func OAuth2PermissionsSet(ctx context.Context, client *graphrbac.ApplicationsClient, appId string, newPermissions *[]graphrbac.OAuth2Permission) error

func OdataErrorContains

func OdataErrorContains(odata *graphrbac.OdataError, search string) bool

OdataErrorContains checks whether an OData error message contains a specified substring

func PasswordCredentialForResource

func PasswordCredentialForResource(d *schema.ResourceData) (*graphrbac.PasswordCredential, error)

func PasswordCredentialResultRemoveByKeyId

func PasswordCredentialResultRemoveByKeyId(existing graphrbac.PasswordCredentialListResult, keyId string) (*[]graphrbac.PasswordCredential, error)

func UserGetByMailNickname

func UserGetByMailNickname(ctx context.Context, client *graphrbac.UsersClient, mailNickname string) (*graphrbac.User, error)

func UserGetByObjectId

func UserGetByObjectId(ctx context.Context, client *graphrbac.UsersClient, objectId string) (*graphrbac.User, error)

func WaitForCreationReplication

func WaitForCreationReplication(ctx context.Context, timeout time.Duration, f func() (interface{}, error)) (interface{}, error)

func WaitForKeyCredentialReplication

func WaitForKeyCredentialReplication(ctx context.Context, keyId string, timeout time.Duration, f func() (graphrbac.KeyCredentialListResult, error)) (interface{}, error)

func WaitForListAdd

func WaitForListAdd(ctx context.Context, item string, f func() ([]string, error)) (interface{}, error)

func WaitForListRemove

func WaitForListRemove(ctx context.Context, item string, f func() ([]string, error)) (interface{}, error)

func WaitForPasswordCredentialReplication

func WaitForPasswordCredentialReplication(ctx context.Context, keyId string, timeout time.Duration, f func() (graphrbac.PasswordCredentialListResult, error)) (interface{}, error)

Types

type AlreadyExistsError

type AlreadyExistsError struct {
	// contains filtered or unexported fields
}

func (AlreadyExistsError) Error

func (e AlreadyExistsError) Error() string

type CredentialError

type CredentialError struct {
	// contains filtered or unexported fields
}

func (CredentialError) Attr

func (e CredentialError) Attr() string

func (CredentialError) Error

func (e CredentialError) Error() string

Jump to

Keyboard shortcuts

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