Table of Contents

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 string

The name of the resource type.

resourceType Type

The 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

List<ResourceTypeAction>

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

List<ResourceTypeAllowedTypes>

ResourceType

The object type of the resource type.

public Type ResourceType { get; set; }

Property Value

Type

ResourceTypeName

The name of the resource type.

public string ResourceTypeName { get; set; }

Property Value

string

SubTypes

The dictionary of resource descriptors specifying the resource's allowed subtypes.

public Dictionary<string, ResourceTypeDescriptor> SubTypes { get; set; }

Property Value

Dictionary<string, ResourceTypeDescriptor>

Methods

TypeAllowedForHttpGet(Type)

Indicates whether the resource type allows the the retrieval of the specified type.

public bool TypeAllowedForHttpGet(Type type)

Parameters

type Type

The Type being checked.

Returns

bool

true is the specified type can be retrieved, false otherwise.