Class: Anthropic::Models::Beta::Organization::RBACRoles::BetaRBACConnectorScopePermissionResource

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_connector_scope_permission_resource.rb,
sig/anthropic/models/beta/organization/rbac_roles/beta_rbac_connector_scope_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:, scope:, type: :connector_scope) ⇒ void

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

Parameters:

  • connector_id (String) —

    ID of the connector the permission applies to.

  • scope (String) —

    OAuth scope the permission names — the role may receive this scope when

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

    Kind of resource the permission applies to.



# File 'lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_connector_scope_permission_resource.rb', line 33


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_scope_permission_resource.rb', line 13

required :connector_id, String

#scope ⇒ String

OAuth scope the permission names — the role may receive this scope when tokens are minted for the connector.

Subject to the same encoding rule as tool_name: a scope containing characters outside [a-zA-Z0-9_-] (or colliding with a reserved form) appears server-encoded in a stable {prefix}_{32-hex} form. OAuth scopes routinely contain : and /, so most appear encoded.

Parameters:

  • value (String)

Returns:

  • (String)


25
# File 'lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_connector_scope_permission_resource.rb', line 25

required :scope, String

#type ⇒ Symbol, :connector_scope

Kind of resource the permission applies to.

Parameters:

  • value (:connector_scope)

Returns:

  • (Symbol, :connector_scope)


31
# File 'lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_connector_scope_permission_resource.rb', line 31

required :type, const: :connector_scope

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


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

def to_hash: -> {