Class: Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion
- Defined in:
- lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb,
sig/anthropic/models/beta/organization/plugins/beta_plugin_version.rbs
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#components ⇒ Array<Anthropic::Models::Beta::Organization::BetaPluginComponent>?
What the version contains; null when not enumerated.
-
#content_scan ⇒ Anthropic::Models::Beta::Organization::BetaPluginContentScan?
This version's content scan; null when it has not been scanned.
-
#created_at ⇒ Time
RFC 3339.
-
#created_by ⇒ Anthropic::Models::Beta::Organization::BetaPluginUserActor, ...
Who uploaded this version; null when not recorded.
-
#description ⇒ String?
The manifest's description; null when it declares none.
-
#display_name ⇒ String?
The manifest's display name; null when it declares none.
-
#id ⇒ String
The version's ID.
-
#manifest_version ⇒ String?
The manifest's
version, normalized for display: one leadingvorVis dropped, and the result is returned only if it is 1 to 64 characters, starts with a digit, and uses only ASCII letters, digits,.,+, and-; otherwisenull. -
#plugin_id ⇒ String
The Plugin's ID.
-
#reach ⇒ Symbol, ...
How far the version reaches:
remote,privileged,contained, ornull, as defined on the Plugin'sreach. -
#release_notes ⇒ String?
As supplied with the upload; null when none were supplied.
-
#type ⇒ Symbol, :plugin_version
Always
plugin_version.
Instance Method Summary collapse
-
#initialize(id:, components:, content_scan:, created_at:, created_by:, description:, display_name:, manifest_version:, plugin_id:, reach:, release_notes:, type: :plugin_version) ⇒ BetaPluginVersion
constructor
Some parameter documentations has been truncated, see BetaPluginVersion for more details.
- #to_hash ⇒ { id: String, components: ::Array[Anthropic::Beta::Organization::BetaPluginComponent]?, content_scan: Anthropic::Beta::Organization::BetaPluginContentScan?, created_at: Time, created_by: Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion::created_by?, description: String?, display_name: String?, manifest_version: String?, plugin_id: String, reach: Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion::reach?, release_notes: String?, type: :plugin_version }
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(id:, components:, content_scan:, created_at:, created_by:, description:, display_name:, manifest_version:, plugin_id:, reach:, release_notes:, type: :plugin_version) ⇒ BetaPluginVersion
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion for more details.
|
|
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 104
|
Instance Attribute Details
#components ⇒ Array<Anthropic::Models::Beta::Organization::BetaPluginComponent>?
What the version contains; null when not enumerated.
20 21 22 23 24 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 20 required :components, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::Organization::BetaPluginComponent] }, nil?: true |
#content_scan ⇒ Anthropic::Models::Beta::Organization::BetaPluginContentScan?
This version's content scan; null when it has not been scanned.
30 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 30 required :content_scan, -> { Anthropic::Beta::Organization::BetaPluginContentScan }, nil?: true |
#created_at ⇒ Time
RFC 3339.
36 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 36 required :created_at, Time |
#created_by ⇒ Anthropic::Models::Beta::Organization::BetaPluginUserActor, ...
Who uploaded this version; null when not recorded.
42 43 44 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 42 required :created_by, union: -> { Anthropic::Beta::Organization::Plugins::BetaPluginVersion::CreatedBy }, nil?: true |
#description ⇒ String?
The manifest's description; null when it declares none. The value can be longer
than 500 characters, the limit on description in an uploaded manifest. A
description that the manifest takes from a SKILL.md is cut to its first 500
characters. So if the manifest's description is the first 500 characters of
exactly one distinct skill description in components, that skill
description is returned instead.
55 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 55 required :description, String, nil?: true |
#display_name ⇒ String?
The manifest's display name; null when it declares none.
61 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 61 required :display_name, String, nil?: true |
#id ⇒ String
The version's ID.
14 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 14 required :id, String |
#manifest_version ⇒ String?
The manifest's version, normalized for display: one leading v or V is
dropped, and the result is returned only if it is 1 to 64 characters, starts
with a digit, and uses only ASCII letters, digits, ., +, and -; otherwise
null. For example, "v1.4.0" is returned as "1.4.0", and "latest" as
null. For a synchronized plugin, the version of its marketplace.json entry
can take the place of the manifest's version. It is also null for a version
stored before claude.ai began recording this field (August 2026).
73 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 73 required :manifest_version, String, nil?: true |
#plugin_id ⇒ String
The Plugin's ID.
79 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 79 required :plugin_id, String |
#reach ⇒ Symbol, ...
How far the version reaches: remote, privileged, contained, or null, as
defined on the Plugin's reach.
86 87 88 89 90 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 86 required :reach, enum: -> { Anthropic::Beta::Organization::Plugins::BetaPluginVersion::Reach }, nil?: true |
#release_notes ⇒ String?
As supplied with the upload; null when none were supplied.
96 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 96 required :release_notes, String, nil?: true |
#type ⇒ Symbol, :plugin_version
Always plugin_version.
102 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 102 required :type, const: :plugin_version |
Instance Method Details
#to_hash ⇒ { id: String, components: ::Array[Anthropic::Beta::Organization::BetaPluginComponent]?, content_scan: Anthropic::Beta::Organization::BetaPluginContentScan?, created_at: Time, created_by: Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion::created_by?, description: String?, display_name: String?, manifest_version: String?, plugin_id: String, reach: Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion::reach?, release_notes: String?, type: :plugin_version }
62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'sig/anthropic/models/beta/organization/plugins/beta_plugin_version.rbs', line 62
def to_hash: -> {
id: String,
components: ::Array[Anthropic::Beta::Organization::BetaPluginComponent]?,
content_scan: Anthropic::Beta::Organization::BetaPluginContentScan?,
created_at: Time,
created_by: Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion::created_by?,
description: String?,
display_name: String?,
manifest_version: String?,
plugin_id: String,
reach: Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion::reach?,
release_notes: String?,
type: :plugin_version
}
|