Class: Anthropic::Models::Beta::Organization::BetaPluginMarketplace

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

Overview

See Also:

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

Defined Under Namespace

Modules: DefaultInstallationPreference, Owner, Source, SyncStatus

Instance Attribute Summary collapse

Class Method 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:, created_at:, default_installation_preference:, last_sync_ended_at:, last_sync_read_sha:, name:, owner:, source:, sync_status:, type: :plugin_marketplace) ⇒ void

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

Parameters:



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


Instance Attribute Details

#created_at ⇒ Time

RFC 3339.

Parameters:

  • value (Time)

Returns:

  • (Time)


19
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb', line 19

required :created_at, Time

#default_installation_preference ⇒ Symbol, ...

Organization plugin marketplace: the organization-wide setting every Plugin in it with no setting of its own gets. Null for a member's personal plugin marketplace. One of required, auto_install, available, not_available; a value this API does not yet name is returned as stored.

Parameters:

  • value (Anthropic::Models::Beta::Organization::BetaPluginMarketplace::default_installation_preference, nil)

Returns:



28
29
30
31
32
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb', line 28

required :default_installation_preference,
enum: -> {
  Anthropic::Beta::Organization::BetaPluginMarketplace::DefaultInstallationPreference
},
nil?: true

#id ⇒ String

The plugin marketplace's ID, prefixed marketplace_.

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb', line 13

required :id, String

#last_sync_ended_at ⇒ Time?

RFC 3339. When the most recent synchronization attempt to finish did so, whatever its outcome; for a repository plugin marketplace no synchronization has run on yet, when it was created. Null for a plugin marketplace that is not synchronized from a repository.

Parameters:

  • value (Time, nil)

Returns:

  • (Time, nil)


41
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb', line 41

required :last_sync_ended_at, Time, nil?: true

#last_sync_read_sha ⇒ String?

The commit the last synchronization attempt that reached the repository read, whether or not its content was then accepted (see sync_status); an attempt that ends failed_auth or failed_transient leaves it unchanged. Null until an attempt has first read the repository, and for a plugin marketplace that is not synchronized from a repository.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


51
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb', line 51

required :last_sync_read_sha, String, nil?: true

#name ⇒ String

Fixed for the plugin marketplace's lifetime.

Parameters:

  • value (String)

Returns:

  • (String)


57
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb', line 57

required :name, String

#owner ⇒ Anthropic::Models::Beta::Organization::BetaPluginOwnerOrganization, Anthropic::Models::Beta::Organization::BetaPluginOwnerUser

The organization, or the member whose personal plugin marketplace it is.

Parameters:

  • value (Anthropic::Models::Beta::Organization::BetaPluginMarketplace::owner)

Returns:



63
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb', line 63

required :owner, union: -> { Anthropic::Beta::Organization::BetaPluginMarketplace::Owner }

#source ⇒ Symbol, Anthropic::Models::Beta::Organization::BetaPluginMarketplace::Source

Where the plugin marketplace's Plugins come from: manual when they are uploaded; github, gitlab or public_git when they are synchronized from the Git repository the owner connected, into which nothing can be uploaded; directory is Anthropic's own catalog, which this API does not list. A value this API does not yet name is returned as stored.

Parameters:

  • value (Anthropic::Models::Beta::Organization::BetaPluginMarketplace::source)

Returns:



73
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb', line 73

required :source, enum: -> { Anthropic::Beta::Organization::BetaPluginMarketplace::Source }

#sync_status ⇒ Symbol, ...

Outcome of the plugin marketplace's most recent synchronization: one of success, in_progress, failed_content, failed_transient, failed_auth, failed_limits; a value this API does not yet name is returned as stored. Null until a synchronization is first attempted — so always for a manual plugin marketplace.

Parameters:

  • value (Anthropic::Models::Beta::Organization::BetaPluginMarketplace::sync_status, nil)

Returns:



83
84
85
# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb', line 83

required :sync_status,
enum: -> { Anthropic::Beta::Organization::BetaPluginMarketplace::SyncStatus },
nil?: true

#type ⇒ Symbol, :plugin_marketplace

Always plugin_marketplace.

Parameters:

  • value (:plugin_marketplace)

Returns:

  • (Symbol, :plugin_marketplace)


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

required :type, const: :plugin_marketplace

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/anthropic/models/beta/organization/beta_plugin_marketplace.rb', line 131


Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


53
# File 'sig/anthropic/models/beta/organization/beta_plugin_marketplace.rbs', line 53

def to_hash: -> {