cloudproviderregion.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 compute
  15. import "yunion.io/x/onecloud/pkg/apis"
  16. type CloudproviderregionDetails struct {
  17. apis.JointResourceBaseDetails
  18. CloudregionResourceInfo
  19. Cloudprovider string `json:"cloudprovider"`
  20. // 云账号Id
  21. // example: fa4aaf88-aed8-422d-84e7-56dea533b364
  22. CloudaccountId string `json:"cloudaccount_id"`
  23. // 云账号名称
  24. // example: googl-account
  25. Cloudaccount string `json:"cloudaccount"`
  26. // 云账号所在域Id
  27. // example: 0df40413-eb69-49c7-895e-618ddeb80f55
  28. CloudaccountDomainId string `json:"cloudaccount_domain_id"`
  29. // 云订阅同步状态
  30. CloudproviderSyncStatus string `json:"cloudprovider_sync_status"`
  31. // 支持服务列表
  32. Capabilities []string `json:"capabilities"`
  33. // 上次同步耗时
  34. LastSyncCost string `json:"last_sync_cost"`
  35. }
  36. type CloudproviderregionListInput struct {
  37. apis.JointResourceBaseListInput
  38. SyncableBaseResourceListInput
  39. RegionalFilterListInput
  40. ManagedResourceListInput
  41. CapabilityListInput
  42. // 是否启用
  43. Enabled *bool `json:"enabled"`
  44. }