Class DeploymentCreateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class DeploymentCreateParams implements Params
Create Deployment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDeploymentCreateParams.BuilderA builder for DeploymentCreateParams.
public final classDeploymentCreateParams.BodyRequest parameters for creating a
deployment.public final classDeploymentCreateParams.AgentAgent to deploy. Accepts the
agentID string, which pins the latest version, or anagentobject with both id and version specified. The agent must exist and not be archived.public final classDeploymentCreateParams.MetadataArbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.
public final classDeploymentCreateParams.ResourceUnion of resources that can be mounted into a session.
-
Method Summary
Modifier and Type Method Description final Optional<List<AnthropicBeta>>betas()Optional header to specify the beta version(s) you want to use. final DeploymentCreateParams.Agentagent()Agent to deploy. final StringenvironmentId()ID of the environmentdefining the container configuration for sessions created from this deployment.final List<BetaManagedAgentsDeploymentInitialEventParams>initialEvents()Events to send to each session immediately after creation. final Stringname()Human-readable name for the deployment. final Optional<String>description()Description of what the deployment does. final Optional<DeploymentCreateParams.Metadata>metadata()Arbitrary key-value metadata. final Optional<List<DeploymentCreateParams.Resource>>resources()Resources (e.g. final Optional<BetaManagedAgentsScheduleParams>schedule()5-field POSIX cron schedule. final Optional<List<String>>vaultIds()Vault IDs for stored credentials the agent can use during sessions created from this deployment. final JsonField<DeploymentCreateParams.Agent>_agent()Returns the raw JSON value of agent. final JsonField<String>_environmentId()Returns the raw JSON value of environmentId. final JsonField<List<BetaManagedAgentsDeploymentInitialEventParams>>_initialEvents()Returns the raw JSON value of initialEvents. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<DeploymentCreateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<List<DeploymentCreateParams.Resource>>_resources()Returns the raw JSON value of resources. final JsonField<BetaManagedAgentsScheduleParams>_schedule()Returns the raw JSON value of schedule. final JsonField<List<String>>_vaultIds()Returns the raw JSON value of vaultIds. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final DeploymentCreateParams.BuildertoBuilder()final DeploymentCreateParams.Body_body()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. Booleanequals(Object other)IntegerhashCode()StringtoString()final static DeploymentCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of DeploymentCreateParams. -
-
Method Detail
-
betas
final Optional<List<AnthropicBeta>> betas()
Optional header to specify the beta version(s) you want to use.
-
agent
final DeploymentCreateParams.Agent agent()
Agent to deploy. Accepts the
agentID string, which pins the latest version, or anagentobject with both id and version specified. The agent must exist and not be archived.
-
environmentId
final String environmentId()
ID of the
environmentdefining the container configuration for sessions created from this deployment.
-
initialEvents
final List<BetaManagedAgentsDeploymentInitialEventParams> initialEvents()
Events to send to each session immediately after creation. At least 1, maximum 50.
-
description
final Optional<String> description()
Description of what the deployment does.
-
metadata
final Optional<DeploymentCreateParams.Metadata> metadata()
Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.
-
resources
final Optional<List<DeploymentCreateParams.Resource>> resources()
Resources (e.g. repositories, files) to mount into each session's container. Maximum 500.
-
schedule
final Optional<BetaManagedAgentsScheduleParams> schedule()
5-field POSIX cron schedule. Literal wall-clock matching in the configured timezone.
-
vaultIds
final Optional<List<String>> vaultIds()
Vault IDs for stored credentials the agent can use during sessions created from this deployment. Maximum 50.
-
_agent
final JsonField<DeploymentCreateParams.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_environmentId
final JsonField<String> _environmentId()
Returns the raw JSON value of environmentId.
Unlike environmentId, this method doesn't throw if the JSON field has an unexpected type.
-
_initialEvents
final JsonField<List<BetaManagedAgentsDeploymentInitialEventParams>> _initialEvents()
Returns the raw JSON value of initialEvents.
Unlike initialEvents, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<DeploymentCreateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_resources
final JsonField<List<DeploymentCreateParams.Resource>> _resources()
Returns the raw JSON value of resources.
Unlike resources, this method doesn't throw if the JSON field has an unexpected type.
-
_schedule
final JsonField<BetaManagedAgentsScheduleParams> _schedule()
Returns the raw JSON value of schedule.
Unlike schedule, this method doesn't throw if the JSON field has an unexpected type.
-
_vaultIds
final JsonField<List<String>> _vaultIds()
Returns the raw JSON value of vaultIds.
Unlike vaultIds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final DeploymentCreateParams.Builder toBuilder()
-
_body
final DeploymentCreateParams.Body _body()
-
_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.
-
builder
final static DeploymentCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of DeploymentCreateParams.
The following fields are required:
.agent() .environmentId() .initialEvents() .name()
-
-
-
-