Class: Anthropic::Models::Beta::Organization::BetaPluginMarketplaceValidationReport

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

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::PluginMarketplaces#validate_archive

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(commit_sha:, manifest_error:, manifest_error_code:, plugin_errors:, plugin_warnings:, ref:, total_plugin_count:, valid:, type: :plugin_marketplace_validation_report) ⇒ BetaPluginMarketplaceValidationReport

The outcome of validating plugin marketplace content: a report, not a stored object, so nothing in it can be retrieved afterwards.

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

Parameters:

  • commit_sha (String, nil) —

    The full SHA of the commit that was validated: for a repository, the commit that

  • manifest_error (String, nil) —

    Set when nothing could be validated: the repository or archive could not be read

  • manifest_error_code (String, nil) —

    A stable identifier for manifest_error; null when that is.

  • plugin_errors (Array<Anthropic::Models::Beta::Organization::BetaPluginMarketplaceValidationPluginErrorObject>) —

    One entry per plugin a synchronization would skip entirely, keyed by the plugin'

  • plugin_warnings (Array<Anthropic::Models::Beta::Organization::BetaPluginMarketplaceValidationPluginWarnings>) —

    One entry per plugin that would synchronize with some of its contents left out,

  • ref (String, nil) —

    For a repository, the branch that was read by name: the one requested, or else t

  • total_plugin_count (Integer) —

    How many plugins marketplace.json declares; 0 when it could not be read.

  • valid (Boolean) —

    True when marketplace.json is well-formed and no plugin would be skipped; warnin

  • type (Symbol, :plugin_marketplace_validation_report) (defaults to: :plugin_marketplace_validation_report) —

    Always plugin_marketplace_validation_report.

  • commit_sha: (String, nil)
  • manifest_error: (String, nil)
  • manifest_error_code: (String, nil)
  • plugin_errors: (::Array[Anthropic::Beta::Organization::BetaPluginMarketplaceValidationPluginErrorObject])
  • plugin_warnings: (::Array[Anthropic::Beta::Organization::BetaPluginMarketplaceValidationPluginWarnings])
  • ref: (String, nil)
  • total_plugin_count: (Integer)
  • valid: (Boolean)
  • type: (:plugin_marketplace_validation_report) (defaults to: :plugin_marketplace_validation_report)


# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rb', line 74

Instance Attribute Details

#commit_sha ⇒ String?

The full SHA of the commit that was validated: for a repository, the commit that was read; for an uploaded archive, the commit recorded in the archive's comment (as a Git host's download writes it; not verified), else null.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :commit_sha, String, nil?: true

#manifest_error ⇒ String?

Set when nothing could be validated: the repository or archive could not be read, or marketplace.json is missing, malformed or over a limit. Null otherwise.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


22
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rb', line 22

required :manifest_error, String, nil?: true

#manifest_error_code ⇒ String?

A stable identifier for manifest_error; null when that is.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


28
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rb', line 28

required :manifest_error_code, String, nil?: true

#plugin_errors ⇒ Array<Anthropic::Models::Beta::Organization::BetaPluginMarketplaceValidationPluginErrorObject>

One entry per plugin a synchronization would skip entirely, keyed by the plugin's name in marketplace.json.

Parameters:

  • value (::Array[Anthropic::Beta::Organization::BetaPluginMarketplaceValidationPluginErrorObject])

Returns:



35
36
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rb', line 35

required :plugin_errors,
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::Organization::BetaPluginMarketplaceValidationPluginErrorObject] }

#plugin_warnings ⇒ Array<Anthropic::Models::Beta::Organization::BetaPluginMarketplaceValidationPluginWarnings>

One entry per plugin that would synchronize with some of its contents left out, keyed by the plugin's name in marketplace.json.

Parameters:

  • value (::Array[Anthropic::Beta::Organization::BetaPluginMarketplaceValidationPluginWarnings])

Returns:



43
44
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rb', line 43

required :plugin_warnings,
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::Organization::BetaPluginMarketplaceValidationPluginWarnings] }

#ref ⇒ String?

For a repository, the branch that was read by name: the one requested, or else the branch a synchronization of this repository is set to read. Null when no branch is named or set and the repository's default branch was read, for a request by commit SHA, and for an uploaded archive.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


53
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rb', line 53

required :ref, String, nil?: true

#total_plugin_count ⇒ Integer

How many plugins marketplace.json declares; 0 when it could not be read.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :total_plugin_count, Integer

#type ⇒ Symbol, :plugin_marketplace_validation_report

Always plugin_marketplace_validation_report.

Parameters:

  • value (:plugin_marketplace_validation_report)

Returns:

  • (Symbol, :plugin_marketplace_validation_report)


65
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rb', line 65

required :type, const: :plugin_marketplace_validation_report

#valid ⇒ Boolean

True when marketplace.json is well-formed and no plugin would be skipped; warnings never make it false.

Parameters:

Returns:



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

required :valid, Anthropic::Internal::Type::Boolean

Instance Method Details

#to_hash ⇒ { commit_sha: String?, manifest_error: String?, manifest_error_code: String?, plugin_errors: ::Array[Anthropic::Beta::Organization::BetaPluginMarketplaceValidationPluginErrorObject], plugin_warnings: ::Array[Anthropic::Beta::Organization::BetaPluginMarketplaceValidationPluginWarnings], ref: String?, total_plugin_count: Integer, type: :plugin_marketplace_validation_report, valid: bool }

Returns:

  • ({ commit_sha: String?, manifest_error: String?, manifest_error_code: String?, plugin_errors: ::Array[Anthropic::Beta::Organization::BetaPluginMarketplaceValidationPluginErrorObject], plugin_warnings: ::Array[Anthropic::Beta::Organization::BetaPluginMarketplaceValidationPluginWarnings], ref: String?, total_plugin_count: Integer, type: :plugin_marketplace_validation_report, valid: bool })


49
50
51
52
53
54
55
56
57
58
59
# File 'sig/anthropic/models/beta/organization/beta_plugin_marketplace_validation_report.rbs', line 49

def to_hash: -> {
  commit_sha: String?,
  manifest_error: String?,
  manifest_error_code: String?,
  plugin_errors: ::Array[Anthropic::Beta::Organization::BetaPluginMarketplaceValidationPluginErrorObject],
  plugin_warnings: ::Array[Anthropic::Beta::Organization::BetaPluginMarketplaceValidationPluginWarnings],
  ref: String?,
  total_plugin_count: Integer,
  type: :plugin_marketplace_validation_report,
  valid: bool
}