backup_storages.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. type BackupstorageResourceInput struct {
  16. // 备份存储(ID或Name)
  17. BackupstorageId string `json:"backupstorage_id"`
  18. // swagger:ignore
  19. // Deprecated
  20. // filter by backupstorage_id
  21. Backupstorage string `json:"backupstorage" yunion-deprecated-by:"backupstorage_id"`
  22. }
  23. type BackupstorageFilterListInputBase struct {
  24. BackupstorageResourceInput
  25. // 以备份存储名称排序
  26. // pattern:asc|desc
  27. OrderByBackupstorage string `json:"order_by_backupstorage"`
  28. }
  29. type BackupstorageResourceInfo struct {
  30. // 备份存储名称
  31. Backupstorage string `json:"backupstorage"`
  32. // 备份存储类型
  33. BackupstorageType TBackupStorageType `json:"backupstorage_type"`
  34. // 备份存储状态
  35. BackupstorageStatus string `json:"backupstorage_status"`
  36. }
  37. type BackupstorageFilterListInput struct {
  38. BackupstorageFilterListInputBase
  39. }