BUILD.bazel 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This build file includes a target for the Ruby wrapper library for
  2. # google-analytics-data.
  3. # This is an API workspace, having public visibility by default makes perfect sense.
  4. package(default_visibility = ["//visibility:public"])
  5. # Export yaml configs.
  6. exports_files(glob(["*.yaml"]))
  7. load(
  8. "@com_google_googleapis_imports//:imports.bzl",
  9. "ruby_cloud_gapic_library",
  10. "ruby_gapic_assembly_pkg",
  11. )
  12. # Generates a Ruby wrapper client for analyticsdata.
  13. # Ruby wrapper clients are versionless, but are generated from source protos
  14. # for a particular service version, v1beta in this case.
  15. ruby_cloud_gapic_library(
  16. name = "analyticsdata_ruby_wrapper",
  17. srcs = ["//google/analytics/data/v1beta:data_proto_with_info"],
  18. extra_protoc_parameters = [
  19. "ruby-cloud-gem-name=google-analytics-data",
  20. "ruby-cloud-env-prefix=ANALYTICS_DATA",
  21. "ruby-cloud-wrapper-of=v1beta:0.0",
  22. "ruby-cloud-product-url=https://developers.google.com/analytics/devguides/reporting/data/v1",
  23. "ruby-cloud-api-id=analyticsdata.googleapis.com",
  24. "ruby-cloud-api-shortname=analyticsdata",
  25. "ruby-cloud-service-override=BetaAnalyticsData=AnalyticsData",
  26. ],
  27. ruby_cloud_description = "The Google Analytics Data API provides programmatic methods to access report data in Google Analytics 4 (GA4) properties. Google Analytics 4 helps you understand how people use your web, iOS, or Android app.",
  28. ruby_cloud_title = "Google Analytics Data",
  29. )
  30. # Open Source package.
  31. ruby_gapic_assembly_pkg(
  32. name = "google-analytics-data-ruby",
  33. deps = [
  34. ":analyticsdata_ruby_wrapper",
  35. ],
  36. )