externalproject.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. EXTERNAL_PROJECT_STATUS_AVAILABLE = compute.EXTERNAL_PROJECT_STATUS_AVAILABLE // 可用
  21. EXTERNAL_PROJECT_STATUS_UNAVAILABLE = compute.EXTERNAL_PROJECT_STATUS_UNAVAILABLE // 不可用
  22. EXTERNAL_PROJECT_STATUS_CREATING = compute.EXTERNAL_PROJECT_STATUS_CREATING // 创建中
  23. EXTERNAL_PROJECT_STATUS_DELETING = compute.EXTERNAL_PROJECT_STATUS_DELETING // 删除中
  24. EXTERNAL_PROJECT_STATUS_UNKNOWN = compute.EXTERNAL_PROJECT_STATUS_UNKNOWN // 未知
  25. )
  26. type ExternalProjectDetails struct {
  27. apis.VirtualResourceDetails
  28. ManagedResourceInfo
  29. SExternalProject
  30. }
  31. type ExternalProjectChangeProjectInput struct {
  32. apis.DomainizedResourceInput
  33. apis.ProjectizedResourceInput
  34. }
  35. type ExternalProjectCreateInput struct {
  36. apis.VirtualResourceCreateInput
  37. ManagerId string `json:"manager_id"`
  38. // swagger:ignore
  39. ExternalId string `json:"external_id"`
  40. }