Class: Anthropic::Models::Beta::Organization::RBACRoles::BetaRBACConnectorToolPermissionResource

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

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(connector_id:, tool_name:, type: :connector_tool) ⇒ void

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

Parameters:

  • connector_id (String) —

    ID of the connector the permission applies to.

  • tool_name (String) —

    Published name of the connector tool the permission applies to.

  • type (Symbol, :connector_tool) (defaults to: :connector_tool) —

    Kind of resource the permission applies to.



# File 'lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_connector_tool_permission_resource.rb', line 32


Instance Attribute Details

#connector_id ⇒ String

ID of the connector the permission applies to.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :connector_id, String

#tool_name ⇒ String

Published name of the connector tool the permission applies to.

When the published name contains characters outside [a-zA-Z0-9_-] (or collides with a reserved form), it is server-encoded into a stable {prefix}_{32-hex} form — a shortened readable prefix of the name plus a hash — from which the published name is not recoverable.

Parameters:

  • value (String)

Returns:

  • (String)


24
# File 'lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_connector_tool_permission_resource.rb', line 24

required :tool_name, String

#type ⇒ Symbol, :connector_tool

Kind of resource the permission applies to.

Parameters:

  • value (:connector_tool)

Returns:

  • (Symbol, :connector_tool)


30
# File 'lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_connector_tool_permission_resource.rb', line 30

required :type, const: :connector_tool

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


22
# File 'sig/anthropic/models/beta/organization/rbac_roles/beta_rbac_connector_tool_permission_resource.rbs', line 22

def to_hash: -> {