Class: Anthropic::Models::Beta::Organization::BetaPluginMarketplaceValidationPluginErrorObject

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

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(error:, error_code:, name:) ⇒ BetaPluginMarketplaceValidationPluginErrorObject

Returns a new instance of BetaPluginMarketplaceValidationPluginErrorObject.

Parameters:

  • error (String) —

    Why the plugin would be skipped by a synchronization.

  • error_code (String) —

    A stable identifier for the reason — the value to branch on.

  • name (String) —

    The plugin's name, as its entry in marketplace.json declares it.

  • error: (String)
  • error_code: (String)
  • name: (String)


# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rb', line 26

Instance Attribute Details

#error ⇒ String

Why the plugin would be skipped by a synchronization.

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rb', line 12

required :error, String

#error_code ⇒ String

A stable identifier for the reason — the value to branch on.

Parameters:

  • value (String)

Returns:

  • (String)


18
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rb', line 18

required :error_code, String

#name ⇒ String

The plugin's name, as its entry in marketplace.json declares it.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :name, String

Instance Method Details

#to_hash ⇒ { error: String, error_code: String, name: String }

Returns:

  • ({ error: String, error_code: String, name: String })


21
# File 'sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_plugin_error_object.rbs', line 21

def to_hash: -> { error: String, error_code: String, name: String }