team_common.stone 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. namespace team_common
  2. import common
  3. alias TeamMemberId = String
  4. alias MemberExternalId = String(max_length=64)
  5. alias GroupExternalId = String
  6. alias GroupId = String
  7. alias ResellerId = String
  8. struct GroupSummary
  9. "Information about a group."
  10. group_name String
  11. group_id GroupId
  12. group_external_id GroupExternalId?
  13. "External ID of group. This is an arbitrary ID that an admin can attach to a group."
  14. member_count UInt32?
  15. "The number of members in the group."
  16. group_management_type GroupManagementType
  17. "Who is allowed to manage the group."
  18. example default
  19. group_name = "Test group"
  20. group_id = "g:e2db7665347abcd600000000001a2b3c"
  21. member_count = 10
  22. group_management_type = user_managed
  23. union GroupManagementType
  24. "The group type determines how a group is managed."
  25. user_managed
  26. "A group which is managed by selected users."
  27. company_managed
  28. "A group which is managed by team admins only."
  29. system_managed
  30. "A group which is managed automatically by Dropbox."
  31. union GroupType
  32. "The group type determines how a group is created and managed."
  33. team
  34. "A group to which team members are automatically added. Applicable to
  35. :link:`team folders https://www.dropbox.com/help/986` only."
  36. user_managed
  37. "A group is created and managed by a user."
  38. struct TimeRange
  39. "Time range."
  40. start_time common.DropboxTimestamp?
  41. "Optional starting time (inclusive)."
  42. end_time common.DropboxTimestamp?
  43. "Optional ending time (exclusive)."