Class AiSecretCreateParams
-
- All Implemented Interfaces:
-
com.braintrustdata.api.core.Params
public final class AiSecretCreateParams implements Params
Create a new ai_secret. If there is an existing ai_secret with the same name as the one specified in the request, will return the existing ai_secret unmodified
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classAiSecretCreateParams.Bodypublic final classAiSecretCreateParams.BuilderA builder for AiSecretCreateParams.
public final classAiSecretCreateParams.Metadata
-
Method Summary
Modifier and Type Method Description final Stringname()Name of the AI secret final Optional<AiSecretCreateParams.Metadata>metadata()final Optional<String>orgName()For nearly all users, this parameter should be unnecessary. final Optional<String>secret()Secret value. final Optional<String>type()final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<AiSecretCreateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_orgName()Returns the raw JSON value of orgName. final JsonField<String>_secret()Returns the raw JSON value of secret. final JsonField<String>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()final QueryParams_additionalQueryParams()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. final AiSecretCreateParams.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static AiSecretCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of AiSecretCreateParams. -
-
Method Detail
-
metadata
final Optional<AiSecretCreateParams.Metadata> metadata()
-
orgName
final Optional<String> orgName()
For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, you may specify the name of the organization the AI Secret belongs in.
-
secret
final Optional<String> secret()
Secret value. If omitted in a PUT request, the existing secret value will be left intact, not replaced with null.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<AiSecretCreateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_orgName
final JsonField<String> _orgName()
Returns the raw JSON value of orgName.
Unlike orgName, this method doesn't throw if the JSON field has an unexpected type.
-
_secret
final JsonField<String> _secret()
Returns the raw JSON value of secret.
Unlike secret, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<String> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
toBuilder
final AiSecretCreateParams.Builder toBuilder()
-
builder
final static AiSecretCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of AiSecretCreateParams.
The following fields are required:
.name()
-
-
-
-