Class RbacRolePermission
-
- All Implemented Interfaces:
public final class RbacRolePermission
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRbacRolePermission.BuilderA builder for RbacRolePermission.
public final classRbacRolePermission.ResourceWhat the permission applies to.
A tagged union:
typenames the kind of resource and determines which identifier fields are present.
-
Method Summary
Modifier and Type Method Description final Stringaction()Action the permission grants on the resource. final RbacRolePermission.Resourceresource()What the permission applies to. final JsonValue_type()Object type. final JsonField<String>_action()Returns the raw JSON value of action. final JsonField<RbacRolePermission.Resource>_resource()Returns the raw JSON value of resource. final Map<String, JsonValue>_additionalProperties()final RbacRolePermission.BuildertoBuilder()final RbacRolePermissionvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RbacRolePermission.Builderbuilder()Returns a mutable builder for constructing an instance of RbacRolePermission. -
-
Method Detail
-
action
final String action()
Action the permission grants on the resource.
The vocabulary follows the resource: an
organizationgrant carries a product-feature entitlement (for examplechat), an admin-panel permission entitlement (permission_*), or a blanket capability-access mode —capability_access_allgrants every product-feature entitlement exceptinference_hooks_inspection, which a role holds only through its own row, andcapability_access_all_gagrants the subset of those for stable features 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. Aconnector_toolgrant carries a tool-access action (useoralways_allow); aconnector_scopegrant carries the scope actiongrant(the role may receive the named OAuth scope when tokens are minted for the connector);connectorandall_connectorsgrants carry a tool-access action, the scope action, or an authentication-method action (interactiveormanaged).
-
resource
final RbacRolePermission.Resource resource()
What the permission applies to.
A tagged union:
typenames the kind of resource and determines which identifier fields are present.
-
_type
final JsonValue _type()
Object type.
For RBAC Role Permissions, this is always
"rbac_role_permission".Expected to always return the following:
JsonValue.from("rbac_role_permission")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_action
final JsonField<String> _action()
Returns the raw JSON value of action.
Unlike action, this method doesn't throw if the JSON field has an unexpected type.
-
_resource
final JsonField<RbacRolePermission.Resource> _resource()
Returns the raw JSON value of resource.
Unlike resource, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RbacRolePermission.Builder toBuilder()
-
validate
final RbacRolePermission validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static RbacRolePermission.Builder builder()
Returns a mutable builder for constructing an instance of RbacRolePermission.
The following fields are required:
.action() .resource()
-
-
-
-