Class: Anthropic::Models::Beta::Organization::Plugins::BetaPluginShare

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

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::Plugins::Shares#list

Defined Under Namespace

Modules: Target

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(granted_at:, plugin_id:, target:, type: :plugin_share) ⇒ void

One share the owner of a member-owned Plugin has given. Shares are read-only in this API and have no ID of their own; who gave a share is recorded on the Compliance API activity feed, not here.

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

Parameters:



# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_share.rb', line 36


Instance Attribute Details

#granted_at ⇒ Time

When the share was given; a share whose role is later changed in claude.ai is re-granted and carries the time of that change.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :granted_at, Time

#plugin_id ⇒ String

The Plugin's ID.

Parameters:

  • value (String)

Returns:

  • (String)


21
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_share.rb', line 21

required :plugin_id, String

#target ⇒ Anthropic::Models::Beta::Organization::BetaPluginTargetOrganization, ...

Who the Plugin is shared with: organization (every member), rbac_group (one RBAC Group), or organization_member (one member).



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

required :target, union: -> { Anthropic::Beta::Organization::Plugins::BetaPluginShare::Target }

#type ⇒ Symbol, :plugin_share

Always plugin_share.

Parameters:

  • value (:plugin_share)

Returns:

  • (Symbol, :plugin_share)


34
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_share.rb', line 34

required :type, const: :plugin_share

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


30
# File 'sig/anthropic/models/beta/organization/plugins/beta_plugin_share.rbs', line 30

def to_hash: -> {