Class: Anthropic::Models::Beta::Organization::PluginMarketplaceValidateRepositoryParams

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

Overview

See Also:

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

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(repository_url:, ref: nil, betas: nil, request_options: {}) ⇒ PluginMarketplaceValidateRepositoryParams

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

Parameters:

  • repository_url (String) —

    The https:// URL of a public repository on github.com that holds the marketpla

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

    The branch to validate the tip of, or the full 40-character SHA of the commit to

  • 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: {})
  • repository_url: (String)
  • ref: (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/plugin_marketplace_validate_repository_params.rb', line 42

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:



40
# File 'lib/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rb', line 40

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

#ref ⇒ String?

The branch to validate the tip of, or the full 40-character SHA of the commit to validate. When omitted, the branch a synchronization would read (usually the repository's default branch); if that is not the default branch, the report's ref says which branch was read. An empty string, a value longer than 255 characters, or one that contains .. or a character other than ASCII letters, digits, ., _, -, +, and /, is a 400. Any other value that is not a 40-character SHA is read as a branch name; if the repository has no such branch, the response is a report with valid: false, not a 400.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


33
# File 'lib/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rb', line 33

optional :ref, String, nil?: true

#repository_url ⇒ String

The https:// URL of a public repository on github.com that holds the marketplace. A URL longer than 2,048 characters, on any other host or scheme, with a port other than 443 or 80, with credentials in it, or that does not name exactly owner/repo (a trailing .git or / is accepted) is a 400. A private or missing repository is reported in the response, not refused.

Parameters:

  • value (String)

Returns:

  • (String)


20
# File 'lib/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rb', line 20

required :repository_url, String

Instance Method Details

#to_hash ⇒ { repository_url: String, ref: String?, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }

Returns:

  • ({ repository_url: String, ref: String?, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions })


34
35
36
37
38
39
# File 'sig/anthropic/models/beta/organization/plugin_marketplace_validate_repository_params.rbs', line 34

def to_hash: -> {
  repository_url: String,
  ref: String?,
  betas: ::Array[Anthropic::Models::anthropic_beta],
  request_options: Anthropic::RequestOptions
}