Class: Anthropic::Models::Beta::DeploymentListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/beta/deployment_list_params.rb,
sig/anthropic/models/beta/deployment_list_params.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Deployments#list

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(agent_id: nil, created_at_gte: nil, created_at_lte: nil, include_archived: nil, limit: nil, page: nil, status: nil, betas: nil, workspace_id: nil, request_options: {}) ⇒ DeploymentListParams

Some parameter documentations has been truncated, see Anthropic::Models::Beta::DeploymentListParams for more details.

Parameters:

  • agent_id (String) (defaults to: nil) —

    Filter by agent ID.

  • created_at_gte (Time) (defaults to: nil) —

    Return deployments created at or after this time (inclusive).

  • created_at_lte (Time) (defaults to: nil) —

    Return deployments created at or before this time (inclusive).

  • include_archived (Boolean) (defaults to: nil) —

    When true, includes archived deployments. Default: false (exclude archived).

  • limit (Integer) (defaults to: nil) —

    Maximum results per page. Default 20, maximum 100.

  • page (String) (defaults to: nil) —

    Opaque pagination cursor.

  • status (Symbol, Anthropic::Models::Beta::BetaManagedAgentsDeploymentStatus) (defaults to: nil) —

    Filter by status: active or paused. Omit for both. To include archived deplo

  • betas (Array<Symbol, String, Anthropic::Models::AnthropicBeta>) (defaults to: nil) —

    This endpoint is in beta: requests must send managed-agents-2026-04-01 in this

  • workspace_id (String) (defaults to: nil) —

    Optional header to select the Workspace for this request. The value is a Workspa

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • agent_id: (String) (defaults to: nil)
  • created_at_gte: (Time) (defaults to: nil)
  • created_at_lte: (Time) (defaults to: nil)
  • include_archived: (Boolean) (defaults to: nil)
  • limit: (Integer) (defaults to: nil)
  • page: (String) (defaults to: nil)
  • status: (Anthropic::Models::Beta::beta_managed_agents_deployment_status) (defaults to: nil)
  • betas: (::Array[Anthropic::Models::anthropic_beta]) (defaults to: nil)
  • workspace_id: (String) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/beta/deployment_list_params.rb', line 72

Instance Attribute Details

#agent_id ⇒ String?

Filter by agent ID.

Parameters:

  • (String)

Returns:

  • (String, nil)


15
# File 'lib/anthropic/models/beta/deployment_list_params.rb', line 15

optional :agent_id, String

#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?

This endpoint is in beta: requests must send managed-agents-2026-04-01 in this header.

Parameters:

  • (::Array[Anthropic::Models::anthropic_beta])

Returns:



59
# File 'lib/anthropic/models/beta/deployment_list_params.rb', line 59

optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }

#created_at_gte ⇒ Time?

Return deployments created at or after this time (inclusive).

Parameters:

  • (Time)

Returns:

  • (Time, nil)


21
# File 'lib/anthropic/models/beta/deployment_list_params.rb', line 21

optional :created_at_gte, Time

#created_at_lte ⇒ Time?

Return deployments created at or before this time (inclusive).

Parameters:

  • (Time)

Returns:

  • (Time, nil)


27
# File 'lib/anthropic/models/beta/deployment_list_params.rb', line 27

optional :created_at_lte, Time

#include_archived ⇒ Boolean?

When true, includes archived deployments. Default: false (exclude archived).

Parameters:

Returns:



33
# File 'lib/anthropic/models/beta/deployment_list_params.rb', line 33

optional :include_archived, Anthropic::Internal::Type::Boolean

#limit ⇒ Integer?

Maximum results per page. Default 20, maximum 100.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


39
# File 'lib/anthropic/models/beta/deployment_list_params.rb', line 39

optional :limit, Integer

#page ⇒ String?

Opaque pagination cursor.

Parameters:

  • (String)

Returns:

  • (String, nil)


45
# File 'lib/anthropic/models/beta/deployment_list_params.rb', line 45

optional :page, String

#status ⇒ Symbol, ...

Filter by status: active or paused. Omit for both. To include archived deployments, use include_archived instead; the two cannot be combined.

Parameters:

  • (Anthropic::Models::Beta::beta_managed_agents_deployment_status)

Returns:



52
# File 'lib/anthropic/models/beta/deployment_list_params.rb', line 52

optional :status, enum: -> { Anthropic::Beta::BetaManagedAgentsDeploymentStatus }

#workspace_id ⇒ String?

Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

Parameters:

  • (String)

Returns:

  • (String, nil)


70
# File 'lib/anthropic/models/beta/deployment_list_params.rb', line 70

optional :workspace_id, String

Instance Method Details

#to_hash ⇒ { agent_id: String, created_at_gte: Time, created_at_lte: Time, include_archived: bool, limit: Integer, page: String, status: Anthropic::Models::Beta::beta_managed_agents_deployment_status, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions }

Returns:

  • ({ agent_id: String, created_at_gte: Time, created_at_lte: Time, include_archived: bool, limit: Integer, page: String, status: Anthropic::Models::Beta::beta_managed_agents_deployment_status, betas: ::Array[Anthropic::Models::anthropic_beta], workspace_id: String, request_options: Anthropic::RequestOptions })


75
76
77
78
79
80
81
82
83
84
85
86
# File 'sig/anthropic/models/beta/deployment_list_params.rbs', line 75

def to_hash: -> {
  agent_id: String,
  created_at_gte: Time,
  created_at_lte: Time,
  include_archived: bool,
  limit: Integer,
  page: String,
  status: Anthropic::Models::Beta::beta_managed_agents_deployment_status,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  workspace_id: String,
  request_options: Anthropic::RequestOptions
}