securityroles

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 7 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 interface {
	DeleteSecurityRoleAssignment(ctx context.Context, args *DeleteSecurityRoleAssignmentArgs) error
	ListSecurityRoleDefinitions(ctx context.Context, args *ListSecurityRoleDefinitionsArgs) (*[]SecurityRoleDefinition, error)
	ListSecurityRoleAssignments(ctx context.Context, args *ListSecurityRoleAssignmentsArgs) (*[]SecurityRoleAssignment, error)
	GetSecurityRoleAssignment(ctx context.Context, args *GetSecurityRoleAssignmentArgs) (*SecurityRoleAssignment, error)
	SetSecurityRoleAssignment(ctx context.Context, args *SetSecurityRoleAssignmentArgs) error
}

func NewClient

func NewClient(ctx context.Context, connection *azuredevops.Connection) Client

type ClientImpl

type ClientImpl struct {
	Client azuredevops.Client
}

func (*ClientImpl) DeleteSecurityRoleAssignment

func (client *ClientImpl) DeleteSecurityRoleAssignment(ctx context.Context, args *DeleteSecurityRoleAssignmentArgs) error

func (*ClientImpl) GetSecurityRoleAssignment

func (client *ClientImpl) GetSecurityRoleAssignment(ctx context.Context, args *GetSecurityRoleAssignmentArgs) (*SecurityRoleAssignment, error)

func (*ClientImpl) ListSecurityRoleAssignments

func (client *ClientImpl) ListSecurityRoleAssignments(ctx context.Context, args *ListSecurityRoleAssignmentsArgs) (*[]SecurityRoleAssignment, error)

func (*ClientImpl) ListSecurityRoleDefinitions

func (client *ClientImpl) ListSecurityRoleDefinitions(ctx context.Context, args *ListSecurityRoleDefinitionsArgs) (*[]SecurityRoleDefinition, error)

func (*ClientImpl) SetSecurityRoleAssignment

func (client *ClientImpl) SetSecurityRoleAssignment(ctx context.Context, args *SetSecurityRoleAssignmentArgs) error

type DeleteSecurityRoleAssignmentArgs

type DeleteSecurityRoleAssignmentArgs struct {
	Scope      *string
	ResourceId *string
	IdentityId *uuid.UUID
}

Arguments for the SetSecurityRoleAssignment function

type GetSecurityRoleAssignmentArgs

type GetSecurityRoleAssignmentArgs struct {
	Scope      *string
	ResourceId *string
	IdentityId *uuid.UUID
}

Arguments for the GetSecurityRoleAssignmentArgs function

type ListSecurityRoleAssignmentsArgs

type ListSecurityRoleAssignmentsArgs struct {
	Scope      *string
	ResourceId *string
}

Arguments for the ListSecurityRoleAssignmentsArgs function

type ListSecurityRoleDefinitionsArgs

type ListSecurityRoleDefinitionsArgs struct {
	Scope *string
}

Arguments for the ListSecurityRoleDefinitions function

type SecurityRoleAssignment

type SecurityRoleAssignment struct {
	Identity          *SecurityRoleIdentity   `json:"identity"`
	Role              *SecurityRoleDefinition `json:"role"`
	Access            *string                 `json:"access"`
	AccessDisplayName *string                 `json:"accessDisplayName"`
}

type SecurityRoleDefinition

type SecurityRoleDefinition struct {
	DisplayName      *string `json:"displayName"`
	Name             *string `json:"name"`
	AllowPermissions *int    `json:"allowPermissions"`
	DenyPermissions  *int    `json:"denyPermissions"`
	Identifier       *string `json:"identifier"`
	Description      *string `json:"description"`
	Scope            *string `json:"scope"`
}

type SecurityRoleIdentity

type SecurityRoleIdentity struct {
	DisplayName *string `json:"displayName"`
	ID          *string `json:"id"`
	UniqueName  *string `json:"uniqueName"`
}

type SetRoleAssignmentPayload

type SetRoleAssignmentPayload struct {
	UserID   *uuid.UUID `json:"userId"`
	RoleName *string    `json:"roleName"`
}

type SetSecurityRoleAssignmentArgs

type SetSecurityRoleAssignmentArgs struct {
	Scope      *string
	ResourceId *string
	IdentityId *uuid.UUID
	RoleName   *string
}

Arguments for the SetSecurityRoleAssignment function

Jump to

Keyboard shortcuts

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