Class ResourcePathAuthorizationResult
- Namespace
- FoundationaLLM.Common.Models.Authorization
- Assembly
- FoundationaLLM.Common.dll
Represents the result of a resource path authorization request.
public class ResourcePathAuthorizationResult
- Inheritance
-
ResourcePathAuthorizationResult
- Inherited Members
- Extension Methods
Properties
Actions
Gets or sets the list of authorizable actions assigned to the resource path.
[JsonPropertyName("actions")]
public List<string> Actions { get; set; }
Property Value
Authorized
Gets or sets a value indicating whether the resource path is authorized.
[JsonPropertyName("authorized")]
public bool Authorized { get; set; }
Property Value
PolicyDefinitionIds
Gets or sets the list of policy definition IDs that are associated with the resource path.
[JsonPropertyName("policy_definition_ids")]
public List<string> PolicyDefinitionIds { get; set; }
Property Value
ResourceName
Gets or sets the name of the resource that was authorized.
[JsonPropertyName("resource_name")]
public string? ResourceName { get; set; }
Property Value
ResourcePath
Gets or sets the resource path that was authorized.
[JsonPropertyName("resource_path")]
public required string ResourcePath { get; set; }
Property Value
Roles
Gets or sets the list of roles that authorize the action for the resource path.
[JsonPropertyName("roles")]
public List<string> Roles { get; set; }
Property Value
Remarks
The list contains the display names of the roles (e.g., Reader, Contributor, Owner, etc.).
SubordinateResourcePathsAuthorizationResults
Gets or sets the dictionary of ResourcePathAuthorizationResult objects representing authorization results for subordinate resource paths. They keys of the dictionary are the resource names.
[JsonPropertyName("subordinate_resource_paths_authorization_results")]
public Dictionary<string, ResourcePathAuthorizationResult> SubordinateResourcePathsAuthorizationResults { get; set; }
Property Value
Remarks
This dictionary will only contain values if the resource path in ResourcePath is
a resource type path and ExpandResourceTypePaths
was set to true
on the request that generated this result.