Skip to content

ApiKeyRequest ​

Namespace: MJCZone.DapperMatic.AspNetCore.Models.Dtos

Assembly: MJCZone.DapperMatic.AspNetCore

Summary ​

Asks for a new API key: its name, when it expires, and the most it may do (never more than its owner).

sealed public

Contents ​

Constructors (1) | Methods (4) | Properties (7)

Constructors ​

ApiKeyRequest ​

csharp
ApiKeyRequest()

Methods ​

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

Name ​

Gets or sets the key's name: what it is for.

Type: string?

ExpiresAt ​

Gets or sets when it stops working, or null for never (unless a maximum lifetime is set).

Type: DateTimeOffset?

ReadOnly ​

Gets or sets a value indicating whether the key only reads: rows and definitions.

Type: bool

Datasources ​

Gets the only datasources the key reaches, or none for any.

Type: List<string>

Schemas ​

Gets the only schemas the key reaches, or none for any.

Type: List<string>

Tables ​

Gets the only tables and views the key reaches, or none for any.

Type: List<string>

Limits ​

Gets more limits, as policies of no roles: what the key may do at most, with filters, checks and columns. The shortcuts above are one more such policy.

Type: List<DmPolicy>