loadbalancercluster.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 LoadbalancerClusterDetails struct {
  17. apis.StandaloneResourceDetails
  18. ZoneResourceInfo
  19. WireResourceInfoBase
  20. SLoadbalancerCluster
  21. RefCounts map[string]int `json:"ref_counts"`
  22. }
  23. type LoadbalancerClusterResourceInfo struct {
  24. ZoneResourceInfo
  25. WireResourceInfoBase
  26. // VPC ID
  27. VpcId string `json:"vpc_id"`
  28. // VPC名称
  29. Vpc string `json:"vpc"`
  30. // 负载均衡集群名称
  31. Cluster string `json:"cluster"`
  32. }
  33. type LoadbalancerClusterResourceInput struct {
  34. // 负载均衡集群ID或名称
  35. ClusterId string `json:"cluster_id"`
  36. // swagger:ignore
  37. // Deprecated
  38. Cluster string `json:"cluster" yunion-deprecated-by:"cluster_id"`
  39. }
  40. type LoadbalancerClusterFilterListInput struct {
  41. ZonalFilterListInput
  42. WireFilterListBase
  43. LoadbalancerClusterResourceInput
  44. // 以负载均衡集群排序
  45. OrderByCluster string `json:"order_by_cluster"`
  46. }
  47. type LoadbalancerClusterListInput struct {
  48. apis.StandaloneResourceListInput
  49. ZonalFilterListInput
  50. WireFilterListBase
  51. }