authorization

package
v0.0.0-...-ddd6cb9 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleAssignmentsClient

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

RoleAssignmentsClient responsible for role assignments

func NewRoleAssignmentsClient

func NewRoleAssignmentsClient(authorizer autorest.Authorizer, subscriptionId string) *RoleAssignmentsClient

NewRoleAssignmentsClient creates a new 'RoleAssignmentsClient' instance

func (*RoleAssignmentsClient) CreateRoleAssignment

func (r *RoleAssignmentsClient) CreateRoleAssignment(scope, roleDefinitionID, principalID string) (authorization.RoleAssignment, error)

CreateRoleAssignment creates a role assignment

func (*RoleAssignmentsClient) DeleteRoleAssignments

func (r *RoleAssignmentsClient) DeleteRoleAssignments(scope, roleAssignmentName string) (authorization.RoleAssignment, error)

DeleteRoleAssignments deletes a role assignment

func (*RoleAssignmentsClient) GetRoleAssignmentByAssignedTo

func (r *RoleAssignmentsClient) GetRoleAssignmentByAssignedTo(principalID string) ([]authorization.RoleAssignment, error)

GetRoleAssignmentByAssignedTo filters all role assignments for the subscription

func (*RoleAssignmentsClient) ListRoleAssignments

func (r *RoleAssignmentsClient) ListRoleAssignments() ([]authorization.RoleAssignment, error)

ListRoleAssignments gets all role assignments for the subscription

type RoleDefinitionsClient

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

RoleDefinitionsClient provides role definitions

func NewRoleDefinitionClient

func NewRoleDefinitionClient(authorizer autorest.Authorizer, subscriptionId string) *RoleDefinitionsClient

NewRoleDefinitionClient creates a new 'RoleDefinitionsClient' instance

func (*RoleDefinitionsClient) ListRoleDefinitions

func (r *RoleDefinitionsClient) ListRoleDefinitions(scope string) ([]authorization.RoleDefinition, error)

ListRoleDefinitions gets all role definitions that are applicable at scope and above.

Jump to

Keyboard shortcuts

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