ApiKeyCreateRequest
Namespace AgentPrism · Assembly
AgentPrism.AspNetCore.dllThe request body for creating an API key.
public sealed record ApiKeyCreateRequest : IEquatable<ApiKeyCreateRequest>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<ApiKeyCreateRequest>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”ApiKeyCreateRequest()
Section titled “ ApiKeyCreateRequest()”public ApiKeyCreateRequest()Properties
Section titled “Properties”ExpiresAt
Section titled “ ExpiresAt”Gets the expiration time. If not given, the key never expires.
public DateTimeOffset? ExpiresAt { get; init; }Property Value
Section titled “Property Value”Gets the name that lets the operator identify the key.
public string? Name { get; init; }Property Value
Section titled “Property Value”Scopes
Section titled “ Scopes”Gets the set of scopes. Cannot be empty; an unknown value is rejected.
public IReadOnlyList<ApiKeyScope>? Scopes { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(ApiKeyCreateRequest?)
Section titled “ Equals(ApiKeyCreateRequest?)”public bool Equals(ApiKeyCreateRequest? other)Parameters
Section titled “Parameters”other ApiKeyCreateRequest?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(ApiKeyCreateRequest?, ApiKeyCreateRequest?)
Section titled “ operator ==(ApiKeyCreateRequest?, ApiKeyCreateRequest?)”public static bool operator ==(ApiKeyCreateRequest? left, ApiKeyCreateRequest? right)Parameters
Section titled “Parameters”left ApiKeyCreateRequest?
right ApiKeyCreateRequest?
Returns
Section titled “Returns”operator !=(ApiKeyCreateRequest?, ApiKeyCreateRequest?)
Section titled “ operator !=(ApiKeyCreateRequest?, ApiKeyCreateRequest?)”public static bool operator !=(ApiKeyCreateRequest? left, ApiKeyCreateRequest? right)Parameters
Section titled “Parameters”left ApiKeyCreateRequest?
right ApiKeyCreateRequest?