Class: Anthropic::Models::Beta::Organization::Plugins::BetaPluginShare
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::Plugins::BetaPluginShare
- Defined in:
- lib/anthropic/models/beta/organization/plugins/beta_plugin_share.rb,
sig/anthropic/models/beta/organization/plugins/beta_plugin_share.rbs
Overview
Defined Under Namespace
Modules: Target
Instance Attribute Summary collapse
-
#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.
-
#plugin_id ⇒ String
The Plugin's ID.
-
#target ⇒ Anthropic::Models::Beta::Organization::BetaPluginTargetOrganization, ...
Who the Plugin is shared with:
organization(every member),rbac_group(one RBAC Group), ororganization_member(one member). -
#type ⇒ Symbol, :plugin_share
Always
plugin_share.
Instance Method Summary collapse
-
#initialize(granted_at:, plugin_id:, target:, type: :plugin_share) ⇒ void
constructor
One share the owner of a member-owned Plugin has given.
- #to_hash ⇒ {
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.
|
|
# 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.
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.
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.
34 |
# File 'lib/anthropic/models/beta/organization/plugins/beta_plugin_share.rb', line 34 required :type, const: :plugin_share |
Instance Method Details
#to_hash ⇒ {
30 |
# File 'sig/anthropic/models/beta/organization/plugins/beta_plugin_share.rbs', line 30 def to_hash: -> { |