BUILD.bazel 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # This build file includes a target for the Ruby wrapper library for
  2. # google-analytics-admin.
  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 analyticsadmin.
  13. # Ruby wrapper clients are versionless, but are generated from source protos
  14. # for a particular service version, v1alpha in this case.
  15. ruby_cloud_gapic_library(
  16. name = "analyticsadmin_ruby_wrapper",
  17. srcs = ["//google/analytics/admin/v1alpha:admin_proto_with_info"],
  18. extra_protoc_parameters = [
  19. "ruby-cloud-gem-name=google-analytics-admin",
  20. "ruby-cloud-env-prefix=ANALYTICS_ADMIN",
  21. "ruby-cloud-wrapper-of=v1alpha:0.0",
  22. "ruby-cloud-api-id=analyticsadmin.googleapis.com",
  23. "ruby-cloud-api-shortname=analyticsadmin",
  24. ],
  25. ruby_cloud_description = "The Analytics Admin API allows for programmatic access to the Google Analytics App+Web configuration data. You can use the Google Analytics Admin API to manage accounts and App+Web properties.",
  26. ruby_cloud_title = "Google Analytics Admin",
  27. )
  28. # Open Source package.
  29. ruby_gapic_assembly_pkg(
  30. name = "google-analytics-admin-ruby",
  31. deps = [
  32. ":analyticsadmin_ruby_wrapper",
  33. ],
  34. )