Class: Anthropic::Models::Beta::Organization::RBACRoles::BetaRBACRolePermission
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::RBACRoles::BetaRBACRolePermission
- Defined in:
- lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_role_permission.rb,
sig/anthropic/models/beta/organization/rbac_roles/beta_rbac_role_permission.rbs
Overview
Defined Under Namespace
Modules: Resource
Instance Attribute Summary collapse
-
#action ⇒ String
Action the permission grants on the resource.
-
#resource ⇒ Anthropic::Models::Beta::Organization::RBACRoles::BetaRBACOrganizationPermissionResource, ...
What the permission applies to.
-
#type ⇒ Symbol, :rbac_role_permission
Object type.
Instance Method Summary collapse
-
#initialize(action:, resource:, type: :rbac_role_permission) ⇒ void
constructor
Some parameter documentations has been truncated, see BetaRBACRolePermission for more details.
- #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(action:, resource:, type: :rbac_role_permission) ⇒ void
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::RBACRoles::BetaRBACRolePermission for more details.
|
|
# File 'lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_role_permission.rb', line 49
|
Instance Attribute Details
#action ⇒ String
Action the permission grants on the resource.
The vocabulary follows the resource: an organization grant carries a
product-feature entitlement (for example chat), an admin-panel permission
entitlement (permission_*), or a blanket capability-access mode —
capability_access_all grants every product-feature entitlement, and
capability_access_all_ga grants the generally-available subset as it stands at
permission-check time; neither mode grants model-access entitlements. A consumer
enumerating a role's per-feature grants should treat a blanket row as granting
every product-feature entitlement it covers, or it will under-report the role's
effective access. A connector_tool grant carries a tool-access action (use
or always_allow); a connector_scope grant carries the scope action grant
(the role may receive the named OAuth scope when tokens are minted for the
connector); connector and all_connectors grants carry a tool-access action,
the scope action, or an authentication-method action (interactive or
managed).
29 |
# File 'lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_role_permission.rb', line 29 required :action, String |
#resource ⇒ Anthropic::Models::Beta::Organization::RBACRoles::BetaRBACOrganizationPermissionResource, ...
What the permission applies to.
A tagged union: type names the kind of resource and determines which
identifier fields are present.
38 39 |
# File 'lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_role_permission.rb', line 38 required :resource, union: -> { Anthropic::Beta::Organization::RBACRoles::BetaRBACRolePermission::Resource } |
#type ⇒ Symbol, :rbac_role_permission
Object type.
For RBAC Role Permissions, this is always "rbac_role_permission".
47 |
# File 'lib/anthropic/models/beta/organization/rbac_roles/beta_rbac_role_permission.rb', line 47 required :type, const: :rbac_role_permission |
Instance Method Details
#to_hash ⇒ {
26 |
# File 'sig/anthropic/models/beta/organization/rbac_roles/beta_rbac_role_permission.rbs', line 26
def to_hash: -> {
|