Package com.exoscale.sdk.model
Class CreateAiApiKeyRequest
java.lang.Object
com.exoscale.sdk.model.CreateAiApiKeyRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class CreateAiApiKeyRequest
extends Object
Request to create a new AI API key.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDeploymentsItem(AiApiKeyDeploymentRef deploymentsItem) addModelsItem(String modelsItem) allDeployments(Boolean allDeployments) deployments(Set<AiApiKeyDeploymentRef> deployments) booleanReturn true if this create-ai-api-key-request object is equal to o.Grant access to all deployments of the organization.Grant access to all public models.Allowlist of deployments.Allowlist of public model names.getName()Human-readable name for the AI API keyinthashCode()voidsetAllDeployments(Boolean allDeployments) voidsetAllModels(Boolean allModels) 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_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:
-
-
Constructor Details
-
CreateAiApiKeyRequest
public CreateAiApiKeyRequest()
-
-
Method Details
-
allModels
-
getAllModels
Grant access to all public models. Takes precedence over the models array, which is ignored when set.- Returns:
- allModels
-
setAllModels
-
name
-
getName
Human-readable name for the AI API key- Returns:
- name
-
setName
-
allDeployments
-
getAllDeployments
Grant access to all deployments of the organization. Takes precedence over the deployments array, which is ignored when set.- Returns:
- allDeployments
-
setAllDeployments
-
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
-
equals
Return true if this create-ai-api-key-request 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
-