Class: Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb,
sig/anthropic/models/beta/organization/plugins/beta_plugin_version.rbs

Overview

See Also:

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

Defined Under Namespace

Modules: CreatedBy, Reach

Instance Attribute Summary collapse

Instance Method Summary collapse

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) ⇒ void

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

Parameters:



# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 93

Instance Attribute Details

#components ⇒ Array<Anthropic::Models::Beta::Organization::BetaPluginComponent>?

What the version contains; null when not enumerated.

Parameters:

  • value (::Array[Anthropic::Beta::Organization::BetaPluginComponent], nil)

Returns:



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.

Parameters:

  • value (Anthropic::Beta::Organization::BetaPluginContentScan, nil)

Returns:



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.

Parameters:

  • value (Time)

Returns:

  • (Time)


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.

Parameters:

  • value (Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion::created_by, nil)

Returns:



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.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


50
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 50

required :description, String, nil?: true

#display_name ⇒ String?

The manifest's display name; null when it declares none.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


56
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 56

required :display_name, String, nil?: true

#id ⇒ String

The version's ID.

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 14

required :id, String

#manifest_version ⇒ String?

The version string the manifest declares; null when it declares none.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


62
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 62

required :manifest_version, String, nil?: true

#plugin_id ⇒ String

The Plugin's ID.

Parameters:

  • value (String)

Returns:

  • (String)


68
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 68

required :plugin_id, String

#reach ⇒ Symbol, ...

How far the version reaches: remote, privileged or contained, as on the Plugin; null when not classifiable.

Parameters:

  • value (Anthropic::Models::Beta::Organization::Plugins::BetaPluginVersion::reach, nil)

Returns:



75
76
77
78
79
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 75

required :reach,
enum: -> {
  Anthropic::Beta::Organization::Plugins::BetaPluginVersion::Reach
},
nil?: true

#release_notes ⇒ String?

As supplied with the upload; null when none were supplied.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


85
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 85

required :release_notes, String, nil?: true

#type ⇒ Symbol, :plugin_version

Always plugin_version.

Parameters:

  • value (:plugin_version)

Returns:

  • (Symbol, :plugin_version)


91
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_version.rb', line 91

required :type, const: :plugin_version

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


62
# File 'sig/anthropic/models/beta/organization/plugins/beta_plugin_version.rbs', line 62

def to_hash: -> {