project.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package identity
  15. import (
  16. "time"
  17. )
  18. type ExternalResourceInfo struct {
  19. // 外部资源统计信息(资源类别:数量)
  20. ExtResource map[string]int `json:"ext_resource"`
  21. // 外部资源统计信息上次更新时间
  22. ExtResourcesLastUpdate time.Time `json:"ext_resources_last_update"`
  23. // 外部资源统计信息下次更新时间
  24. ExtResourcesNextUpdate time.Time `json:"ext_resources_next_update"`
  25. }
  26. type ProjectDetails struct {
  27. IdentityBaseResourceDetails
  28. SProject
  29. // 项目管理员名称
  30. Admin string `json:"admin"`
  31. // 项目管理员域ID
  32. AdminDomainId string `json:"admin_domain_id"`
  33. // 项目管理员域名称
  34. AdminDomain string `json:"admin_domain"`
  35. // 加入项目的用户组数量
  36. GroupCount int `json:"group_count"`
  37. // 加入项目的用户数量
  38. UserCount int `json:"user_count"`
  39. // 归属该项目的外部资源统计信息
  40. ExternalResourceInfo
  41. Organization *SProjectOrganization
  42. }
  43. type ProjectCleanInput struct {
  44. }