Class BetaRbacRolePermission

    • Constructor Detail

    • Method Detail

      • action

         final String action()

        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 except inference_hooks_inspection, which a role holds only through its own row, and capability_access_all_ga grants 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. 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).

      • _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.

      • validate

         final BetaRbacRolePermission 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.