APIVersion.swift 1.1 KB

123456789101112131415161718192021222324252627282930
  1. // Copyright 2025 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. /// Versions of the Vertex AI in Firebase server API.
  15. @available(iOS 15.0, macOS 12.0, macCatalyst 15.0, tvOS 15.0, watchOS 8.0, *)
  16. // TODO(#14405): Make `APIVersion`, `v1` and `v1beta` public in Firebase 12.
  17. struct APIVersion {
  18. /// The stable channel for version 1 of the API.
  19. static let v1 = APIVersion(versionIdentifier: "v1")
  20. /// The beta channel for version 1 of the API.
  21. static let v1beta = APIVersion(versionIdentifier: "v1beta")
  22. let versionIdentifier: String
  23. init(versionIdentifier: String) {
  24. self.versionIdentifier = versionIdentifier
  25. }
  26. }