Class: Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceConfig

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

Defined Under Namespace

Modules: Checkout

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(url:, checkout: nil, mount_path: nil, type: :github_repository) ⇒ BetaManagedAgentsGitHubRepositoryResourceConfig

A GitHub repository mounted into each session's container. The authorization token is write-only and never returned.

Parameters:

  • url (String) —

    Github URL of the repository

  • checkout (Anthropic::Models::Beta::BetaManagedAgentsBranchCheckout, Anthropic::Models::Beta::BetaManagedAgentsCommitCheckout, nil) (defaults to: nil) —

    Branch or commit to check out. Defaults to the repository's default branch.

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

    Mount path in the container. Defaults to /workspace/<repo-name>.

  • type (Symbol, :github_repository) (defaults to: :github_repository)
  • url: (String)
  • checkout: (Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceConfig::checkout, nil) (defaults to: nil)
  • mount_path: (String, nil) (defaults to: nil)
  • type: (:github_repository) (defaults to: :github_repository)


# File 'lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rb', line 32

Instance Attribute Details

#checkout ⇒ Anthropic::Models::Beta::BetaManagedAgentsBranchCheckout, ...

Branch or commit to check out. Defaults to the repository's default branch.

Parameters:

  • value (Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceConfig::checkout, nil)

Returns:



22
23
24
# File 'lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rb', line 22

optional :checkout,
union: -> { Anthropic::Beta::BetaManagedAgentsGitHubRepositoryResourceConfig::Checkout },
nil?: true

#mount_path ⇒ String?

Mount path in the container. Defaults to /workspace/<repo-name>.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


30
# File 'lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rb', line 30

optional :mount_path, String, nil?: true

#type ⇒ Symbol, :github_repository

Parameters:

  • value (:github_repository)

Returns:

  • (Symbol, :github_repository)


10
# File 'lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rb', line 10

required :type, const: :github_repository

#url ⇒ String

Github URL of the repository

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rb', line 16

required :url, String

Instance Method Details

#to_hash ⇒ { type: :github_repository, url: String, checkout: Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceConfig::checkout?, mount_path: String? }

Returns:

  • ({ type: :github_repository, url: String, checkout: Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceConfig::checkout?, mount_path: String? })


30
31
32
33
34
35
# File 'sig/anthropic/models/beta/beta_managed_agents_github_repository_resource_config.rbs', line 30

def to_hash: -> {
  type: :github_repository,
  url: String,
  checkout: Anthropic::Models::Beta::BetaManagedAgentsGitHubRepositoryResourceConfig::checkout?,
  mount_path: String?
}