Package com.exoscale.sdk.model
Class GetAiApiKeyResponse
java.lang.Object
com.exoscale.sdk.model.GetAiApiKeyResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class GetAiApiKeyResponse
extends Object
Get AI API key response
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGetAiApiKeyResponse(OffsetDateTime updatedAt, Boolean allModels, Boolean allDeployments, UUID id, Object revokedAt, OffsetDateTime createdAt) -
Method Summary
Modifier and TypeMethodDescriptionaddDeploymentsItem(AiApiKeyDeploymentRef deploymentsItem) addModelsItem(String modelsItem) deployments(Set<AiApiKeyDeploymentRef> deployments) booleanReturn true if this get-ai-api-key-response object is equal to o.True when the key has access to all deployments of the organization.True when the key has access to all public models.Creation timestampAllowlist of deployments.getId()AI API key IDAllowlist of public model names.getName()Human-readable name for the AI API keyRevocation timestamp.Last update timestampinthashCode()voidsetDeployments(Set<AiApiKeyDeploymentRef> deployments) voidvoidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
JSON_PROPERTY_ALL_MODELS
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_ALL_DEPLOYMENTS
- See Also:
-
JSON_PROPERTY_DEPLOYMENTS
- See Also:
-
JSON_PROPERTY_MODELS
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_REVOKED_AT
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
-
Constructor Details
-
GetAiApiKeyResponse
public GetAiApiKeyResponse() -
GetAiApiKeyResponse
public GetAiApiKeyResponse(OffsetDateTime updatedAt, Boolean allModels, Boolean allDeployments, UUID id, Object revokedAt, OffsetDateTime createdAt)
-
-
Method Details
-
getUpdatedAt
Last update timestamp- Returns:
- updatedAt
-
getAllModels
True when the key has access to all public models.- Returns:
- allModels
-
name
-
getName
Human-readable name for the AI API key- Returns:
- name
-
setName
-
getAllDeployments
True when the key has access to all deployments of the organization.- Returns:
- allDeployments
-
deployments
-
addDeploymentsItem
-
getDeployments
Allowlist of deployments. An empty array denies access to all deployments. Grant access to all deployments with all-deployments instead.- Returns:
- deployments
-
setDeployments
-
models
-
addModelsItem
-
getModels
Allowlist of public model names. An empty array denies access to all public models. Grant access to all public models with all-models instead.- Returns:
- models
-
setModels
-
getId
AI API key ID- Returns:
- id
-
getRevokedAt
Revocation timestamp. Null when the API key is active.- Returns:
- revokedAt
-
getCreatedAt
Creation timestamp- Returns:
- createdAt
-
equals
Return true if this get-ai-api-key-response object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-