elastic_search.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 (
  16. "yunion.io/x/cloudmux/pkg/apis/compute"
  17. "yunion.io/x/onecloud/pkg/apis"
  18. )
  19. const (
  20. ELASTIC_SEARCH_STATUS_AVAILABLE = compute.ELASTIC_SEARCH_STATUS_AVAILABLE
  21. ELASTIC_SEARCH_STATUS_UNAVAILABLE = compute.ELASTIC_SEARCH_STATUS_UNAVAILABLE
  22. ELASITC_SEARCH_STATUS_CREATING = compute.ELASITC_SEARCH_STATUS_CREATING
  23. ELASTIC_SEARCH_STATUS_DELETING = compute.ELASTIC_SEARCH_STATUS_DELETING
  24. ELASTIC_SEARCH_STATUS_DELETE_FAILED = "delete_failed"
  25. ELASTIC_SEARCH_STATUS_UNKNOWN = "unknown"
  26. )
  27. const (
  28. ELASTIC_SEARCH_UPDATE_TAGS = "update_tags"
  29. ELASTIC_SEARCH_UPDATE_TAGS_FAILED = "update_tags_fail"
  30. )
  31. // 资源创建参数, 目前仅占位
  32. type ElasticSearchCreateInput struct {
  33. }
  34. // 资源返回详情
  35. type ElasticSearchDetails struct {
  36. apis.VirtualResourceDetails
  37. ManagedResourceInfo
  38. CloudregionResourceInfo
  39. VpcResourceInfoBase
  40. NetworkResourceInfoBase
  41. ZoneResourceInfoBase
  42. }
  43. // 资源列表请求参数
  44. type ElasticSearchListInput struct {
  45. apis.VirtualResourceListInput
  46. apis.ExternalizedResourceBaseListInput
  47. apis.DeletePreventableResourceBaseListInput
  48. RegionalFilterListInput
  49. ManagedResourceListInput
  50. VpcFilterListInput
  51. }
  52. type ElasticSearchAccessInfoInput struct {
  53. }