ApiKeyCreatedData
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
The event payload.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $createdAt : string
- The timestamp when the API key was created.
- $id : string
- Unique identifier of the API key.
- $lastUsedAt : string|null
- The timestamp when the API key was last used.
- $name : string
- The name of the API key.
- $obfuscatedValue : string
- The obfuscated value of the API key.
- $object : string
- Distinguishes the API key object.
- $owner : ApiKeyCreatedDataOwner
- The owner of the API key.
- $permissions : array<string|int, string>
- The permissions granted to the API key.
- $updatedAt : string
- The timestamp when the API key was last updated.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$createdAt
The timestamp when the API key was created.
public
string
$createdAt
$id
Unique identifier of the API key.
public
string
$id
$lastUsedAt
The timestamp when the API key was last used.
public
string|null
$lastUsedAt
$name
The name of the API key.
public
string
$name
$obfuscatedValue
The obfuscated value of the API key.
public
string
$obfuscatedValue
$object
Distinguishes the API key object.
public
string
$object
$owner
The owner of the API key.
public
ApiKeyCreatedDataOwner
$owner
$permissions
The permissions granted to the API key.
public
array<string|int, string>
$permissions
$updatedAt
The timestamp when the API key was last updated.
public
string
$updatedAt
Methods
__construct()
public
__construct(string $object, string $id, ApiKeyCreatedDataOwner $owner, string $name, string $obfuscatedValue, string|null $lastUsedAt, array<string|int, mixed> $permissions, string $createdAt, string $updatedAt) : mixed
Parameters
- $object : string
- $id : string
- $owner : ApiKeyCreatedDataOwner
- $name : string
- $obfuscatedValue : string
- $lastUsedAt : string|null
- $permissions : array<string|int, mixed>
- $createdAt : string
- $updatedAt : string
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>