Table of Contents

Class ResourceTypeAction

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

Provides details about a resource type action.

public record ResourceTypeAction : IEquatable<ResourceTypeAction>
Inheritance
ResourceTypeAction
Implements
Inherited Members
Extension Methods

Constructors

ResourceTypeAction(string, bool, bool, List<ResourceTypeAllowedTypes>)

Provides details about a resource type action.

public ResourceTypeAction(string Name, bool AllowedOnResource, bool AllowedOnResourceType, List<ResourceTypeAllowedTypes> AllowedTypes)

Parameters

Name string

The name of the action.

AllowedOnResource bool

Indicates whether the action can be executed on individual resources.

AllowedOnResourceType bool

Indicates whether the action can be executed on the resource type itself.

AllowedTypes List<ResourceTypeAllowedTypes>

The list of ResourceTypeAllowedTypes specifying which body and return types are allowed for various HTTP methods.

Properties

AllowedOnResource

Indicates whether the action can be executed on individual resources.

public bool AllowedOnResource { get; init; }

Property Value

bool

AllowedOnResourceType

Indicates whether the action can be executed on the resource type itself.

public bool AllowedOnResourceType { get; init; }

Property Value

bool

AllowedTypes

The list of ResourceTypeAllowedTypes specifying which body and return types are allowed for various HTTP methods.

public List<ResourceTypeAllowedTypes> AllowedTypes { get; init; }

Property Value

List<ResourceTypeAllowedTypes>

Name

The name of the action.

public string Name { get; init; }

Property Value

string