stone_cfg.stone 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. namespace stone_cfg
  2. struct Route
  3. auth String = "user"
  4. "The auth type for the route. Valid values: user, team, app, noauth."
  5. host String = "api"
  6. "The server to make the request to. Valid values: api, content,
  7. and notify."
  8. style String = "rpc"
  9. "The RPC format to use for the request. Valid values: rpc, download,
  10. and upload."
  11. api_group String?
  12. "The API group to which this route belongs (useful for filtering
  13. via Stone's -f command line argument)."
  14. is_preview Boolean = false
  15. "A flag indicating whether the route is subject to breaking
  16. changes without notice."
  17. # We can switch the type from String to a Union once all generators support
  18. # unions in attributes.
  19. owner String(pattern="adminx|dev-plat|sfi|home|sharing|company-dropbox-team|paper-eng|notifications-team|sub-growth|productivity-infra-team|prodsec|cash-team|premium-labs")?
  20. "The team that currently owns the route."
  21. cluster String(min_length=1) = "meta-api"
  22. "The cluster that handles this route."
  23. feature String?
  24. "Set if the route belongs to an orion feature. Accounts must have access to the feature to
  25. successfully make a request to the route. Only features with boolean value are supported"
  26. allow_app_folder_app Boolean = false
  27. "If app folder app is allowed to use this endpoint."
  28. takes_path_root Boolean = false
  29. "A flag indicating whether the route's behavior is affected by use of
  30. the Dropbox-API-Path-Root header."