discontinuedPackage thingsboard_pe_client has been discontinued and replaced by thingsboard_client.

ApiKeyInfo class abstract

A JSON value representing the API key.

Properties:

  • id - JSON object with the API Key Id. Specify this field to update the API Key. Referencing non-existing API Key Id will cause error. Omit this field to create new API Key.
  • createdTime - Entity creation timestamp in milliseconds since Unix epoch
  • tenantId - JSON object with Tenant Id. Tenant Id of the API key cannot be changed.
  • userId - JSON object with User Id. User Id of the API key cannot be changed.
  • expirationTime - Expiration time of the API key.
  • description - API Key description.
  • enabled - Enabled/disabled API key.
  • expired - Indicates if the API key is expired based on current time. Returns false if expirationTime is 0 (no expiry).
Annotations
  • @BuiltValue.new()

Constructors

ApiKeyInfo([void updates(ApiKeyInfoBuilder b)])
factory

Properties

createdTime → int?
Entity creation timestamp in milliseconds since Unix epoch
no setter
description → String
API Key description.
no setter
enabled → bool?
Enabled/disabled API key.
no setter
expirationTime → int?
Expiration time of the API key.
no setter
expired → bool?
Indicates if the API key is expired based on current time. Returns false if expirationTime is 0 (no expiry).
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → ApiKeyId?
JSON object with the API Key Id. Specify this field to update the API Key. Referencing non-existing API Key Id will cause error. Omit this field to create new API Key.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tenantId → TenantId?
JSON object with Tenant Id. Tenant Id of the API key cannot be changed.
no setter
userId → UserId?
JSON object with User Id. User Id of the API key cannot be changed.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(ApiKeyInfoBuilder)) → ApiKeyInfo
Rebuilds the instance.
inherited
toBuilder() → ApiKeyInfoBuilder
Converts the instance to a builder B.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

serializer → Serializer<ApiKeyInfo>
no setter