cloudaccount.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 cloudid
  15. type CloudaccountResourceListInput struct {
  16. // 根据云账号名称过滤资源
  17. // swagger:ignore
  18. Cloudaccount string `json:"cloudaccount" yunion-deprecated-by:"cloudaccount_id"`
  19. // 根据平台过滤
  20. Provider []string `json:"provider"`
  21. CloudaccountId string `json:"cloudaccount_id"`
  22. }
  23. type CloudproviderResourceListInput struct {
  24. // 根据云订阅过滤资源
  25. ManagerId string `json:"manager_id"`
  26. // swagger:ignore
  27. CloudproviderId string `json:"cloudprovider_id" yunion-deprecated-by:"manager_id"`
  28. }
  29. type CloudaccountResourceDetails struct {
  30. // 云账号名称
  31. Cloudaccount string `json:"cloudaccount"`
  32. // 平台信息
  33. Provider string `json:"provider"`
  34. // 品牌信息
  35. Brand string `json:"brand"`
  36. // 公有云账号登录地址
  37. IamLoginUrl string `json:"iam_login_url"`
  38. }
  39. type CloudproviderResourceDetails struct {
  40. // 云订阅名称
  41. Manager string `json:"manager"`
  42. }