Class RoleRequest

java.lang.Object
ai.vectros.types.RoleRequest

public final class RoleRequest extends Object
  • Method Details

    • getRoleId

      public String getRoleId()
      Returns:
      Your own identifier for the role. Must be 3 to 31 characters, starting with a lowercase letter and containing only lowercase letters, digits, and dashes (the same rules as a context ID). Required when creating a role; ignored when updating, since the role ID is taken from the URL path.
    • getName

      public String getName()
      Returns:
      A human-readable display name for the role.
    • getDescription

      public Optional<String> getDescription()
      Returns:
      An optional free-text description of what the role grants.
    • getScopes

      public List<ScopeClause> getScopes()
      Returns:
      The role's permissions, as one or more scope clauses. Each clause has allowed_actions (a list of permitted verbs) and data_scope (an attribute filter that restricts which records the actions apply to). An action is permitted if any clause allows that action and that clause's data scope matches the target record. To include records whose ownership field is null (account-level shared records), add null to the allowed values for that field.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static RoleRequest.RoleIdStage builder()