Class: Anthropic::Models::Beta::Organization::Plugins::VersionRetrieveParams

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

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::Plugins::Versions#retrieve

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(plugin_id:, version:, organization_id: nil, betas: nil, request_options: {}) ⇒ VersionRetrieveParams

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

Parameters:

  • plugin_id (String) —

    ID of the Plugin (prefixed plugin_).

  • version (String) —

    ID of the Plugin Version (prefixed pluginver_), or latest for the newest one

  • organization_id (String, nil) (defaults to: nil) —

    For a read:org_audit or read:compliance_org_data key created for all of a pa

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

    This endpoint is in beta: requests must send ce-plugins-2026-09-01 in this hea

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • plugin_id: (String)
  • version: (String)
  • organization_id: (String, nil) (defaults to: nil)
  • betas: (::Array[Anthropic::Models::anthropic_beta]) (defaults to: nil)
  • request_options: (Anthropic::request_opts) (defaults to: {})


# File 'lib/anthropic/models/beta/organization/plugins/version_retrieve_params.rb', line 46

Instance Attribute Details

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

This endpoint is in beta: requests must send ce-plugins-2026-09-01 in this header.

Parameters:

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

Returns:



44
# File 'lib/anthropic/models/beta/organization/plugins/version_retrieve_params.rb', line 44

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

#organization_id ⇒ String?

For a read:org_audit or read:compliance_org_data key created for all of a parent organization's linked organizations: a child organization of that parent to read instead of the organization the key was created in, given as the organization's UUID or its org_-prefixed ID. A value that is neither returns a 400; an organization that is not a child of the key's parent, or where the Plugins API is not available, returns a 404. Any other key may pass only its own organization's ID here; another organization returns a 404. A key with no organization of its own must always pass organization_id.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


37
# File 'lib/anthropic/models/beta/organization/plugins/version_retrieve_params.rb', line 37

optional :organization_id, String, nil?: true

#plugin_id ⇒ String

ID of the Plugin (prefixed plugin_).

Parameters:

  • value (String)

Returns:

  • (String)


17
# File 'lib/anthropic/models/beta/organization/plugins/version_retrieve_params.rb', line 17

required :plugin_id, String

#version ⇒ String

ID of the Plugin Version (prefixed pluginver_), or latest for the newest one.

Parameters:

  • value (String)

Returns:

  • (String)


24
# File 'lib/anthropic/models/beta/organization/plugins/version_retrieve_params.rb', line 24

required :version, String

Instance Method Details

#to_hash ⇒ { plugin_id: String, version: String, organization_id: String?, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }

Returns:

  • ({ plugin_id: String, version: String, organization_id: String?, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions })


39
40
41
42
43
44
45
# File 'sig/anthropic/models/beta/organization/plugins/version_retrieve_params.rbs', line 39

def to_hash: -> {
  plugin_id: String,
  version: String,
  organization_id: String?,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  request_options: Anthropic::RequestOptions
}