Skip to content

ApiKeyCreateRequest

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

The request body for creating an API key.

public sealed record ApiKeyCreateRequest : IEquatable<ApiKeyCreateRequest>

objectApiKeyCreateRequest

IEquatable<ApiKeyCreateRequest>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

public ApiKeyCreateRequest()

Gets the expiration time. If not given, the key never expires.

public DateTimeOffset? ExpiresAt { get; init; }

DateTimeOffset?

Gets the name that lets the operator identify the key.

public string? Name { get; init; }

string?

Gets the set of scopes. Cannot be empty; an unknown value is rejected.

public IReadOnlyList<ApiKeyScope>? Scopes { get; init; }

IReadOnlyList<ApiKeyScope>?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(ApiKeyCreateRequest? other)

other ApiKeyCreateRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(ApiKeyCreateRequest?, ApiKeyCreateRequest?)

Section titled “ operator ==(ApiKeyCreateRequest?, ApiKeyCreateRequest?)”
public static bool operator ==(ApiKeyCreateRequest? left, ApiKeyCreateRequest? right)

left ApiKeyCreateRequest?

right ApiKeyCreateRequest?

bool

operator !=(ApiKeyCreateRequest?, ApiKeyCreateRequest?)

Section titled “ operator !=(ApiKeyCreateRequest?, ApiKeyCreateRequest?)”
public static bool operator !=(ApiKeyCreateRequest? left, ApiKeyCreateRequest? right)

left ApiKeyCreateRequest?

right ApiKeyCreateRequest?

bool