StorageConstants.swift 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright 2022 Google LLC
  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. import Foundation
  15. import FirebaseStorageObjC
  16. @objc(FIRStorageTaskStatus) public enum StorageTaskStatus: Int {
  17. case unknown
  18. case resume
  19. case progress
  20. case pause
  21. case success
  22. case failure
  23. }
  24. @objc(FIRStorageErrorCode) public enum StorageErrorCode: Int {
  25. case unknown = -13000
  26. case objectNotFound = -13010
  27. case bucketNotFound = -13011
  28. case projectNotFound = -13012
  29. case quotaExceeded = -13013
  30. case unauthenticated = -13020
  31. case unauthorized = -13021
  32. case retryLimitExceeded = -13030
  33. case nonMatchingChecksum = -13031
  34. case downloadSizeExceeded = -13032
  35. case cancelled = -13040
  36. case invalidArgument = -13050
  37. }