Class UpdateAiApiKeyRequest

java.lang.Object
com.exoscale.sdk.model.UpdateAiApiKeyRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class UpdateAiApiKeyRequest extends Object
Update the models and/or deployments accessible by an AI API key. Omitted properties are left unchanged.
  • Field Details

  • Constructor Details

    • UpdateAiApiKeyRequest

      public UpdateAiApiKeyRequest()
  • Method Details

    • allModels

      public UpdateAiApiKeyRequest allModels(Boolean allModels)
    • getAllModels

      @Nullable public Boolean getAllModels()
      Grant or remove access to all public models. Takes precedence over the models array, which is ignored when set.
      Returns:
      allModels
    • setAllModels

      public void setAllModels(Boolean allModels)
    • allDeployments

      public UpdateAiApiKeyRequest allDeployments(Boolean allDeployments)
    • getAllDeployments

      @Nullable public Boolean getAllDeployments()
      Grant or remove access to all deployments of the organization. Takes precedence over the deployments array, which is ignored when set.
      Returns:
      allDeployments
    • setAllDeployments

      public void setAllDeployments(Boolean allDeployments)
    • deployments

      public UpdateAiApiKeyRequest deployments(Set<AiApiKeyDeploymentRef> deployments)
    • addDeploymentsItem

      public UpdateAiApiKeyRequest addDeploymentsItem(AiApiKeyDeploymentRef deploymentsItem)
    • getDeployments

      @Nullable public Set<AiApiKeyDeploymentRef> getDeployments()
      Allowlist of deployments. An empty array denies access to all deployments. Grant access to all deployments with all-deployments instead.
      Returns:
      deployments
    • setDeployments

      public void setDeployments(Set<AiApiKeyDeploymentRef> deployments)
    • models

      public UpdateAiApiKeyRequest models(Set<String> models)
    • addModelsItem

      public UpdateAiApiKeyRequest addModelsItem(String modelsItem)
    • getModels

      @Nullable public Set<String> 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

      public void setModels(Set<String> models)
    • equals

      public boolean equals(Object o)
      Return true if this update-ai-api-key-request object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string