Table of Contents

Class RoleDefinition

Namespace
FoundationaLLM.Common.Models.ResourceProviders.Authorization
Assembly
FoundationaLLM.Common.dll

Defines a security role used in FoundationaLLM RBAC

public class RoleDefinition : ResourceBase
Inheritance
RoleDefinition
Inherited Members
Extension Methods

Properties

AssignableScopes

The list of scopes at which the role can be assigned.

[JsonPropertyName("assignable_scopes")]
[JsonPropertyOrder(1)]
public List<string> AssignableScopes { get; set; }

Property Value

List<string>

Deleted

Indicates whether the resource has been logically deleted.

[JsonIgnore]
public override bool Deleted { get; set; }

Property Value

bool

Permissions

The permissions associated with the security role definition.

[JsonPropertyName("permissions")]
[JsonPropertyOrder(2)]
public List<RoleDefinitionPermissions> Permissions { get; set; }

Property Value

List<RoleDefinitionPermissions>

Methods

GetAllowedActions()

public List<string> GetAllowedActions()

Returns

List<string>