Table of Contents

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

List<string>

Authorized

Gets or sets a value indicating whether the resource path is authorized.

[JsonPropertyName("authorized")]
public bool Authorized { get; set; }

Property Value

bool

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

List<string>

ResourceName

Gets or sets the name of the resource that was authorized.

[JsonPropertyName("resource_name")]
public string? ResourceName { get; set; }

Property Value

string

ResourcePath

Gets or sets the resource path that was authorized.

[JsonPropertyName("resource_path")]
public required string ResourcePath { get; set; }

Property Value

string

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

List<string>

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

Dictionary<string, ResourcePathAuthorizationResult>

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.