Class BetaManagedAgentsDeployment
-
- All Implemented Interfaces:
public final class BetaManagedAgentsDeploymentA deployment is a configured instance of an agent — it binds the agent to everything needed to run it autonomously: an environment, credentials, initial events, and an optional schedule.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsDeployment.BuilderA builder for BetaManagedAgentsDeployment.
public final classBetaManagedAgentsDeployment.MetadataArbitrary key-value metadata. Maximum 16 pairs.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this deployment. final BetaManagedAgentsAgentReferenceagent()Reference to the agent this deployment runs, resolved to a concrete version. final Optional<OffsetDateTime>archivedAt()Time the deployment was archived. final OffsetDateTimecreatedAt()Time the deployment was created. final Optional<String>description()Description of what the deployment does. final StringenvironmentId()ID of the environmentwhere sessions run.final List<BetaManagedAgentsDeploymentInitialEvent>initialEvents()Events sent to each session immediately after creation. final BetaManagedAgentsDeployment.Metadatametadata()Arbitrary key-value metadata. final Stringname()Human-readable name. final Optional<BetaManagedAgentsDeploymentPausedReason>pausedReason()Why the deployment is paused.final List<BetaManagedAgentsSessionResourceConfig>resources()Resources attached to sessions created from this deployment. final Optional<BetaManagedAgentsSchedule>schedule()Recurring cron schedule. final BetaManagedAgentsDeploymentStatusstatus()Computed status of the deployment: activeorpaused.final OffsetDateTimeupdatedAt()Time the deployment was last updated. final List<String>vaultIds()Vault IDs supplying stored credentials for sessions created from this deployment. final Optional<BetaManagedAgentsBudgetLimit>budget()Spend ceiling stamped onto each session created from this deployment. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("deployment")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaManagedAgentsAgentReference>_agent()Returns the raw JSON value of agent. final JsonField<OffsetDateTime>_archivedAt()Returns the raw JSON value of archivedAt. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. 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<BetaManagedAgentsDeploymentInitialEvent>>_initialEvents()Returns the raw JSON value of initialEvents. final JsonField<BetaManagedAgentsDeployment.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<BetaManagedAgentsDeploymentPausedReason>_pausedReason()Returns the raw JSON value of pausedReason. final JsonField<List<BetaManagedAgentsSessionResourceConfig>>_resources()Returns the raw JSON value of resources. final JsonField<BetaManagedAgentsSchedule>_schedule()Returns the raw JSON value of schedule. final JsonField<BetaManagedAgentsDeploymentStatus>_status()Returns the raw JSON value of status. final JsonField<OffsetDateTime>_updatedAt()Returns the raw JSON value of updatedAt. final JsonField<List<String>>_vaultIds()Returns the raw JSON value of vaultIds. final JsonField<BetaManagedAgentsBudgetLimit>_budget()Returns the raw JSON value of budget. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsDeployment.BuildertoBuilder()final BetaManagedAgentsDeploymentvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsDeployment.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsDeployment. -
-
Method Detail
-
agent
final BetaManagedAgentsAgentReference agent()
Reference to the agent this deployment runs, resolved to a concrete version.
-
archivedAt
final Optional<OffsetDateTime> archivedAt()
Time the deployment was archived. Null if not archived.
-
createdAt
final OffsetDateTime createdAt()
Time the deployment was created.
-
description
final Optional<String> description()
Description of what the deployment does.
-
environmentId
final String environmentId()
ID of the
environmentwhere sessions run.
-
initialEvents
final List<BetaManagedAgentsDeploymentInitialEvent> initialEvents()
Events sent to each session immediately after creation.
-
metadata
final BetaManagedAgentsDeployment.Metadata metadata()
Arbitrary key-value metadata. Maximum 16 pairs.
-
pausedReason
final Optional<BetaManagedAgentsDeploymentPausedReason> pausedReason()
Why the deployment is
paused. Non-null exactly whenstatusispaused; null otherwise.
-
resources
final List<BetaManagedAgentsSessionResourceConfig> resources()
Resources attached to sessions created from this deployment. Echoes the input minus write-only credentials.
-
schedule
final Optional<BetaManagedAgentsSchedule> schedule()
Recurring cron schedule. Presence enables scheduled execution; null means manual-only. Includes computed timestamps (next fire times, last run) on the cron variant.
-
status
final BetaManagedAgentsDeploymentStatus status()
Computed status of the deployment:
activeorpaused. Archived deployments reportactivewitharchived_atset.
-
updatedAt
final OffsetDateTime updatedAt()
Time the deployment was last updated.
-
vaultIds
final List<String> vaultIds()
Vault IDs supplying stored credentials for sessions created from this deployment.
-
budget
final Optional<BetaManagedAgentsBudgetLimit> budget()
Spend ceiling stamped onto each session created from this deployment. Absent when no budget is set.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("deployment")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaManagedAgentsAgentReference> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_archivedAt
final JsonField<OffsetDateTime> _archivedAt()
Returns the raw JSON value of archivedAt.
Unlike archivedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, 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<BetaManagedAgentsDeploymentInitialEvent>> _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<BetaManagedAgentsDeployment.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.
-
_pausedReason
final JsonField<BetaManagedAgentsDeploymentPausedReason> _pausedReason()
Returns the raw JSON value of pausedReason.
Unlike pausedReason, this method doesn't throw if the JSON field has an unexpected type.
-
_resources
final JsonField<List<BetaManagedAgentsSessionResourceConfig>> _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<BetaManagedAgentsSchedule> _schedule()
Returns the raw JSON value of schedule.
Unlike schedule, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<BetaManagedAgentsDeploymentStatus> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<OffsetDateTime> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, 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.
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsDeployment.Builder toBuilder()
-
validate
final BetaManagedAgentsDeployment 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 BetaManagedAgentsDeployment.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsDeployment.
The following fields are required:
.id() .agent() .archivedAt() .createdAt() .description() .environmentId() .initialEvents() .metadata() .name() .pausedReason() .resources() .schedule() .status() .updatedAt() .vaultIds()
-
-
-
-