Documentation ¶
Index ¶
- type RoleAssignmentsClient
- func (r *RoleAssignmentsClient) CreateRoleAssignment(scope, roleDefinitionID, principalID string) (authorization.RoleAssignment, error)
- func (r *RoleAssignmentsClient) DeleteRoleAssignments(scope, roleAssignmentName string) (authorization.RoleAssignment, error)
- func (r *RoleAssignmentsClient) GetRoleAssignmentByAssignedTo(principalID string) ([]authorization.RoleAssignment, error)
- func (r *RoleAssignmentsClient) ListRoleAssignments() ([]authorization.RoleAssignment, error)
- type RoleDefinitionsClient
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.
Click to show internal directories.
Click to hide internal directories.