GetApiKeyResponse class final

Annotations
  • @JsonSerializable()

Constructors

GetApiKeyResponse({String? value, required int createdAt, required List<Acl> acl, String? description, List<String>? indexes, int? maxHitsPerQuery, int? maxQueriesPerIPPerHour, String? queryParameters, List<String>? referers, int? validity})
Returns a new GetApiKeyResponse instance.
const
GetApiKeyResponse.fromJson(Map<String, dynamic> json)
factory

Properties

acl List<Acl>
Permissions associated with the key.
final
createdAt int
Timestamp of creation in milliseconds in Unix epoch time.
final
description String?
Description of an API key for you and your team members.
final
hashCode int
The hash code for this object.
no setteroverride
indexes List<String>?
Restricts this API key to a list of indices or index patterns. If the list is empty, all indices are allowed. Specify either an exact index name or a pattern with a leading or trailing wildcard character (or both). For example: - dev_* matches all indices starting with "dev_" - *_dev matches all indices ending with "_dev" - *_products_* matches all indices containing "products".
final
maxHitsPerQuery int?
Maximum number of hits this API key can retrieve in one query. If zero, no limit is enforced. > Note: Use this parameter to protect you from third-party attempts to retrieve your entire content by massively querying the index.
final
maxQueriesPerIPPerHour int?
Maximum number of API calls per hour allowed from a given IP address or user token. Each time an API call is performed with this key, a check is performed. If there were more than the specified number of calls within the last hour, the API returns an error with the status code 429 (Too Many Requests). > Note: Use this parameter to protect you from third-party attempts to retrieve your entire content by massively querying the index.
final
queryParameters String?
Force some query parameters to be applied for each query made with this API key. It's a URL-encoded query string.
final
referers List<String>?
Restrict this API key to specific referrers. If empty, all referrers are allowed. For example: - https://algolia.com/_* matches all referrers starting with "https://algolia.com/" - *.algolia.com matches all referrers ending with ".algolia.com" - *algolia.com* allows everything in the domain "algolia.com".
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validity int?
Validity duration of a key (in seconds). The key will automatically be removed after this time has expired. The default value of 0 never expires. Short-lived API keys are useful to grant temporary access to your data. For example, in mobile apps, you can't control when users update your app. So instead of encoding keys into your app as you would for a web app, you should dynamically fetch them from your mobile app's backend.
final
value String?
API key.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override