public class ApiKey extends ExternalizableAbstractModel implements Serializable, com.nutanix.dp1.iam.deserializers.IamObjectTypeTypedObject
Modifier and Type | Field and Description |
---|---|
ApiKeyCustomOptions |
customOptions |
@Pattern(regexp="^[^<>;()&+%/\\\\\"`]*$") @Size(max=1000) String |
description
Brief description of the API Key.
|
OffsetDateTime |
expiryTime
The expiry time of the API Key.
|
@Pattern(regexp="^[^<>;\'()&+%/\\\\\"`]*$") @Size(min=1,max=255) String |
name
Identifier for the API Key in the form of a name.
|
@Size(min=0,max=50) List<String> |
scope
An optional set of audiences for the API key, meant to restrict its access to APIs.
|
ApiKeyStatusType |
status |
extId
Constructor and Description |
---|
ApiKey() |
ApiKey(String tenantId,
String extId,
List<ApiLink> links,
String name,
String description,
List<String> scope,
ApiKeyCustomOptions customOptions,
String apiKey,
ApiKeyStatusType status,
OffsetDateTime createdTime,
String createdBy,
OffsetDateTime lastUsedTime,
OffsetDateTime expiryTime) |
Modifier and Type | Method and Description |
---|---|
void |
setApiKey(String apiKey)
The actual API key value, returned only during creation.
|
void |
setCreatedBy(String createdBy)
User or Service who created the API Key.
|
void |
setCreatedTime(OffsetDateTime createdTime)
The creation time of the API Key.
|
void |
setLastUsedTime(OffsetDateTime lastUsedTime)
The time when the API key was last used.
|
setLinks
setTenantId
@Pattern(regexp="^[^<>;\'()&+%/\\\\\"`]*$") @Size(min=1, max=255) public @Pattern(regexp="^[^<>;\'()&+%/\\\\\"`]*$") @Size(min=1,max=255) String name
@Pattern(regexp="^[^<>;()&+%/\\\\\"`]*$") @Size(max=1000) public @Pattern(regexp="^[^<>;()&+%/\\\\\"`]*$") @Size(max=1000) String description
@Size(min=0, max=50) public @Size(min=0,max=50) List<String> scope
public ApiKeyCustomOptions customOptions
public ApiKeyStatusType status
public OffsetDateTime expiryTime
public ApiKey()
public ApiKey(String tenantId, String extId, List<ApiLink> links, String name, String description, List<String> scope, ApiKeyCustomOptions customOptions, String apiKey, ApiKeyStatusType status, OffsetDateTime createdTime, String createdBy, OffsetDateTime lastUsedTime, OffsetDateTime expiryTime)
public void setApiKey(String apiKey)
public void setCreatedTime(OffsetDateTime createdTime)
public void setCreatedBy(String createdBy)
public void setLastUsedTime(OffsetDateTime lastUsedTime)
Copyright © 2024. All rights reserved.