1# This build file includes a target for the Ruby wrapper library for 2# google-analytics-data. 3 4# This is an API workspace, having public visibility by default makes perfect sense. 5package(default_visibility = ["//visibility:public"]) 6 7# Export yaml configs. 8exports_files(glob(["*.yaml"])) 9 10load( 11 "@com_google_googleapis_imports//:imports.bzl", 12 "ruby_cloud_gapic_library", 13 "ruby_gapic_assembly_pkg", 14) 15 16# Generates a Ruby wrapper client for analyticsdata. 17# Ruby wrapper clients are versionless, but are generated from source protos 18# for a particular service version, v1beta in this case. 19ruby_cloud_gapic_library( 20 name = "analyticsdata_ruby_wrapper", 21 srcs = ["//google/analytics/data/v1beta:data_proto_with_info"], 22 extra_protoc_parameters = [ 23 "ruby-cloud-gem-name=google-analytics-data", 24 "ruby-cloud-env-prefix=ANALYTICS_DATA", 25 "ruby-cloud-wrapper-of=v1beta:0.11", 26 "ruby-cloud-product-url=https://developers.google.com/analytics/devguides/reporting/data/v1", 27 "ruby-cloud-api-id=analyticsdata.googleapis.com", 28 "ruby-cloud-api-shortname=analyticsdata", 29 "ruby-cloud-service-override=BetaAnalyticsData=AnalyticsData", 30 ], 31 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.", 32 ruby_cloud_title = "Google Analytics Data", 33 transport = "grpc+rest", 34) 35 36# Open Source package. 37ruby_gapic_assembly_pkg( 38 name = "google-analytics-data-ruby", 39 deps = [ 40 ":analyticsdata_ruby_wrapper", 41 ], 42) 43