Class DeploymentUpdateParams.Body
-
- All Implemented Interfaces:
public final class DeploymentUpdateParams.BodyRequest parameters for updating a
deployment. Omit a field to preserve its current value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDeploymentUpdateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Optional<DeploymentUpdateParams.Agent>agent()Agent to deploy. final Optional<BetaManagedAgentsBudgetLimit>budget()Spend ceiling for future sessions. final Optional<String>description()Description. final Optional<String>environmentId()ID of the environmentwhere sessions run.final Optional<List<BetaManagedAgentsDeploymentInitialEventParams>>initialEvents()Initial events. final Optional<DeploymentUpdateParams.Metadata>metadata()Metadata patch. final Optional<String>name()Human-readable name. final Optional<List<DeploymentUpdateParams.Resource>>resources()Session resources. final Optional<BetaManagedAgentsScheduleParams>schedule()Cron schedule. final Optional<List<String>>vaultIds()Vault IDs. final JsonField<DeploymentUpdateParams.Agent>_agent()Returns the raw JSON value of agent. final JsonField<BetaManagedAgentsBudgetLimit>_budget()Returns the raw JSON value of budget. final JsonField<String>_description()Returns the raw JSON value of description. 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<DeploymentUpdateParams.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<List<DeploymentUpdateParams.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>_additionalProperties()final DeploymentUpdateParams.Body.BuildertoBuilder()final DeploymentUpdateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static DeploymentUpdateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
agent
final Optional<DeploymentUpdateParams.Agent> agent()
Agent to deploy. Accepts the
agentID string, which re-pins to the latest version, or anagentobject with both id and version specified. Omit to preserve. Cannot be cleared.
-
budget
final Optional<BetaManagedAgentsBudgetLimit> budget()
Spend ceiling for future sessions. Full replacement. Omit to preserve; send null to clear (sessions created afterwards are uncapped). The deployment agent's model must have a public list price, or the request is rejected; a multiagent roster is re-validated in full when each fire copies the cap, which fails closed the same way.
-
description
final Optional<String> description()
Description. Omit to preserve; send empty string or null to clear.
-
environmentId
final Optional<String> environmentId()
ID of the
environmentwhere sessions run. Omit to preserve. Cannot be cleared.
-
initialEvents
final Optional<List<BetaManagedAgentsDeploymentInitialEventParams>> initialEvents()
Initial events. Full replacement. Omit to preserve. Cannot be cleared. At least 1, maximum 50.
-
metadata
final Optional<DeploymentUpdateParams.Metadata> metadata()
Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omit the field to preserve. The stored bag is limited to 16 keys (up to 64 chars each) with values up to 512 chars.
-
name
final Optional<String> name()
Human-readable name. Must be non-empty. Omit to preserve. Cannot be cleared.
-
resources
final Optional<List<DeploymentUpdateParams.Resource>> resources()
Session resources. Full replacement. Omit to preserve; send empty array or null to clear. Maximum 500.
-
schedule
final Optional<BetaManagedAgentsScheduleParams> schedule()
Cron schedule. Full replacement. Omit to preserve; send null to clear (revert to manual-only).
-
vaultIds
final Optional<List<String>> vaultIds()
Vault IDs. Full replacement. Omit to preserve; send empty array or null to clear. Maximum 50.
-
_agent
final JsonField<DeploymentUpdateParams.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_budget
final JsonField<BetaManagedAgentsBudgetLimit> _budget()
Returns the raw JSON value of budget.
Unlike budget, 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.
-
_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.
-
_metadata
final JsonField<DeploymentUpdateParams.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, 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.
-
_resources
final JsonField<List<DeploymentUpdateParams.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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final DeploymentUpdateParams.Body.Builder toBuilder()
-
validate
final DeploymentUpdateParams.Body validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static DeploymentUpdateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
-
-
-
-