Class ResourceTypeDescriptor
- Namespace
- FoundationaLLM.Common.Models.ResourceProviders
- Assembly
- FoundationaLLM.Common.dll
Provides details about a resource type managed by a resource provider.
public class ResourceTypeDescriptor
- Inheritance
-
ResourceTypeDescriptor
- Inherited Members
- Extension Methods
Constructors
ResourceTypeDescriptor(string, Type)
Provides details about a resource type managed by a resource provider.
public ResourceTypeDescriptor(string resourceTypeName, Type resourceType)
Parameters
resourceTypeName
stringThe name of the resource type.
resourceType
TypeThe object type of the resource type.
Properties
Actions
The list of actions supported by the resource type.
public List<ResourceTypeAction> Actions { get; set; }
Property Value
AllowedTypes
The list of ResourceTypeAllowedTypes specifying which body and return types are allowed for various HTTP methods.
public List<ResourceTypeAllowedTypes> AllowedTypes { get; set; }
Property Value
ResourceType
The object type of the resource type.
public Type ResourceType { get; set; }
Property Value
ResourceTypeName
The name of the resource type.
public string ResourceTypeName { get; set; }
Property Value
SubTypes
The dictionary of resource descriptors specifying the resource's allowed subtypes.
public Dictionary<string, ResourceTypeDescriptor> SubTypes { get; set; }
Property Value
Methods
TypeAllowedForHttpGet(Type)
Indicates whether the resource type allows the the retrieval of the specified type.
public bool TypeAllowedForHttpGet(Type type)