Class ResourceTypeAllowedTypes
- Namespace
- FoundationaLLM.Common.Models.ResourceProviders
- Assembly
- FoundationaLLM.Common.dll
Provides details about the types that are allowed for the body and return of a specific HTTP method.
public record ResourceTypeAllowedTypes : IEquatable<ResourceTypeAllowedTypes>
- Inheritance
-
ResourceTypeAllowedTypes
- Implements
- Inherited Members
- Extension Methods
Constructors
ResourceTypeAllowedTypes(string, string, Dictionary<string, Type>, List<Type>, List<Type>)
Provides details about the types that are allowed for the body and return of a specific HTTP method.
public ResourceTypeAllowedTypes(string HttpMethod, string AuthorizableOperation, Dictionary<string, Type> AllowedParameterTypes, List<Type> AllowedBodyTypes, List<Type> AllowedReturnTypes)
Parameters
HttpMethod
stringThe name of the HTTP method. Can be one of GET, POST, PUT, PATCH, or DELETE.
AuthorizableOperation
stringThe name of the authorizable operation that is required to authorize the request.
AllowedParameterTypes
Dictionary<string, Type>The dictionary of query parameter names and types that are allowed for the method.
AllowedBodyTypes
List<Type>The list of types that are allowed as payloads for the HTTP request.
AllowedReturnTypes
List<Type>The list of types the are allowed as return types for the HTTP request.
Properties
AllowedBodyTypes
The list of types that are allowed as payloads for the HTTP request.
public List<Type> AllowedBodyTypes { get; init; }
Property Value
AllowedParameterTypes
The dictionary of query parameter names and types that are allowed for the method.
public Dictionary<string, Type> AllowedParameterTypes { get; init; }
Property Value
AllowedReturnTypes
The list of types the are allowed as return types for the HTTP request.
public List<Type> AllowedReturnTypes { get; init; }
Property Value
AuthorizableOperation
The name of the authorizable operation that is required to authorize the request.
public string AuthorizableOperation { get; init; }
Property Value
HttpMethod
The name of the HTTP method. Can be one of GET, POST, PUT, PATCH, or DELETE.
public string HttpMethod { get; init; }