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
stringThe name of the action.
AllowedOnResource
boolIndicates whether the action can be executed on individual resources.
AllowedOnResourceType
boolIndicates 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
AllowedOnResourceType
Indicates whether the action can be executed on the resource type itself.
public bool AllowedOnResourceType { get; init; }
Property Value
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
Name
The name of the action.
public string Name { get; init; }